HitObject.IsHit
Description
Returns true if the HitObject encodes a hit, otherwise returns false.
Signature
bool HitObject.IsHit();
Availability and Requirements
Defined for the following targets:
hlsl
Available in stages: raygen
, closesthit
, miss
.
Requires capability: hlsl_nvapi
.
glsl
Available in stages: raygen
, closesthit
, miss
.
spirv
Available in stages: raygen
, closesthit
, miss
.
Requires capabilities: spvRayTracingKHR
, spvShaderInvocationReorderNV
.