D3DX_FLOAT4_to_R8G8B8A8_UNORM_SRGB function
Packs the given XMFLOAT4 back into a DXGI_FORMAT_R8G8B8A8_UNORM_SRGB.
Syntax
UINT D3DX_FLOAT4_to_R8G8B8A8_UNORM_SRGB(
hlsl_precise XMFLOAT4 unpackedInput
);
Parameters
-
unpackedInput
-
The shader data to pack.
Return value
The packed shader data.
Requirements
Requirement | Value |
---|---|
Header |
|