5,321
edits
(Created page with "__FORCETOC__ == Shaders == Unity Shaders are written in HLSL. Unity supports the standard vertex, geometry, fragments shader pipeline. They also have their own variation o...") |
No edit summary |
||
Line 15: | Line 15: | ||
To copy data to and from the GPU, use a <source enclose="none">ComputeBuffer</source>. | To copy data to and from the GPU, use a <source enclose="none">ComputeBuffer</source>. | ||
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. | ||
<-- | <!-- | ||
Example: | Example: | ||
<syntaxhighlight lang="C#"> | <syntaxhighlight lang="C#"> |