#Transform native array into compute buffer
1 messages · Page 1 of 1 (latest)
ComputeBuffer.BerginWrite<float3> will give you NativeArray<float3> then you should do something like vertexArray.Reinterpret<float3> and then copy one to another like NativeArray<float3>.Copy(posArray, 0, computeBufferArray, 0, posArray.Length). Finally ComputeBuffer.EndWrite<float3>