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

> 描述資料流輸出的查詢資料。

描述有關資料流輸出至資料流輸出緩衝區之資料量的查詢資料。

## 語法

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

### 成員

*NumPrimitivesWritten*\
類型：UINT64

實際寫入資料流輸出資源的基本類型 (也就是點、線和三角形) 數目。

*PrimitivesStorageNeeded*\
類型：UINT64

如果資料流輸出資源夠大，*PrimitivesStorageNeeded* 代表寫入資料流輸出資源的基本類型總數。否則，它代表如果有足夠空間容納全部基本類型，*原本會*寫入資料流輸出資源的基本類型總數。

## 備註

請將此結構與 [D3D12\_QUERY\_HEAP\_TYPE](/zh-TW/reference/graphics/d3d12_x/enums/d3d12_query_heap_type) 和 [CreateQueryHeap](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createqueryheap_public) 搭配使用。

## 需求

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

## 另請參閱

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


## Related topics

- [D3D12_QUERY_DATA_PIPELINE_STATISTICS](/zh-TW/reference/graphics/d3d12/structs/d3d12_query_data_pipeline_statistics_public.md)
- [D3D12_FEATURE_DATA_QUERY_META_COMMAND](/zh-TW/reference/graphics/d3d12/structs/d3d12_feature_data_query_meta_command_public.md)
- [D3D12_SO_DECLARATION_ENTRY](/zh-TW/reference/graphics/d3d12/structs/d3d12_so_declaration_entry_public.md)
- [D3D12_FEATURE_DATA_D3D12_OPTIONS3](/zh-TW/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options3_public.md)
- [D3D12_FEATURE_DATA_D3D12_OPTIONS12](/zh-TW/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options12_public.md)
