Hi,
I’d like to design a shader that uses a single channel of a Texture of unknown precision. There is R16, RFloat and RHalf but for 8 bit there is only alpha8, not R8. Why is that? This is extremely inconvenient, since now I have to add a multi_compile keyword just to know whether to sample the r or the a channel.
Is there a better method to just sample the one channel that actually contains data, whether its r or a?
Edit: I guess I could just sample ra and in a second step add them both up. Haven’t thought about that.
Thanks