HitObject.GetRayFlags

Description

Returns the ray flags associated with the hit object. Valid if the hit object represents a hit or a miss. DXR 1.3 and GL_EXT_shader_invocation_reorder.

Signature

uint HitObject.GetRayFlags();

Availability and Requirements

Defined for the following targets:

hlsl

Available in stages: raygen, closesthit, miss.

Requires capability: ser_hlsl_native.

glsl

Available in stages: raygen, closesthit, miss.

spirv

Available in stages: raygen, closesthit, miss.

Requires capabilities: spvRayTracingKHR, spvShaderInvocationReorderNV.