Skip to main content

Module instance

Module instance 

Source

Structs§

BindingInstanceDescriptor
Source data for a GPUBindingInstance<T>: which T (a GPUMaterial or GPUCompute) to bind against, and the concrete resource for each of its named binding entries.
ComputeInstancePlugin
Registers the GPUComputeInstance asset pipeline (Assets<ComputeInstanceDescriptor>ProcessedAssets<GPUComputeInstance>). Included by WGPUPlugin; add directly only if you’re assembling the wgpu module’s plugins by hand.
GPUBindingInstance
An instance uploaded to the GPU: a bind group ready to set against its target T’s pipeline, plus any owned uniform/storage buffers (from BindingInstanceEntry::Uniform/Storage) updatable via update. See the GPUMaterialInstance/ GPUComputeInstance aliases for the two concrete instantiations.
MaterialInstancePlugin
Registers the GPUMaterialInstance asset pipeline (Assets<MaterialInstanceDescriptor>ProcessedAssets<GPUMaterialInstance>). Included by WGPUPlugin; add directly only if you’re assembling the wgpu module’s plugins by hand.

Enums§

BindingInstanceEntry
A concrete resource to bind for one named entry of a BindingInstanceDescriptor. The name it’s paired with (in BindingInstanceDescriptor::params) is matched against the target’s BindingEntry::names to find the right @binding(N) — so this only needs to say what to bind, not where.

Functions§

binding_index
Looks up the @binding(N) a target declared under name. Returning None for an unmatched name (rather than panicking) is what lets GPUBindingInstance::upload turn a bad name into a None upload result via ? — the sync system retries next tick rather than treating it as fatal (see Asset::upload).

Type Aliases§

ComputeInstanceDescriptor
Source data for a GPUComputeInstance.
GPUComputeInstance
A compute instance uploaded to the GPU — GPUBindingInstance bound against a GPUCompute.
GPUMaterialInstance
A material instance uploaded to the GPU — GPUBindingInstance bound against a GPUMaterial.
MaterialInstanceDescriptor
Source data for a GPUMaterialInstance.