Defines the GPUTexture size. Depth default to 1 and could also be used for array layers.

interface TextureSize {
    width: number;
    height: number;
    depth?: number;
}

Hierarchy (view full)

Properties

Properties

width: number

width of the rectangle

height: number

height of the rectangle

depth?: number

Depth or array layers of the GPUTexture