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

> グラフィックス ルート シグネチャのシェーダー リソースに CPU 記述子ハンドルを設定します。

グラフィックス ルート シグネチャのシェーダー リソースに CPU 記述子ハンドルを設定します。

## 構文

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

### パラメーター

*RootParameterIndex \[in]*\
型: UINT

バインドするスロット番号。

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

バッファーの GPU 仮想アドレス。
テクスチャはサポートされていません。D3D12\_GPU\_VIRTUAL\_ADDRESS は UINT64 の typedef エイリアスです。

### 戻り値

型: void

なし。

## 要件

**ヘッダー:** d3d12\_xs.h または d3d12\_x.h\
**ライブラリ:** d3d12\_xs.lib または d3d12\_x.lib\
**サポートされるプラットフォーム**: XBOX Series 本体および XBOX One ファミリ

## 関連項目

[ID3D12GraphicsCommandList](/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList/id3d12graphicscommandlist_xs)


## Related topics

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