ONNX Runtime JavaScript API
    Preparing search index...

    Interface WebGLFlags

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

    Properties

    async?: boolean

    Set or get whether enable async download.

    false

    context: WebGLRenderingContext

    Get the WebGL rendering context.

    contextId?: "webgl" | "webgl2"

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

    'webgl2'

    matmulMaxBatchSize?: number

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

    pack?: boolean

    Set or get the packed texture mode

    false

    textureCacheMode?: "full" | "initializerOnly"

    Set or get the texture cache mode.

    'full'