hi! i'm struggling pretty hard here to send a struct to the gpu via a compute shader. what i've tried
- i got the compute shader game of life example working
- i tried following this tutorial https://www.youtube.com/watch?v=bUH4EF9y3O8 to pass the game timer to the gpu. it's outdated so i couldn't follow it though
- i tried comparing to the post processing shader example but that is too different from what i am trying to do since it uses post processing pipeline.
- i tried searching on github for an example of someone using a compute shader and passing data to it through a custom bind group. no luck
it seems this part of the codebase has been changing often and i'm really in need of a single example that sends custom data via a bind group to the gpu. the post-processing example has a settings struct which is my goal but i'm not able to follow that for a main pipleline example. i think my best path here is to follow this as closeley as i can and rewrite it for the main pipeline instead of post processing, but i just don't know what i'm doing.
if anyone has an example to point me to where someone is using a wgsl compute shader and sending a custom settings bind group too it that anyone knows about please let me know. this is too complicated without documentation for me to figure out. i'm not sure why i'm having so much trouble finding anyone on github doing this, it seems like it should be a very common need. appreciated