Is it possible to do partial shader storage buffer rewrites? #22791
Unanswered
FeatheredOrbit
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I've used a material2d to instance entities into a single draw call, and I store the data I send over to the gpu in a Hashmap. I made my own frustum culling to avoid some issues with instancing and so that I only need to update some entries in the Hashmap. But the thing is that, for what I understand, when you try to update the shader storage buffer of the material, it seems to expose only set_data() which fully rewrites the buffer, this kinda defeats the point of everything I did since I still have to build a vector from the hashmap and give it that, while I could directly update the stale data. So I wanted to know if there's any other way to do it while still using materials?
Beta Was this translation helpful? Give feedback.
All reactions