Instancing Compute Shader Issues

Hi Guys,
i’m trying to resurrect some workshop material from Node20, “Stride Deep Dive”
In particular the Image instancer example. It looks fine to me, no red nodes and the shader compiles, but i don’t get it working on recent gamma builds.

Any help would be great.

Thanks
Deep Dive.zip (25.9 KB)

The only problem is that you have used buffers that aren’t writable on the GPU. Dynamic buffers are only for uploading fast-changing data from the CPU to GPU. The correct buffer is ComputeBuffer, see the Buffer and Texture overview help patch:

The Buffers patch should then look like:

DeepDiveCompute.zip (52.2 KB)

1 Like

Little update, would it be right like that?

yes, absolutely, forgot about that. you can also set it to 0 or -1, then it gets discovered from the element size of the initial data.

1 Like

Updated version.
Deep Dive.zip (19.0 KB)

3 Likes

2 flavours


3 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.