An object defining all possible TextureBinding class instancing parameters

interface TextureBindingParams {
    label?: string;
    name?: string;
    visibility?: MaterialShadersType[];
    bindingType?: DOMTextureBindingType;
    texture: TextureBindingResource;
    format?: GPUTextureFormat;
    access?: BindingMemoryAccessType;
    viewDimension?: GPUTextureViewDimension;
    multisampled?: boolean;
}

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?: DOMTextureBindingType

The binding type of the TextureBinding

format?: GPUTextureFormat

The GPUTexture | texture format to use

The storage GPUTexture | texture binding memory access types (read only, write only or read/write)

viewDimension?: GPUTextureViewDimension

The GPUTexture | texture view dimension to use

multisampled?: boolean

Whethe the GPUTexture | texture is a multisampled texture. Mainly used internally by depth textures if needed.