![]() |
XII Release 0.1.0
|
Describes the format of pixel data used for textures and attachments in the rendering pipeline. More...
#include <Declarations.h>
Public Types | |
| enum | Enum : StorageType { Color4Channel8BitNormalized_sRGB = 0U , Color4Channel8BitNormalized , Color2Channel16BitFloat , Color4Channel16BitFloat , Color2Channel32BitFloat , Color3Channel32BitFloat , Color4Channel32BitFloat , Color3Channel11_11_10BitFloat , Depth16Bit , Depth24BitStencil8Bit , Depth32BitFloat , BC1_RGB_DXT1 , BC2_RGBA_DXT3 , BC3_RGBA_DXT5 , BC4_R_Grey_DXT5A , BC5_RG_Grey_DXT5A , BC6H_RGB_Float , BC7_RGBA , ENUM_COUNT , Default = Color4Channel8BitNormalized_sRGB } |
| using | StorageType = xiiUInt8 |
Static Public Member Functions | |
| static xiiGALResourceFormat::Enum | GetGALResourceFormat (xiiSourceFormat::Enum format, bool bFlipColorChannels=false) |
| Converts a xiiSourceFormat into its corresponding xiiGALResourceFormat for low-level use. | |
Describes the format of pixel data used for textures and attachments in the rendering pipeline.
The source format determines how color, depth, or compressed texture data is stored and interpreted during rendering. It includes both uncompressed and block-compressed formats, floating-point precision options, and sRGB or linear variants.
These formats are typically used when specifying render target formats, texture asset loading, or framebuffer attachment configurations.
| enum xiiSourceFormat::Enum : StorageType |
|
static |
Converts a xiiSourceFormat into its corresponding xiiGALResourceFormat for low-level use.
| format | - The source format to translate. |
| bFlipColorChannels | - Whether to flip color channel order during conversion (optional). |