Skip to main content
Describes the properties of a ray dispatch operation initiated with a call to ID3D12GraphicsCommandList4::DispatchRays.

Syntax

Members

RayGenerationShaderRecord
Type: D3D12_GPU_VIRTUAL_ADDRESS_RANGE
The shader record for the ray generation shader to use. The memory pointed to must be in state D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE. The address must be aligned to 64 bytes, defined as D3D12_RAYTRACING_SHADER_TABLE_BYTE_ALIGNMENT, and in the range [0…4096] bytes. MissShaderTable
Type: D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE
The shader table for miss shaders. The stride is record stride, and must be aligned to 32 bytes, defined as D3D12_RAYTRACING_SHADER_RECORD_BYTE_ALIGNMENT, and in the range [0…4096] bytes. 0 is allowed. The memory pointed to must be in state D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE. The address must be aligned to 64 bytes, defined as D3D12_RAYTRACING_SHADER_TABLE_BYTE_ALIGNMENT. HitGroupTable
Type: D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE
The shader table for hit groups. The stride is record stride, and must be aligned to 32 bytes, defined as D3D12_RAYTRACING_SHADER_RECORD_BYTE_ALIGNMENT, and in the range [0…4096] bytes. 0 is allowed. The memory pointed to must be in state D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE. The address must be aligned to 64 bytes, defined as D3D12_RAYTRACING_SHADER_TABLE_BYTE_ALIGNMENT. CallableShaderTable
Type: D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE
The shader table for callable shaders. The stride is record stride, and must be aligned to 32 bytes, defined as D3D12_RAYTRACING_SHADER_RECORD_BYTE_ALIGNMENT. 0 is allowed. The memory pointed to must be in state D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE. The address must be aligned to 64 bytes, defined as D3D12_RAYTRACING_SHADER_TABLE_BYTE_ALIGNMENT. Width
Type: UINT
The width of the generation shader thread grid. Height
Type: UINT
The height of the generation shader thread grid. Depth
Type: UINT
The depth of the generation shader thread grid.

Requirements

Header: d3d12_xs.h
Library: d3d12_xs.lib
Supported Platforms: XBOX Series consoles
Last modified on August 20, 2026