D3D12_FEATURE_DATA_FORMAT_INFO structure

Describes a DXGI data format and plane count.

Syntax

typedef struct D3D12_FEATURE_DATA_FORMAT_INFO {
  DXGI_FORMAT Format;
  UINT8       PlaneCount;
} D3D12_FEATURE_DATA_FORMAT_INFO;

Members

Format

A DXGI_FORMAT-typed value for the format to return info about.

PlaneCount

The number of planes to provide information about.

Remarks

See D3D12_FEATURE.

Examples

inline UINT8 D3D12GetFormatPlaneCount(
    _In_ ID3D12Device* pDevice,
    DXGI_FORMAT Format
    )
{
    D3D12_FEATURE_DATA_FORMAT_INFO formatInfo{ Format };
    if (FAILED(pDevice->CheckFeatureSupport(D3D12_FEATURE_FORMAT_INFO, &formatInfo, sizeof(formatInfo))))
    {
        return 0;
    }
    return formatInfo.PlaneCount;
}

Requirements

   
Header d3d12.h

See Also

Core Structures

D3D12_FEATURE