API

Interface InternalTextureCreationOptions

Define options used to create an internal texture

interface InternalTextureCreationOptions {
    comparisonFunction?: number;
    createMipMaps?: boolean;
    createMSAATexture?: boolean;
    creationFlags?: number;
    format?: number;
    generateMipMaps?: boolean;
    isCube?: boolean;
    label?: string;
    samples?: number;
    samplingMode?: number;
    type?: number;
    useSRGBBuffer?: boolean;
}

Hierarchy (View Summary)

Index
comparisonFunction?: number

Comparison function. Used only for depth textures (default: 0)

createMipMaps?: boolean

Specifies if mipmaps must be created. If undefined, the value from generateMipMaps is taken instead

createMSAATexture?: boolean

If the MSAA texture must be created right away (default: false)

creationFlags?: number

Texture creation flags

format?: number

Defines format (RGBA by default)

generateMipMaps?: boolean

Specifies if mipmaps must be generated

isCube?: boolean

If the created texture is a cube texture

label?: string

Label of the texture (used for debugging only)

samples?: number

Defines sample count (1 by default)

samplingMode?: number

Defines sampling mode (trilinear by default)

type?: number

Defines texture type (unsigned byte by default)

useSRGBBuffer?: boolean

Creates the RTT in sRGB space