32-bit channel texture

Hi,

Is there a way to create a texture with a single channel of 32 bits that can be computed in a shader? I know it’s possible with a 16-bit alpha channel, but what about 32?

Thanks,

omegatai

pixel internal format: R32F
pixel type: FLOAT
pixel format: RED

What do you mean by “can be computed in a shader?”

Normalized formats are caped to 16-bits per channel. But integral formats can go all the way to 32-bits per channel. So if you’re willing to use an integral format, then you can use GL_R32 (assuming GL 3.0, of course).

That’d be GL_R32I, or GL_R32UI for 32 bit integer. GL_R32F for float.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.