SPIR-V Built-In

HitIsSphereNV

Indicates if a sphere primitive was hit
HitIsSphereNV

A variable decorated with the HitIsSphereNV decoration will contain a non-zero value if the current ray hit a sphere primitive or zero otherwise.

Valid Usage

VUID-HitIsSphereNV-HitIsSphereNV-10513

The HitIsSphereNV decoration must be used only within the AnyHitKHR, or ClosestHitKHR Execution Model

VUID-HitIsSphereNV-HitIsSphereNV-10514

The variable decorated with HitIsSphereNV must be declared using the Input Storage Class

VUID-HitIsSphereNV-HitIsSphereNV-10515

The variable decorated with HitIsSphereNV must be declared as a boolean value