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

# DispatchRays (XBOX Series 本体)

> レイ生成シェーダーのスレッドを起動します。

レイ生成シェーダーのスレッドを起動します。

## 構文

```cpp theme={null}
void DispatchRays(
    const D3D12_DISPATCH_RAYS_DESC  pDesc
)
```

### パラメーター

*pDesc \[in]*\
型: const D3D12\_DISPATCH\_RAYS\_DESC \*

レイ ディスパッチの記述。

### 戻り値

型: void

なし。

## 解説

このメソッドは、グラフィックスまたはコンピュートのコマンド リスト、およびバンドルから呼び出すことができます。

コマンド リストにはレイトレーシング パイプライン ステートが設定されている必要があります。そうでない場合、この呼び出しの動作は未定義です。

グリッド サイズを設定するために 3 つの次元 (幅/高さ/深さ) が渡されます。これらの次元は、width \* height \* depth \<= 2^30 となるように制約されます。これを超えると未定義の動作になります。
いずれかのグリッド次元が 0 の場合、スレッドは起動されません。

## 要件

**ヘッダー:** d3d12\_xs.h\
**ライブラリ:** d3d12\_xs.lib\
**サポートされているプラットフォーム**: XBOX Series 本体

## 関連項目

[ID3D12GraphicsCommandList4](/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList4/id3d12graphicscommandlist4)


## Related topics

- [D3D12_DISPATCH_RAYS_DESC (XBOX Series consoles)](/ja-jp/reference/graphics/d3d12/structs/d3d12_dispatch_rays_desc_public.md)
- [Dispatch](/ja-jp/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_dispatch_public.md)
- [BuildRaytracingAccelerationStructure (XBOX Series 本体)](/ja-jp/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist4/methods/id3d12graphicscommandlist4_buildraytracingaccelerationstructure_public.md)
- [CopyRaytracingAccelerationStructure (XBOX Series 本体)](/ja-jp/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist4/methods/id3d12graphicscommandlist4_copyraytracingaccelerationstructure_public.md)
- [D3D12_RAYTRACING_AABB (XBOX Series 本体)](/ja-jp/reference/graphics/d3d12/structs/d3d12_raytracing_aabb_public.md)
