Skip to main content

Module compute

Module compute 

Source

Structs§

Compute
Describes a compute pipeline + its own bind group, the source type GPUCompute is built from via build_compute. Fields are private — start from Compute::new and chain the setters below rather than constructing one as a struct literal.
ComputePipeline
A wgpu::ComputePipeline, opaque — built only via build_compute/ GPUCompute’s Asset::upload. Bind it against a ComputePass via ComputePass::set_pipeline; there’s no way to reach the underlying wgpu::ComputePipeline from outside this crate.
ComputePlugin
Registers the GPUCompute asset pipeline (Assets<Compute>ProcessedAssets<GPUCompute>). Included by WGPUPlugin; add directly only if you’re assembling the wgpu module’s plugins by hand.
GPUCompute
A compute pass uploaded to the GPU: a compute pipeline plus the bind group layout entries it expects.

Functions§

build_compute
Builds a compute pipeline and its own bind group layout from desc.