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

# D3D12XBOX_DISPATCH_RAYS_DESC (XBOX Series 主機)

> D3D12_DISPATCH_RAYS_DESC 的 XBOX 擴充功能

[D3D12\_DISPATCH\_RAYS\_DESC](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ns-d3d12-d3d12_dispatch_rays_desc) 的 XBOX 擴充功能

## 語法

```cpp theme={null}
typedef struct D3D12XBOX_DISPATCH_RAYS_DESC {  
    D3D12_DISPATCH_RAYS_DESC DispatchArgs;  
    D3D12_GPU_VIRTUAL_ADDRESS_RANGE Scratch;  
    D3D12XBOX_XDXR_STREAM_DESC ExtraOptions;  
} D3D12XBOX_DISPATCH_RAYS_DESC  
```

### 成員

*DispatchArgs*\
類型：D3D12\_DISPATCH\_RAYS\_DESC

標準的 D3D DispatchRays 引數。

*Scratch*\
類型：D3D12\_GPU\_VIRTUAL\_ADDRESS\_RANGE

選擇性的暫存覆寫。

*ExtraOptions*\
類型：[D3D12XBOX\_XDXR\_STREAM\_DESC](/zh-TW/reference/graphics/d3d12_xs/structs/d3d12xbox_xdxr_stream_desc)

額外選項，在 8 月 GDK 中未使用。

## 備註

範例 1 -- 應用程式使用自己的記憶體配置，且必須確保適當的同步處理

```CPP theme={null}
D3D12XBOX_DISPATCH_RAYS_DESC dispatchDescX {};
dispatchDescX.DispatchArgs = dispatchDesc;
dispatchDescX.Scratch.StartAddress = m_customStackScratch->GetGPUVirtualAddress();
dispatchDescX.Scratch.SizeInBytes = CUSTOM_SCRATCH_SIZE;
m_commandList->DispatchRaysX(&dispatchDescX);  
```

## 需求

**標頭：** d3d12\_xs.h\
**支援的平台：** XBOX Series 主機

## 另請參閱

[d3d12\_xs](/zh-TW/reference/graphics/d3d12_xs/d3d12_xs_members)


## Related topics

- [D3D12_DISPATCH_RAYS_DESC (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_dispatch_rays_desc_public.md)
- [D3D12_DISPATCH_RAYS_DESC (consolas XBOX Series)](/es/reference/graphics/d3d12/structs/d3d12_dispatch_rays_desc_public.md)
- [D3D12_DISPATCH_RAYS_DESC (XBOX Series 主机)](/zh-CN/reference/graphics/d3d12/structs/d3d12_dispatch_rays_desc_public.md)
- [D3D12_DISPATCH_RAYS_DESC (XBOX Series 콘솔)](/ko/reference/graphics/d3d12/structs/d3d12_dispatch_rays_desc_public.md)
- [D3D12_RAYTRACING_GEOMETRY_DESC (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_raytracing_geometry_desc_public.md)
