interface WebGLFlags {
    async?: boolean;
    context: WebGLRenderingContext;
    contextId?: "webgl" | "webgl2";
    matmulMaxBatchSize?: number;
    pack?: boolean;
    textureCacheMode?: "full" | "initializerOnly";
}

Properties

async?: boolean

Set or get whether enable async download.

Default Value

false

context: WebGLRenderingContext

Get the WebGL rendering context.

contextId?: "webgl" | "webgl2"

Set or get the WebGL Context ID (webgl or webgl2).

Default Value

'webgl2'

matmulMaxBatchSize?: number

Set or get the maximum batch size for matmul. 0 means to disable batching.

Deprecated

pack?: boolean

Set or get the packed texture mode

Default Value

false

textureCacheMode?: "full" | "initializerOnly"

Set or get the texture cache mode.

Default Value

'full'

Generated using TypeDoc