- Home /
Question by
Mac51 · Dec 02, 2020 at 12:33 AM ·
compute shaderstructbuffer
Copying references via Compute Buffers to shaders
I have an array of struct's like so: struct Node { Node a, b, ... ... } Node[] nodes = ... When I send this via a buffer to a shader, buffer.SetData(nodes);, can I get the child nodes node.a, node.b etc. In the compute shader? How do the pointers convert? If not, what options do I have to fix this?,
Comment
Your answer
Follow this Question
Related Questions
How to save ComputeBuffer? 0 Answers
Process multiple buffers with compute shader 1 Answer
Shader structured buffers inquiry 1 Answer