5,321
edits
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
=== Compute Shaders === | === Compute Shaders === | ||
To use a compute shader, add a < | To use a compute shader, add a <code>ComputeShader</code> reference to your C# script. | ||
To copy data to and from the GPU, use a < | To copy data to and from the GPU, use a <code>ComputeBuffer</code>. | ||
You can copy standard floats arrays as well as Unity Vector2, Vector3, and Vector4 structs. | You can copy standard floats arrays as well as Unity Vector2, Vector3, and Vector4 structs. | ||
<!-- | <!-- |