123456789101112131415161718 |
-
- #pragma kernel VerticesComputer
- RWStructuredBuffer<float3> Result;
- RWStructuredBuffer<float> InputArray;
- [numthreads(389,1,1)]
- void VerticesComputer(uint3 id : SV_DispatchThreadID)
- {
- int index = id.x * 3;
- Result[id.x].x = InputArray[index];
- Result[id.x].y = InputArray[index + 1];
- Result[id.x].z = -InputArray[index + 2];
- }
|