ScriptReference/ComputeShader.SetFloats #690
Replies: 1 comment
-
Here is a sample for padding values in float arrays: C#: _floatArray = new float[4 * 4];
_floatArray[0] = 1f;
_floatArray[4] = 0.5f;
_floatArray[8] = 0.75f;
_floatArray[12] = 1f; Compute shader:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ScriptReference/ComputeShader.SetFloats
https://docs.unity3d.com/ScriptReference/ComputeShader.SetFloats.html
Beta Was this translation helpful? Give feedback.
All reactions