> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# D3D12_BUFFER_RTV

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

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

## Syntax

```cpp theme={null}
typedef struct D3D12_BUFFER_RTV
{
    UINT64 FirstElement;
    UINT NumElements;
} D3D12_BUFFER_RTV
```

### Members

*FirstElement*\
Type: UINT64

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

*NumElements*\
Type: UINT

The total number of elements in the view.

## Remarks

Use this structure with a [D3D12\_RENDER\_TARGET\_VIEW\_DESC](/reference/graphics/d3d12/structs/d3d12_render_target_view_desc_public) structure to view the resource as a buffer.

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h\
**Library:** d3d12\_xs.lib or d3d12\_x.lib\
**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

[Core Structures](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)


## Related topics

- [D3D12_RENDER_TARGET_VIEW_DESC](/reference/graphics/d3d12/structs/d3d12_render_target_view_desc_public.md)
- [D3D12_RTV_DIMENSION](/reference/graphics/d3d12/enums/d3d12_rtv_dimension_public.md)
- [D3D12_TEX2D_RTV](/reference/graphics/d3d12/structs/d3d12_tex2d_rtv_public.md)
- [D3D12_TEX2DMS_RTV](/reference/graphics/d3d12/structs/d3d12_tex2dms_rtv_public.md)
- [D3D12_TEX1D_RTV](/reference/graphics/d3d12/structs/d3d12_tex1d_rtv_public.md)
