Package org.lwjgl.openxr
Class EXTThermalQuery
java.lang.Object
org.lwjgl.openxr.EXTThermalQuery
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnxrThermalGetTemperatureTrendEXT(XrSession session, int domain, long notificationLevel, long tempHeadroom, long tempSlope) Unsafe version of:ThermalGetTemperatureTrendEXTstatic intxrThermalGetTemperatureTrendEXT(XrSession session, int domain, IntBuffer notificationLevel, FloatBuffer tempHeadroom, FloatBuffer tempSlope) xrThermalGetTemperatureTrendEXT.
-
Field Details
-
XR_EXT_thermal_query_SPEC_VERSION
public static final int XR_EXT_thermal_query_SPEC_VERSIONThe extension specification version.- See Also:
-
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) Unsafe version of:ThermalGetTemperatureTrendEXT -
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_queryextension must be enabled prior to callingThermalGetTemperatureTrendEXT sessionmust be a validXrSessionhandledomainmust be a validXrPerfSettingsDomainEXTvaluenotificationLevelmust be a pointer to anXrPerfSettingsNotificationLevelEXTvaluetempHeadroommust be a pointer to afloatvaluetempSlopemust be a pointer to afloatvalue
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
session- a validXrSessionhandle.domain- : the processing domainnotificationLevel- : the current warning leveltempHeadroom- : 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.
- The
-