Skip to main content
added 323 characters in body
Source Link
Basic
  • 1.2k
  • 9
  • 25

Turns out it was an issue with the way I was setting up the compute buffer.

Specifically, it was ComputeBufferMode.Dynamic that was incorrect.

https://forum.unity.com/threads/clarification-on-computebuffermode-immutable.1150250/

Immutable buffers should be used. It's a doc and naming bug. Immutable buffer is actually the most mutable of them all. Dynamic buffers are meant only for meshes etc, as they're CPU visible. Users shouldn't need to change the buffer mode at all. The default one works on C# side. We're delaying the doc fix for now.

Switching to ComputeBufferMode.Immutable [which isn't actually immutable] solved the problem.

Turns out it was an issue with the way I was setting up the compute buffer.

Specifically, it was ComputeBufferMode.Dynamic that was incorrect.

https://forum.unity.com/threads/clarification-on-computebuffermode-immutable.1150250/

Switching to ComputeBufferMode.Immutable [which isn't actually immutable] solved the problem.

Turns out it was an issue with the way I was setting up the compute buffer.

Specifically, it was ComputeBufferMode.Dynamic that was incorrect.

https://forum.unity.com/threads/clarification-on-computebuffermode-immutable.1150250/

Immutable buffers should be used. It's a doc and naming bug. Immutable buffer is actually the most mutable of them all. Dynamic buffers are meant only for meshes etc, as they're CPU visible. Users shouldn't need to change the buffer mode at all. The default one works on C# side. We're delaying the doc fix for now.

Switching to ComputeBufferMode.Immutable [which isn't actually immutable] solved the problem.

Source Link
Basic
  • 1.2k
  • 9
  • 25

Turns out it was an issue with the way I was setting up the compute buffer.

Specifically, it was ComputeBufferMode.Dynamic that was incorrect.

https://forum.unity.com/threads/clarification-on-computebuffermode-immutable.1150250/

Switching to ComputeBufferMode.Immutable [which isn't actually immutable] solved the problem.