API

Type Alias FrameGraphTextureOptions

Options used to describe a texture to be created in the frame graph.

type FrameGraphTextureOptions = {
    createMipMaps?: boolean;
    creationFlags?: number[];
    formats?: number[];
    labels?: string[];
    layerCounts?: number[];
    samples?: number;
    targetTypes?: number[];
    types?: number[];
    useSRGBBuffers?: boolean[];
}
Index
createMipMaps?: boolean

Specifies if mipmaps must be created for the textures (default: false)

creationFlags?: number[]

Defines the creation flags of the textures (Constants.TEXTURE_CREATIONFLAG_STORAGE for storage textures, for eg)

formats?: number[]

Defines the format of the textures (RED, RG, RGB, RGBA, ALPHA...)

labels?: string[]

Defines the names of the textures (used for debugging purpose)

layerCounts?: number[]

Define the number of layers of the textures (if applicable, given the corresponding targetType) (for Constants.TEXTURE_3D, .TEXTURE_2D_ARRAY, and .TEXTURE_CUBE_MAP_ARRAY)

samples?: number

Defines sample count (default: 1)

targetTypes?: number[]

Define the type of the textures (of Constants.TEXTURE_2D, .TEXTURE_2D_ARRAY, .TEXTURE_CUBE_MAP, .TEXTURE_CUBE_MAP_ARRAY, .TEXTURE_3D).

types?: number[]

Defines the type of the texture channels (UNSIGNED_BYTE, FLOAT, etc.)

useSRGBBuffers?: boolean[]

Defines if sRGB format should be used for each of texture