> ## 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](/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 系列

## 另请参阅

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


## Related topics

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