Skip to main content

Module wgpu

Module wgpu 

Source

Modules§

backend
binding
Shared bind-group vocabulary for material and compute — a material’s own bind group and a compute pass’s own bind group are described the same way, differing only in which shader stage(s) can see each entry (a material entry can be FRAGMENT/VERTEX/VERTEX_FRAGMENT; a compute entry is always exactly COMPUTE). Every constructor below takes visibility explicitly rather than guessing a default per module — build_material/ build_compute validate it’s appropriate for the pipeline kind they’re building, panicking with a clear message otherwise.
buffers
Buffer and bind-group construction helpers.
compute
cubemap
instance
layout
material
mesh
mipmap
samplers
texture_array
textures
window