Is it possible to use RWTexture2D/RWTexture3D in pixel shader?

As the title already suggests, is it possible (or will it ever be possible) to use these kind buffers in pixel-shader?

The official microsoft page indicates its allowed, but for some reason monogame returns “Wrong parameter” when trying to load this effect (the compiler compiles file without error).

Currently the only way to use RWTextures is with the compute shader fork. This only works for compute shaders right now. Using RWTextures in pixel shaders is not (yet?) supported. You can write to the texture in a compute shader, and then read from it in the pixel shader though.

1 Like

Makes sense, thanks (: