D3DX_FLOAT4_to_B8G8R8A8_UNORM function

Packs the given XMFLOAT4 back into a DXGI_FORMAT_B8G8R8A8_UNORM.

Syntax

UINT D3DX_FLOAT4_to_B8G8R8A8_UNORM(
   hlsl_precise XMFLOAT4 unpackedInput
);

Parameters

unpackedInput

The shader data to pack.

Return value

The packed shader data.

Requirements

Requirement Value
Header
D3DX_DXGIFormatConvert.inl

See also

Functions

Unpacking and Packing DXGI_FORMAT for In-Place Image Editing