Compute.Compute
void Compute(Shader computeShader)
Create a Compute dispatch from a shader that has a compute stage! If the shader doesn’t have a compute stage, this will fail.
| Shader computeShader | A shader containing a compute stage. |
void Compute(string shaderFilename)
Create a Compute dispatch from a shader file! The file should be a compiled .sks shader with a compute stage.
| string shaderFilename | The filename of a compiled shader asset containing a compute stage. |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!