A representation of a compute shader with the associated resources, that can be executed on the GPU. Only supported on WebGPU platform.

Constructors

Properties

name: string

The non-unique name of an instance of the class. Defaults to 'Unnamed'.

Methods

  • Prepare the compute work dispatch.

    Parameters

    • x: number

      X dimension of the grid of work-groups to dispatch.

    • Optionaly: number

      Y dimension of the grid of work-groups to dispatch.

    • Optionalz: number

      Z dimension of the grid of work-groups to dispatch.

    Returns void