Skip to main content

Module wgpu_utils

Module wgpu_utils 

Source

Structs§

AsyncReadback
A pending GPU→CPU readback. Created by AsyncReadback::from_texture_layer. Call AsyncReadback::try_collect each frame (after a non-blocking device poll) until it returns Ok(data).
BindGroup
BindGroupBuilder
Structure for a bind group.
BindGroupLayout
Structure for a bind group layout. Stores the layout description and builder data.
CommandBuffer
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.
GpuAllocationInfo
A live tracked GPU resource.
GpuMemory
GPU memory of the live Buffers and Textures, shared by the whole process. Resources created directly with wgpu are only counted if they hold a GpuAllocation.
GpuMemoryTotal
RenderPassBuilder
Builder for a render pass.
RenderPassColorAttachment
Describe a single color attachment of a render pass.
RenderPassDepth
Describe the optional depth attachment of a render pass.

Enums§

GpuMemoryCategory
Category of a tracked GPU resource, deduced from its usages.