Documentation
    Preparing search index...

    Interface GpuTextureDescriptor

    A texture allocation request — the depth attachment and §77's uploads.

    interface GpuTextureDescriptor {
        format: string;
        label?: string;
        mipLevelCount?: number;
        size: readonly [number, number];
        usage: number;
    }
    Index
    format: string

    Texel format.

    label?: string

    Diagnostic name.

    mipLevelCount?: number

    How many mip levels to allocate; 1 — a single level — when omitted.

    Omitted rather than passed as 1 for the whole tier that does not mipmap, so the depth attachment's descriptor is the object it always was.

    size: readonly [number, number]

    Extent, as WebGPU's array form.

    usage: number

    Bit set from GPU_TEXTURE_USAGE.