D3DX_B8G8R8X8_UNORM_SRGB_to_FLOAT3_inexact function
Unpacks DXGI_FORMAT_B8G8R8X8_UNORM_SRGB shader data to an XMFLOAT3.
Syntax
XMFLOAT3 D3DX_B8G8R8X8_UNORM_SRGB_to_FLOAT3_inexact(
UINT packedInput
);
Parameters
-
packedInput
-
The packed shader data.
Return value
The unpacked shader data.
Remarks
This function uses shader instructions that don't have high enough precision to give the exact answer. The alternative function D3DX_B8G8R8X8_UNORM_SRGB_to_FLOAT3 uses a lookup table stored in the shader to give an exact SRGB to float conversion.
Requirements
Requirement | Value |
---|---|
Header |
|