Expand description
Low-level graphics abstraction for Rust. Mostly operates on data, not types. Designed for use by libraries and higher-level abstractions only.
Modules§
- adapter
- Physical devices and adapters.
- buffer
- Memory buffers.
- command
- Command buffers.
- device
- Logical device
- format
- Universal format specification. Applicable to textures, views, and vertex buffers.
- image
- Image related structures.
- memory
- Types to describe the properties of memory allocated for gfx resources.
- pass
- RenderPass handling.
- pool
- Command pools
- prelude
- Prelude module re-exports all the traits necessary to use gfx-hal.
- pso
- Raw Pipeline State Objects
- query
- Queries are commands that can be submitted to a command buffer to record statistics or other useful values as the command buffer is running. They are often intended for profiling or other introspection, providing a mechanism for the command buffer to record data about its operation as it is running.
- queue
- Command queues.
- range
- Generic range type abstraction that allows ranges to be handled a little more generically.
- window
- Windowing system interoperability
Macros§
- spec_
const_ list - Macro for specifying list of specialization constatns for
EntryPoint
.
Structs§
- Features
- Features that the device supports. These only include features of the core interface and not API extensions.
- Limits
- Resource limits of a particular graphics device.
- Memory
Type Id - A strongly-typed index to a particular
MemoryType
. - Unsupported
Backend - Error creating an instance of a backend on the platform that doesn’t support this backend.
Enums§
- Index
Type - An enum describing the type of an index value in a slice’s index buffer
Traits§
- Backend
- The
Backend
trait wraps together all the types needed for a graphics backend. Each backend module, such as OpenGL or Metal, will implement this trait with its own concrete types. - Instance
- An instantiated backend.
Type Aliases§
- Draw
Count - Indirect draw calls count.
- Index
Count - Draw number of indices.
- Instance
Count - Draw number of instances.
- Vertex
Count - Draw vertex count.
- Vertex
Offset - Draw vertex base offset.
- Work
Group Count - Number of work groups.