D3D12_RTV_DIMENSION enumeration (d3d12.h)

Identifies the type of resource to view as a render target.

Syntax

typedef enum D3D12_RTV_DIMENSION {
  D3D12_RTV_DIMENSION_UNKNOWN = 0,
  D3D12_RTV_DIMENSION_BUFFER = 1,
  D3D12_RTV_DIMENSION_TEXTURE1D = 2,
  D3D12_RTV_DIMENSION_TEXTURE1DARRAY = 3,
  D3D12_RTV_DIMENSION_TEXTURE2D = 4,
  D3D12_RTV_DIMENSION_TEXTURE2DARRAY = 5,
  D3D12_RTV_DIMENSION_TEXTURE2DMS = 6,
  D3D12_RTV_DIMENSION_TEXTURE2DMSARRAY = 7,
  D3D12_RTV_DIMENSION_TEXTURE3D = 8
} ;

Constants

 
D3D12_RTV_DIMENSION_UNKNOWN
Value: 0
Do not use this value, as it will cause ID3D12Device::CreateRenderTargetView to fail.
D3D12_RTV_DIMENSION_BUFFER
Value: 1
The resource will be accessed as a buffer.
D3D12_RTV_DIMENSION_TEXTURE1D
Value: 2
The resource will be accessed as a 1D texture.
D3D12_RTV_DIMENSION_TEXTURE1DARRAY
Value: 3
The resource will be accessed as an array of 1D textures.
D3D12_RTV_DIMENSION_TEXTURE2D
Value: 4
The resource will be accessed as a 2D texture.
D3D12_RTV_DIMENSION_TEXTURE2DARRAY
Value: 5
The resource will be accessed as an array of 2D textures.
D3D12_RTV_DIMENSION_TEXTURE2DMS
Value: 6
The resource will be accessed as a 2D texture with multisampling.
D3D12_RTV_DIMENSION_TEXTURE2DMSARRAY
Value: 7
The resource will be accessed as an array of 2D textures with multisampling.
D3D12_RTV_DIMENSION_TEXTURE3D
Value: 8
The resource will be accessed as a 3D texture.

Remarks

Specify one of the values in this enumeration in the ViewDimension member of a D3D12_RENDER_TARGET_VIEW_DESC structure.

Requirements

Requirement Value
Header d3d12.h

See also

Core Enumerations