Syntax
Members
FormatType: DXGI_FORMAT A DXGI_FORMAT-typed value that specifies the viewing format. ViewDimension
Type: D3D12_RTV_DIMENSION A D3D12_RTV_DIMENSION-typed value that specifies how the render-target resource will be accessed. This type specifies how the resource will be accessed. This member also determines which _RTV to use in the following union. Buffer
Type: D3D12_BUFFER_RTV A D3D12_BUFFER_RTV structure that specifies which buffer elements can be accessed. Texture1D
Type: D3D12_TEX1D_RTV A D3D12_TEX1D_RTV structure that specifies the subresources in a 1D texture that can be accessed. Texture1DArray
Type: D3D12_TEX1D_ARRAY_RTV A D3D12_TEX1D_ARRAY_RTV structure that specifies the subresources in a 1D texture array that can be accessed. Texture2D
Type: D3D12_TEX2D_RTV A D3D12_TEX2D_RTV structure that specifies the subresources in a 2D texture that can be accessed. Texture2DArray
Type: D3D12_TEX2D_ARRAY_RTV A D3D12_TEX2D_ARRAY_RTV structure that specifies the subresources in a 2D texture array that can be accessed. Texture2DMS
Type: D3D12_TEX2DMS_RTV A D3D12_TEX2DMS_RTV structure that specifies a single subresource because a multisampled 2D texture only contains one subresource. Texture2DMSArray
Type: D3D12_TEX2DMS_ARRAY_RTV A D3D12_TEX2DMS_ARRAY_RTV structure that specifies the subresources in a multisampled 2D texture array that can be accessed. Texture3D
Type: D3D12_TEX3D_RTV A D3D12_TEX3D_RTV structure that specifies subresources in a 3D texture that can be accessed.
Remarks
Pass a render-target-view description into ID3D12Device::CreateRenderTargetView to create a render-target view. A render-target view can’t use the following formats:- Any typeless format.
- DXGI_FORMAT_R32G32B32 if the view will be used to bind a buffer (vertex, index, constant, or stream-output).
Requirements
Header: d3d12_xs.h or d3d12_x.hLibrary: d3d12_xs.lib or d3d12_x.lib
Supported Platforms: XBOX Series consoles and XBOX One family
