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

# OMSetStencilRef

> Définit la valeur de référence pour les tests de profondeur-stencil.

Définit la valeur de référence pour les tests de profondeur-stencil.

## Syntaxe

```cpp theme={null}
void OMSetStencilRef(
    UINT StencilRef
)
```

### Paramètres

*StencilRef \[in]*\
Type : UINT

Valeur de référence utilisée pour la comparaison lors d'un test de profondeur-stencil.

### Valeur de retour

Type : void

Aucune.

## Configuration requise

**En-tête :** d3d12\_xs.h ou d3d12\_x.h\
**Bibliothèque :** d3d12\_xs.lib ou d3d12\_x.lib\
**Plateformes prises en charge** : consoles XBOX Series et famille XBOX One

## Voir aussi

[ID3D12GraphicsCommandList](/fr/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList/id3d12graphicscommandlist_xs.md)


## Related topics

- [OMSetRenderTargets](/fr/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_omsetrendertargets_public.md)
- [CreateDepthStencilView](/fr/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createdepthstencilview_public.md)
- [D3D12_DEPTH_STENCIL_DESC](/fr/reference/graphics/d3d12/structs/d3d12_depth_stencil_desc_public.md)
- [D3D12_DEPTH_STENCIL_DESC1](/fr/reference/graphics/d3d12/structs/d3d12_depth_stencil_desc1_public.md)
- [D3D12_DEPTH_STENCIL_VALUE](/fr/reference/graphics/d3d12/structs/d3d12_depth_stencil_value_public.md)
