D3DX_FLOAT3_to_B8G8R8X8_UNORM function

Packs the given XMFLOAT3 into a DXGI_FORMAT_B8G8R8X8_UNORM UINT.

Syntax

UINT D3DX_FLOAT3_to_B8G8R8X8_UNORM(
   hlsl_precise XMFLOAT3 unpackedInput
);

Parameters

unpackedInput

The unpacked shader data.

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