Format conversion functions (HLSL reference)
The section contains the format conversion functions used in Compute and Pixel Shaders.
The D3DX_DXGIFormatConvert.inl header ships in the legacy DirectX SDK and relied on XNAMath for C++ support. It is also included in the Microsoft.DXSDK.D3DX NuGet package. The latest version uses DirectXMath for C++ support, and all functions are defined in the DirectX C++ namespace.
Converter Functions
DXGI_FORMAT_R10G10B10A2_UNORM
DXGI_FORMAT_R10G10B10A2_UINT
DXGI_FORMAT_R8G8B8A8_UNORM:
DXGI_FORMAT_R8G8B8A8_UNORM_SRGB
D3DX_R8G8B8A8_UNORM_SRGB_to_FLOAT4_inexact
D3DX_R8G8B8A8_UNORM_SRGB_to_FLOAT4
D3DX_FLOAT4_to_R8G8B8A8_UNORM_SRGB
DXGI_FORMAT_R8G8B8A8_UINT
DXGI_FORMAT_R8G8B8A8_SNORM
DXGI_FORMAT_R8G8B8A8_SINT
DXGI_FORMAT_B8G8R8A8_UNORM
DXGI_FORMAT_B8G8R8A8_UNORM_SRGB
D3DX_B8G8R8A8_UNORM_SRGB_to_FLOAT4_inexact
D3DX_B8G8R8A8_UNORM_SRGB_to_FLOAT4
D3DX_FLOAT4_to_R8G8B8A8_UNORM_SRGB
DXGI_FORMAT_B8G8R8X8_UNORM
DXGI_FORMAT_B8G8R8X8_UNORM_SRGB
D3DX_B8G8R8X8_UNORM_SRGB_to_FLOAT3_inexact
D3DX_B8G8R8X8_UNORM_SRGB_to_FLOAT3
D3DX_FLOAT3_to_B8G8R8X8_UNORM_SRGB
DXGI_FORMAT_R16G16_FLOAT
DXGI_FORMAT_R16G16_UNORM
DXGI_FORMAT_R16G16_UINT
DXGI_FORMAT_R16G16_SNORM
DXGI_FORMAT_R16G16_SINT
Related topics