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.
build_instance_bind_group
Builds a bind group matching each (name, resource) pair in resolved to its @binding(N) via target_entries. Returns None if any name in resolved has no matching entry — the caller (GPUBindingInstance::upload) turns that into a None upload result via ?, which the sync system retries next tick rather than treating 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.