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

> Describes a stream output buffer.

Describes a stream output buffer.

## Syntax

```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
```

### Members

*BufferLocation*\
Type: D3D12\_GPU\_VIRTUAL\_ADDRESS

A D3D12\_GPU\_VIRTUAL\_ADDRESS (a UINT64) that points to the stream output buffer.
If **SizeInBytes** is 0, this member isn't used and can be any value.

*SizeInBytes*\
Type: UINT64

The size of the stream output buffer in bytes.

*BufferFilledSizeLocation*\
Type: D3D12\_GPU\_VIRTUAL\_ADDRESS

The location of the value of how much data has been filled into the buffer, as a D3D12\_GPU\_VIRTUAL\_ADDRESS (a UINT64).
This member can't be NULL; a filled size location must be supplied (which the hardware will increment as data is output).
If **SizeInBytes** is 0, this member isn't used and can be any value.

## Remarks

Use this structure with [SOSetTargets](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_sosettargets_public).

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

- [SOSetTargets](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_sosettargets_public.md)
- [D3D12_RENDER_TARGET_VIEW_DESC](/reference/graphics/d3d12/structs/d3d12_render_target_view_desc_public.md)
- [D3D12_STREAM_OUTPUT_DESC](/reference/graphics/d3d12/structs/d3d12_stream_output_desc_public.md)
- [D3D12_INDEX_BUFFER_VIEW](/reference/graphics/d3d12/structs/d3d12_index_buffer_view_public.md)
- [D3D12_VERTEX_BUFFER_VIEW](/reference/graphics/d3d12/structs/d3d12_vertex_buffer_view_public.md)
