SPIR-V Built-In

HitSphereRadiusNV

Contains the radius of the hit sphere
HitSphereRadiusNV

A variable decorated with the HitSphereRadiusNV decoration will contain the radius of sphere primitive intersected by current ray.

Valid Usage

VUID-HitSphereRadiusNV-HitSphereRadiusNV-10522

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

VUID-HitSphereRadiusNV-HitSphereRadiusNV-10523

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

VUID-HitSphereRadiusNV-HitSphereRadiusNV-10524

The variable decorated with HitSphereRadiusNV must be declared as a scalar 32-bit floating-point value