Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

ComputeShader.Dispatch

public function Dispatch(kernelIndex: int, threadsX: int, threadsY: int, threadsZ: int): 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.