Define the specific additional options to use with a ComputeShaderPass.

interface ComputeShaderPassSpecificOptions {
    storageTextureParams: ComputeStorageTextureParams;
    textureDispatchSize: number | number[];
    shaderPassSampler: Sampler;
}

Hierarchy (View Summary)

Properties

storageTextureParams: ComputeStorageTextureParams

Options used to create the storage texture used in the compute shader.

textureDispatchSize: number | number[]

Workgroup size of the compute shader to use. Divided internally by the storage texture [width, height]. Default to [16, 16].

shaderPassSampler: Sampler

Optional Sampler to use in the ShaderPass to sample the result.