LiteFX::Rendering::Format¶
Describes a texel format.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
enum class Format : int;Description¶
Note that not all formats are supported in both backends. Notably the DirectX 12 backend doesn't support the full set of formats.
Members¶
| Name | Description |
|---|---|
None | |
R4G4_UNORM | |
R4G4B4A4_UNORM | |
B4G4R4A4_UNORM | Unsupported by the DirectX 12 backend. |
R5G6B5_UNORM | Unsupported by the DirectX 12 backend. |
B5G6R5_UNORM | Unsupported by the DirectX 12 backend. |
R5G5B5A1_UNORM | Unsupported by the DirectX 12 backend. |
B5G5R5A1_UNORM | Unsupported by the DirectX 12 backend. |
A1R5G5B5_UNORM | Unsupported by the DirectX 12 backend. |
A1B5G5R5_UNORM | Unsupported by the DirectX 12 backend. |
A4R4G4B4_UNORM | Support is optional in Vulkan and must be explicitly enabled through the VkPhysicalDevice4444FormatsFeaturesEXT device extension. |
A4B4G4R4_UNORM | Unsupported by the DirectX 12 backend. Support is optional in Vulkan and must be explicitly enabled through the VkPhysicalDevice4444FormatsFeaturesEXT device extension. |
A8_UNORM | Unsupported by the DirectX 12 backend. Support is optional in Vulkan and must be explicitly enabled through the VkPhysicalDevice4444FormatsFeaturesEXT device extension. |
R8_UNORM | Unsupported by the DirectX 12 backend. Support is optional in Vulkan and must be explicitly enabled through the VkPhysicalDevice4444FormatsFeaturesEXT device extension. |
R8_SNORM | Unsupported by the DirectX 12 backend. Support is optional in Vulkan and must be explicitly enabled through the VkPhysicalDevice4444FormatsFeaturesEXT device extension. |
R8_USCALED | Unsupported by the DirectX 12 backend. |
R8_SSCALED | Unsupported by the DirectX 12 backend. |
R8_UINT | Unsupported by the DirectX 12 backend. |
R8_SINT | Unsupported by the DirectX 12 backend. |
R8_SRGB | Unsupported by the DirectX 12 backend. |
R8G8_UNORM | Unsupported by the DirectX 12 backend. |
R8G8_SNORM | Unsupported by the DirectX 12 backend. |
R8G8_USCALED | Unsupported by the DirectX 12 backend. |
R8G8_SSCALED | Unsupported by the DirectX 12 backend. |
R8G8_UINT | Unsupported by the DirectX 12 backend. |
R8G8_SINT | Unsupported by the DirectX 12 backend. |
R8G8_SRGB | Unsupported by the DirectX 12 backend. |
R8G8B8_UNORM | Unsupported by the DirectX 12 backend. |
R8G8B8_SNORM | Unsupported by the DirectX 12 backend. |
R8G8B8_USCALED | Unsupported by the DirectX 12 backend. |
R8G8B8_SSCALED | Unsupported by the DirectX 12 backend. |
R8G8B8_UINT | Unsupported by the DirectX 12 backend. |
R8G8B8_SINT | Unsupported by the DirectX 12 backend. |
R8G8B8_SRGB | Unsupported by the DirectX 12 backend. |
B8G8R8_UNORM | Unsupported by the DirectX 12 backend. |
B8G8R8_SNORM | Unsupported by the DirectX 12 backend. |
B8G8R8_USCALED | Unsupported by the DirectX 12 backend. |
B8G8R8_SSCALED | Unsupported by the DirectX 12 backend. |
B8G8R8_UINT | Unsupported by the DirectX 12 backend. |
B8G8R8_SINT | Unsupported by the DirectX 12 backend. |
B8G8R8_SRGB | Unsupported by the DirectX 12 backend. |
R8G8B8A8_UNORM | Unsupported by the DirectX 12 backend. |
R8G8B8A8_SNORM | Unsupported by the DirectX 12 backend. |
R8G8B8A8_USCALED | Unsupported by the DirectX 12 backend. |
R8G8B8A8_SSCALED | Unsupported by the DirectX 12 backend. |
R8G8B8A8_UINT | Unsupported by the DirectX 12 backend. |
R8G8B8A8_SINT | Unsupported by the DirectX 12 backend. |
R8G8B8A8_SRGB | Unsupported by the DirectX 12 backend. |
B8G8R8A8_UNORM | Unsupported by the DirectX 12 backend. |
B8G8R8A8_SNORM | Unsupported by the DirectX 12 backend. |
B8G8R8A8_USCALED | Unsupported by the DirectX 12 backend. |
B8G8R8A8_SSCALED | Unsupported by the DirectX 12 backend. |
B8G8R8A8_UINT | Unsupported by the DirectX 12 backend. |
B8G8R8A8_SINT | Unsupported by the DirectX 12 backend. |
B8G8R8A8_SRGB | Unsupported by the DirectX 12 backend. |
A8B8G8R8_UNORM | Unsupported by the DirectX 12 backend. |
A8B8G8R8_SNORM | Unsupported by the DirectX 12 backend. |
A8B8G8R8_USCALED | Unsupported by the DirectX 12 backend. |
A8B8G8R8_SSCALED | Unsupported by the DirectX 12 backend. |
A8B8G8R8_UINT | Unsupported by the DirectX 12 backend. |
A8B8G8R8_SINT | Unsupported by the DirectX 12 backend. |
A8B8G8R8_SRGB | Unsupported by the DirectX 12 backend. |
A2R10G10B10_UNORM | Unsupported by the DirectX 12 backend. |
A2R10G10B10_SNORM | Unsupported by the DirectX 12 backend. |
A2R10G10B10_USCALED | Unsupported by the DirectX 12 backend. |
A2R10G10B10_SSCALED | Unsupported by the DirectX 12 backend. |
A2R10G10B10_UINT | Unsupported by the DirectX 12 backend. |
A2R10G10B10_SINT | Unsupported by the DirectX 12 backend. |
A2B10G10R10_UNORM | Unsupported by the DirectX 12 backend. |
A2B10G10R10_SNORM | Unsupported by the DirectX 12 backend. |
A2B10G10R10_USCALED | Unsupported by the DirectX 12 backend. |
A2B10G10R10_SSCALED | Unsupported by the DirectX 12 backend. |
A2B10G10R10_UINT | Unsupported by the DirectX 12 backend. |
A2B10G10R10_SINT | Unsupported by the DirectX 12 backend. |
R16_UNORM | Unsupported by the DirectX 12 backend. |
R16_SNORM | Unsupported by the DirectX 12 backend. |
R16_USCALED | Unsupported by the DirectX 12 backend. |
R16_SSCALED | Unsupported by the DirectX 12 backend. |
R16_UINT | Unsupported by the DirectX 12 backend. |
R16_SINT | Unsupported by the DirectX 12 backend. |
R16_SFLOAT | Unsupported by the DirectX 12 backend. |
R16G16_UNORM | Unsupported by the DirectX 12 backend. |
R16G16_SNORM | Unsupported by the DirectX 12 backend. |
R16G16_USCALED | Unsupported by the DirectX 12 backend. |
R16G16_SSCALED | Unsupported by the DirectX 12 backend. |
R16G16_UINT | Unsupported by the DirectX 12 backend. |
R16G16_SINT | Unsupported by the DirectX 12 backend. |
R16G16_SFLOAT | Unsupported by the DirectX 12 backend. |
R16G16B16_UNORM | Unsupported by the DirectX 12 backend. |
R16G16B16_SNORM | Unsupported by the DirectX 12 backend. |
R16G16B16_USCALED | briefUnsupported by the DirectX 12 backend. |
R16G16B16_SSCALED | Unsupported by the DirectX 12 backend. |
R16G16B16_UINT | Unsupported by the DirectX 12 backend. |
R16G16B16_SINT | Unsupported by the DirectX 12 backend. |
R16G16B16_SFLOAT | Unsupported by the DirectX 12 backend. |
R16G16B16A16_UNORM | Unsupported by the DirectX 12 backend. |
R16G16B16A16_SNORM | Unsupported by the DirectX 12 backend. |
R16G16B16A16_USCALED | Unsupported by the DirectX 12 backend. |
R16G16B16A16_SSCALED | Unsupported by the DirectX 12 backend. |
R16G16B16A16_UINT | Unsupported by the DirectX 12 backend. |
R16G16B16A16_SINT | Unsupported by the DirectX 12 backend. |
R16G16B16A16_SFLOAT | Unsupported by the DirectX 12 backend. |
R32_UINT | Unsupported by the DirectX 12 backend. |
R32_SINT | Unsupported by the DirectX 12 backend. |
R32_SFLOAT | Unsupported by the DirectX 12 backend. |
R32G32_UINT | Unsupported by the DirectX 12 backend. |
R32G32_SINT | Unsupported by the DirectX 12 backend. |
R32G32_SFLOAT | Unsupported by the DirectX 12 backend. |
R32G32B32_UINT | Unsupported by the DirectX 12 backend. |
R32G32B32_SINT | Unsupported by the DirectX 12 backend. |
R32G32B32_SFLOAT | Unsupported by the DirectX 12 backend. |
R32G32B32A32_UINT | Unsupported by the DirectX 12 backend. |
R32G32B32A32_SINT | Unsupported by the DirectX 12 backend. |
R32G32B32A32_SFLOAT | Unsupported by the DirectX 12 backend. |
R64_UINT | Unsupported by the DirectX 12 backend. |
R64_SINT | Unsupported by the DirectX 12 backend. |
R64_SFLOAT | Unsupported by the DirectX 12 backend. |
R64G64_UINT | Unsupported by the DirectX 12 backend. |
R64G64_SINT | Unsupported by the DirectX 12 backend. |
R64G64_SFLOAT | Unsupported by the DirectX 12 backend. |
R64G64B64_UINT | Unsupported by the DirectX 12 backend. |
R64G64B64_SINT | Unsupported by the DirectX 12 backend. |
R64G64B64_SFLOAT | Unsupported by the DirectX 12 backend. |
R64G64B64A64_UINT | Unsupported by the DirectX 12 backend. |
R64G64B64A64_SINT | Unsupported by the DirectX 12 backend. |
R64G64B64A64_SFLOAT | Unsupported by the DirectX 12 backend. |
B10G11R11_UFLOAT | Unsupported by the DirectX 12 backend. |
E5B9G9R9_UFLOAT | Unsupported by the DirectX 12 backend. |
D16_UNORM | Unsupported by the DirectX 12 backend. |
X8_D24_UNORM | Unsupported by the DirectX 12 backend. |
D32_SFLOAT | Unsupported by the DirectX 12 backend. |
S8_UINT | Unsupported by the DirectX 12 backend. |
D16_UNORM_S8_UINT | Unsupported by the DirectX 12 backend. |
D24_UNORM_S8_UINT | Unsupported by the DirectX 12 backend. |
D32_SFLOAT_S8_UINT | Unsupported by the DirectX 12 backend. |
BC1_RGB_UNORM | Unsupported by the DirectX 12 backend. |
BC1_RGB_SRGB | Unsupported by the DirectX 12 backend. |
BC1_RGBA_UNORM | Unsupported by the DirectX 12 backend. |
BC1_RGBA_SRGB | Unsupported by the DirectX 12 backend. |
BC2_UNORM | Unsupported by the DirectX 12 backend. |
BC2_SRGB | Unsupported by the DirectX 12 backend. |
BC3_UNORM | Unsupported by the DirectX 12 backend. |
BC3_SRGB | Unsupported by the DirectX 12 backend. |
BC4_UNORM | Unsupported by the DirectX 12 backend. |
BC4_SNORM | Unsupported by the DirectX 12 backend. |
BC5_UNORM | Unsupported by the DirectX 12 backend. |
BC5_SNORM | Unsupported by the DirectX 12 backend. |
BC6H_UFLOAT | Unsupported by the DirectX 12 backend. |
BC6H_SFLOAT | Unsupported by the DirectX 12 backend. |
BC7_UNORM | Unsupported by the DirectX 12 backend. |
BC7_SRGB | Unsupported by the DirectX 12 backend. |
Other | Unsupported by the DirectX 12 backend. |
Non-Member Functions¶
| Name | Description |
|---|---|
getSize | Returns the size of an element of a specified format. |
hasDepth | Returns true, if the format contains a depth channel. |
hasStencil | Returns true, if the format contains a stencil channel. |