Class EXTThermalQuery

java.lang.Object
org.lwjgl.openxr.EXTThermalQuery

public class EXTThermalQuery extends Object
The XR_EXT_thermal_query extension.

This extension provides an API to query a domain’s current thermal warning level and current thermal trend.

  • Field Details

    • XR_EXT_thermal_query_SPEC_VERSION

      public static final int XR_EXT_thermal_query_SPEC_VERSION
      The extension specification version.
      See Also:
    • XR_EXT_THERMAL_QUERY_EXTENSION_NAME

      public static final String XR_EXT_THERMAL_QUERY_EXTENSION_NAME
      The extension name.
      See Also:
  • Method Details

    • nxrThermalGetTemperatureTrendEXT

      public static int nxrThermalGetTemperatureTrendEXT(XrSession session, int domain, long notificationLevel, long tempHeadroom, long tempSlope)
    • xrThermalGetTemperatureTrendEXT

      public static int xrThermalGetTemperatureTrendEXT(XrSession session, int domain, IntBuffer notificationLevel, FloatBuffer tempHeadroom, FloatBuffer tempSlope)
      xrThermalGetTemperatureTrendEXT.
      C Specification
      
       XrResult xrThermalGetTemperatureTrendEXT(
           XrSession                                   session,
           XrPerfSettingsDomainEXT                     domain,
           XrPerfSettingsNotificationLevelEXT*         notificationLevel,
           float*                                      tempHeadroom,
           float*                                      tempSlope);

      Allows to query the current temperature warning level of a domain, the remaining headroom and the trend.

      Valid Usage (Implicit)
      • The XR_EXT_thermal_query extension must be enabled prior to calling ThermalGetTemperatureTrendEXT
      • session must be a valid XrSession handle
      • domain must be a valid XrPerfSettingsDomainEXT value
      • notificationLevel must be a pointer to an XrPerfSettingsNotificationLevelEXT value
      • tempHeadroom must be a pointer to a float value
      • tempSlope must be a pointer to a float value
      Return Codes
      On success, this command returns
      On failure, this command returns
      Parameters:
      session - a valid XrSession handle.
      domain - : the processing domain
      notificationLevel - : the current warning level
      tempHeadroom - : temperature headroom in degrees Celsius, expressing how far the most-critical temperature of the domain is from its thermal throttling threshold temperature.
      tempSlope - : the current trend in degrees Celsius per second of the most critical temperature of the domain.