ComputeShaderAttribute
Description
- Derived from
-
Shader abstract
The annotated method is the top-level entry point for a Compute Shader (CS), for example:
[ComputeShader(3, 2, 1)]
public static void CS_ComputeShader(
[System(Value.DispatchId)] int3 groupId,
[System(Value.ThreadId)] int3 threadId)
{
...
}
A Compute Shader may have zero or more parameters, where each one must have one of the following system value semantics:
The return type of a Compute Shader method must be CxTypeSimple.Void.
Public / Attributes
Usages
Example.CS method
Mipmap.CS_Linear method
Mipmap.CS_Srgb method
Triangulate.CS_SectorList method
Triangulate.CS_TriangleTerminal method