D3D11XGetD3d11xSwizzleFromDxgiFormat

Gets the D3D11X swizzle from a DXGI format.

Syntax

void D3D11XGetD3d11xSwizzleFromDxgiFormat(
         D3D11X_SWIZZLE Swizzle[4],
         DXGI_FORMAT DxgiFormat
)  

Parameters

Swizzle
Type: D3D11X_SWIZZLE 

The swizzle, as an array of 4 D3D11X_SWIZZLE enumeration constants.

DxgiFormat
Type: DXGI_FORMAT 

A DXGI format, as a DXGI_FORMAT enumeration constant.

Return value

None.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.