Selva Compute API Reference - v1.1.2
    Preparing search index...
    interface GPUTexture {
        __brand: "GPUTexture";
        depthOrArrayLayers: number;
        dimension: GPUTextureDimension;
        format: GPUTextureFormat;
        height: number;
        label: string;
        mipLevelCount: number;
        sampleCount: number;
        textureBindingViewDimension?: GPUTextureViewDimension;
        usage: number;
        width: number;
        createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
        destroy(): undefined;
    }

    Hierarchy (View Summary)

    Index

    Properties

    __brand: "GPUTexture"

    Workaround for nominal typing.

    depthOrArrayLayers: number

    The depth or layer count of this GPUTexture.

    The dimension of the set of texel for each of this GPUTexture's subresources.

    The format of this GPUTexture.

    height: number

    The height of this GPUTexture.

    label: string
    mipLevelCount: number

    The number of mip levels of this GPUTexture.

    sampleCount: number

    The number of sample count of this GPUTexture.

    textureBindingViewDimension?: GPUTextureViewDimension

    On devices without "core-features-and-limits", views created from this texture must have this as their dimension.

    On devices with "core-features-and-limits", this is undefined, and there is no such restriction.

    Temporarily optional until all browsers have implemented it. It is safe to access on any browser, as it will just (correctly) return undefined if not implemented. Note, depending on the device, undefined is a valid value even in browsers that implement this attribute. (So be careful if using the non-null assertion operator ! on this.)

    usage: number

    The allowed usages for this GPUTexture.

    width: number

    The width of this GPUTexture.

    Methods

    • Destroys the GPUTexture.

      Returns undefined