Defines ComputePass options.

interface ComputePassOptions {
    label: string;
    renderOrder?: number;
    autoRender?: boolean;
    shaders: MaterialShaders;
    useAsyncPipeline?: boolean;
    texturesOptions?: SceneObjectTextureOptions;
    dispatchSize?: number | number[];
}

Properties

label: string

The label of the ComputePass.

renderOrder?: number

Controls the order in which this ComputePass should be rendered by our Scene.

autoRender?: boolean

Whether the ComputePass should be added to our Scene to let it handle the rendering process automatically.

Compute shader passed to the ComputePass following the shader object notation.

useAsyncPipeline?: boolean

whether the compute pipeline should be compiled asynchronously.

texturesOptions?: SceneObjectTextureOptions

Parameters used by this ComputePass to create a MediaTexture.

dispatchSize?: number | number[]

Default ComputeMaterial work group dispatch size to use with this ComputePass.