CathodeRetro::TextureFormat
enum class TextureFormat { RGBA_Unorm8, R_Float32, RG_Float32, RGBA_Float32, }
The format of a given texture or render target.
Index
Values
- RGBA_Unorm8
-
A texture with four channels (red, green, blue, and alpha) where each channel is an 8-bit unorm value (interpreted by the GPU as having the range
[0..1]
).Note that the ordering of the channels does not matter, so if your API/GPU requires a BGRA or ARGB ordering (or some other even-less-common ordering), that's fine - as long as it has four channels and has at least at least 8-bits per texel.
- R_Float32
- A texture with a single (red) channel that is (at least) a 32-bit float.
- RG_Float32
- A texture with two channels (red and green) whereeach channel is (at least) a 32-bit float.
- RGBA_Float32
- A texture with four channels (red, green, blue, and alpha) where each channel is (at least) a 32-bit float.