SPIR-V Built-In

HitSpherePositionNV

Contains the position of the hit sphere
HitSpherePositionNV

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

Valid Usage

VUID-HitSpherePositionNV-HitSpherePositionNV-10519

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

VUID-HitSpherePositionNV-HitSpherePositionNV-10520

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

VUID-HitSpherePositionNV-HitSpherePositionNV-10521

The variable decorated with HitSpherePositionNV must be declared as a three-component vector of 32-bit floating-point values