D3D11_BUFFER_RTV Structure
Namespace: d3d11
Defines the properties of a buffer resource that can be used as a render-target view.
Syntax
struct D3D11_BUFFER_RTV {
D3D11_BUFFER_RTV_DIMENSION BufferType;
union {
UINT ElementOffset;
UINT FirstElement;
};
union {
UINT ElementWidth;
UINT NumElements;
};
};
Members
The D3D11_BUFFER_RTV structure has the following members:
BufferType
Type: D3D11_BUFFER_RTV_DIMENSION
A D3D11_BUFFER_RTV_DIMENSION-typed value that specifies how to access the buffer.
ElementOffset
Type: UINT
The starting offset (in bytes) of the buffer. The offset must be a multiple of the element size.
FirstElement
Type: UINT
The starting element (for 1D buffers).
ElementWidth
Type: UINT
The width of the buffer (for 1D buffers).
NumElements
Type: UINT
The number of elements in the buffer (for 1D buffers).
Remarks
The D3D11_BUFFER_RTV structure is used by the CreateRenderTargetView function to create a render-target view of a buffer.
The union members ElementOffset and FirstElement, and ElementWidth and NumElements, are used depending on the value of BufferType.
- If
BufferTypeis D3D11_BUFFER_RTV_DIMENSION_UNKNOWN, useElementOffsetandElementWidth. - If
BufferTypeis D3D11_BUFFER_RTV_DIMENSION_BUFFER, useFirstElementandNumElements.
Related Structures
D3D11_BUFFER_RTV_DIMENSION Enumeration
ID3D11Device::CreateRenderTargetView Function