Skip to main content

Module abstraction

Module abstraction 

Source
Expand description

Unified GPU abstraction layer: GpuDevice and GpuQueue traits that provide a single API surface regardless of the underlying graphics backend.

Structs§

BindGroup
A concrete bind group with bound resources.
BindGroupEntry
One entry in a bind group.
BlendState
Blend state for a single colour target.
ColorTargetState
State for a single colour output attachment.
ComputePipelineDesc
Describes a compute pipeline.
DepthStencilState
Depth-stencil state.
NullDevice
A device that does nothing. Every call is a successful no-op.
OpenGLDevice
OpenGL device implementation. Without a live GL context this delegates entirely to SoftwareDevice.
RenderPipelineDesc
Describes a render pipeline.
SimpleQueue
A simple in-order queue that executes commands immediately.
SoftwareDevice
CPU-backed device.
VertexAttr
A single vertex attribute descriptor.
VertexBufferLayout
Layout of one vertex buffer.

Enums§

BlendFactor
Blend factor.
BlendOp
Blend operation.
BoundResource
A resource bound at a specific slot.
CompareFunction
Compare function used for depth/stencil testing.
RecordedCommand
A recorded GPU command (opaque).
StepMode
Per-vertex or per-instance stepping.

Traits§

GpuDevice
The unified GPU device trait. Every concrete backend implements this.
GpuQueue
Command queue for submitting work to the GPU.