API

Interface ComputeImmediateShaderOptions

Compute-shader options with a fully initialized WebGPU immediate-data range.

interface ComputeImmediateShaderOptions {
    automaticLayout?: boolean;
    bindings?: readonly ComputeBindingDecl[];
    computeSource: string;
    entryPoint?: string;
    immediateByteLength: number;
    name?: string;
}

Hierarchy (View Summary)

Index
automaticLayout?: boolean

Use WebGPU's shader-derived bind-group layouts instead of explicit declarations.

bindings?: readonly ComputeBindingDecl[]
computeSource: string
entryPoint?: string
immediateByteLength: number

Immediate range in bytes. Must be a positive multiple of four within the device's maxImmediateSize.

name?: string