Structs§
- Async
Readback - A pending GPU→CPU readback. Created by
AsyncReadback::from_texture_layer. CallAsyncReadback::try_collecteach frame (after a non-blocking device poll) until it returnsOk(data). - Bind
Group - Bind
Group Builder - Structure for a bind group.
- Bind
Group Layout - Structure for a bind group layout. Stores the layout description and builder data.
- Command
Buffer - Record commands for the GPU, spawn render/compute passes, and submit once finished. Guard rails ensure pipelines/buffers are set before draws/dispatches.
- GpuAllocation
- A tracked GPU resource, untracked when dropped. Keep it next to the resource.
- GpuAllocation
Info - A live tracked GPU resource.
- GpuMemory
- GPU memory of the live
Buffers andTextures, shared by the whole process. Resources created directly withwgpuare only counted if they hold aGpuAllocation. - GpuMemory
Total - Render
Pass Builder - Builder for a render pass.
- Render
Pass Color Attachment - Describe a single color attachment of a render pass.
- Render
Pass Depth - Describe the optional depth attachment of a render pass.
Enums§
- GpuMemory
Category - Category of a tracked GPU resource, deduced from its usages.