D3D12_FEATURE_DATA_FORMAT_INFO structure (d3d12.h)

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

Requirement Value
Header d3d12.h

See also

Core Structures

D3D12_FEATURE