D3D11_BUFFER_RTV Structure

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
Number of bytes between the beginning of the buffer and the first element to access.

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

NumElements
The total number of elements in the view.

ElementWidth
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

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).