Greeting,
For an algorithm I need to manipulate some buffer similar to stencil buffer. But I want to read/write to it in pixel shader, but it shouldn't be a render target. Ideally this buffer should have uint format (just a single uint value). Is it possible? Most of all I confused about data race - it can happen that several threads want to write at the same time or read while other threads writing.