Skip to main content
Launch the threads of a ray generation shader.

Syntax

Parameters

pDesc [in]
Type: const D3D12_DISPATCH_RAYS_DESC *
A description of the ray dispatch

Return value

Type: void None.

Remarks

This method can be called from graphics or compute command lists and bundles. A raytracing pipeline state must be set on the command list. Otherwise, the behavior of this call is undefined. There are 3 dimensions passed in to set the grid size: width/height/depth. These dimensions are constrained such that width * height * depth <= 2^30. Exceeding this produces undefined behavior. If any grid dimension is 0, no threads are launched.

Requirements

Header: d3d12_xs.h
Library: d3d12_xs.lib
Supported Platforms: XBOX Series consoles

See Also

ID3D12GraphicsCommandList4
Last modified on August 20, 2026