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

# D3D12XBOX_COUNTER_DATA (famille XBOX One)

> Données retournées par l'échantillonnage d'un ensemble de compteurs matériels GPU actifs simultanément.

Données retournées par l'échantillonnage d'un ensemble de compteurs matériels GPU actifs simultanément.

## Syntaxe

```cpp theme={null}
typedef struct D3D12XBOX_COUNTER_DATA
{
    UINT Size;
    UINT Version;

    // The remaining fields differ for different hardware type.
    // See the appropriate declaration in the appropriate header.

    // The declaration for base Xbox One and Xbox One S was not made explicit, 
    // but it can be found in the GpuBench sample as D3D12XBOX_COUNTER_DURANGO_DATA.

    // The declaration for Xbox One X is in d3d12_x.h.

    // The declaration for Lockhart is D3D12XBOX_COUNTER_LOCKHART_DATA in d3d12_xs.h.

    // The declaration for Anaconda is in d3d12_xs.h.
} D3D12XBOX_COUNTER_DATA;
```

### Membres

*Size*\
Type : UINT

Taille de la structure. Sera définie sur sizeof(D3D12XBOX\_COUNTER\_DATA).

*Version*\
Type : UINT

Version de l'interface. Sera définie sur D3D12XBOX\_COUNTER\_SET\_DESC\_VERSION.

## Remarques

Cette structure est la sortie de [ID3D12XboxCounterSet::RetrieveCounterDataX](/fr-CA/reference/graphics/d3d12_x/interfaces/id3d12xboxcounterset/methods/id3d12xboxcounterset_retrievecounterdatax). Pour chaque compteur matériel GPU de l'ensemble de compteurs, la structure contient autant de valeurs UINT64 qu'il y a d'instances du composant matériel correspondant. Le titre peut choisir de calculer la moyenne, la somme ou le maximum sur les instances matérielles, selon la nature de chaque compteur.

Consultez l'exemple GXDK [GPUBench](https://aka.ms/gdkdl) pour un exemple d'utilisation.

## Configuration requise

**En-tête :** d3d12\_x.h

**Plateformes prises en charge :** famille XBOX One

## Voir aussi

[d3d12\_x](/fr-CA/reference/graphics/d3d12_x/d3d12_x_members)

[ID3D12Device::CreateCounterSetX](/fr-CA/reference/graphics/d3d12_x/interfaces/id3d12device/methods/id3d12device_createcountersetx)


## Related topics

- [Répertoire des rubriques NDA : liens actifs vers Microsoft Learn](/fr/nda/nda-topic-directory.md)
- [NDA topic directory - live Microsoft Learn links](/nda/nda-topic-directory.md)
- [Diretório de tópicos NDA: links ativos do Microsoft Learn](/pt-BR/nda/nda-topic-directory.md)
- [Directorio de temas NDA: enlaces activos a Microsoft Learn](/es/nda/nda-topic-directory.md)
- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
