Skip to main content

Module context

Module context 

Source
Expand description

GPU compute context — wgpu device initialization with CPU fallback.

Wraps wgpu::Device + Queue for native GPU compute, or falls back to CPU-only mode when no GPU is available or the feature is disabled.

Structs§

ComputeBindingDescriptor
One logical binding passed to a compute kernel.
ComputeCapabilities
Capabilities detected from the GPU adapter.
ComputeDispatchDescriptor
Generic compute dispatch description.
ComputeDispatchResult
Output produced by a compute dispatch.
GpuContext
GPU compute context handle.

Enums§

ComputeBindingKind
Buffer access mode for compute bindings.
UniformValue

Functions§

bytes_to_f32_vec
bytes_to_f64_vec_from_f32
ceil_div_u32
f32_slice_to_bytes
pack_uniform_values
pack_vec3_positions_f32