Description

RayTminKHR

A variable decorated with the RayTminKHR decoration will contain the parametric tmin value of the ray being processed. The value is independent of the space in which the ray origin and direction exist. The value is the parameter passed into OpTraceRayKHR.

The tmin value remains constant for the duration of the ray query.

Valid Usage
  • VUID-RayTminKHR-RayTminKHR-04351
    The RayTminKHR decoration must be used only within the IntersectionKHR, AnyHitKHR, ClosestHitKHR, or MissKHR Execution Model

  • VUID-RayTminKHR-RayTminKHR-04352
    The variable decorated with RayTminKHR must be declared using the Input Storage Class

  • VUID-RayTminKHR-RayTminKHR-04353
    The variable decorated with RayTminKHR must be declared as a scalar 32-bit floating-point value

See Also

No cross-references are available

Document Notes

For more information, see the Vulkan Specification

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2023 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0