RayQuery<rayFlagsGeneric:uint>.TraceRayInline
Description
Initialize a ray-tracing query.
This method may be called on a “fresh” ray query, or on one that is already tracing a ray. In the latter case any state related to the ray previously being traced is overwritten.
The rayFlags here will be bitwise ORed with the rayFlags passed as a generic argument to RayQuery to get the effective ray flags, which must obey any API-imposed restrictions.
Signature
void RayQuery<rayFlagsGeneric:uint>.TraceRayInline( RaytracingAccelerationStructure accelerationStructure, uint rayFlags, uint instanceInclusionMask, RayDesc ray);
Parameters
accelerationStructure : RaytracingAccelerationStructure
Acceleration structure to traverse
rayFlags : uint
Additional flags for this trace (combined with rayFlagsGeneric)
instanceInclusionMask : uint
Mask for filtering instance visibility
ray : RayDesc
Description of ray parameters (origin, direction, tMin, tMax)
Availability and Requirements
Defined for the following targets:
hlsl
Available in all stages.
glsl
Available in all stages.
spirv
Available in all stages.
Requires capability: spvRayQueryKHR
.