Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ComputeShader.Dispatch

Dispatch(kernelIndex: int, threadsX: int, threadsY: int, threadsZ: int): void;
void Dispatch(int kernelIndex, int threadsX, int threadsY, int threadsZ);
def Dispatch(kernelIndex as int, threadsX as int, threadsY as int, threadsZ as int) as void

Description

Execute a compute shader.

This functions "runs" the compute shader, with the given work size as indicated by threadsX, threadsY, threadsZ parameters. See Also: FindKernel, Compute Shaders.