Structs§
- Binding
Instance - Source data for a
GPUBindingInstance<T>: whichT(aGPUMaterialorGPUCompute) to bind against, and the concrete resource for each of its named binding entries. - Binding
Instance Builder - Builds a
BindingInstance<T>. Start fromnew, chain the per-kind binding methods below (mirroring howBindGroupBuilderadds one resource per call), then finish withbuild/build_asset. See theMaterialInstanceBuilder/ComputeInstanceBuilderaliases for the two concrete instantiations. - Compute
Instance Plugin - Registers the
ComputeInstanceasset pipeline. Included byWGPUPlugin; add directly only if you’re assembling thewgpumodule’s plugins by hand. - GPUBinding
Instance - An instance uploaded to the GPU: a bind group ready to set against its
target
T’s pipeline, plus any owned uniform/storage buffers (fromBindingInstanceEntry::Uniform/Storage) updatable viaupdate. See theGPUMaterialInstance/GPUComputeInstancealiases for the two concrete instantiations. - Material
Instance Plugin - Registers the
MaterialInstanceasset pipeline. Included byWGPUPlugin; add directly only if you’re assembling thewgpumodule’s plugins by hand.
Enums§
- Binding
Instance Entry - A concrete resource to bind for one named entry of a
BindingInstance, pushed one at a time via [BindingInstanceBuilder::texture]/sampler/etc. (or directly via [BindingInstanceBuilder::param] for a dynamically-selected kind). Itsnameis matched against the target’sBindingEntry::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 undername. ReturningNonefor an unmatched name (rather than panicking) is what letsGPUBindingInstance::uploadturn a bad name into aNoneupload result via?— the sync system retries next tick rather than treating it as fatal (seeAsset::upload).
Type Aliases§
- Compute
Instance - Source data for a
GPUComputeInstance. - Compute
Instance Builder - Builds a
ComputeInstance. - GPUCompute
Instance - A compute instance uploaded to the GPU —
GPUBindingInstancebound against aGPUCompute. - GPUMaterial
Instance - A material instance uploaded to the GPU —
GPUBindingInstancebound against aGPUMaterial. - Material
Instance - Source data for a
GPUMaterialInstance. - Material
Instance Builder - Builds a
MaterialInstance.