gpu-curtains
    Preparing search index...

    Interface TextureBindingParams

    An object defining all possible TextureBinding class instancing parameters.

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

    Hierarchy (View Summary)

    Index
    label?: string

    Binding label.

    name?: string

    Binding name/key.

    visibility?: MaterialShadersType[]

    Binding variables shaders visibility as an array of shaders types names.

    viewDimension?: GPUTextureViewDimension

    The GPUTexture view dimension to use. Default to '2d'.

    aspect?: GPUTextureAspect

    Define which aspect of the texture to write the image to. Default to all.

    baseArrayLayer?: number

    Define how many layers from arrayLayerCount are accessible to the view. Default to undefined and let WebGPU handles it. Useful to pick a precise layer into a texture array.

    arrayLayerCount?: number

    Define the first array layer from baseArrayLayer accessible to the view. Default to undefined and let WebGPU handles it. Useful to pick a precise layer into a texture array.

    baseMipLevel?: number

    Define the first (most detailed) mipmap level from baseMipLevel accessible to the view. Default to undefined and let WebGPU handles it.

    bindingType?: DOMTextureBindingType

    The binding type of the TextureBinding.

    format?: GPUTextureFormat

    The texture format to use.

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

    multisampled?: boolean

    Whether the texture is a multisampled texture. Mainly used internally by depth textures if needed.