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

# SetGraphicsRootShaderResourceView

> Définit un handle de descripteur CPU pour la ressource de nuanceur dans la signature racine graphique.

Définit un handle de descripteur CPU pour la ressource de nuanceur dans la signature racine graphique.

## Syntaxe

```cpp theme={null}
void SetGraphicsRootShaderResourceView(
    UINT RootParameterIndex,
    D3D12_GPU_VIRTUAL_ADDRESS BufferLocation
)
```

### Paramètres

*RootParameterIndex \[in]*\
Type : UINT

Le numéro d'emplacement pour la liaison.

*BufferLocation \[in]*\
Type : D3D12\_GPU\_VIRTUAL\_ADDRESS

L'adresse virtuelle GPU de la mémoire tampon.
Les textures ne sont pas prises en charge. D3D12\_GPU\_VIRTUAL\_ADDRESS est un alias défini par typedef de UINT64.

### 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-CA/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList/id3d12graphicscommandlist_xs)


## Related topics

- [SetComputeRootShaderResourceView](/fr-CA/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setcomputerootshaderresourceview_public.md)
- [SetGraphicsRootConstantBufferView](/fr-CA/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setgraphicsrootconstantbufferview_public.md)
- [SetGraphicsRootUnorderedAccessView](/fr-CA/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setgraphicsrootunorderedaccessview_public.md)
- [CreateShaderResourceView](/fr-CA/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createshaderresourceview_public.md)
- [D3D12_SHADER_RESOURCE_VIEW_DESC](/fr-CA/reference/graphics/d3d12/structs/d3d12_shader_resource_view_desc_public.md)
