Expand description
Low-level graphics abstraction for Rust. Mostly operates on data, not types. Designed for use by libraries and higher-level abstractions only.
Re-exports§
pub use self::factory::Factory;
Modules§
- buffer
- Memory buffers
- command
- Command Buffer device interface
- dummy
- Dummy backend implementation to test the code for compile errors outside of the graphics development environment.
- factory
- Resource factory
- format
- Universal format specification. Applicable to textures, views, and vertex buffers.
- handle
- Resource handles
- mapping
- Memory mapping
- memory
- Types to describe the properties of memory allocated for gfx resources.
- pso
- Raw Pipeline State Objects
- shade
- Shader handling.
- state
- Fixed-function hardware state.
- target
- Render target specification.
- texture
- Texture creation and modification.
Structs§
- Adapter
Info - Information about a backend adapater.
- Capabilities
- Features that the device supports.
- Domain
Shader - Frame
- Handle to a backbuffer of the swapchain.
- Geometry
Shader - Hull
Shader - Pixel
Shader - Vertex
Shader
Enums§
- Index
Type - A type of each index value in the slice’s index buffer
- Primitive
- Describes what geometric primitives are created from vertex data.
- Shader
Set - A complete set of shaders to link a program. TODO: TransformFeedback
- Submission
Error
Constants§
- MAX_
COLOR_ TARGETS - Compile-time maximum number of color targets.
- MAX_
CONSTANT_ BUFFERS - Compile-time maximum number of constant buffers.
- MAX_
RESOURCE_ VIEWS - Compile-time maximum number of shader resource views (SRV).
- MAX_
SAMPLERS - Compile-time maximum number of samplers.
- MAX_
UNORDERED_ VIEWS - Compile-time maximum number of unordered access views (UAV).
- MAX_
VERTEX_ ATTRIBUTES - Compile-time maximum number of vertex attributes.
Traits§
- Adapter
- Represents a physical or virtual device, which is capable of running the backend.
- Command
Queue - Dummy trait for command queues. CommandBuffers will be later submitted to command queues instead of the device.
- Device
- A
Device
is responsible for submittingCommandBuffer
s to the GPU. - Queue
Family QueueFamily
denotes a group of command queues provided by the backend with the same properties/type.- Resources
- Different types of a specific API.
- Surface
- A
Surface
abstracts the surface of a native window, which will be presented - Swap
Chain - The
SwapChain
is the backend representation of the surface. It consists of multiple buffers, which will be presented on the surface.
Type Aliases§
- Attribute
Slot - Slot for an attribute.
- Color
Slot - Slot for an active color buffer.
- Constant
Buffer Slot - Slot for a constant buffer object.
- Instance
Count - Draw number of instances
- Patch
Size - Number of vertices in a patch
- Resource
View Slot - Slot for a shader resource view.
- Sampler
Slot - Slot for a sampler.
- Submission
Result - Unordered
View Slot - Slot for an unordered access object.
- Vertex
Count - Draw vertex count.