D3D11_BUFFER_RTV structure (d3d11.h)

Specifies the elements in a buffer resource to use in a render-target view.

Syntax

typedef struct D3D11_BUFFER_RTV {
  union {
    UINT FirstElement;
    UINT ElementOffset;
  };
  union {
    UINT NumElements;
    UINT ElementWidth;
  };
} D3D11_BUFFER_RTV;

Members

FirstElement

Type: UINT

Number of bytes between the beginning of the buffer and the first element to access.

ElementOffset

Type: UINT

The offset of the first element in the view to access, relative to element 0.

NumElements

Type: UINT

The total number of elements in the view.

ElementWidth

Type: UINT

The width of each element (in bytes). This can be determined from the format stored in the render-target-view description.

Remarks

A render-target view is a member of a render-target-view description (see D3D11_RENDER_TARGET_VIEW_DESC). Create a render-target view by calling ID3D11Device::CreateRenderTargetView.

Requirements

Requirement Value
Header d3d11.h

See also

Resource Structures