DispatchRaysIndex
Description
Returns the current ray dispatch coordinates.
Signature
vector<uint, 3> DispatchRaysIndex();
Return value
3D index of the current ray being processed
Remarks
Available in all ray tracing shader stages
Availability and Requirements
Defined for the following targets:
hlsl
Available in stages: raygen
, intersection
, miss
, callable
, closesthit
, anyhit
.
glsl
Available in stages: raygen
, intersection
, miss
, callable
, closesthit
, anyhit
.
cuda
Available in stages: raygen
, intersection
, miss
, callable
, closesthit
, anyhit
.
spirv
Available in stages: raygen
, intersection
, miss
, callable
, closesthit
, anyhit
.
Requires capability: spvRayTracingKHR
.