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).
CommandBuffer
Record commands for the GPU, spawn render/compute passes, and submit once finished. Guard rails ensure pipelines/buffers are set before draws/dispatches.
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.