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

> 描述串流輸出緩衝區。

描述串流輸出緩衝區。

## 語法

```cpp theme={null}
typedef struct D3D12_STREAM_OUTPUT_BUFFER_VIEW
{
    D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
    UINT64 SizeInBytes;
    D3D12_GPU_VIRTUAL_ADDRESS BufferFilledSizeLocation;
} D3D12_STREAM_OUTPUT_BUFFER_VIEW
```

### 成員

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

指向串流輸出緩衝區的 D3D12\_GPU\_VIRTUAL\_ADDRESS (UINT64)。
若 **SizeInBytes** 為 0，則不會使用此成員，且可以是任何值。

*SizeInBytes*\
類型：UINT64

串流輸出緩衝區的大小 (以位元組為單位)。

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

表示已填入緩衝區之資料量的值所在位置，為 D3D12\_GPU\_VIRTUAL\_ADDRESS (UINT64)。
此成員不可為 NULL；必須提供已填入大小的位置 (硬體會在輸出資料時遞增此值)。
若 **SizeInBytes** 為 0，則不會使用此成員，且可以是任何值。

## 備註

將此結構與 [SOSetTargets](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_sosettargets_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

- [SOSetTargets](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_sosettargets_public.md)
- [D3D12_STREAM_OUTPUT_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_stream_output_desc_public.md)
- [D3D12_VERTEX_BUFFER_VIEW](/zh-TW/reference/graphics/d3d12/structs/d3d12_vertex_buffer_view_public.md)
- [D3D12_INDEX_BUFFER_VIEW](/zh-TW/reference/graphics/d3d12/structs/d3d12_index_buffer_view_public.md)
- [D3D12_CONSTANT_BUFFER_VIEW_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_constant_buffer_view_desc_public.md)
