TraceRay
Description
Signature
void TraceRay<payload_t>( RaytracingAccelerationStructure AccelerationStructure, uint RayFlags, uint InstanceInclusionMask, uint RayContributionToHitGroupIndex, uint MultiplierForGeometryContributionToHitGroupIndex, uint MissShaderIndex, RayDesc Ray, inout payload_t Payload);
Generic Parameters
payload_t
Parameters
AccelerationStructure : RaytracingAccelerationStructure
RayFlags : uint
InstanceInclusionMask : uint
RayContributionToHitGroupIndex : uint
MultiplierForGeometryContributionToHitGroupIndex : uint
MissShaderIndex : uint
Ray : RayDesc
Payload : payload_t
Availability and Requirements
Defined for the following targets:
hlsl
Available in stages: raygen
, closesthit
, miss
.
glsl
Available in stages: raygen
, closesthit
, miss
.
cuda
Available in stages: raygen
, closesthit
, miss
.
spirv
Available in stages: raygen
, closesthit
, miss
.
Requires capability: spvRayTracingKHR
.