⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

Compute.SetFloat

void SetFloat(string name, float value)

Set a shader parameter by name! The name must match a variable in the HLSL compute shader exactly, and if no match is found, nothing happens. Same as Material!




Found an issue with these docs, or have some additional questions? Create an Issue on Github!