Skip to main content

ComputeInstanceDescriptor

Type Alias ComputeInstanceDescriptor 

Source
pub type ComputeInstanceDescriptor = BindingInstanceDescriptor<GPUCompute>;
Expand description

Source data for a GPUComputeInstance.

Aliased Type§

pub struct ComputeInstanceDescriptor {
    pub target: RawAssetHandle,
    pub params: Vec<(&'static str, BindingInstanceEntry)>,
    /* private fields */
}

Fields§

§target: RawAssetHandle

Handle to the target T (looked up in ProcessedAssets<T> at upload time).

§params: Vec<(&'static str, BindingInstanceEntry)>

(entry name, resource) pairs — every name must match a named binding entry on the target, or upload fails (see build_instance_bind_group).