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 |
|
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for