Hello,
until now i am using structured buffers in my vertexShader to calculate the morph offsets of my animated characters. And it works fine.
But until now i only read from this kind of buffers. ( i use 4 of them )
Now i had in mind to do other things, where i have to use a readwrite buffer that i can write to.
But i cant get in my head how to sync write acceses.
when i read a value from the buffer at a adress that coresponds to e.g. a pixel coordinate and want to add a value another thread could have read the same value overrides the value that i had written.
How is this done typically ?
↧