An object defining all possible SamplerBinding class instancing parameters

interface SamplerBindingParams {
    label?: string;
    name?: string;
    visibility?: MaterialShadersType[];
    bindingType?: "sampler";
    sampler: GPUSampler;
    type: GPUSamplerBindingType;
}

Hierarchy (view full)

Properties

label?: string

Binding label

name?: string

Binding name/key

visibility?: MaterialShadersType[]

Binding variables shaders visibility as an array of shaders types names

bindingType?: "sampler"

The binding type of the SamplerBinding

sampler: GPUSampler

SamplerBinding GPUBindGroup | GPU bind group resource

type: GPUSamplerBindingType

The bind group layout binding type of this GPUSampler | GPU sampler