API

Interface DepthTextureCreationOptions

Define options used to create a depth texture

interface DepthTextureCreationOptions {
    bilinearFiltering?: boolean;
    comparisonFunction?: number;
    depthTextureFormat?: number;
    generateStencil?: boolean;
    isCube?: boolean;
    label?: string;
    samples?: number;
}
Index
bilinearFiltering?: boolean

Specifies whether or not bilinear filtering is enable on the texture

comparisonFunction?: number

Specifies the comparison function to set on the texture. If 0 or undefined, the texture is not in comparison mode

depthTextureFormat?: number

Specifies the depth texture format to use

generateStencil?: boolean

Specifies whether or not a stencil should be allocated in the texture. Not used if depthTextureFormat is supplied, in which case stencil creation will depend on this value.

isCube?: boolean

Specifies if the created texture is a cube texture

label?: string

Label of the texture (used for debugging only)

samples?: number

Specifies the sample count of the depth/stencil texture texture