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

> Describes query data for stream output.

Describes query data about the amount of data streamed out to the stream-output buffers.

## Syntax

```cpp theme={null}
typedef struct D3D12_QUERY_DATA_SO_STATISTICS
{
    UINT64 NumPrimitivesWritten;
    UINT64 PrimitivesStorageNeeded;
} D3D12_QUERY_DATA_SO_STATISTICS
```

### Members

*NumPrimitivesWritten*\
Type: UINT64

The number of primitives (that is, points, lines, and triangles) that were actually written to the stream output resource.

*PrimitivesStorageNeeded*\
Type: UINT64

If the stream output resource is large enough, then *PrimitivesStorageNeeded* represents the total number of primitives written to the stream output resource. Otherwise, it represents the total number of primitives that *would* have been written to the stream-output resource had there been enough space for them all.

## Remarks

Use this structure with [D3D12\_QUERY\_HEAP\_TYPE](/reference/graphics/d3d12_x/enums/d3d12_query_heap_type) and [CreateQueryHeap](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createqueryheap_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/win32/direct3d12/direct3d-12-structures)


## Related topics

- [D3D12_QUERY_DATA_PIPELINE_STATISTICS](/reference/graphics/d3d12/structs/d3d12_query_data_pipeline_statistics_public.md)
- [D3D12_FEATURE_DATA_D3D12_OPTIONS12](/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options12_public.md)
- [D3D12_FEATURE_DATA_QUERY_META_COMMAND](/reference/graphics/d3d12/structs/d3d12_feature_data_query_meta_command_public.md)
- [D3D12_SO_DECLARATION_ENTRY](/reference/graphics/d3d12/structs/d3d12_so_declaration_entry_public.md)
- [D3D12_FEATURE_DATA_ARCHITECTURE](/reference/graphics/d3d12/structs/d3d12_feature_data_architecture_public.md)
