D3D12_SUBRESOURCE_FOOTPRINT structure (d3d12.h)

Describes the format, width, height, depth, and row-pitch of the subresource into the parent resource.

Syntax

typedef struct D3D12_SUBRESOURCE_FOOTPRINT {
  DXGI_FORMAT Format;
  UINT        Width;
  UINT        Height;
  UINT        Depth;
  UINT        RowPitch;
} D3D12_SUBRESOURCE_FOOTPRINT;

Members

Format

A DXGI_FORMAT-typed value that specifies the viewing format.

Width

The width of the subresource.

Height

The height of the subresource.

Depth

The depth of the subresource.

RowPitch

The row pitch, or width, or physical size, in bytes, of the subresource data. This must be a multiple of D3D12_TEXTURE_DATA_PITCH_ALIGNMENT (256), and must be greater than or equal to the size of the data within a row.

Remarks

Use this structure in the D3D12_PLACED_SUBRESOURCE_FOOTPRINT structure.

The helper structure is CD3DX12_SUBRESOURCE_FOOTPRINT.

Requirements

Requirement Value
Header d3d12.h

See also

CD3DX12_SUBRESOURCE_FOOTPRINT

Core Structures