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

# SetResourceCompressionStateX (famille XBOX One)

> Définit l'état de compression d'une ressource.

Définit l'état de compression d'une ressource.

## Syntaxe

```cpp theme={null}
void SetResourceCompressionStateX(  
         ID3D12Resource* pResource,  
         D3D12XBOX_COMPRESSION_STATE_FLAGS CompressionStateFlags,  
         D3D12_RESOURCE_STATES PreserveFlags  
)  
```

### Paramètres

*pResource*   \_Inout\_\
Type : [ID3D12Resource](/fr/reference/graphics/d3d12_x/interfaces/id3d12resource/id3d12resource)\*

Ressource, sous la forme d'un pointeur vers un objet **ID3D12Resource**.

*CompressionStateFlags*   \_In\_\
Type : [D3D12XBOX\_COMPRESSION\_STATE\_FLAGS](/fr/reference/graphics/d3d12_x/enums/d3d12xbox_compression_state_flags)

Indicateurs qui spécifient l'état de compression.

*PreserveFlags*   \_In\_\
Type : [D3D12\_RESOURCE\_STATES](/fr/reference/graphics/d3d12_x/enums/d3d12_resource_states)

Indicateurs qui spécifient les états de ressource à conserver.

### Valeur renvoyée

Type : void

## Configuration requise

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

**Bibliothèque :** d3d12\_x.lib

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

## Voir aussi

[ID3D12GraphicsCommandList](/fr/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/id3d12graphicscommandlist)


## Related topics

- [Répertoire des rubriques NDA : liens actifs vers Microsoft Learn](/fr/nda/nda-topic-directory.md)
- [SetProtectedResourceSession](/fr/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist3/methods/id3d12graphicscommandlist3_setprotectedresourcesession_public.md)
- [SetComputeRootShaderResourceView](/fr/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setcomputerootshaderresourceview_public.md)
- [SetGraphicsRootShaderResourceView](/fr/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setgraphicsrootshaderresourceview_public.md)
- [SetPipelineState](/fr/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setpipelinestate_public.md)
