D3DX_B8G8R8A8_UNORM_SRGB_to_FLOAT4_inexact function

Unpacks DXGI_FORMAT_B8G8R8A8_UNORM_SRGB shader data to an XMFLOAT4.

Syntax

XMFLOAT4 D3DX_B8G8R8A8_UNORM_SRGB_to_FLOAT4_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_B8G8R8A8_UNORM_SRGB_to_FLOAT4 uses a lookup table stored in the shader to give an exact SRGB to float conversion.

Requirements

Requirement Value
Header
D3DX_DXGIFormatConvert.inl

See also

Functions

Unpacking and Packing DXGI_FORMAT for In-Place Image Editing