> ## 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_VERTEX_BUFFER_VIEW

> 描述頂點緩衝區檢視。

描述頂點緩衝區檢視。

## 語法

```cpp theme={null}
typedef struct D3D12_VERTEX_BUFFER_VIEW
{
    D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
    UINT SizeInBytes;
    UINT StrideInBytes;
} D3D12_VERTEX_BUFFER_VIEW
```

### 成員

*BufferLocation*\
類型：D3D12\_GPU\_VIRTUAL\_ADDRESS

指定識別緩衝區位址的 D3D12\_GPU\_VIRTUAL\_ADDRESS。

*SizeInBytes*\
類型：UINT

指定緩衝區的大小 (以位元組為單位)。

*StrideInBytes*\
類型：UINT

指定每個頂點項目的大小 (以位元組為單位)。

## 備註

將此結構與 [IASetVertexBuffers](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_iasetvertexbuffers_public) 方法搭配使用。

## 需求

**標頭:** d3d12\_xs.h 或 d3d12\_x.h\
**程式庫:** d3d12\_xs.lib 或 d3d12\_x.lib\
**支援的平台**: XBOX Series 主機與 XBOX One 系列

## 另請參閱

[核心結構](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)


## Related topics

- [IASetVertexBuffers](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_iasetvertexbuffers_public.md)
- [D3D12_INDEX_BUFFER_VIEW](/zh-TW/reference/graphics/d3d12/structs/d3d12_index_buffer_view_public.md)
- [D3D12_STREAM_OUTPUT_BUFFER_VIEW](/zh-TW/reference/graphics/d3d12/structs/d3d12_stream_output_buffer_view_public.md)
- [D3D12_CONSTANT_BUFFER_VIEW_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_constant_buffer_view_desc_public.md)
- [D3D12_BUFFER_SRV](/zh-TW/reference/graphics/d3d12/structs/d3d12_buffer_srv_public.md)
