Class ComputeProgram
Provides functionality for executing and updating the state of a compute shader program.
public class ComputeProgram : Shader, IDisposable
- Inheritance
-
ComputeProgram
- Implements
- Inherited Members
Properties
- WorkGroups
Gets or sets a value specifying the number of workgroups to be launched when dispatching the compute shader.
Methods
- CreateShader()
Compiles the compute shader and returns the program object handle.
- OnDispatch()
Returns any actions that should be executed before running the shader program.