- Home /
RenderTextureFormat.R8
Hey.
Is there something special about this format?
I get very weird values if I try to read from it's first 20% in horizontal direction. Everything else works just as expected and I only encounter this while using the R8 format.
For example:
Create a random read/write RenderTexture with any dimensions and set it's format as R8
Render it half-gray(or red if like to think in that way) pixel by pixel in a compute shader
Read pixel x=width, y=any and you get what you set it to
Read pixel x=0, y=any and you get undefined behavior
Your answer
Follow this Question
Related Questions
Black Screen in Android when calling compute shader dispatch in Update 0 Answers
How do int textures work in ComputeShaders? 2 Answers
RenderTexture for computer shader is being null on material 0 Answers
RenderTexture transparency working in editor becomes solid color in build 1 Answer
Do uninitialized RenderTexture areas lead to wrong texturing (tiled RenderTexture problem)? 1 Answer