diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/ALMALENCEDigitalLensControl.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/ALMALENCEDigitalLensControl.java
index 575d046fee..d5f3d6ab54 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/ALMALENCEDigitalLensControl.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/ALMALENCEDigitalLensControl.java
@@ -4,12 +4,12 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+
/**
* The XR_ALMALENCE_digital_lens_control extension.
*
@@ -35,18 +35,18 @@
*
*
*
This extension enables the handling of the Digital Lens for VR API Layer by calling {@link #xrSetDigitalLensControlALMALENCE SetDigitalLensControlALMALENCE}.
- */
-public class ALMALENCEDigitalLensControl {
-
- /** The extension specification version. */
- public static final int XR_ALMALENCE_digital_lens_control_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_ALMALENCE_DIGITAL_LENS_CONTROL_EXTENSION_NAME = "XR_ALMALENCE_digital_lens_control";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_DIGITAL_LENS_CONTROL_ALMALENCE = 1000196000;
-
+ */
+public class ALMALENCEDigitalLensControl {
+
+ /** The extension specification version. */
+ public static final int XR_ALMALENCE_digital_lens_control_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_ALMALENCE_DIGITAL_LENS_CONTROL_EXTENSION_NAME = "XR_ALMALENCE_digital_lens_control";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_DIGITAL_LENS_CONTROL_ALMALENCE = 1000196000;
+
/**
* XrDigitalLensControlFlagBitsALMALENCE - XrDigitalLensControlFlagBitsALMALENCE
*
@@ -55,24 +55,24 @@ public class ALMALENCEDigitalLensControl {
*
* - {@link #XR_DIGITAL_LENS_CONTROL_PROCESSING_DISABLE_BIT_ALMALENCE DIGITAL_LENS_CONTROL_PROCESSING_DISABLE_BIT_ALMALENCE} — disables Digital Lens processing of render textures
*
- */
- public static final int XR_DIGITAL_LENS_CONTROL_PROCESSING_DISABLE_BIT_ALMALENCE = 0x1;
+ */
+ public static final int XR_DIGITAL_LENS_CONTROL_PROCESSING_DISABLE_BIT_ALMALENCE = 0x1;
protected ALMALENCEDigitalLensControl() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrSetDigitalLensControlALMALENCE ] ---
+
+ /** Unsafe version of: {@link #xrSetDigitalLensControlALMALENCE SetDigitalLensControlALMALENCE} */
+ public static int nxrSetDigitalLensControlALMALENCE(XrSession session, long digitalLensControl) {
+ long __functionAddress = session.getCapabilities().xrSetDigitalLensControlALMALENCE;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(session.address(), digitalLensControl, __functionAddress);
+ }
- // --- [ xrSetDigitalLensControlALMALENCE ] ---
-
- /** Unsafe version of: {@link #xrSetDigitalLensControlALMALENCE SetDigitalLensControlALMALENCE} */
- public static int nxrSetDigitalLensControlALMALENCE(XrSession session, long digitalLensControl) {
- long __functionAddress = session.getCapabilities().xrSetDigitalLensControlALMALENCE;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(session.address(), digitalLensControl, __functionAddress);
- }
-
/**
* Sets DLVR status.
*
@@ -120,10 +120,10 @@ public static int nxrSetDigitalLensControlALMALENCE(XrSession session, long digi
*
* @param session a handle to a running {@code XrSession}.
* @param digitalLensControl the {@link XrDigitalLensControlALMALENCE} that contains desired characteristics for the Digital Lens
- */
- @NativeType("XrResult")
- public static int xrSetDigitalLensControlALMALENCE(XrSession session, @NativeType("XrDigitalLensControlALMALENCE const *") XrDigitalLensControlALMALENCE digitalLensControl) {
- return nxrSetDigitalLensControlALMALENCE(session, digitalLensControl.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSetDigitalLensControlALMALENCE(XrSession session, @NativeType("XrDigitalLensControlALMALENCE const *") XrDigitalLensControlALMALENCE digitalLensControl) {
+ return nxrSetDigitalLensControlALMALENCE(session, digitalLensControl.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/BDControllerInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/BDControllerInteraction.java
index 440343939d..6516c6622b 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/BDControllerInteraction.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/BDControllerInteraction.java
@@ -4,20 +4,20 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_BD_controller_interaction extension.
*
* This extension defines the interaction profile for PICO Neo3 and PICO 4 Controllers.
- */
-public final class BDControllerInteraction {
-
- /** The extension specification version. */
- public static final int XR_BD_controller_interaction_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_BD_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_BD_controller_interaction";
+ */
+public final class BDControllerInteraction {
+
+ /** The extension specification version. */
+ public static final int XR_BD_controller_interaction_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_BD_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_BD_controller_interaction";
- private BDControllerInteraction() {}
+ private BDControllerInteraction() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EPICViewConfigurationFov.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EPICViewConfigurationFov.java
index a7d5c7fff4..7869090bec 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EPICViewConfigurationFov.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EPICViewConfigurationFov.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_EPIC_view_configuration_fov extension.
*
@@ -13,18 +13,18 @@
* The field-of-view given here should not be used for rendering, see {@link XR10#xrLocateViews LocateViews} to retrieve the field-of-view for rendering.
*
* For views with {@code fovMutable} set to {@code XR_TRUE} the maximum field-of-view should specify the upper limit that runtime can support. If the view has {@code fovMutable} set to {@code XR_FALSE} the runtime must set {@code maxMutableFov} to be the same as {@code recommendedFov}.
- */
-public final class EPICViewConfigurationFov {
-
- /** The extension specification version. */
- public static final int XR_EPIC_view_configuration_fov_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_EPIC_VIEW_CONFIGURATION_FOV_EXTENSION_NAME = "XR_EPIC_view_configuration_fov";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC = 1000059000;
+ */
+public final class EPICViewConfigurationFov {
+
+ /** The extension specification version. */
+ public static final int XR_EPIC_view_configuration_fov_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_EPIC_VIEW_CONFIGURATION_FOV_EXTENSION_NAME = "XR_EPIC_view_configuration_fov";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC = 1000059000;
- private EPICViewConfigurationFov() {}
+ private EPICViewConfigurationFov() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTActiveActionSetPriority.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTActiveActionSetPriority.java
index 1a7505a8af..38dd7fbb5b 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTActiveActionSetPriority.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTActiveActionSetPriority.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_EXT_active_action_set_priority extension.
*
@@ -13,18 +13,18 @@
* Given that most runtimes do not actually require this number to be immutable this extension adds the ability to provide a different priority number for every {@link XrActiveActionSet} provided to {@link XR10#xrSyncActions SyncActions}.
*
* When updating the action state with {@link XR10#xrSyncActions SyncActions}, the application can provide a pointer to an {@link XrActiveActionSetPrioritiesEXT} structure in the {@code next} chain of {@link XrActionsSyncInfo}. This structure contains an array of {@link XrActiveActionSetPriorityEXT} structures mapping active action sets to their priority numbers.
- */
-public final class EXTActiveActionSetPriority {
-
- /** The extension specification version. */
- public static final int XR_EXT_active_action_set_priority_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_EXT_ACTIVE_ACTION_SET_PRIORITY_EXTENSION_NAME = "XR_EXT_active_action_set_priority";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT = 1000373000;
+ */
+public final class EXTActiveActionSetPriority {
+
+ /** The extension specification version. */
+ public static final int XR_EXT_active_action_set_priority_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_EXT_ACTIVE_ACTION_SET_PRIORITY_EXTENSION_NAME = "XR_EXT_active_action_set_priority";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT = 1000373000;
- private EXTActiveActionSetPriority() {}
+ private EXTActiveActionSetPriority() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTConformanceAutomation.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTConformanceAutomation.java
index 53ee50de57..c919ceab85 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTConformanceAutomation.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTConformanceAutomation.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-import org.lwjgl.system.*;
-import org.lwjgl.system.libffi.*;
-
-import static org.lwjgl.system.APIUtil.*;
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.libffi.LibFFI.*;
-import static org.lwjgl.system.MemoryStack.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+import org.lwjgl.system.libffi.*;
+
+import static org.lwjgl.system.APIUtil.*;
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.libffi.LibFFI.*;
+import static org.lwjgl.system.MemoryStack.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_EXT_conformance_automation extension.
*
@@ -35,21 +35,21 @@
* This extension is not intended for use by non-conformance-test applications. A runtime may require a runtime-specified configuration such as a "developer mode" to be enabled before reporting support for this extension or providing a non-stub implementation of it.
*
* Do not use this functionality in a non-conformance-test application!
- */
-public class EXTConformanceAutomation {
-
- /** The extension specification version. */
- public static final int XR_EXT_conformance_automation_SPEC_VERSION = 3;
-
- /** The extension name. */
- public static final String XR_EXT_CONFORMANCE_AUTOMATION_EXTENSION_NAME = "XR_EXT_conformance_automation";
+ */
+public class EXTConformanceAutomation {
+
+ /** The extension specification version. */
+ public static final int XR_EXT_conformance_automation_SPEC_VERSION = 3;
+
+ /** The extension name. */
+ public static final String XR_EXT_CONFORMANCE_AUTOMATION_EXTENSION_NAME = "XR_EXT_conformance_automation";
protected EXTConformanceAutomation() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrSetInputDeviceActiveEXT ] ---
- // --- [ xrSetInputDeviceActiveEXT ] ---
-
/**
* Sets the active state of the input device.
*
@@ -100,18 +100,18 @@ protected EXTConformanceAutomation() {
* @param interactionProfile the path representing the interaction profile of the input device (e.g. pathname:/interaction_profiles/khr/simple_controller).
* @param topLevelPath the path representing the input device (e.g. pathname:/user/hand/left).
* @param isActive the requested activation state of the input device.
- */
- @NativeType("XrResult")
- public static int xrSetInputDeviceActiveEXT(XrSession session, @NativeType("XrPath") long interactionProfile, @NativeType("XrPath") long topLevelPath, @NativeType("XrBool32") boolean isActive) {
- long __functionAddress = session.getCapabilities().xrSetInputDeviceActiveEXT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJJI(session.address(), interactionProfile, topLevelPath, isActive ? 1 : 0, __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSetInputDeviceActiveEXT(XrSession session, @NativeType("XrPath") long interactionProfile, @NativeType("XrPath") long topLevelPath, @NativeType("XrBool32") boolean isActive) {
+ long __functionAddress = session.getCapabilities().xrSetInputDeviceActiveEXT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJJI(session.address(), interactionProfile, topLevelPath, isActive ? 1 : 0, __functionAddress);
+ }
+
+ // --- [ xrSetInputDeviceStateBoolEXT ] ---
- // --- [ xrSetInputDeviceStateBoolEXT ] ---
-
/**
* Sets the state of a boolean input source on the input device.
*
@@ -163,18 +163,18 @@ public static int xrSetInputDeviceActiveEXT(XrSession session, @NativeType("XrPa
* @param topLevelPath the path representing the input device (e.g. pathname:/user/hand/left).
* @param inputSourcePath the full path of the input component for which we wish to set the state for (e.g. pathname:/user/hand/left/input/select/click).
* @param state the requested boolean state of the input device.
- */
- @NativeType("XrResult")
- public static int xrSetInputDeviceStateBoolEXT(XrSession session, @NativeType("XrPath") long topLevelPath, @NativeType("XrPath") long inputSourcePath, @NativeType("XrBool32") boolean state) {
- long __functionAddress = session.getCapabilities().xrSetInputDeviceStateBoolEXT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJJI(session.address(), topLevelPath, inputSourcePath, state ? 1 : 0, __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSetInputDeviceStateBoolEXT(XrSession session, @NativeType("XrPath") long topLevelPath, @NativeType("XrPath") long inputSourcePath, @NativeType("XrBool32") boolean state) {
+ long __functionAddress = session.getCapabilities().xrSetInputDeviceStateBoolEXT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJJI(session.address(), topLevelPath, inputSourcePath, state ? 1 : 0, __functionAddress);
+ }
+
+ // --- [ xrSetInputDeviceStateFloatEXT ] ---
- // --- [ xrSetInputDeviceStateFloatEXT ] ---
-
/**
* Sets the state of a float input source on the input device.
*
@@ -226,29 +226,29 @@ public static int xrSetInputDeviceStateBoolEXT(XrSession session, @NativeType("X
* @param topLevelPath the path representing the input device (e.g. pathname:/user/hand/left).
* @param inputSourcePath the full path of the input component for which we wish to set the state for (e.g. pathname:/user/hand/left/input/trigger/value).
* @param state the requested float state of the input device.
- */
- @NativeType("XrResult")
- public static int xrSetInputDeviceStateFloatEXT(XrSession session, @NativeType("XrPath") long topLevelPath, @NativeType("XrPath") long inputSourcePath, float state) {
- long __functionAddress = session.getCapabilities().xrSetInputDeviceStateFloatEXT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJJI(session.address(), topLevelPath, inputSourcePath, state, __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSetInputDeviceStateFloatEXT(XrSession session, @NativeType("XrPath") long topLevelPath, @NativeType("XrPath") long inputSourcePath, float state) {
+ long __functionAddress = session.getCapabilities().xrSetInputDeviceStateFloatEXT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJJI(session.address(), topLevelPath, inputSourcePath, state, __functionAddress);
+ }
- // --- [ xrSetInputDeviceStateVector2fEXT ] ---
+ // --- [ xrSetInputDeviceStateVector2fEXT ] ---
private static final FFICIF xrSetInputDeviceStateVector2fEXTCIF = apiCreateCIF(
apiStdcall(), ffi_type_uint32,
ffi_type_pointer, ffi_type_uint64, ffi_type_uint64, apiCreateStruct(ffi_type_float, ffi_type_float)
- );
-
- /** Unsafe version of: {@link #xrSetInputDeviceStateVector2fEXT SetInputDeviceStateVector2fEXT} */
- public static int nxrSetInputDeviceStateVector2fEXT(XrSession session, long topLevelPath, long inputSourcePath, long state) {
- long __functionAddress = session.getCapabilities().xrSetInputDeviceStateVector2fEXT;
- if (CHECKS) {
- check(__functionAddress);
- }
+ );
+
+ /** Unsafe version of: {@link #xrSetInputDeviceStateVector2fEXT SetInputDeviceStateVector2fEXT} */
+ public static int nxrSetInputDeviceStateVector2fEXT(XrSession session, long topLevelPath, long inputSourcePath, long state) {
+ long __functionAddress = session.getCapabilities().xrSetInputDeviceStateVector2fEXT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
long __result = stack.nint(0);
@@ -263,9 +263,9 @@ public static int nxrSetInputDeviceStateVector2fEXT(XrSession session, long topL
return memGetInt(__result);
} finally {
stack.setPointer(stackPointer);
- }
- }
-
+ }
+ }
+
/**
* Sets the state of a 2D vector input source on the input device.
*
@@ -321,25 +321,25 @@ public static int nxrSetInputDeviceStateVector2fEXT(XrSession session, long topL
* @param topLevelPath the path representing the input device (e.g. pathname:/user/hand/left).
* @param inputSourcePath the full path of the input component for which we wish to set the state for (e.g. pathname:/user/hand/left/input/thumbstick).
* @param state the requested two-dimensional state of the input device.
- */
- @NativeType("XrResult")
- public static int xrSetInputDeviceStateVector2fEXT(XrSession session, @NativeType("XrPath") long topLevelPath, @NativeType("XrPath") long inputSourcePath, XrVector2f state) {
- return nxrSetInputDeviceStateVector2fEXT(session, topLevelPath, inputSourcePath, state.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSetInputDeviceStateVector2fEXT(XrSession session, @NativeType("XrPath") long topLevelPath, @NativeType("XrPath") long inputSourcePath, XrVector2f state) {
+ return nxrSetInputDeviceStateVector2fEXT(session, topLevelPath, inputSourcePath, state.address());
+ }
- // --- [ xrSetInputDeviceLocationEXT ] ---
+ // --- [ xrSetInputDeviceLocationEXT ] ---
private static final FFICIF xrSetInputDeviceLocationEXTCIF = apiCreateCIF(
apiStdcall(), ffi_type_uint32,
ffi_type_pointer, ffi_type_uint64, ffi_type_uint64, ffi_type_pointer, apiCreateStruct(apiCreateStruct(ffi_type_float, ffi_type_float, ffi_type_float, ffi_type_float), apiCreateStruct(ffi_type_float, ffi_type_float, ffi_type_float))
- );
-
- /** Unsafe version of: {@link #xrSetInputDeviceLocationEXT SetInputDeviceLocationEXT} */
- public static int nxrSetInputDeviceLocationEXT(XrSession session, long topLevelPath, long inputSourcePath, XrSpace space, long pose) {
- long __functionAddress = session.getCapabilities().xrSetInputDeviceLocationEXT;
- if (CHECKS) {
- check(__functionAddress);
- }
+ );
+
+ /** Unsafe version of: {@link #xrSetInputDeviceLocationEXT SetInputDeviceLocationEXT} */
+ public static int nxrSetInputDeviceLocationEXT(XrSession session, long topLevelPath, long inputSourcePath, XrSpace space, long pose) {
+ long __functionAddress = session.getCapabilities().xrSetInputDeviceLocationEXT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
long __result = stack.nint(0);
@@ -355,9 +355,9 @@ public static int nxrSetInputDeviceLocationEXT(XrSession session, long topLevelP
return memGetInt(__result);
} finally {
stack.setPointer(stackPointer);
- }
- }
-
+ }
+ }
+
/**
* Sets the effective location of a pose input source on the input device.
*
@@ -417,10 +417,10 @@ public static int nxrSetInputDeviceLocationEXT(XrSession session, long topLevelP
* @param topLevelPath the path representing the input device (e.g. pathname:/user/hand/left).
* @param inputSourcePath the full path of the input component for which we wish to set the pose for (e.g. pathname:/user/hand/left/input/grip/pose).
* @param pose the requested pose state of the input device.
- */
- @NativeType("XrResult")
- public static int xrSetInputDeviceLocationEXT(XrSession session, @NativeType("XrPath") long topLevelPath, @NativeType("XrPath") long inputSourcePath, XrSpace space, XrPosef pose) {
- return nxrSetInputDeviceLocationEXT(session, topLevelPath, inputSourcePath, space, pose.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSetInputDeviceLocationEXT(XrSession session, @NativeType("XrPath") long topLevelPath, @NativeType("XrPath") long inputSourcePath, XrSpace space, XrPosef pose) {
+ return nxrSetInputDeviceLocationEXT(session, topLevelPath, inputSourcePath, space, pose.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTDebugUtils.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTDebugUtils.java
index cf31aca15b..eff131529a 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTDebugUtils.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTDebugUtils.java
@@ -4,15 +4,15 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_EXT_debug_utils extension.
*
@@ -24,15 +24,15 @@
* The ability to create a debug messenger which will pass along debug messages to an application supplied callback.
* The ability to identify specific OpenXR handles using a name to improve tracking.
*
- */
-public class EXTDebugUtils {
-
- /** The extension specification version. */
- public static final int XR_EXT_debug_utils_SPEC_VERSION = 4;
-
- /** The extension name. */
- public static final String XR_EXT_DEBUG_UTILS_EXTENSION_NAME = "XR_EXT_debug_utils";
-
+ */
+public class EXTDebugUtils {
+
+ /** The extension specification version. */
+ public static final int XR_EXT_debug_utils_SPEC_VERSION = 4;
+
+ /** The extension name. */
+ public static final String XR_EXT_DEBUG_UTILS_EXTENSION_NAME = "XR_EXT_debug_utils";
+
/**
* Extends {@code XrStructureType}.
*
@@ -44,16 +44,16 @@ public class EXTDebugUtils {
* {@link #XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT}
* {@link #XR_TYPE_DEBUG_UTILS_LABEL_EXT TYPE_DEBUG_UTILS_LABEL_EXT}
*
- */
+ */
public static final int
- XR_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT = 1000019000,
- XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT = 1000019001,
- XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT = 1000019002,
- XR_TYPE_DEBUG_UTILS_LABEL_EXT = 1000019003;
-
- /** Extends {@code XrObjectType}. */
- public static final int XR_OBJECT_TYPE_DEBUG_UTILS_MESSENGER_EXT = 1000019000;
-
+ XR_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT = 1000019000,
+ XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT = 1000019001,
+ XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT = 1000019002,
+ XR_TYPE_DEBUG_UTILS_LABEL_EXT = 1000019003;
+
+ /** Extends {@code XrObjectType}. */
+ public static final int XR_OBJECT_TYPE_DEBUG_UTILS_MESSENGER_EXT = 1000019000;
+
/**
* XrDebugUtilsMessageSeverityFlagBitsEXT - XrDebugUtilsMessageSeverityFlagBitsEXT
*
@@ -65,13 +65,13 @@ public class EXTDebugUtils {
* {@link #XR_DEBUG_UTILS_MESSAGE_SEVERITY_WARNING_BIT_EXT DEBUG_UTILS_MESSAGE_SEVERITY_WARNING_BIT_EXT}
* {@link #XR_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT}
*
- */
+ */
public static final int
- XR_DEBUG_UTILS_MESSAGE_SEVERITY_VERBOSE_BIT_EXT = 0x1,
- XR_DEBUG_UTILS_MESSAGE_SEVERITY_INFO_BIT_EXT = 0x10,
- XR_DEBUG_UTILS_MESSAGE_SEVERITY_WARNING_BIT_EXT = 0x100,
- XR_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT = 0x1000;
-
+ XR_DEBUG_UTILS_MESSAGE_SEVERITY_VERBOSE_BIT_EXT = 0x1,
+ XR_DEBUG_UTILS_MESSAGE_SEVERITY_INFO_BIT_EXT = 0x10,
+ XR_DEBUG_UTILS_MESSAGE_SEVERITY_WARNING_BIT_EXT = 0x100,
+ XR_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT = 0x1000;
+
/**
* XrDebugUtilsMessageTypeFlagBitsEXT - XrDebugUtilsMessageTypeFlagBitsEXT
*
@@ -83,28 +83,28 @@ public class EXTDebugUtils {
* {@link #XR_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT}
* {@link #XR_DEBUG_UTILS_MESSAGE_TYPE_CONFORMANCE_BIT_EXT DEBUG_UTILS_MESSAGE_TYPE_CONFORMANCE_BIT_EXT}
*
- */
+ */
public static final int
- XR_DEBUG_UTILS_MESSAGE_TYPE_GENERAL_BIT_EXT = 0x1,
- XR_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT = 0x2,
- XR_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT = 0x4,
- XR_DEBUG_UTILS_MESSAGE_TYPE_CONFORMANCE_BIT_EXT = 0x8;
+ XR_DEBUG_UTILS_MESSAGE_TYPE_GENERAL_BIT_EXT = 0x1,
+ XR_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT = 0x2,
+ XR_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT = 0x4,
+ XR_DEBUG_UTILS_MESSAGE_TYPE_CONFORMANCE_BIT_EXT = 0x8;
protected EXTDebugUtils() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrSetDebugUtilsObjectNameEXT ] ---
+
+ /** Unsafe version of: {@link #xrSetDebugUtilsObjectNameEXT SetDebugUtilsObjectNameEXT} */
+ public static int nxrSetDebugUtilsObjectNameEXT(XrInstance instance, long nameInfo) {
+ long __functionAddress = instance.getCapabilities().xrSetDebugUtilsObjectNameEXT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(instance.address(), nameInfo, __functionAddress);
+ }
- // --- [ xrSetDebugUtilsObjectNameEXT ] ---
-
- /** Unsafe version of: {@link #xrSetDebugUtilsObjectNameEXT SetDebugUtilsObjectNameEXT} */
- public static int nxrSetDebugUtilsObjectNameEXT(XrInstance instance, long nameInfo) {
- long __functionAddress = instance.getCapabilities().xrSetDebugUtilsObjectNameEXT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(instance.address(), nameInfo, __functionAddress);
- }
-
/**
* Sets debug utils object name.
*
@@ -162,24 +162,24 @@ public static int nxrSetDebugUtilsObjectNameEXT(XrInstance instance, long nameIn
*
* @param instance the {@code XrInstance} that the object was created under.
* @param nameInfo a pointer to an instance of the {@link XrDebugUtilsObjectNameInfoEXT} structure specifying the parameters of the name to set on the object.
- */
- @NativeType("XrResult")
- public static int xrSetDebugUtilsObjectNameEXT(XrInstance instance, @NativeType("XrDebugUtilsObjectNameInfoEXT const *") XrDebugUtilsObjectNameInfoEXT nameInfo) {
- return nxrSetDebugUtilsObjectNameEXT(instance, nameInfo.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSetDebugUtilsObjectNameEXT(XrInstance instance, @NativeType("XrDebugUtilsObjectNameInfoEXT const *") XrDebugUtilsObjectNameInfoEXT nameInfo) {
+ return nxrSetDebugUtilsObjectNameEXT(instance, nameInfo.address());
+ }
+
+ // --- [ xrCreateDebugUtilsMessengerEXT ] ---
+
+ /** Unsafe version of: {@link #xrCreateDebugUtilsMessengerEXT CreateDebugUtilsMessengerEXT} */
+ public static int nxrCreateDebugUtilsMessengerEXT(XrInstance instance, long createInfo, long messenger) {
+ long __functionAddress = instance.getCapabilities().xrCreateDebugUtilsMessengerEXT;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrDebugUtilsMessengerCreateInfoEXT.validate(createInfo);
+ }
+ return callPPPI(instance.address(), createInfo, messenger, __functionAddress);
+ }
- // --- [ xrCreateDebugUtilsMessengerEXT ] ---
-
- /** Unsafe version of: {@link #xrCreateDebugUtilsMessengerEXT CreateDebugUtilsMessengerEXT} */
- public static int nxrCreateDebugUtilsMessengerEXT(XrInstance instance, long createInfo, long messenger) {
- long __functionAddress = instance.getCapabilities().xrCreateDebugUtilsMessengerEXT;
- if (CHECKS) {
- check(__functionAddress);
- XrDebugUtilsMessengerCreateInfoEXT.validate(createInfo);
- }
- return callPPPI(instance.address(), createInfo, messenger, __functionAddress);
- }
-
/**
* Creates a debug messenger.
*
@@ -236,17 +236,17 @@ public static int nxrCreateDebugUtilsMessengerEXT(XrInstance instance, long crea
* @param instance the instance the messenger will be used with.
* @param createInfo points to an {@link XrDebugUtilsMessengerCreateInfoEXT} structure, which contains the callback pointer as well as defines the conditions under which this messenger will trigger the callback.
* @param messenger a pointer to which the created {@code XrDebugUtilsMessengerEXT} object is returned.
- */
- @NativeType("XrResult")
- public static int xrCreateDebugUtilsMessengerEXT(XrInstance instance, @NativeType("XrDebugUtilsMessengerCreateInfoEXT const *") XrDebugUtilsMessengerCreateInfoEXT createInfo, @NativeType("XrDebugUtilsMessengerEXT *") PointerBuffer messenger) {
- if (CHECKS) {
- check(messenger, 1);
- }
- return nxrCreateDebugUtilsMessengerEXT(instance, createInfo.address(), memAddress(messenger));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrCreateDebugUtilsMessengerEXT(XrInstance instance, @NativeType("XrDebugUtilsMessengerCreateInfoEXT const *") XrDebugUtilsMessengerCreateInfoEXT createInfo, @NativeType("XrDebugUtilsMessengerEXT *") PointerBuffer messenger) {
+ if (CHECKS) {
+ check(messenger, 1);
+ }
+ return nxrCreateDebugUtilsMessengerEXT(instance, createInfo.address(), memAddress(messenger));
+ }
+
+ // --- [ xrDestroyDebugUtilsMessengerEXT ] ---
- // --- [ xrDestroyDebugUtilsMessengerEXT ] ---
-
/**
* Destroys a debug messenger.
*
@@ -291,28 +291,28 @@ public static int xrCreateDebugUtilsMessengerEXT(XrInstance instance, @NativeTyp
* {@link #xrCreateDebugUtilsMessengerEXT CreateDebugUtilsMessengerEXT}
*
* @param messenger the {@code XrDebugUtilsMessengerEXT} object to destroy. {@code messenger} is an externally synchronized object and must not be used on more than one thread at a time. This means that {@link #xrDestroyDebugUtilsMessengerEXT DestroyDebugUtilsMessengerEXT} must not be called when a callback is active.
- */
- @NativeType("XrResult")
- public static int xrDestroyDebugUtilsMessengerEXT(XrDebugUtilsMessengerEXT messenger) {
- long __functionAddress = messenger.getCapabilities().xrDestroyDebugUtilsMessengerEXT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(messenger.address(), __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrDestroyDebugUtilsMessengerEXT(XrDebugUtilsMessengerEXT messenger) {
+ long __functionAddress = messenger.getCapabilities().xrDestroyDebugUtilsMessengerEXT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(messenger.address(), __functionAddress);
+ }
+
+ // --- [ xrSubmitDebugUtilsMessageEXT ] ---
+
+ /** Unsafe version of: {@link #xrSubmitDebugUtilsMessageEXT SubmitDebugUtilsMessageEXT} */
+ public static int nxrSubmitDebugUtilsMessageEXT(XrInstance instance, long messageSeverity, long messageTypes, long callbackData) {
+ long __functionAddress = instance.getCapabilities().xrSubmitDebugUtilsMessageEXT;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrDebugUtilsMessengerCallbackDataEXT.validate(callbackData);
+ }
+ return callPJJPI(instance.address(), messageSeverity, messageTypes, callbackData, __functionAddress);
+ }
- // --- [ xrSubmitDebugUtilsMessageEXT ] ---
-
- /** Unsafe version of: {@link #xrSubmitDebugUtilsMessageEXT SubmitDebugUtilsMessageEXT} */
- public static int nxrSubmitDebugUtilsMessageEXT(XrInstance instance, long messageSeverity, long messageTypes, long callbackData) {
- long __functionAddress = instance.getCapabilities().xrSubmitDebugUtilsMessageEXT;
- if (CHECKS) {
- check(__functionAddress);
- XrDebugUtilsMessengerCallbackDataEXT.validate(callbackData);
- }
- return callPJJPI(instance.address(), messageSeverity, messageTypes, callbackData, __functionAddress);
- }
-
/**
* Submits debug utils message.
*
@@ -372,24 +372,24 @@ public static int nxrSubmitDebugUtilsMessageEXT(XrInstance instance, long messag
* @param messageSeverity a single bit value of {@code XrDebugUtilsMessageSeverityFlagsEXT} severity of this event/message.
* @param messageTypes an {@code XrDebugUtilsMessageTypeFlagsEXT} bitmask of {@code XrDebugUtilsMessageTypeFlagBitsEXT} specifying which types of event to identify this message with.
* @param callbackData contains all the callback related data in the {@link XrDebugUtilsMessengerCallbackDataEXT} structure.
- */
- @NativeType("XrResult")
- public static int xrSubmitDebugUtilsMessageEXT(XrInstance instance, @NativeType("XrDebugUtilsMessageSeverityFlagsEXT") long messageSeverity, @NativeType("XrDebugUtilsMessageTypeFlagsEXT") long messageTypes, @NativeType("XrDebugUtilsMessengerCallbackDataEXT const *") XrDebugUtilsMessengerCallbackDataEXT callbackData) {
- return nxrSubmitDebugUtilsMessageEXT(instance, messageSeverity, messageTypes, callbackData.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSubmitDebugUtilsMessageEXT(XrInstance instance, @NativeType("XrDebugUtilsMessageSeverityFlagsEXT") long messageSeverity, @NativeType("XrDebugUtilsMessageTypeFlagsEXT") long messageTypes, @NativeType("XrDebugUtilsMessengerCallbackDataEXT const *") XrDebugUtilsMessengerCallbackDataEXT callbackData) {
+ return nxrSubmitDebugUtilsMessageEXT(instance, messageSeverity, messageTypes, callbackData.address());
+ }
+
+ // --- [ xrSessionBeginDebugUtilsLabelRegionEXT ] ---
+
+ /** Unsafe version of: {@link #xrSessionBeginDebugUtilsLabelRegionEXT SessionBeginDebugUtilsLabelRegionEXT} */
+ public static int nxrSessionBeginDebugUtilsLabelRegionEXT(XrSession session, long labelInfo) {
+ long __functionAddress = session.getCapabilities().xrSessionBeginDebugUtilsLabelRegionEXT;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrDebugUtilsLabelEXT.validate(labelInfo);
+ }
+ return callPPI(session.address(), labelInfo, __functionAddress);
+ }
- // --- [ xrSessionBeginDebugUtilsLabelRegionEXT ] ---
-
- /** Unsafe version of: {@link #xrSessionBeginDebugUtilsLabelRegionEXT SessionBeginDebugUtilsLabelRegionEXT} */
- public static int nxrSessionBeginDebugUtilsLabelRegionEXT(XrSession session, long labelInfo) {
- long __functionAddress = session.getCapabilities().xrSessionBeginDebugUtilsLabelRegionEXT;
- if (CHECKS) {
- check(__functionAddress);
- XrDebugUtilsLabelEXT.validate(labelInfo);
- }
- return callPPI(session.address(), labelInfo, __functionAddress);
- }
-
/**
* Session begin debug utils label region.
*
@@ -435,14 +435,14 @@ public static int nxrSessionBeginDebugUtilsLabelRegionEXT(XrSession session, lon
*
* @param session the {@code XrSession} that a label region should be associated with.
* @param labelInfo the {@link XrDebugUtilsLabelEXT} containing the label information for the region that should be begun.
- */
- @NativeType("XrResult")
- public static int xrSessionBeginDebugUtilsLabelRegionEXT(XrSession session, @NativeType("XrDebugUtilsLabelEXT const *") XrDebugUtilsLabelEXT labelInfo) {
- return nxrSessionBeginDebugUtilsLabelRegionEXT(session, labelInfo.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSessionBeginDebugUtilsLabelRegionEXT(XrSession session, @NativeType("XrDebugUtilsLabelEXT const *") XrDebugUtilsLabelEXT labelInfo) {
+ return nxrSessionBeginDebugUtilsLabelRegionEXT(session, labelInfo.address());
+ }
+
+ // --- [ xrSessionEndDebugUtilsLabelRegionEXT ] ---
- // --- [ xrSessionEndDebugUtilsLabelRegionEXT ] ---
-
/**
* Session end debug utils label region.
*
@@ -487,28 +487,28 @@ public static int xrSessionBeginDebugUtilsLabelRegionEXT(XrSession session, @Nat
* This function ends the last label region begun with the {@link #xrSessionBeginDebugUtilsLabelRegionEXT SessionBeginDebugUtilsLabelRegionEXT} function within the same {@code session}.
*
* @param session the {@code XrSession} that a label region should be associated with.
- */
- @NativeType("XrResult")
- public static int xrSessionEndDebugUtilsLabelRegionEXT(XrSession session) {
- long __functionAddress = session.getCapabilities().xrSessionEndDebugUtilsLabelRegionEXT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(session.address(), __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSessionEndDebugUtilsLabelRegionEXT(XrSession session) {
+ long __functionAddress = session.getCapabilities().xrSessionEndDebugUtilsLabelRegionEXT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(session.address(), __functionAddress);
+ }
+
+ // --- [ xrSessionInsertDebugUtilsLabelEXT ] ---
+
+ /** Unsafe version of: {@link #xrSessionInsertDebugUtilsLabelEXT SessionInsertDebugUtilsLabelEXT} */
+ public static int nxrSessionInsertDebugUtilsLabelEXT(XrSession session, long labelInfo) {
+ long __functionAddress = session.getCapabilities().xrSessionInsertDebugUtilsLabelEXT;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrDebugUtilsLabelEXT.validate(labelInfo);
+ }
+ return callPPI(session.address(), labelInfo, __functionAddress);
+ }
- // --- [ xrSessionInsertDebugUtilsLabelEXT ] ---
-
- /** Unsafe version of: {@link #xrSessionInsertDebugUtilsLabelEXT SessionInsertDebugUtilsLabelEXT} */
- public static int nxrSessionInsertDebugUtilsLabelEXT(XrSession session, long labelInfo) {
- long __functionAddress = session.getCapabilities().xrSessionInsertDebugUtilsLabelEXT;
- if (CHECKS) {
- check(__functionAddress);
- XrDebugUtilsLabelEXT.validate(labelInfo);
- }
- return callPPI(session.address(), labelInfo, __functionAddress);
- }
-
/**
* Session insert debug utils label.
*
@@ -560,10 +560,10 @@ public static int nxrSessionInsertDebugUtilsLabelEXT(XrSession session, long lab
*
* @param session the {@code XrSession} that a label region should be associated with.
* @param labelInfo the {@link XrDebugUtilsLabelEXT} containing the label information for the region that should be begun.
- */
- @NativeType("XrResult")
- public static int xrSessionInsertDebugUtilsLabelEXT(XrSession session, @NativeType("XrDebugUtilsLabelEXT const *") XrDebugUtilsLabelEXT labelInfo) {
- return nxrSessionInsertDebugUtilsLabelEXT(session, labelInfo.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSessionInsertDebugUtilsLabelEXT(XrSession session, @NativeType("XrDebugUtilsLabelEXT const *") XrDebugUtilsLabelEXT labelInfo) {
+ return nxrSessionInsertDebugUtilsLabelEXT(session, labelInfo.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTDpadBinding.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTDpadBinding.java
index 05055e624e..3f2b8135dc 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTDpadBinding.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTDpadBinding.java
@@ -4,25 +4,25 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_EXT_dpad_binding extension.
*
* This extension allows the application to bind one or more digital actions to a trackpad or thumbstick as though it were a dpad by defining additional component paths to suggest bindings for. The behavior of this dpad-like mapping may be customized using {@link XrInteractionProfileDpadBindingEXT}.
*
* Applications must also enable the {@link KHRBindingModification XR_KHR_binding_modification} extension that this builds on top of.
- */
-public final class EXTDpadBinding {
-
- /** The extension specification version. */
- public static final int XR_EXT_dpad_binding_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_EXT_DPAD_BINDING_EXTENSION_NAME = "XR_EXT_dpad_binding";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT = 1000078000;
+ */
+public final class EXTDpadBinding {
+
+ /** The extension specification version. */
+ public static final int XR_EXT_dpad_binding_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_EXT_DPAD_BINDING_EXTENSION_NAME = "XR_EXT_dpad_binding";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT = 1000078000;
- private EXTDpadBinding() {}
+ private EXTDpadBinding() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTEyeGazeInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTEyeGazeInteraction.java
index 7254eea27a..992c99979b 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTEyeGazeInteraction.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTEyeGazeInteraction.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_EXT_eye_gaze_interaction extension.
*
@@ -19,15 +19,15 @@
*
*
* With these building blocks, an application can discover if the XR runtime has access to an eye tracker, bind the eye gaze pose to the action system, determine if the eye tracker is actively tracking the users eye gaze, and use the eye gaze pose as an input signal to build eye gaze interactions.
- */
-public final class EXTEyeGazeInteraction {
-
- /** The extension specification version. */
- public static final int XR_EXT_eye_gaze_interaction_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_EXT_EYE_GAZE_INTERACTION_EXTENSION_NAME = "XR_EXT_eye_gaze_interaction";
-
+ */
+public final class EXTEyeGazeInteraction {
+
+ /** The extension specification version. */
+ public static final int XR_EXT_eye_gaze_interaction_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_EXT_EYE_GAZE_INTERACTION_EXTENSION_NAME = "XR_EXT_eye_gaze_interaction";
+
/**
* Extends {@code XrStructureType}.
*
@@ -37,11 +37,11 @@ public final class EXTEyeGazeInteraction {
* {@link #XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT}
* {@link #XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT TYPE_EYE_GAZE_SAMPLE_TIME_EXT}
*
- */
+ */
public static final int
- XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT = 1000030000,
- XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT = 1000030001;
+ XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT = 1000030000,
+ XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT = 1000030001;
- private EXTEyeGazeInteraction() {}
+ private EXTEyeGazeInteraction() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHPMixedRealityController.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHPMixedRealityController.java
index b25cbd82e7..1be34a0612 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHPMixedRealityController.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHPMixedRealityController.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_EXT_hp_mixed_reality_controller extension.
*
@@ -53,15 +53,15 @@
*
*
*
- */
-public final class EXTHPMixedRealityController {
-
- /** The extension specification version. */
- public static final int XR_EXT_hp_mixed_reality_controller_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_EXT_HP_MIXED_REALITY_CONTROLLER_EXTENSION_NAME = "XR_EXT_hp_mixed_reality_controller";
+ */
+public final class EXTHPMixedRealityController {
+
+ /** The extension specification version. */
+ public static final int XR_EXT_hp_mixed_reality_controller_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_EXT_HP_MIXED_REALITY_CONTROLLER_EXTENSION_NAME = "XR_EXT_hp_mixed_reality_controller";
- private EXTHPMixedRealityController() {}
+ private EXTHPMixedRealityController() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandJointsMotionRange.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandJointsMotionRange.java
index 529df8ffda..2fffe3a5dc 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandJointsMotionRange.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandJointsMotionRange.java
@@ -4,25 +4,25 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_EXT_hand_joints_motion_range extension.
*
* This extension augments the {@link EXTHandTracking XR_EXT_hand_tracking} extension to enable applications to request that the {@link XrHandJointLocationsEXT} returned by {@link EXTHandTracking#xrLocateHandJointsEXT LocateHandJointsEXT} should return hand joint locations conforming to a range of motion specified by the application.
*
* The application must enable the {@link EXTHandTracking XR_EXT_hand_tracking} extension in order to use this extension.
- */
-public final class EXTHandJointsMotionRange {
-
- /** The extension specification version. */
- public static final int XR_EXT_hand_joints_motion_range_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_EXT_HAND_JOINTS_MOTION_RANGE_EXTENSION_NAME = "XR_EXT_hand_joints_motion_range";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_HAND_JOINTS_MOTION_RANGE_INFO_EXT = 1000080000;
-
+ */
+public final class EXTHandJointsMotionRange {
+
+ /** The extension specification version. */
+ public static final int XR_EXT_hand_joints_motion_range_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_EXT_HAND_JOINTS_MOTION_RANGE_EXTENSION_NAME = "XR_EXT_hand_joints_motion_range";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_HAND_JOINTS_MOTION_RANGE_INFO_EXT = 1000080000;
+
/**
* XrHandJointsMotionRangeEXT - Describes the hand animation range of motion.
*
@@ -42,11 +42,11 @@ public final class EXTHandJointsMotionRange {
* See Also
*
* {@link XrHandJointsMotionRangeInfoEXT}, {@link EXTHandTracking#xrLocateHandJointsEXT LocateHandJointsEXT}
- */
+ */
public static final int
- XR_HAND_JOINTS_MOTION_RANGE_UNOBSTRUCTED_EXT = 1,
- XR_HAND_JOINTS_MOTION_RANGE_CONFORMING_TO_CONTROLLER_EXT = 2;
+ XR_HAND_JOINTS_MOTION_RANGE_UNOBSTRUCTED_EXT = 1,
+ XR_HAND_JOINTS_MOTION_RANGE_CONFORMING_TO_CONTROLLER_EXT = 2;
- private EXTHandJointsMotionRange() {}
+ private EXTHandJointsMotionRange() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandTracking.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandTracking.java
index fb73e12ae3..2915e0867e 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandTracking.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandTracking.java
@@ -4,31 +4,31 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_EXT_hand_tracking extension.
*
* This extension enables applications to locate the individual joints of hand tracking inputs. It enables applications to render hands in XR experiences and interact with virtual objects using hand joints.
- */
-public class EXTHandTracking {
-
- /** The extension specification version. */
- public static final int XR_EXT_hand_tracking_SPEC_VERSION = 4;
-
- /** The extension name. */
- public static final String XR_EXT_HAND_TRACKING_EXTENSION_NAME = "XR_EXT_hand_tracking";
-
- /** Extends {@code XrObjectType}. */
- public static final int XR_OBJECT_TYPE_HAND_TRACKER_EXT = 1000051000;
-
+ */
+public class EXTHandTracking {
+
+ /** The extension specification version. */
+ public static final int XR_EXT_hand_tracking_SPEC_VERSION = 4;
+
+ /** The extension name. */
+ public static final String XR_EXT_HAND_TRACKING_EXTENSION_NAME = "XR_EXT_hand_tracking";
+
+ /** Extends {@code XrObjectType}. */
+ public static final int XR_OBJECT_TYPE_HAND_TRACKER_EXT = 1000051000;
+
/**
* Extends {@code XrStructureType}.
*
@@ -41,14 +41,14 @@ public class EXTHandTracking {
* {@link #XR_TYPE_HAND_JOINT_LOCATIONS_EXT TYPE_HAND_JOINT_LOCATIONS_EXT}
* {@link #XR_TYPE_HAND_JOINT_VELOCITIES_EXT TYPE_HAND_JOINT_VELOCITIES_EXT}
*
- */
+ */
public static final int
- XR_TYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXT = 1000051000,
- XR_TYPE_HAND_TRACKER_CREATE_INFO_EXT = 1000051001,
- XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT = 1000051002,
- XR_TYPE_HAND_JOINT_LOCATIONS_EXT = 1000051003,
- XR_TYPE_HAND_JOINT_VELOCITIES_EXT = 1000051004;
-
+ XR_TYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXT = 1000051000,
+ XR_TYPE_HAND_TRACKER_CREATE_INFO_EXT = 1000051001,
+ XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT = 1000051002,
+ XR_TYPE_HAND_JOINT_LOCATIONS_EXT = 1000051003,
+ XR_TYPE_HAND_JOINT_VELOCITIES_EXT = 1000051004;
+
/**
* XrHandEXT - Describes which hand the tracker is tracking.
*
@@ -62,11 +62,11 @@ public class EXTHandTracking {
* See Also
*
* {@link XrHandTrackerCreateInfoEXT}
- */
+ */
public static final int
- XR_HAND_LEFT_EXT = 1,
- XR_HAND_RIGHT_EXT = 2;
-
+ XR_HAND_LEFT_EXT = 1,
+ XR_HAND_RIGHT_EXT = 2;
+
/**
* XrHandJointEXT - The name of hand joints that can be tracked
*
@@ -104,35 +104,35 @@ public class EXTHandTracking {
* {@link #XR_HAND_JOINT_LITTLE_DISTAL_EXT HAND_JOINT_LITTLE_DISTAL_EXT}
* {@link #XR_HAND_JOINT_LITTLE_TIP_EXT HAND_JOINT_LITTLE_TIP_EXT}
*
- */
+ */
public static final int
- XR_HAND_JOINT_PALM_EXT = 0,
- XR_HAND_JOINT_WRIST_EXT = 1,
- XR_HAND_JOINT_THUMB_METACARPAL_EXT = 2,
- XR_HAND_JOINT_THUMB_PROXIMAL_EXT = 3,
- XR_HAND_JOINT_THUMB_DISTAL_EXT = 4,
- XR_HAND_JOINT_THUMB_TIP_EXT = 5,
- XR_HAND_JOINT_INDEX_METACARPAL_EXT = 6,
- XR_HAND_JOINT_INDEX_PROXIMAL_EXT = 7,
- XR_HAND_JOINT_INDEX_INTERMEDIATE_EXT = 8,
- XR_HAND_JOINT_INDEX_DISTAL_EXT = 9,
- XR_HAND_JOINT_INDEX_TIP_EXT = 10,
- XR_HAND_JOINT_MIDDLE_METACARPAL_EXT = 11,
- XR_HAND_JOINT_MIDDLE_PROXIMAL_EXT = 12,
- XR_HAND_JOINT_MIDDLE_INTERMEDIATE_EXT = 13,
- XR_HAND_JOINT_MIDDLE_DISTAL_EXT = 14,
- XR_HAND_JOINT_MIDDLE_TIP_EXT = 15,
- XR_HAND_JOINT_RING_METACARPAL_EXT = 16,
- XR_HAND_JOINT_RING_PROXIMAL_EXT = 17,
- XR_HAND_JOINT_RING_INTERMEDIATE_EXT = 18,
- XR_HAND_JOINT_RING_DISTAL_EXT = 19,
- XR_HAND_JOINT_RING_TIP_EXT = 20,
- XR_HAND_JOINT_LITTLE_METACARPAL_EXT = 21,
- XR_HAND_JOINT_LITTLE_PROXIMAL_EXT = 22,
- XR_HAND_JOINT_LITTLE_INTERMEDIATE_EXT = 23,
- XR_HAND_JOINT_LITTLE_DISTAL_EXT = 24,
- XR_HAND_JOINT_LITTLE_TIP_EXT = 25;
-
+ XR_HAND_JOINT_PALM_EXT = 0,
+ XR_HAND_JOINT_WRIST_EXT = 1,
+ XR_HAND_JOINT_THUMB_METACARPAL_EXT = 2,
+ XR_HAND_JOINT_THUMB_PROXIMAL_EXT = 3,
+ XR_HAND_JOINT_THUMB_DISTAL_EXT = 4,
+ XR_HAND_JOINT_THUMB_TIP_EXT = 5,
+ XR_HAND_JOINT_INDEX_METACARPAL_EXT = 6,
+ XR_HAND_JOINT_INDEX_PROXIMAL_EXT = 7,
+ XR_HAND_JOINT_INDEX_INTERMEDIATE_EXT = 8,
+ XR_HAND_JOINT_INDEX_DISTAL_EXT = 9,
+ XR_HAND_JOINT_INDEX_TIP_EXT = 10,
+ XR_HAND_JOINT_MIDDLE_METACARPAL_EXT = 11,
+ XR_HAND_JOINT_MIDDLE_PROXIMAL_EXT = 12,
+ XR_HAND_JOINT_MIDDLE_INTERMEDIATE_EXT = 13,
+ XR_HAND_JOINT_MIDDLE_DISTAL_EXT = 14,
+ XR_HAND_JOINT_MIDDLE_TIP_EXT = 15,
+ XR_HAND_JOINT_RING_METACARPAL_EXT = 16,
+ XR_HAND_JOINT_RING_PROXIMAL_EXT = 17,
+ XR_HAND_JOINT_RING_INTERMEDIATE_EXT = 18,
+ XR_HAND_JOINT_RING_DISTAL_EXT = 19,
+ XR_HAND_JOINT_RING_TIP_EXT = 20,
+ XR_HAND_JOINT_LITTLE_METACARPAL_EXT = 21,
+ XR_HAND_JOINT_LITTLE_PROXIMAL_EXT = 22,
+ XR_HAND_JOINT_LITTLE_INTERMEDIATE_EXT = 23,
+ XR_HAND_JOINT_LITTLE_DISTAL_EXT = 24,
+ XR_HAND_JOINT_LITTLE_TIP_EXT = 25;
+
/**
* XrHandJointSetEXT - The set of hand joints to track.
*
@@ -145,27 +145,27 @@ public class EXTHandTracking {
* See Also
*
* {@link XrHandTrackerCreateInfoEXT}
- */
- public static final int XR_HAND_JOINT_SET_DEFAULT_EXT = 0;
-
- /** API Constants */
- public static final int XR_HAND_JOINT_COUNT_EXT = 26;
+ */
+ public static final int XR_HAND_JOINT_SET_DEFAULT_EXT = 0;
+
+ /** API Constants */
+ public static final int XR_HAND_JOINT_COUNT_EXT = 26;
protected EXTHandTracking() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrCreateHandTrackerEXT ] ---
+
+ /** Unsafe version of: {@link #xrCreateHandTrackerEXT CreateHandTrackerEXT} */
+ public static int nxrCreateHandTrackerEXT(XrSession session, long createInfo, long handTracker) {
+ long __functionAddress = session.getCapabilities().xrCreateHandTrackerEXT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), createInfo, handTracker, __functionAddress);
+ }
- // --- [ xrCreateHandTrackerEXT ] ---
-
- /** Unsafe version of: {@link #xrCreateHandTrackerEXT CreateHandTrackerEXT} */
- public static int nxrCreateHandTrackerEXT(XrSession session, long createInfo, long handTracker) {
- long __functionAddress = session.getCapabilities().xrCreateHandTrackerEXT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), createInfo, handTracker, __functionAddress);
- }
-
/**
* Create a hand joints handle.
*
@@ -219,17 +219,17 @@ public static int nxrCreateHandTrackerEXT(XrSession session, long createInfo, lo
* @param session an {@code XrSession} in which the hand tracker will be active.
* @param createInfo the {@link XrHandTrackerCreateInfoEXT} used to specify the hand tracker.
* @param handTracker the returned {@code XrHandTrackerEXT} handle.
- */
- @NativeType("XrResult")
- public static int xrCreateHandTrackerEXT(XrSession session, @NativeType("XrHandTrackerCreateInfoEXT const *") XrHandTrackerCreateInfoEXT createInfo, @NativeType("XrHandTrackerEXT *") PointerBuffer handTracker) {
- if (CHECKS) {
- check(handTracker, 1);
- }
- return nxrCreateHandTrackerEXT(session, createInfo.address(), memAddress(handTracker));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrCreateHandTrackerEXT(XrSession session, @NativeType("XrHandTrackerCreateInfoEXT const *") XrHandTrackerCreateInfoEXT createInfo, @NativeType("XrHandTrackerEXT *") PointerBuffer handTracker) {
+ if (CHECKS) {
+ check(handTracker, 1);
+ }
+ return nxrCreateHandTrackerEXT(session, createInfo.address(), memAddress(handTracker));
+ }
+
+ // --- [ xrDestroyHandTrackerEXT ] ---
- // --- [ xrDestroyHandTrackerEXT ] ---
-
/**
* Destroy a hand joints handle.
*
@@ -269,28 +269,28 @@ public static int xrCreateHandTrackerEXT(XrSession session, @NativeType("XrHandT
*
*
* @param handTracker an {@code XrHandTrackerEXT} previously created by {@link #xrCreateHandTrackerEXT CreateHandTrackerEXT}.
- */
- @NativeType("XrResult")
- public static int xrDestroyHandTrackerEXT(XrHandTrackerEXT handTracker) {
- long __functionAddress = handTracker.getCapabilities().xrDestroyHandTrackerEXT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(handTracker.address(), __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrDestroyHandTrackerEXT(XrHandTrackerEXT handTracker) {
+ long __functionAddress = handTracker.getCapabilities().xrDestroyHandTrackerEXT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(handTracker.address(), __functionAddress);
+ }
+
+ // --- [ xrLocateHandJointsEXT ] ---
+
+ /** Unsafe version of: {@link #xrLocateHandJointsEXT LocateHandJointsEXT} */
+ public static int nxrLocateHandJointsEXT(XrHandTrackerEXT handTracker, long locateInfo, long locations) {
+ long __functionAddress = handTracker.getCapabilities().xrLocateHandJointsEXT;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrHandJointsLocateInfoEXT.validate(locateInfo);
+ }
+ return callPPPI(handTracker.address(), locateInfo, locations, __functionAddress);
+ }
- // --- [ xrLocateHandJointsEXT ] ---
-
- /** Unsafe version of: {@link #xrLocateHandJointsEXT LocateHandJointsEXT} */
- public static int nxrLocateHandJointsEXT(XrHandTrackerEXT handTracker, long locateInfo, long locations) {
- long __functionAddress = handTracker.getCapabilities().xrLocateHandJointsEXT;
- if (CHECKS) {
- check(__functionAddress);
- XrHandJointsLocateInfoEXT.validate(locateInfo);
- }
- return callPPPI(handTracker.address(), locateInfo, locations, __functionAddress);
- }
-
/**
* Locate hand joint locations.
*
@@ -340,10 +340,10 @@ public static int nxrLocateHandJointsEXT(XrHandTrackerEXT handTracker, long loca
* @param handTracker an {@code XrHandTrackerEXT} previously created by {@link #xrCreateHandTrackerEXT CreateHandTrackerEXT}.
* @param locateInfo a pointer to {@link XrHandJointsLocateInfoEXT} describing information to locate hand joints.
* @param locations a pointer to {@link XrHandJointLocationsEXT} receiving the returned hand joint locations.
- */
- @NativeType("XrResult")
- public static int xrLocateHandJointsEXT(XrHandTrackerEXT handTracker, @NativeType("XrHandJointsLocateInfoEXT const *") XrHandJointsLocateInfoEXT locateInfo, @NativeType("XrHandJointLocationsEXT *") XrHandJointLocationsEXT locations) {
- return nxrLocateHandJointsEXT(handTracker, locateInfo.address(), locations.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrLocateHandJointsEXT(XrHandTrackerEXT handTracker, @NativeType("XrHandJointsLocateInfoEXT const *") XrHandJointsLocateInfoEXT locateInfo, @NativeType("XrHandJointLocationsEXT *") XrHandJointLocationsEXT locations) {
+ return nxrLocateHandJointsEXT(handTracker, locateInfo.address(), locations.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTLocalFloor.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTLocalFloor.java
index 0fdad1f281..32b02e7c41 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTLocalFloor.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTLocalFloor.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_EXT_local_floor extension.
*
@@ -13,18 +13,18 @@
* As defined in the core OpenXR spec, {@code LOCAL} space is useful when an application needs to render seated-scale content that is not positioned relative to the physical floor and {@code STAGE} space is useful when an application needs to render standing-scale content that is relative to the physical floor.
*
* The core OpenXR specification describes that standing-scale experiences are meant to use the {@code STAGE} reference space. However, using the {@code STAGE} forces the user to move to the stage space in order to operate their experience, rather than just standing locally where they are.
- */
-public final class EXTLocalFloor {
-
- /** The extension specification version. */
- public static final int XR_EXT_local_floor_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_EXT_LOCAL_FLOOR_EXTENSION_NAME = "XR_EXT_local_floor";
-
- /** Extends {@code XrReferenceSpaceType}. */
- public static final int XR_REFERENCE_SPACE_TYPE_LOCAL_FLOOR_EXT = 1000426000;
+ */
+public final class EXTLocalFloor {
+
+ /** The extension specification version. */
+ public static final int XR_EXT_local_floor_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_EXT_LOCAL_FLOOR_EXTENSION_NAME = "XR_EXT_local_floor";
+
+ /** Extends {@code XrReferenceSpaceType}. */
+ public static final int XR_REFERENCE_SPACE_TYPE_LOCAL_FLOOR_EXT = 1000426000;
- private EXTLocalFloor() {}
+ private EXTLocalFloor() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPalmPose.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPalmPose.java
index 11a4bac535..484e748cb5 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPalmPose.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPalmPose.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_EXT_palm_pose extension.
*
@@ -13,15 +13,15 @@
* The application can use the subpathname:/input/palm_ext/pose component path to place visual content representing the user’s physical hand location. Application visuals may depict, for example, realistic human hands that are very simply animated or creative depictions such as an animal, an alien, or robot limb extremity.
*
* Note that this is not intended to be an alternative to extensions that perform hand tracking for more complex use cases: the use of "palm" in the name is to reflect that it is a user-focused pose rather than a held-object-focused pose.
- */
-public final class EXTPalmPose {
-
- /** The extension specification version. */
- public static final int XR_EXT_palm_pose_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_EXT_PALM_POSE_EXTENSION_NAME = "XR_EXT_palm_pose";
+ */
+public final class EXTPalmPose {
+
+ /** The extension specification version. */
+ public static final int XR_EXT_palm_pose_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_EXT_PALM_POSE_EXTENSION_NAME = "XR_EXT_palm_pose";
- private EXTPalmPose() {}
+ private EXTPalmPose() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPerformanceSettings.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPerformanceSettings.java
index 7afe52f2b6..67bdedc0de 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPerformanceSettings.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPerformanceSettings.java
@@ -4,12 +4,12 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+
/**
* The XR_EXT_performance_settings extension.
*
@@ -23,18 +23,18 @@
* setting performance level hints
* receiving performance related notifications
*
- */
-public class EXTPerformanceSettings {
-
- /** The extension specification version. */
- public static final int XR_EXT_performance_settings_SPEC_VERSION = 4;
-
- /** The extension name. */
- public static final String XR_EXT_PERFORMANCE_SETTINGS_EXTENSION_NAME = "XR_EXT_performance_settings";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_EVENT_DATA_PERF_SETTINGS_EXT = 1000015000;
-
+ */
+public class EXTPerformanceSettings {
+
+ /** The extension specification version. */
+ public static final int XR_EXT_performance_settings_SPEC_VERSION = 4;
+
+ /** The extension name. */
+ public static final String XR_EXT_PERFORMANCE_SETTINGS_EXTENSION_NAME = "XR_EXT_performance_settings";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_EVENT_DATA_PERF_SETTINGS_EXT = 1000015000;
+
/**
* XrPerfSettingsDomainEXT - XrPerfSettingsDomainEXT
*
@@ -48,11 +48,11 @@ public class EXTPerformanceSettings {
* {@link #XR_PERF_SETTINGS_DOMAIN_CPU_EXT PERF_SETTINGS_DOMAIN_CPU_EXT}
* {@link #XR_PERF_SETTINGS_DOMAIN_GPU_EXT PERF_SETTINGS_DOMAIN_GPU_EXT}
*
- */
+ */
public static final int
- XR_PERF_SETTINGS_DOMAIN_CPU_EXT = 1,
- XR_PERF_SETTINGS_DOMAIN_GPU_EXT = 2;
-
+ XR_PERF_SETTINGS_DOMAIN_CPU_EXT = 1,
+ XR_PERF_SETTINGS_DOMAIN_GPU_EXT = 2;
+
/**
* XrPerfSettingsSubDomainEXT - XrPerfSettingsSubDomainEXT
*
@@ -67,12 +67,12 @@ public class EXTPerformanceSettings {
* {@link #XR_PERF_SETTINGS_SUB_DOMAIN_RENDERING_EXT PERF_SETTINGS_SUB_DOMAIN_RENDERING_EXT}
* {@link #XR_PERF_SETTINGS_SUB_DOMAIN_THERMAL_EXT PERF_SETTINGS_SUB_DOMAIN_THERMAL_EXT}
*
- */
+ */
public static final int
- XR_PERF_SETTINGS_SUB_DOMAIN_COMPOSITING_EXT = 1,
- XR_PERF_SETTINGS_SUB_DOMAIN_RENDERING_EXT = 2,
- XR_PERF_SETTINGS_SUB_DOMAIN_THERMAL_EXT = 3;
-
+ XR_PERF_SETTINGS_SUB_DOMAIN_COMPOSITING_EXT = 1,
+ XR_PERF_SETTINGS_SUB_DOMAIN_RENDERING_EXT = 2,
+ XR_PERF_SETTINGS_SUB_DOMAIN_THERMAL_EXT = 3;
+
/**
* XrPerfSettingsLevelEXT - XrPerfSettingsLevelEXT
*
@@ -88,13 +88,13 @@ public class EXTPerformanceSettings {
* {@link #XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT}
* {@link #XR_PERF_SETTINGS_LEVEL_BOOST_EXT PERF_SETTINGS_LEVEL_BOOST_EXT}
*
- */
+ */
public static final int
- XR_PERF_SETTINGS_LEVEL_POWER_SAVINGS_EXT = 0,
- XR_PERF_SETTINGS_LEVEL_SUSTAINED_LOW_EXT = 25,
- XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT = 50,
- XR_PERF_SETTINGS_LEVEL_BOOST_EXT = 75;
-
+ XR_PERF_SETTINGS_LEVEL_POWER_SAVINGS_EXT = 0,
+ XR_PERF_SETTINGS_LEVEL_SUSTAINED_LOW_EXT = 25,
+ XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT = 50,
+ XR_PERF_SETTINGS_LEVEL_BOOST_EXT = 75;
+
/**
* XrPerfSettingsNotificationLevelEXT - XrPerfSettingsNotificationLevelEXT
*
@@ -109,18 +109,18 @@ public class EXTPerformanceSettings {
* {@link #XR_PERF_SETTINGS_NOTIF_LEVEL_WARNING_EXT PERF_SETTINGS_NOTIF_LEVEL_WARNING_EXT}
* {@link #XR_PERF_SETTINGS_NOTIF_LEVEL_IMPAIRED_EXT PERF_SETTINGS_NOTIF_LEVEL_IMPAIRED_EXT}
*
- */
+ */
public static final int
- XR_PERF_SETTINGS_NOTIF_LEVEL_NORMAL_EXT = 0,
- XR_PERF_SETTINGS_NOTIF_LEVEL_WARNING_EXT = 25,
- XR_PERF_SETTINGS_NOTIF_LEVEL_IMPAIRED_EXT = 75;
+ XR_PERF_SETTINGS_NOTIF_LEVEL_NORMAL_EXT = 0,
+ XR_PERF_SETTINGS_NOTIF_LEVEL_WARNING_EXT = 25,
+ XR_PERF_SETTINGS_NOTIF_LEVEL_IMPAIRED_EXT = 75;
protected EXTPerformanceSettings() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrPerfSettingsSetPerformanceLevelEXT ] ---
- // --- [ xrPerfSettingsSetPerformanceLevelEXT ] ---
-
/**
* xrPerfSettingsSetPerformanceLevelEXT.
*
@@ -163,14 +163,14 @@ protected EXTPerformanceSettings() {
* @param session a valid {@code XrSession} handle.
* @param domain the processing domain for which the level hint is applied
* @param level the level hint to be applied
- */
- @NativeType("XrResult")
- public static int xrPerfSettingsSetPerformanceLevelEXT(XrSession session, @NativeType("XrPerfSettingsDomainEXT") int domain, @NativeType("XrPerfSettingsLevelEXT") int level) {
- long __functionAddress = session.getCapabilities().xrPerfSettingsSetPerformanceLevelEXT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(session.address(), domain, level, __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrPerfSettingsSetPerformanceLevelEXT(XrSession session, @NativeType("XrPerfSettingsDomainEXT") int domain, @NativeType("XrPerfSettingsLevelEXT") int level) {
+ long __functionAddress = session.getCapabilities().xrPerfSettingsSetPerformanceLevelEXT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(session.address(), domain, level, __functionAddress);
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTSamsungOdysseyController.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTSamsungOdysseyController.java
index 7678e5cabf..74bde0f2ef 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTSamsungOdysseyController.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTSamsungOdysseyController.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_EXT_samsung_odyssey_controller extension.
*
@@ -15,15 +15,15 @@
* If the application doesn’t do its own custom rendering for specific motion controllers, it should avoid using this extension and instead just use subpathname:/microsoft/motion_controller, as runtimes should treat both controllers equally when applications declare action bindings only for that profile.
*
* If the application wants to customize rendering for specific motion controllers, it should setup the suggested bindings for subpathname:/samsung/odyssey_controller the same as subpathname:/microsoft/motion_controller when calling {@link XR10#xrSuggestInteractionProfileBindings SuggestInteractionProfileBindings}, and expect the same action bindings. Then the application can listen to the {@link XrEventDataInteractionProfileChanged} event and inspect the returned interaction profile from {@link XR10#xrGetCurrentInteractionProfile GetCurrentInteractionProfile} to differentiate which controller is being used by the user, and hence customize the appearance or experience of the motion controller specifically for the form factor of subpathname:/samsung/odyssey_controller.
- */
-public final class EXTSamsungOdysseyController {
-
- /** The extension specification version. */
- public static final int XR_EXT_samsung_odyssey_controller_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_EXT_SAMSUNG_ODYSSEY_CONTROLLER_EXTENSION_NAME = "XR_EXT_samsung_odyssey_controller";
+ */
+public final class EXTSamsungOdysseyController {
+
+ /** The extension specification version. */
+ public static final int XR_EXT_samsung_odyssey_controller_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_EXT_SAMSUNG_ODYSSEY_CONTROLLER_EXTENSION_NAME = "XR_EXT_samsung_odyssey_controller";
- private EXTSamsungOdysseyController() {}
+ private EXTSamsungOdysseyController() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTThermalQuery.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTThermalQuery.java
index 5fe9dfe04a..38e58b68a8 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTThermalQuery.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTThermalQuery.java
@@ -4,43 +4,43 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import java.nio.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_EXT_thermal_query extension.
*
* This extension provides an API to query a domain’s current thermal warning level and current thermal trend.
- */
-public class EXTThermalQuery {
-
- /** The extension specification version. */
- public static final int XR_EXT_thermal_query_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_EXT_THERMAL_QUERY_EXTENSION_NAME = "XR_EXT_thermal_query";
+ */
+public class EXTThermalQuery {
+
+ /** The extension specification version. */
+ public static final int XR_EXT_thermal_query_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_EXT_THERMAL_QUERY_EXTENSION_NAME = "XR_EXT_thermal_query";
protected EXTThermalQuery() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrThermalGetTemperatureTrendEXT ] ---
+
+ /** Unsafe version of: {@link #xrThermalGetTemperatureTrendEXT ThermalGetTemperatureTrendEXT} */
+ public static int nxrThermalGetTemperatureTrendEXT(XrSession session, int domain, long notificationLevel, long tempHeadroom, long tempSlope) {
+ long __functionAddress = session.getCapabilities().xrThermalGetTemperatureTrendEXT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPPI(session.address(), domain, notificationLevel, tempHeadroom, tempSlope, __functionAddress);
+ }
- // --- [ xrThermalGetTemperatureTrendEXT ] ---
-
- /** Unsafe version of: {@link #xrThermalGetTemperatureTrendEXT ThermalGetTemperatureTrendEXT} */
- public static int nxrThermalGetTemperatureTrendEXT(XrSession session, int domain, long notificationLevel, long tempHeadroom, long tempSlope) {
- long __functionAddress = session.getCapabilities().xrThermalGetTemperatureTrendEXT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPPI(session.address(), domain, notificationLevel, tempHeadroom, tempSlope, __functionAddress);
- }
-
/**
* xrThermalGetTemperatureTrendEXT.
*
@@ -89,15 +89,15 @@ public static int nxrThermalGetTemperatureTrendEXT(XrSession session, int domain
* @param notificationLevel : the current warning level
* @param tempHeadroom : temperature headroom in degrees Celsius, expressing how far the most-critical temperature of the domain is from its thermal throttling threshold temperature.
* @param tempSlope : the current trend in degrees Celsius per second of the most critical temperature of the domain.
- */
- @NativeType("XrResult")
- public static int xrThermalGetTemperatureTrendEXT(XrSession session, @NativeType("XrPerfSettingsDomainEXT") int domain, @NativeType("XrPerfSettingsNotificationLevelEXT *") IntBuffer notificationLevel, @NativeType("float *") FloatBuffer tempHeadroom, @NativeType("float *") FloatBuffer tempSlope) {
- if (CHECKS) {
- check(notificationLevel, 1);
- check(tempHeadroom, 1);
- check(tempSlope, 1);
- }
- return nxrThermalGetTemperatureTrendEXT(session, domain, memAddress(notificationLevel), memAddress(tempHeadroom), memAddress(tempSlope));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrThermalGetTemperatureTrendEXT(XrSession session, @NativeType("XrPerfSettingsDomainEXT") int domain, @NativeType("XrPerfSettingsNotificationLevelEXT *") IntBuffer notificationLevel, @NativeType("float *") FloatBuffer tempHeadroom, @NativeType("float *") FloatBuffer tempSlope) {
+ if (CHECKS) {
+ check(notificationLevel, 1);
+ check(tempHeadroom, 1);
+ check(tempSlope, 1);
+ }
+ return nxrThermalGetTemperatureTrendEXT(session, domain, memAddress(notificationLevel), memAddress(tempHeadroom), memAddress(tempSlope));
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTUUIUD.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTUUIUD.java
index c5b2247ede..b0c1199fde 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTUUIUD.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTUUIUD.java
@@ -4,23 +4,23 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_EXT_uuid extension.
*
* This extension defines a Universally Unique Identifier that follows RFC 4122.
- */
-public final class EXTUUIUD {
-
- /** The extension specification version. */
- public static final int XR_EXT_uuid_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_EXT_UUID_EXTENSION_NAME = "XR_EXT_uuid";
-
- /** XR_UUID_SIZE_EXT */
- public static final int XR_UUID_SIZE_EXT = 16;
+ */
+public final class EXTUUIUD {
+
+ /** The extension specification version. */
+ public static final int XR_EXT_uuid_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_EXT_UUID_EXTENSION_NAME = "XR_EXT_uuid";
+
+ /** XR_UUID_SIZE_EXT */
+ public static final int XR_UUID_SIZE_EXT = 16;
- private EXTUUIUD() {}
+ private EXTUUIUD() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTViewConfigurationDepthRange.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTViewConfigurationDepthRange.java
index 8078753cfc..40fae60771 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTViewConfigurationDepthRange.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTViewConfigurationDepthRange.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_EXT_view_configuration_depth_range extension.
*
@@ -13,18 +13,18 @@
* Displaying rendered content outside the recommended min/max depth range would violate the system requirements for a properly integrated application, and can result in a poor user experience due to observed visual artifacts, visual discomfort, or fatigue. The near/far depth values will fall in the range of (0..+infinity] where max({@code recommendedNearZ}, {@code minNearZ}) < min({@code recommendedFarZ}, {@code maxFarZ}). Infinity is defined matching the standard library definition such that std::isinf will return true for a returned infinite value.
*
* In order to provide the application with the appropriate depth range at which to render content for each {@link XrViewConfigurationView}, this extension provides additional view configuration information, as defined by {@link XrViewConfigurationDepthRangeEXT}, to inform the application of the min/max recommended and absolute distances at which content should be rendered for that view.
- */
-public final class EXTViewConfigurationDepthRange {
-
- /** The extension specification version. */
- public static final int XR_EXT_view_configuration_depth_range_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_EXT_VIEW_CONFIGURATION_DEPTH_RANGE_EXTENSION_NAME = "XR_EXT_view_configuration_depth_range";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT = 1000046000;
+ */
+public final class EXTViewConfigurationDepthRange {
+
+ /** The extension specification version. */
+ public static final int XR_EXT_view_configuration_depth_range_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_EXT_VIEW_CONFIGURATION_DEPTH_RANGE_EXTENSION_NAME = "XR_EXT_view_configuration_depth_range";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT = 1000046000;
- private EXTViewConfigurationDepthRange() {}
+ private EXTViewConfigurationDepthRange() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTWin32AppcontainerCompatible.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTWin32AppcontainerCompatible.java
index f3d239c173..6f970d0da2 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTWin32AppcontainerCompatible.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTWin32AppcontainerCompatible.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_EXT_win32_appcontainer_compatible extension.
*
@@ -15,15 +15,15 @@
* If the runtime supports this extension, it can further inspect the capability based on the connected device. If the XR system cannot support an AppContainer execution environment, the runtime must return {@link XR10#XR_ERROR_FORM_FACTOR_UNAVAILABLE ERROR_FORM_FACTOR_UNAVAILABLE} when the application calls {@link XR10#xrGetSystem GetSystem}.
*
* If the call to {@link XR10#xrGetSystem GetSystem} successfully returned with a valid {@code XrSystemId}, the application can rely on the runtime working properly in the AppContainer execution environment.
- */
-public final class EXTWin32AppcontainerCompatible {
-
- /** The extension specification version. */
- public static final int XR_EXT_win32_appcontainer_compatible_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_EXT_WIN32_APPCONTAINER_COMPATIBLE_EXTENSION_NAME = "XR_EXT_win32_appcontainer_compatible";
+ */
+public final class EXTWin32AppcontainerCompatible {
+
+ /** The extension specification version. */
+ public static final int XR_EXT_win32_appcontainer_compatible_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_EXT_WIN32_APPCONTAINER_COMPATIBLE_EXTENSION_NAME = "XR_EXT_win32_appcontainer_compatible";
- private EXTWin32AppcontainerCompatible() {}
+ private EXTWin32AppcontainerCompatible() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTXOverlay.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTXOverlay.java
index 602f7424f5..b94b701fb8 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTXOverlay.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTXOverlay.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_EXTX_overlay extension.
*
@@ -30,15 +30,15 @@
* To create an overlay session, an application must pass an {@link XrSessionCreateInfoOverlayEXTX} structure to {@link XR10#xrCreateSession CreateSession} via the {@link XrSessionCreateInfo} structure’s {@code next} parameter.
*
* An overlay application should not assume that the values returned to it by {@link XR10#xrWaitFrame WaitFrame} in {@code predictedDisplayTime} in {@link XrFrameState} will be the same as the values returned to the main application or even correlated.
- */
-public final class EXTXOverlay {
-
- /** The extension specification version. */
- public static final int XR_EXTX_overlay_SPEC_VERSION = 5;
-
- /** The extension name. */
- public static final String XR_EXTX_OVERLAY_EXTENSION_NAME = "XR_EXTX_overlay";
-
+ */
+public final class EXTXOverlay {
+
+ /** The extension specification version. */
+ public static final int XR_EXTX_overlay_SPEC_VERSION = 5;
+
+ /** The extension name. */
+ public static final String XR_EXTX_OVERLAY_EXTENSION_NAME = "XR_EXTX_overlay";
+
/**
* Extends {@code XrStructureType}.
*
@@ -48,14 +48,14 @@ public final class EXTXOverlay {
* {@link #XR_TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX}
* {@link #XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX}
*
- */
+ */
public static final int
- XR_TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX = 1000033000,
- XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX = 1000033003;
-
- /** XrOverlayMainSessionFlagBitsEXTX - XrOverlayMainSessionFlagBitsEXTX */
- public static final int XR_OVERLAY_MAIN_SESSION_ENABLED_COMPOSITION_LAYER_INFO_DEPTH_BIT_EXTX = 0x1;
+ XR_TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX = 1000033000,
+ XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX = 1000033003;
+
+ /** XrOverlayMainSessionFlagBitsEXTX - XrOverlayMainSessionFlagBitsEXTX */
+ public static final int XR_OVERLAY_MAIN_SESSION_ENABLED_COMPOSITION_LAYER_INFO_DEPTH_BIT_EXTX = 0x1;
- private EXTXOverlay() {}
+ private EXTXOverlay() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBBodyTracking.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBBodyTracking.java
index 090649be32..8580bbd2b8 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBBodyTracking.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBBodyTracking.java
@@ -4,31 +4,31 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_FB_body_tracking extension.
*
* This extension enables applications to locate the individual body joints that represent the estimated position of the user of the device. It enables applications to render the upper body in XR experiences.
- */
-public class FBBodyTracking {
-
- /** The extension specification version. */
- public static final int XR_FB_body_tracking_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_BODY_TRACKING_EXTENSION_NAME = "XR_FB_body_tracking";
-
- /** Extends {@code XrObjectType}. */
- public static final int XR_OBJECT_TYPE_BODY_TRACKER_FB = 1000076000;
-
+ */
+public class FBBodyTracking {
+
+ /** The extension specification version. */
+ public static final int XR_FB_body_tracking_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_BODY_TRACKING_EXTENSION_NAME = "XR_FB_body_tracking";
+
+ /** Extends {@code XrObjectType}. */
+ public static final int XR_OBJECT_TYPE_BODY_TRACKER_FB = 1000076000;
+
/**
* Extends {@code XrStructureType}.
*
@@ -41,14 +41,14 @@ public class FBBodyTracking {
* {@link #XR_TYPE_BODY_JOINT_LOCATIONS_FB TYPE_BODY_JOINT_LOCATIONS_FB}
* {@link #XR_TYPE_BODY_SKELETON_FB TYPE_BODY_SKELETON_FB}
*
- */
+ */
public static final int
- XR_TYPE_BODY_TRACKER_CREATE_INFO_FB = 1000076001,
- XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB = 1000076002,
- XR_TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_FB = 1000076004,
- XR_TYPE_BODY_JOINT_LOCATIONS_FB = 1000076005,
- XR_TYPE_BODY_SKELETON_FB = 1000076006;
-
+ XR_TYPE_BODY_TRACKER_CREATE_INFO_FB = 1000076001,
+ XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB = 1000076002,
+ XR_TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_FB = 1000076004,
+ XR_TYPE_BODY_JOINT_LOCATIONS_FB = 1000076005,
+ XR_TYPE_BODY_SKELETON_FB = 1000076006;
+
/**
* XrBodyJointFB - The name of body joints that can be tracked
*
@@ -142,81 +142,81 @@ public class FBBodyTracking {
* {@link #XR_BODY_JOINT_COUNT_FB BODY_JOINT_COUNT_FB}
* {@link #XR_BODY_JOINT_NONE_FB BODY_JOINT_NONE_FB}
*
- */
+ */
public static final int
- XR_BODY_JOINT_ROOT_FB = 0,
- XR_BODY_JOINT_HIPS_FB = 1,
- XR_BODY_JOINT_SPINE_LOWER_FB = 2,
- XR_BODY_JOINT_SPINE_MIDDLE_FB = 3,
- XR_BODY_JOINT_SPINE_UPPER_FB = 4,
- XR_BODY_JOINT_CHEST_FB = 5,
- XR_BODY_JOINT_NECK_FB = 6,
- XR_BODY_JOINT_HEAD_FB = 7,
- XR_BODY_JOINT_LEFT_SHOULDER_FB = 8,
- XR_BODY_JOINT_LEFT_SCAPULA_FB = 9,
- XR_BODY_JOINT_LEFT_ARM_UPPER_FB = 10,
- XR_BODY_JOINT_LEFT_ARM_LOWER_FB = 11,
- XR_BODY_JOINT_LEFT_HAND_WRIST_TWIST_FB = 12,
- XR_BODY_JOINT_RIGHT_SHOULDER_FB = 13,
- XR_BODY_JOINT_RIGHT_SCAPULA_FB = 14,
- XR_BODY_JOINT_RIGHT_ARM_UPPER_FB = 15,
- XR_BODY_JOINT_RIGHT_ARM_LOWER_FB = 16,
- XR_BODY_JOINT_RIGHT_HAND_WRIST_TWIST_FB = 17,
- XR_BODY_JOINT_LEFT_HAND_PALM_FB = 18,
- XR_BODY_JOINT_LEFT_HAND_WRIST_FB = 19,
- XR_BODY_JOINT_LEFT_HAND_THUMB_METACARPAL_FB = 20,
- XR_BODY_JOINT_LEFT_HAND_THUMB_PROXIMAL_FB = 21,
- XR_BODY_JOINT_LEFT_HAND_THUMB_DISTAL_FB = 22,
- XR_BODY_JOINT_LEFT_HAND_THUMB_TIP_FB = 23,
- XR_BODY_JOINT_LEFT_HAND_INDEX_METACARPAL_FB = 24,
- XR_BODY_JOINT_LEFT_HAND_INDEX_PROXIMAL_FB = 25,
- XR_BODY_JOINT_LEFT_HAND_INDEX_INTERMEDIATE_FB = 26,
- XR_BODY_JOINT_LEFT_HAND_INDEX_DISTAL_FB = 27,
- XR_BODY_JOINT_LEFT_HAND_INDEX_TIP_FB = 28,
- XR_BODY_JOINT_LEFT_HAND_MIDDLE_METACARPAL_FB = 29,
- XR_BODY_JOINT_LEFT_HAND_MIDDLE_PROXIMAL_FB = 30,
- XR_BODY_JOINT_LEFT_HAND_MIDDLE_INTERMEDIATE_FB = 31,
- XR_BODY_JOINT_LEFT_HAND_MIDDLE_DISTAL_FB = 32,
- XR_BODY_JOINT_LEFT_HAND_MIDDLE_TIP_FB = 33,
- XR_BODY_JOINT_LEFT_HAND_RING_METACARPAL_FB = 34,
- XR_BODY_JOINT_LEFT_HAND_RING_PROXIMAL_FB = 35,
- XR_BODY_JOINT_LEFT_HAND_RING_INTERMEDIATE_FB = 36,
- XR_BODY_JOINT_LEFT_HAND_RING_DISTAL_FB = 37,
- XR_BODY_JOINT_LEFT_HAND_RING_TIP_FB = 38,
- XR_BODY_JOINT_LEFT_HAND_LITTLE_METACARPAL_FB = 39,
- XR_BODY_JOINT_LEFT_HAND_LITTLE_PROXIMAL_FB = 40,
- XR_BODY_JOINT_LEFT_HAND_LITTLE_INTERMEDIATE_FB = 41,
- XR_BODY_JOINT_LEFT_HAND_LITTLE_DISTAL_FB = 42,
- XR_BODY_JOINT_LEFT_HAND_LITTLE_TIP_FB = 43,
- XR_BODY_JOINT_RIGHT_HAND_PALM_FB = 44,
- XR_BODY_JOINT_RIGHT_HAND_WRIST_FB = 45,
- XR_BODY_JOINT_RIGHT_HAND_THUMB_METACARPAL_FB = 46,
- XR_BODY_JOINT_RIGHT_HAND_THUMB_PROXIMAL_FB = 47,
- XR_BODY_JOINT_RIGHT_HAND_THUMB_DISTAL_FB = 48,
- XR_BODY_JOINT_RIGHT_HAND_THUMB_TIP_FB = 49,
- XR_BODY_JOINT_RIGHT_HAND_INDEX_METACARPAL_FB = 50,
- XR_BODY_JOINT_RIGHT_HAND_INDEX_PROXIMAL_FB = 51,
- XR_BODY_JOINT_RIGHT_HAND_INDEX_INTERMEDIATE_FB = 52,
- XR_BODY_JOINT_RIGHT_HAND_INDEX_DISTAL_FB = 53,
- XR_BODY_JOINT_RIGHT_HAND_INDEX_TIP_FB = 54,
- XR_BODY_JOINT_RIGHT_HAND_MIDDLE_METACARPAL_FB = 55,
- XR_BODY_JOINT_RIGHT_HAND_MIDDLE_PROXIMAL_FB = 56,
- XR_BODY_JOINT_RIGHT_HAND_MIDDLE_INTERMEDIATE_FB = 57,
- XR_BODY_JOINT_RIGHT_HAND_MIDDLE_DISTAL_FB = 58,
- XR_BODY_JOINT_RIGHT_HAND_MIDDLE_TIP_FB = 59,
- XR_BODY_JOINT_RIGHT_HAND_RING_METACARPAL_FB = 60,
- XR_BODY_JOINT_RIGHT_HAND_RING_PROXIMAL_FB = 61,
- XR_BODY_JOINT_RIGHT_HAND_RING_INTERMEDIATE_FB = 62,
- XR_BODY_JOINT_RIGHT_HAND_RING_DISTAL_FB = 63,
- XR_BODY_JOINT_RIGHT_HAND_RING_TIP_FB = 64,
- XR_BODY_JOINT_RIGHT_HAND_LITTLE_METACARPAL_FB = 65,
- XR_BODY_JOINT_RIGHT_HAND_LITTLE_PROXIMAL_FB = 66,
- XR_BODY_JOINT_RIGHT_HAND_LITTLE_INTERMEDIATE_FB = 67,
- XR_BODY_JOINT_RIGHT_HAND_LITTLE_DISTAL_FB = 68,
- XR_BODY_JOINT_RIGHT_HAND_LITTLE_TIP_FB = 69,
- XR_BODY_JOINT_COUNT_FB = 70,
- XR_BODY_JOINT_NONE_FB = -1;
-
+ XR_BODY_JOINT_ROOT_FB = 0,
+ XR_BODY_JOINT_HIPS_FB = 1,
+ XR_BODY_JOINT_SPINE_LOWER_FB = 2,
+ XR_BODY_JOINT_SPINE_MIDDLE_FB = 3,
+ XR_BODY_JOINT_SPINE_UPPER_FB = 4,
+ XR_BODY_JOINT_CHEST_FB = 5,
+ XR_BODY_JOINT_NECK_FB = 6,
+ XR_BODY_JOINT_HEAD_FB = 7,
+ XR_BODY_JOINT_LEFT_SHOULDER_FB = 8,
+ XR_BODY_JOINT_LEFT_SCAPULA_FB = 9,
+ XR_BODY_JOINT_LEFT_ARM_UPPER_FB = 10,
+ XR_BODY_JOINT_LEFT_ARM_LOWER_FB = 11,
+ XR_BODY_JOINT_LEFT_HAND_WRIST_TWIST_FB = 12,
+ XR_BODY_JOINT_RIGHT_SHOULDER_FB = 13,
+ XR_BODY_JOINT_RIGHT_SCAPULA_FB = 14,
+ XR_BODY_JOINT_RIGHT_ARM_UPPER_FB = 15,
+ XR_BODY_JOINT_RIGHT_ARM_LOWER_FB = 16,
+ XR_BODY_JOINT_RIGHT_HAND_WRIST_TWIST_FB = 17,
+ XR_BODY_JOINT_LEFT_HAND_PALM_FB = 18,
+ XR_BODY_JOINT_LEFT_HAND_WRIST_FB = 19,
+ XR_BODY_JOINT_LEFT_HAND_THUMB_METACARPAL_FB = 20,
+ XR_BODY_JOINT_LEFT_HAND_THUMB_PROXIMAL_FB = 21,
+ XR_BODY_JOINT_LEFT_HAND_THUMB_DISTAL_FB = 22,
+ XR_BODY_JOINT_LEFT_HAND_THUMB_TIP_FB = 23,
+ XR_BODY_JOINT_LEFT_HAND_INDEX_METACARPAL_FB = 24,
+ XR_BODY_JOINT_LEFT_HAND_INDEX_PROXIMAL_FB = 25,
+ XR_BODY_JOINT_LEFT_HAND_INDEX_INTERMEDIATE_FB = 26,
+ XR_BODY_JOINT_LEFT_HAND_INDEX_DISTAL_FB = 27,
+ XR_BODY_JOINT_LEFT_HAND_INDEX_TIP_FB = 28,
+ XR_BODY_JOINT_LEFT_HAND_MIDDLE_METACARPAL_FB = 29,
+ XR_BODY_JOINT_LEFT_HAND_MIDDLE_PROXIMAL_FB = 30,
+ XR_BODY_JOINT_LEFT_HAND_MIDDLE_INTERMEDIATE_FB = 31,
+ XR_BODY_JOINT_LEFT_HAND_MIDDLE_DISTAL_FB = 32,
+ XR_BODY_JOINT_LEFT_HAND_MIDDLE_TIP_FB = 33,
+ XR_BODY_JOINT_LEFT_HAND_RING_METACARPAL_FB = 34,
+ XR_BODY_JOINT_LEFT_HAND_RING_PROXIMAL_FB = 35,
+ XR_BODY_JOINT_LEFT_HAND_RING_INTERMEDIATE_FB = 36,
+ XR_BODY_JOINT_LEFT_HAND_RING_DISTAL_FB = 37,
+ XR_BODY_JOINT_LEFT_HAND_RING_TIP_FB = 38,
+ XR_BODY_JOINT_LEFT_HAND_LITTLE_METACARPAL_FB = 39,
+ XR_BODY_JOINT_LEFT_HAND_LITTLE_PROXIMAL_FB = 40,
+ XR_BODY_JOINT_LEFT_HAND_LITTLE_INTERMEDIATE_FB = 41,
+ XR_BODY_JOINT_LEFT_HAND_LITTLE_DISTAL_FB = 42,
+ XR_BODY_JOINT_LEFT_HAND_LITTLE_TIP_FB = 43,
+ XR_BODY_JOINT_RIGHT_HAND_PALM_FB = 44,
+ XR_BODY_JOINT_RIGHT_HAND_WRIST_FB = 45,
+ XR_BODY_JOINT_RIGHT_HAND_THUMB_METACARPAL_FB = 46,
+ XR_BODY_JOINT_RIGHT_HAND_THUMB_PROXIMAL_FB = 47,
+ XR_BODY_JOINT_RIGHT_HAND_THUMB_DISTAL_FB = 48,
+ XR_BODY_JOINT_RIGHT_HAND_THUMB_TIP_FB = 49,
+ XR_BODY_JOINT_RIGHT_HAND_INDEX_METACARPAL_FB = 50,
+ XR_BODY_JOINT_RIGHT_HAND_INDEX_PROXIMAL_FB = 51,
+ XR_BODY_JOINT_RIGHT_HAND_INDEX_INTERMEDIATE_FB = 52,
+ XR_BODY_JOINT_RIGHT_HAND_INDEX_DISTAL_FB = 53,
+ XR_BODY_JOINT_RIGHT_HAND_INDEX_TIP_FB = 54,
+ XR_BODY_JOINT_RIGHT_HAND_MIDDLE_METACARPAL_FB = 55,
+ XR_BODY_JOINT_RIGHT_HAND_MIDDLE_PROXIMAL_FB = 56,
+ XR_BODY_JOINT_RIGHT_HAND_MIDDLE_INTERMEDIATE_FB = 57,
+ XR_BODY_JOINT_RIGHT_HAND_MIDDLE_DISTAL_FB = 58,
+ XR_BODY_JOINT_RIGHT_HAND_MIDDLE_TIP_FB = 59,
+ XR_BODY_JOINT_RIGHT_HAND_RING_METACARPAL_FB = 60,
+ XR_BODY_JOINT_RIGHT_HAND_RING_PROXIMAL_FB = 61,
+ XR_BODY_JOINT_RIGHT_HAND_RING_INTERMEDIATE_FB = 62,
+ XR_BODY_JOINT_RIGHT_HAND_RING_DISTAL_FB = 63,
+ XR_BODY_JOINT_RIGHT_HAND_RING_TIP_FB = 64,
+ XR_BODY_JOINT_RIGHT_HAND_LITTLE_METACARPAL_FB = 65,
+ XR_BODY_JOINT_RIGHT_HAND_LITTLE_PROXIMAL_FB = 66,
+ XR_BODY_JOINT_RIGHT_HAND_LITTLE_INTERMEDIATE_FB = 67,
+ XR_BODY_JOINT_RIGHT_HAND_LITTLE_DISTAL_FB = 68,
+ XR_BODY_JOINT_RIGHT_HAND_LITTLE_TIP_FB = 69,
+ XR_BODY_JOINT_COUNT_FB = 70,
+ XR_BODY_JOINT_NONE_FB = -1;
+
/**
* XrBodyJointSetFB - The set of body joints to track.
*
@@ -229,24 +229,24 @@ public class FBBodyTracking {
* See Also
*
* {@link XrBodyTrackerCreateInfoFB}
- */
- public static final int XR_BODY_JOINT_SET_DEFAULT_FB = 0;
+ */
+ public static final int XR_BODY_JOINT_SET_DEFAULT_FB = 0;
protected FBBodyTracking() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrCreateBodyTrackerFB ] ---
+
+ /** Unsafe version of: {@link #xrCreateBodyTrackerFB CreateBodyTrackerFB} */
+ public static int nxrCreateBodyTrackerFB(XrSession session, long createInfo, long bodyTracker) {
+ long __functionAddress = session.getCapabilities().xrCreateBodyTrackerFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), createInfo, bodyTracker, __functionAddress);
+ }
- // --- [ xrCreateBodyTrackerFB ] ---
-
- /** Unsafe version of: {@link #xrCreateBodyTrackerFB CreateBodyTrackerFB} */
- public static int nxrCreateBodyTrackerFB(XrSession session, long createInfo, long bodyTracker) {
- long __functionAddress = session.getCapabilities().xrCreateBodyTrackerFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), createInfo, bodyTracker, __functionAddress);
- }
-
/**
* Create a body joints handle.
*
@@ -302,17 +302,17 @@ public static int nxrCreateBodyTrackerFB(XrSession session, long createInfo, lon
* @param session an {@code XrSession} in which the body tracker will be active.
* @param createInfo the {@link XrBodyTrackerCreateInfoFB} used to specify the body tracker.
* @param bodyTracker the returned {@code XrBodyTrackerFB} handle.
- */
- @NativeType("XrResult")
- public static int xrCreateBodyTrackerFB(XrSession session, @NativeType("XrBodyTrackerCreateInfoFB const *") XrBodyTrackerCreateInfoFB createInfo, @NativeType("XrBodyTrackerFB *") PointerBuffer bodyTracker) {
- if (CHECKS) {
- check(bodyTracker, 1);
- }
- return nxrCreateBodyTrackerFB(session, createInfo.address(), memAddress(bodyTracker));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrCreateBodyTrackerFB(XrSession session, @NativeType("XrBodyTrackerCreateInfoFB const *") XrBodyTrackerCreateInfoFB createInfo, @NativeType("XrBodyTrackerFB *") PointerBuffer bodyTracker) {
+ if (CHECKS) {
+ check(bodyTracker, 1);
+ }
+ return nxrCreateBodyTrackerFB(session, createInfo.address(), memAddress(bodyTracker));
+ }
+
+ // --- [ xrDestroyBodyTrackerFB ] ---
- // --- [ xrDestroyBodyTrackerFB ] ---
-
/**
* Destroy a body joints handle.
*
@@ -352,28 +352,28 @@ public static int xrCreateBodyTrackerFB(XrSession session, @NativeType("XrBodyTr
*
*
* @param bodyTracker an {@code XrBodyTrackerFB} previously created by {@link #xrCreateBodyTrackerFB CreateBodyTrackerFB}.
- */
- @NativeType("XrResult")
- public static int xrDestroyBodyTrackerFB(XrBodyTrackerFB bodyTracker) {
- long __functionAddress = bodyTracker.getCapabilities().xrDestroyBodyTrackerFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(bodyTracker.address(), __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrDestroyBodyTrackerFB(XrBodyTrackerFB bodyTracker) {
+ long __functionAddress = bodyTracker.getCapabilities().xrDestroyBodyTrackerFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(bodyTracker.address(), __functionAddress);
+ }
+
+ // --- [ xrLocateBodyJointsFB ] ---
+
+ /** Unsafe version of: {@link #xrLocateBodyJointsFB LocateBodyJointsFB} */
+ public static int nxrLocateBodyJointsFB(XrBodyTrackerFB bodyTracker, long locateInfo, long locations) {
+ long __functionAddress = bodyTracker.getCapabilities().xrLocateBodyJointsFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrBodyJointsLocateInfoFB.validate(locateInfo);
+ }
+ return callPPPI(bodyTracker.address(), locateInfo, locations, __functionAddress);
+ }
- // --- [ xrLocateBodyJointsFB ] ---
-
- /** Unsafe version of: {@link #xrLocateBodyJointsFB LocateBodyJointsFB} */
- public static int nxrLocateBodyJointsFB(XrBodyTrackerFB bodyTracker, long locateInfo, long locations) {
- long __functionAddress = bodyTracker.getCapabilities().xrLocateBodyJointsFB;
- if (CHECKS) {
- check(__functionAddress);
- XrBodyJointsLocateInfoFB.validate(locateInfo);
- }
- return callPPPI(bodyTracker.address(), locateInfo, locations, __functionAddress);
- }
-
/**
* Locate body joint locations.
*
@@ -423,23 +423,23 @@ public static int nxrLocateBodyJointsFB(XrBodyTrackerFB bodyTracker, long locate
* @param bodyTracker an {@code XrBodyTrackerFB} previously created by {@link #xrCreateBodyTrackerFB CreateBodyTrackerFB}.
* @param locateInfo a pointer to {@link XrBodyJointsLocateInfoFB} describing information to locate body joints.
* @param locations a pointer to {@link XrBodyJointLocationsFB} receiving the returned body joint locations.
- */
- @NativeType("XrResult")
- public static int xrLocateBodyJointsFB(XrBodyTrackerFB bodyTracker, @NativeType("XrBodyJointsLocateInfoFB const *") XrBodyJointsLocateInfoFB locateInfo, @NativeType("XrBodyJointLocationsFB *") XrBodyJointLocationsFB locations) {
- return nxrLocateBodyJointsFB(bodyTracker, locateInfo.address(), locations.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrLocateBodyJointsFB(XrBodyTrackerFB bodyTracker, @NativeType("XrBodyJointsLocateInfoFB const *") XrBodyJointsLocateInfoFB locateInfo, @NativeType("XrBodyJointLocationsFB *") XrBodyJointLocationsFB locations) {
+ return nxrLocateBodyJointsFB(bodyTracker, locateInfo.address(), locations.address());
+ }
+
+ // --- [ xrGetBodySkeletonFB ] ---
+
+ /** Unsafe version of: {@link #xrGetBodySkeletonFB GetBodySkeletonFB} */
+ public static int nxrGetBodySkeletonFB(XrBodyTrackerFB bodyTracker, long skeleton) {
+ long __functionAddress = bodyTracker.getCapabilities().xrGetBodySkeletonFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(bodyTracker.address(), skeleton, __functionAddress);
+ }
- // --- [ xrGetBodySkeletonFB ] ---
-
- /** Unsafe version of: {@link #xrGetBodySkeletonFB GetBodySkeletonFB} */
- public static int nxrGetBodySkeletonFB(XrBodyTrackerFB bodyTracker, long skeleton) {
- long __functionAddress = bodyTracker.getCapabilities().xrGetBodySkeletonFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(bodyTracker.address(), skeleton, __functionAddress);
- }
-
/**
* Retrieve body skeleton.
*
@@ -489,10 +489,10 @@ public static int nxrGetBodySkeletonFB(XrBodyTrackerFB bodyTracker, long skeleto
*
* @param bodyTracker an {@code XrBodyTrackerFB} previously created by {@link #xrCreateBodyTrackerFB CreateBodyTrackerFB}.
* @param skeleton a pointer to {@link XrBodySkeletonFB} receiving the returned body skeleton hierarchy.
- */
- @NativeType("XrResult")
- public static int xrGetBodySkeletonFB(XrBodyTrackerFB bodyTracker, @NativeType("XrBodySkeletonFB *") XrBodySkeletonFB skeleton) {
- return nxrGetBodySkeletonFB(bodyTracker, skeleton.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetBodySkeletonFB(XrBodyTrackerFB bodyTracker, @NativeType("XrBodySkeletonFB *") XrBodySkeletonFB skeleton) {
+ return nxrGetBodySkeletonFB(bodyTracker, skeleton.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBColorSpace.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBColorSpace.java
index 32fbb10efd..d66e743df8 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBColorSpace.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBColorSpace.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_FB_color_space extension.
*
@@ -29,21 +29,21 @@
*
*
* In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public class FBColorSpace {
-
- /** The extension specification version. */
- public static final int XR_FB_color_space_SPEC_VERSION = 3;
-
- /** The extension name. */
- public static final String XR_FB_COLOR_SPACE_EXTENSION_NAME = "XR_FB_color_space";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB = 1000108000;
-
- /** Extends {@code XrResult}. */
- public static final int XR_ERROR_COLOR_SPACE_UNSUPPORTED_FB = -1000108000;
-
+ */
+public class FBColorSpace {
+
+ /** The extension specification version. */
+ public static final int XR_FB_color_space_SPEC_VERSION = 3;
+
+ /** The extension name. */
+ public static final String XR_FB_COLOR_SPACE_EXTENSION_NAME = "XR_FB_color_space";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB = 1000108000;
+
+ /** Extends {@code XrResult}. */
+ public static final int XR_ERROR_COLOR_SPACE_UNSUPPORTED_FB = -1000108000;
+
/**
* XrColorSpaceFB - Color Space Type
*
@@ -99,36 +99,36 @@ public class FBColorSpace {
* See Also
*
* {@link XrSystemColorSpacePropertiesFB}, {@link #xrEnumerateColorSpacesFB EnumerateColorSpacesFB}, {@link #xrSetColorSpaceFB SetColorSpaceFB}
- */
+ */
public static final int
- XR_COLOR_SPACE_UNMANAGED_FB = 0,
- XR_COLOR_SPACE_REC2020_FB = 1,
- XR_COLOR_SPACE_REC709_FB = 2,
- XR_COLOR_SPACE_RIFT_CV1_FB = 3,
- XR_COLOR_SPACE_RIFT_S_FB = 4,
- XR_COLOR_SPACE_QUEST_FB = 5,
- XR_COLOR_SPACE_P3_FB = 6,
- XR_COLOR_SPACE_ADOBE_RGB_FB = 7;
+ XR_COLOR_SPACE_UNMANAGED_FB = 0,
+ XR_COLOR_SPACE_REC2020_FB = 1,
+ XR_COLOR_SPACE_REC709_FB = 2,
+ XR_COLOR_SPACE_RIFT_CV1_FB = 3,
+ XR_COLOR_SPACE_RIFT_S_FB = 4,
+ XR_COLOR_SPACE_QUEST_FB = 5,
+ XR_COLOR_SPACE_P3_FB = 6,
+ XR_COLOR_SPACE_ADOBE_RGB_FB = 7;
protected FBColorSpace() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrEnumerateColorSpacesFB ] ---
- // --- [ xrEnumerateColorSpacesFB ] ---
-
/**
* Unsafe version of: {@link #xrEnumerateColorSpacesFB EnumerateColorSpacesFB}
*
* @param colorSpaceCapacityInput the capacity of the {@code colorSpaces} array, or 0 to retrieve the required capacity.
- */
- public static int nxrEnumerateColorSpacesFB(XrSession session, int colorSpaceCapacityInput, long colorSpaceCountOutput, long colorSpaces) {
- long __functionAddress = session.getCapabilities().xrEnumerateColorSpacesFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), colorSpaceCapacityInput, colorSpaceCountOutput, colorSpaces, __functionAddress);
- }
-
+ */
+ public static int nxrEnumerateColorSpacesFB(XrSession session, int colorSpaceCapacityInput, long colorSpaceCountOutput, long colorSpaces) {
+ long __functionAddress = session.getCapabilities().xrEnumerateColorSpacesFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), colorSpaceCapacityInput, colorSpaceCountOutput, colorSpaces, __functionAddress);
+ }
+
/**
* Enumerates color spaces.
*
@@ -183,17 +183,17 @@ public static int nxrEnumerateColorSpacesFB(XrSession session, int colorSpaceCap
* @param session the session that enumerates the supported color spaces.
* @param colorSpaceCountOutput a pointer to the count of {@code XrColorSpaceFB} {@code colorSpaces} written, or a pointer to the required capacity in the case that {@code colorSpaceCapacityInput} is insufficient.
* @param colorSpaces a pointer to an array of {@code XrColorSpaceFB} color spaces, but can be {@code NULL} if {@code colorSpaceCapacityInput} is 0.
- */
- @NativeType("XrResult")
- public static int xrEnumerateColorSpacesFB(XrSession session, @NativeType("uint32_t *") IntBuffer colorSpaceCountOutput, @Nullable @NativeType("XrColorSpaceFB *") IntBuffer colorSpaces) {
- if (CHECKS) {
- check(colorSpaceCountOutput, 1);
- }
- return nxrEnumerateColorSpacesFB(session, remainingSafe(colorSpaces), memAddress(colorSpaceCountOutput), memAddressSafe(colorSpaces));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrEnumerateColorSpacesFB(XrSession session, @NativeType("uint32_t *") IntBuffer colorSpaceCountOutput, @Nullable @NativeType("XrColorSpaceFB *") IntBuffer colorSpaces) {
+ if (CHECKS) {
+ check(colorSpaceCountOutput, 1);
+ }
+ return nxrEnumerateColorSpacesFB(session, remainingSafe(colorSpaces), memAddress(colorSpaceCountOutput), memAddressSafe(colorSpaces));
+ }
+
+ // --- [ xrSetColorSpaceFB ] ---
- // --- [ xrSetColorSpaceFB ] ---
-
/**
* Set a color space.
*
@@ -249,14 +249,14 @@ public static int xrEnumerateColorSpacesFB(XrSession session, @NativeType("uint3
*
* @param session a valid {@code XrSession} handle.
* @param colorSpace a supported color space. Supported color spaces are indicated by {@link #xrEnumerateColorSpacesFB EnumerateColorSpacesFB}.
- */
- @NativeType("XrResult")
- public static int xrSetColorSpaceFB(XrSession session, @NativeType("XrColorSpaceFB") int colorSpace) {
- long __functionAddress = session.getCapabilities().xrSetColorSpaceFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(session.address(), colorSpace, __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSetColorSpaceFB(XrSession session, @NativeType("XrColorSpaceFB") int colorSpace) {
+ long __functionAddress = session.getCapabilities().xrSetColorSpaceFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(session.address(), colorSpace, __functionAddress);
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerAlphaBlend.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerAlphaBlend.java
index da90fee61f..7d7475a349 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerAlphaBlend.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerAlphaBlend.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_FB_composition_layer_alpha_blend extension.
*
@@ -17,18 +17,18 @@
* In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.
*
* These blend factors are specified by attaching a {@link XrCompositionLayerAlphaBlendFB} structure to the {@code next} chain of a {@link XrCompositionLayerBaseHeader}-derived layer structure.
- */
-public final class FBCompositionLayerAlphaBlend {
-
- /** The extension specification version. */
- public static final int XR_FB_composition_layer_alpha_blend_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_FB_COMPOSITION_LAYER_ALPHA_BLEND_EXTENSION_NAME = "XR_FB_composition_layer_alpha_blend";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FB = 1000041001;
-
+ */
+public final class FBCompositionLayerAlphaBlend {
+
+ /** The extension specification version. */
+ public static final int XR_FB_composition_layer_alpha_blend_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_FB_COMPOSITION_LAYER_ALPHA_BLEND_EXTENSION_NAME = "XR_FB_composition_layer_alpha_blend";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FB = 1000041001;
+
/**
* XrBlendFactorFB - Blend Factor Types
*
@@ -46,15 +46,15 @@ public final class FBCompositionLayerAlphaBlend {
* {@link #XR_BLEND_FACTOR_DST_ALPHA_FB BLEND_FACTOR_DST_ALPHA_FB}
* {@link #XR_BLEND_FACTOR_ONE_MINUS_DST_ALPHA_FB BLEND_FACTOR_ONE_MINUS_DST_ALPHA_FB}
*
- */
+ */
public static final int
- XR_BLEND_FACTOR_ZERO_FB = 0,
- XR_BLEND_FACTOR_ONE_FB = 1,
- XR_BLEND_FACTOR_SRC_ALPHA_FB = 2,
- XR_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA_FB = 3,
- XR_BLEND_FACTOR_DST_ALPHA_FB = 4,
- XR_BLEND_FACTOR_ONE_MINUS_DST_ALPHA_FB = 5;
+ XR_BLEND_FACTOR_ZERO_FB = 0,
+ XR_BLEND_FACTOR_ONE_FB = 1,
+ XR_BLEND_FACTOR_SRC_ALPHA_FB = 2,
+ XR_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA_FB = 3,
+ XR_BLEND_FACTOR_DST_ALPHA_FB = 4,
+ XR_BLEND_FACTOR_ONE_MINUS_DST_ALPHA_FB = 5;
- private FBCompositionLayerAlphaBlend() {}
+ private FBCompositionLayerAlphaBlend() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerDepthTest.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerDepthTest.java
index bfa5dbc0d8..ebdb3cbeef 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerDepthTest.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerDepthTest.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_FB_composition_layer_depth_test extension.
*
@@ -13,18 +13,18 @@
* When composing each layer, if depth testing is requested, the incoming layer depths are transformed into the compositor window space depth and compared to the depth stored in the frame buffer. After the transformation, incoming depths that are outside of the range of the compositor window space depth must be clamped. If the depth test fails, the fragment is discarded. If the depth test passes the depth buffer is updated if depth writes are enabled, and color processing continues.
*
* Depth testing requires depth values for the layer. For projection layers, this can be supplied via the {@link KHRCompositionLayerDepth XR_KHR_composition_layer_depth} extension. For geometric primitive layers, the runtime computes the depth of the sample directly from the layer parameters. An {@link XrCompositionLayerDepthTestFB} chained to layers without depth must be ignored.
- */
-public final class FBCompositionLayerDepthTest {
-
- /** The extension specification version. */
- public static final int XR_FB_composition_layer_depth_test_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME = "XR_FB_composition_layer_depth_test";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB = 1000212000;
-
+ */
+public final class FBCompositionLayerDepthTest {
+
+ /** The extension specification version. */
+ public static final int XR_FB_composition_layer_depth_test_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME = "XR_FB_composition_layer_depth_test";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB = 1000212000;
+
/**
* XrCompareOpFB - Compare Operation
*
@@ -44,17 +44,17 @@ public final class FBCompositionLayerDepthTest {
* See Also
*
* {@link XrCompositionLayerDepthTestFB}
- */
+ */
public static final int
- XR_COMPARE_OP_NEVER_FB = 0,
- XR_COMPARE_OP_LESS_FB = 1,
- XR_COMPARE_OP_EQUAL_FB = 2,
- XR_COMPARE_OP_LESS_OR_EQUAL_FB = 3,
- XR_COMPARE_OP_GREATER_FB = 4,
- XR_COMPARE_OP_NOT_EQUAL_FB = 5,
- XR_COMPARE_OP_GREATER_OR_EQUAL_FB = 6,
- XR_COMPARE_OP_ALWAYS_FB = 7;
+ XR_COMPARE_OP_NEVER_FB = 0,
+ XR_COMPARE_OP_LESS_FB = 1,
+ XR_COMPARE_OP_EQUAL_FB = 2,
+ XR_COMPARE_OP_LESS_OR_EQUAL_FB = 3,
+ XR_COMPARE_OP_GREATER_FB = 4,
+ XR_COMPARE_OP_NOT_EQUAL_FB = 5,
+ XR_COMPARE_OP_GREATER_OR_EQUAL_FB = 6,
+ XR_COMPARE_OP_ALWAYS_FB = 7;
- private FBCompositionLayerDepthTest() {}
+ private FBCompositionLayerDepthTest() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerImageLayout.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerImageLayout.java
index a6b1b0c63f..c499de22a9 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerImageLayout.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerImageLayout.java
@@ -4,28 +4,28 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_FB_composition_layer_image_layout extension.
*
* This extension does not define a new composition layer type, but rather it defines parameters that change the interpretation of the image layout, where the default image layout is dictated by the Graphics API.
*
* In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public final class FBCompositionLayerImageLayout {
-
- /** The extension specification version. */
- public static final int XR_FB_composition_layer_image_layout_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_COMPOSITION_LAYER_IMAGE_LAYOUT_EXTENSION_NAME = "XR_FB_composition_layer_image_layout";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FB = 1000040000;
-
- /** XrCompositionLayerImageLayoutFlagBitsFB - XrCompositionLayerImageLayoutFlagBitsFB */
- public static final int XR_COMPOSITION_LAYER_IMAGE_LAYOUT_VERTICAL_FLIP_BIT_FB = 0x1;
+ */
+public final class FBCompositionLayerImageLayout {
+
+ /** The extension specification version. */
+ public static final int XR_FB_composition_layer_image_layout_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_COMPOSITION_LAYER_IMAGE_LAYOUT_EXTENSION_NAME = "XR_FB_composition_layer_image_layout";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FB = 1000040000;
+
+ /** XrCompositionLayerImageLayoutFlagBitsFB - XrCompositionLayerImageLayoutFlagBitsFB */
+ public static final int XR_COMPOSITION_LAYER_IMAGE_LAYOUT_VERTICAL_FLIP_BIT_FB = 0x1;
- private FBCompositionLayerImageLayout() {}
+ private FBCompositionLayerImageLayout() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerSecureContent.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerSecureContent.java
index 4695fe1e6c..5245cd95d6 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerSecureContent.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerSecureContent.java
@@ -4,25 +4,25 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_FB_composition_layer_secure_content extension.
*
* This extension does not define a new composition layer type, but rather it provides support for the application to specify an existing composition layer type has secure content and whether it must be completely excluded from external outputs, like video or screen capture, or if proxy content must be rendered in its place.
*
* In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public final class FBCompositionLayerSecureContent {
-
- /** The extension specification version. */
- public static final int XR_FB_composition_layer_secure_content_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_COMPOSITION_LAYER_SECURE_CONTENT_EXTENSION_NAME = "XR_FB_composition_layer_secure_content";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_COMPOSITION_LAYER_SECURE_CONTENT_FB = 1000072000;
-
+ */
+public final class FBCompositionLayerSecureContent {
+
+ /** The extension specification version. */
+ public static final int XR_FB_composition_layer_secure_content_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_COMPOSITION_LAYER_SECURE_CONTENT_EXTENSION_NAME = "XR_FB_composition_layer_secure_content";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_COMPOSITION_LAYER_SECURE_CONTENT_FB = 1000072000;
+
/**
* XrCompositionLayerSecureContentFlagBitsFB - XrCompositionLayerSecureContentFlagBitsFB
*
@@ -32,11 +32,11 @@ public final class FBCompositionLayerSecureContent {
* {@link #XR_COMPOSITION_LAYER_SECURE_CONTENT_EXCLUDE_LAYER_BIT_FB COMPOSITION_LAYER_SECURE_CONTENT_EXCLUDE_LAYER_BIT_FB} — Indicates the layer will only be visible inside the HMD, and not visible to external sources
* {@link #XR_COMPOSITION_LAYER_SECURE_CONTENT_REPLACE_LAYER_BIT_FB COMPOSITION_LAYER_SECURE_CONTENT_REPLACE_LAYER_BIT_FB} — Indicates the layer will be displayed inside the HMD, but replaced by proxy content when written to external sources
*
- */
+ */
public static final int
- XR_COMPOSITION_LAYER_SECURE_CONTENT_EXCLUDE_LAYER_BIT_FB = 0x1,
- XR_COMPOSITION_LAYER_SECURE_CONTENT_REPLACE_LAYER_BIT_FB = 0x2;
+ XR_COMPOSITION_LAYER_SECURE_CONTENT_EXCLUDE_LAYER_BIT_FB = 0x1,
+ XR_COMPOSITION_LAYER_SECURE_CONTENT_REPLACE_LAYER_BIT_FB = 0x2;
- private FBCompositionLayerSecureContent() {}
+ private FBCompositionLayerSecureContent() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerSettings.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerSettings.java
index 75edc216e4..5cc9defffd 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerSettings.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerSettings.java
@@ -4,25 +4,25 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_FB_composition_layer_settings extension.
*
* This extension allows applications to request the use of processing options such as sharpening or super-sampling on a composition layer.
*
* In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public final class FBCompositionLayerSettings {
-
- /** The extension specification version. */
- public static final int XR_FB_composition_layer_settings_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_COMPOSITION_LAYER_SETTINGS_EXTENSION_NAME = "XR_FB_composition_layer_settings";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_COMPOSITION_LAYER_SETTINGS_FB = 1000204000;
-
+ */
+public final class FBCompositionLayerSettings {
+
+ /** The extension specification version. */
+ public static final int XR_FB_composition_layer_settings_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_COMPOSITION_LAYER_SETTINGS_EXTENSION_NAME = "XR_FB_composition_layer_settings";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_COMPOSITION_LAYER_SETTINGS_FB = 1000204000;
+
/**
* XrCompositionLayerSettingsFlagBitsFB - XrCompositionLayerSettingsFlagBitsFB
*
@@ -34,13 +34,13 @@ public final class FBCompositionLayerSettings {
* {@link #XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SHARPENING_BIT_FB COMPOSITION_LAYER_SETTINGS_NORMAL_SHARPENING_BIT_FB} — Indicates compositor may use layer texture sharpening.
* {@link #XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SHARPENING_BIT_FB COMPOSITION_LAYER_SETTINGS_QUALITY_SHARPENING_BIT_FB} — Indicates compositor may use high quality layer texture sharpening.
*
- */
+ */
public static final int
- XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SUPER_SAMPLING_BIT_FB = 0x1,
- XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SUPER_SAMPLING_BIT_FB = 0x2,
- XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SHARPENING_BIT_FB = 0x4,
- XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SHARPENING_BIT_FB = 0x8;
+ XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SUPER_SAMPLING_BIT_FB = 0x1,
+ XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SUPER_SAMPLING_BIT_FB = 0x2,
+ XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SHARPENING_BIT_FB = 0x4,
+ XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SHARPENING_BIT_FB = 0x8;
- private FBCompositionLayerSettings() {}
+ private FBCompositionLayerSettings() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBDisplayRefreshRate.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBDisplayRefreshRate.java
index 13eaa15144..4f788c7129 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBDisplayRefreshRate.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBDisplayRefreshRate.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_FB_display_refresh_rate extension.
*
@@ -34,40 +34,40 @@
*
*
* In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public class FBDisplayRefreshRate {
-
- /** The extension specification version. */
- public static final int XR_FB_display_refresh_rate_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME = "XR_FB_display_refresh_rate";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB = 1000101000;
-
- /** Extends {@code XrResult}. */
- public static final int XR_ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB = -1000101000;
+ */
+public class FBDisplayRefreshRate {
+
+ /** The extension specification version. */
+ public static final int XR_FB_display_refresh_rate_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME = "XR_FB_display_refresh_rate";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB = 1000101000;
+
+ /** Extends {@code XrResult}. */
+ public static final int XR_ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB = -1000101000;
protected FBDisplayRefreshRate() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrEnumerateDisplayRefreshRatesFB ] ---
- // --- [ xrEnumerateDisplayRefreshRatesFB ] ---
-
/**
* Unsafe version of: {@link #xrEnumerateDisplayRefreshRatesFB EnumerateDisplayRefreshRatesFB}
*
* @param displayRefreshRateCapacityInput the capacity of the {@code displayRefreshRates}, or 0 to retrieve the required capacity.
- */
- public static int nxrEnumerateDisplayRefreshRatesFB(XrSession session, int displayRefreshRateCapacityInput, long displayRefreshRateCountOutput, long displayRefreshRates) {
- long __functionAddress = session.getCapabilities().xrEnumerateDisplayRefreshRatesFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), displayRefreshRateCapacityInput, displayRefreshRateCountOutput, displayRefreshRates, __functionAddress);
- }
-
+ */
+ public static int nxrEnumerateDisplayRefreshRatesFB(XrSession session, int displayRefreshRateCapacityInput, long displayRefreshRateCountOutput, long displayRefreshRates) {
+ long __functionAddress = session.getCapabilities().xrEnumerateDisplayRefreshRatesFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), displayRefreshRateCapacityInput, displayRefreshRateCountOutput, displayRefreshRates, __functionAddress);
+ }
+
/**
* Enumerates display refresh rates.
*
@@ -122,26 +122,26 @@ public static int nxrEnumerateDisplayRefreshRatesFB(XrSession session, int displ
* @param session the session that enumerates the supported display refresh rates.
* @param displayRefreshRateCountOutput a pointer to the count of {@code float} {@code displayRefreshRates} written, or a pointer to the required capacity in the case that {@code displayRefreshRateCapacityInput} is insufficient.
* @param displayRefreshRates a pointer to an array of {@code float} display refresh rates, but can be {@code NULL} if {@code displayRefreshRateCapacityInput} is 0.
- */
- @NativeType("XrResult")
- public static int xrEnumerateDisplayRefreshRatesFB(XrSession session, @NativeType("uint32_t *") IntBuffer displayRefreshRateCountOutput, @Nullable @NativeType("float *") FloatBuffer displayRefreshRates) {
- if (CHECKS) {
- check(displayRefreshRateCountOutput, 1);
- }
- return nxrEnumerateDisplayRefreshRatesFB(session, remainingSafe(displayRefreshRates), memAddress(displayRefreshRateCountOutput), memAddressSafe(displayRefreshRates));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrEnumerateDisplayRefreshRatesFB(XrSession session, @NativeType("uint32_t *") IntBuffer displayRefreshRateCountOutput, @Nullable @NativeType("float *") FloatBuffer displayRefreshRates) {
+ if (CHECKS) {
+ check(displayRefreshRateCountOutput, 1);
+ }
+ return nxrEnumerateDisplayRefreshRatesFB(session, remainingSafe(displayRefreshRates), memAddress(displayRefreshRateCountOutput), memAddressSafe(displayRefreshRates));
+ }
+
+ // --- [ xrGetDisplayRefreshRateFB ] ---
+
+ /** Unsafe version of: {@link #xrGetDisplayRefreshRateFB GetDisplayRefreshRateFB} */
+ public static int nxrGetDisplayRefreshRateFB(XrSession session, long displayRefreshRate) {
+ long __functionAddress = session.getCapabilities().xrGetDisplayRefreshRateFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(session.address(), displayRefreshRate, __functionAddress);
+ }
- // --- [ xrGetDisplayRefreshRateFB ] ---
-
- /** Unsafe version of: {@link #xrGetDisplayRefreshRateFB GetDisplayRefreshRateFB} */
- public static int nxrGetDisplayRefreshRateFB(XrSession session, long displayRefreshRate) {
- long __functionAddress = session.getCapabilities().xrGetDisplayRefreshRateFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(session.address(), displayRefreshRate, __functionAddress);
- }
-
/**
* Get the current display refresh rate.
*
@@ -191,17 +191,17 @@ public static int nxrGetDisplayRefreshRateFB(XrSession session, long displayRefr
*
* @param session the {@code XrSession} to query.
* @param displayRefreshRate a pointer to a float into which the current display refresh rate will be placed.
- */
- @NativeType("XrResult")
- public static int xrGetDisplayRefreshRateFB(XrSession session, @NativeType("float *") FloatBuffer displayRefreshRate) {
- if (CHECKS) {
- check(displayRefreshRate, 1);
- }
- return nxrGetDisplayRefreshRateFB(session, memAddress(displayRefreshRate));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetDisplayRefreshRateFB(XrSession session, @NativeType("float *") FloatBuffer displayRefreshRate) {
+ if (CHECKS) {
+ check(displayRefreshRate, 1);
+ }
+ return nxrGetDisplayRefreshRateFB(session, memAddress(displayRefreshRate));
+ }
+
+ // --- [ xrRequestDisplayRefreshRateFB ] ---
- // --- [ xrRequestDisplayRefreshRateFB ] ---
-
/**
* Request a display refresh rate.
*
@@ -254,14 +254,14 @@ public static int xrGetDisplayRefreshRateFB(XrSession session, @NativeType("floa
*
* @param session a valid {@code XrSession} handle.
* @param displayRefreshRate {@code 0.0f} or a supported display refresh rate. Supported display refresh rates are indicated by {@link #xrEnumerateDisplayRefreshRatesFB EnumerateDisplayRefreshRatesFB}.
- */
- @NativeType("XrResult")
- public static int xrRequestDisplayRefreshRateFB(XrSession session, float displayRefreshRate) {
- long __functionAddress = session.getCapabilities().xrRequestDisplayRefreshRateFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(session.address(), displayRefreshRate, __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrRequestDisplayRefreshRateFB(XrSession session, float displayRefreshRate) {
+ long __functionAddress = session.getCapabilities().xrRequestDisplayRefreshRateFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(session.address(), displayRefreshRate, __functionAddress);
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBEyeTrackingSocial.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBEyeTrackingSocial.java
index 7691360448..a684d392a9 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBEyeTrackingSocial.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBEyeTrackingSocial.java
@@ -4,15 +4,15 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_FB_eye_tracking_social extension.
*
@@ -23,18 +23,18 @@
* Eye tracking data is sensitive personal information and is closely linked to personal privacy and integrity. It is strongly recommended that applications that store or transfer eye tracking data always ask the user for active and specific acceptance to do so.
*
* If a runtime supports a permission system to control application access to the eye tracker, then the runtime must set the {@code isValid} field to {@link XR10#XR_FALSE FALSE} on the supplied {@link XrEyeGazeFB} structure until the application has been allowed access to the eye tracker. When the application access has been allowed, the runtime may set {@code isValid} on the supplied {@link XrEyeGazeFB} structure to {@link XR10#XR_TRUE TRUE}.
- */
-public class FBEyeTrackingSocial {
-
- /** The extension specification version. */
- public static final int XR_FB_eye_tracking_social_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_EYE_TRACKING_SOCIAL_EXTENSION_NAME = "XR_FB_eye_tracking_social";
-
- /** Extends {@code XrObjectType}. */
- public static final int XR_OBJECT_TYPE_EYE_TRACKER_FB = 1000202000;
-
+ */
+public class FBEyeTrackingSocial {
+
+ /** The extension specification version. */
+ public static final int XR_FB_eye_tracking_social_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_EYE_TRACKING_SOCIAL_EXTENSION_NAME = "XR_FB_eye_tracking_social";
+
+ /** Extends {@code XrObjectType}. */
+ public static final int XR_OBJECT_TYPE_EYE_TRACKER_FB = 1000202000;
+
/**
* Extends {@code XrStructureType}.
*
@@ -46,13 +46,13 @@ public class FBEyeTrackingSocial {
* {@link #XR_TYPE_EYE_GAZES_FB TYPE_EYE_GAZES_FB}
* {@link #XR_TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB}
*
- */
+ */
public static final int
- XR_TYPE_EYE_TRACKER_CREATE_INFO_FB = 1000202001,
- XR_TYPE_EYE_GAZES_INFO_FB = 1000202002,
- XR_TYPE_EYE_GAZES_FB = 1000202003,
- XR_TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB = 1000202004;
-
+ XR_TYPE_EYE_TRACKER_CREATE_INFO_FB = 1000202001,
+ XR_TYPE_EYE_GAZES_INFO_FB = 1000202002,
+ XR_TYPE_EYE_GAZES_FB = 1000202003,
+ XR_TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB = 1000202004;
+
/**
* XrEyePositionFB - Enumerates eyes.
*
@@ -72,27 +72,27 @@ public class FBEyeTrackingSocial {
*
* - {@link #XR_EYE_POSITION_COUNT_FB EYE_POSITION_COUNT_FB}
*
- */
+ */
public static final int
- XR_EYE_POSITION_LEFT_FB = 0,
- XR_EYE_POSITION_RIGHT_FB = 1,
- XR_EYE_POSITION_COUNT_FB = 2;
+ XR_EYE_POSITION_LEFT_FB = 0,
+ XR_EYE_POSITION_RIGHT_FB = 1,
+ XR_EYE_POSITION_COUNT_FB = 2;
protected FBEyeTrackingSocial() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrCreateEyeTrackerFB ] ---
+
+ /** Unsafe version of: {@link #xrCreateEyeTrackerFB CreateEyeTrackerFB} */
+ public static int nxrCreateEyeTrackerFB(XrSession session, long createInfo, long eyeTracker) {
+ long __functionAddress = session.getCapabilities().xrCreateEyeTrackerFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), createInfo, eyeTracker, __functionAddress);
+ }
- // --- [ xrCreateEyeTrackerFB ] ---
-
- /** Unsafe version of: {@link #xrCreateEyeTrackerFB CreateEyeTrackerFB} */
- public static int nxrCreateEyeTrackerFB(XrSession session, long createInfo, long eyeTracker) {
- long __functionAddress = session.getCapabilities().xrCreateEyeTrackerFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), createInfo, eyeTracker, __functionAddress);
- }
-
/**
* Create an eye gaze handle.
*
@@ -148,17 +148,17 @@ public static int nxrCreateEyeTrackerFB(XrSession session, long createInfo, long
* @param session an {@code XrSession} in which the eye tracker will be active.
* @param createInfo the {@link XrEyeTrackerCreateInfoFB} used to specify the eye tracker.
* @param eyeTracker the returned {@code XrEyeTrackerFB} handle.
- */
- @NativeType("XrResult")
- public static int xrCreateEyeTrackerFB(XrSession session, @NativeType("XrEyeTrackerCreateInfoFB const *") XrEyeTrackerCreateInfoFB createInfo, @NativeType("XrEyeTrackerFB *") PointerBuffer eyeTracker) {
- if (CHECKS) {
- check(eyeTracker, 1);
- }
- return nxrCreateEyeTrackerFB(session, createInfo.address(), memAddress(eyeTracker));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrCreateEyeTrackerFB(XrSession session, @NativeType("XrEyeTrackerCreateInfoFB const *") XrEyeTrackerCreateInfoFB createInfo, @NativeType("XrEyeTrackerFB *") PointerBuffer eyeTracker) {
+ if (CHECKS) {
+ check(eyeTracker, 1);
+ }
+ return nxrCreateEyeTrackerFB(session, createInfo.address(), memAddress(eyeTracker));
+ }
+
+ // --- [ xrDestroyEyeTrackerFB ] ---
- // --- [ xrDestroyEyeTrackerFB ] ---
-
/**
* Destroy an eye gaze handle.
*
@@ -198,28 +198,28 @@ public static int xrCreateEyeTrackerFB(XrSession session, @NativeType("XrEyeTrac
*
*
* @param eyeTracker an {@code XrEyeTrackerFB} previously created by {@link #xrCreateEyeTrackerFB CreateEyeTrackerFB}.
- */
- @NativeType("XrResult")
- public static int xrDestroyEyeTrackerFB(XrEyeTrackerFB eyeTracker) {
- long __functionAddress = eyeTracker.getCapabilities().xrDestroyEyeTrackerFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(eyeTracker.address(), __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrDestroyEyeTrackerFB(XrEyeTrackerFB eyeTracker) {
+ long __functionAddress = eyeTracker.getCapabilities().xrDestroyEyeTrackerFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(eyeTracker.address(), __functionAddress);
+ }
+
+ // --- [ xrGetEyeGazesFB ] ---
+
+ /** Unsafe version of: {@link #xrGetEyeGazesFB GetEyeGazesFB} */
+ public static int nxrGetEyeGazesFB(XrEyeTrackerFB eyeTracker, long gazeInfo, long eyeGazes) {
+ long __functionAddress = eyeTracker.getCapabilities().xrGetEyeGazesFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrEyeGazesInfoFB.validate(gazeInfo);
+ }
+ return callPPPI(eyeTracker.address(), gazeInfo, eyeGazes, __functionAddress);
+ }
- // --- [ xrGetEyeGazesFB ] ---
-
- /** Unsafe version of: {@link #xrGetEyeGazesFB GetEyeGazesFB} */
- public static int nxrGetEyeGazesFB(XrEyeTrackerFB eyeTracker, long gazeInfo, long eyeGazes) {
- long __functionAddress = eyeTracker.getCapabilities().xrGetEyeGazesFB;
- if (CHECKS) {
- check(__functionAddress);
- XrEyeGazesInfoFB.validate(gazeInfo);
- }
- return callPPPI(eyeTracker.address(), gazeInfo, eyeGazes, __functionAddress);
- }
-
/**
* Locate eye gaze directions.
*
@@ -274,10 +274,10 @@ public static int nxrGetEyeGazesFB(XrEyeTrackerFB eyeTracker, long gazeInfo, lon
*
* a pointer to {@link XrEyeGazesFB} receiving the returned eye poses and confidence.
* @param gazeInfo the information to get eye gaze.
- */
- @NativeType("XrResult")
- public static int xrGetEyeGazesFB(XrEyeTrackerFB eyeTracker, @NativeType("XrEyeGazesInfoFB const *") XrEyeGazesInfoFB gazeInfo, @NativeType("XrEyeGazesFB *") XrEyeGazesFB eyeGazes) {
- return nxrGetEyeGazesFB(eyeTracker, gazeInfo.address(), eyeGazes.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetEyeGazesFB(XrEyeTrackerFB eyeTracker, @NativeType("XrEyeGazesInfoFB const *") XrEyeGazesInfoFB gazeInfo, @NativeType("XrEyeGazesFB *") XrEyeGazesFB eyeGazes) {
+ return nxrGetEyeGazesFB(eyeTracker, gazeInfo.address(), eyeGazes.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFaceTracking.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFaceTracking.java
index 7a7d9d86e5..2d73143efa 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFaceTracking.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFaceTracking.java
@@ -4,15 +4,15 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_FB_face_tracking extension.
*
@@ -23,18 +23,18 @@
* If a runtime supports a permission system to control application access to the face tracker, then the runtime must set the {@code isValid} field to {@link XR10#XR_FALSE FALSE} on the supplied {@link XrFaceExpressionStatusFB} structure until the user allows the application to access the face tracker. When the application access has been allowed, the runtime may set {@code isValid} on the supplied {@link XrFaceExpressionStatusFB} structure to {@link XR10#XR_TRUE TRUE}.
*
* Some permission systems may control access to the eye tracking separately from access to the face tracking, even though the eyes are part of the face. In case the user denied tracking of the eyes, yet, allowed tracking of the face, then the runtime must set the {@code isEyeFollowingBlendshapesValid} field to {@link XR10#XR_FALSE FALSE} on the supplied {@link XrFaceExpressionStatusFB} for indicating that eye tracking data is not available, but at the same time may set the {@code isValid} field to {@link XR10#XR_TRUE TRUE} on the supplied {@link XrFaceExpressionStatusFB} for indicating that another part of the face is tracked properly.
- */
-public class FBFaceTracking {
-
- /** The extension specification version. */
- public static final int XR_FB_face_tracking_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_FACE_TRACKING_EXTENSION_NAME = "XR_FB_face_tracking";
-
- /** Extends {@code XrObjectType}. */
- public static final int XR_OBJECT_TYPE_FACE_TRACKER_FB = 1000201000;
-
+ */
+public class FBFaceTracking {
+
+ /** The extension specification version. */
+ public static final int XR_FB_face_tracking_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_FACE_TRACKING_EXTENSION_NAME = "XR_FB_face_tracking";
+
+ /** Extends {@code XrObjectType}. */
+ public static final int XR_OBJECT_TYPE_FACE_TRACKER_FB = 1000201000;
+
/**
* Extends {@code XrStructureType}.
*
@@ -46,13 +46,13 @@ public class FBFaceTracking {
* {@link #XR_TYPE_FACE_EXPRESSION_INFO_FB TYPE_FACE_EXPRESSION_INFO_FB}
* {@link #XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB TYPE_FACE_EXPRESSION_WEIGHTS_FB}
*
- */
+ */
public static final int
- XR_TYPE_SYSTEM_FACE_TRACKING_PROPERTIES_FB = 1000201004,
- XR_TYPE_FACE_TRACKER_CREATE_INFO_FB = 1000201005,
- XR_TYPE_FACE_EXPRESSION_INFO_FB = 1000201002,
- XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB = 1000201006;
-
+ XR_TYPE_SYSTEM_FACE_TRACKING_PROPERTIES_FB = 1000201004,
+ XR_TYPE_FACE_TRACKER_CREATE_INFO_FB = 1000201005,
+ XR_TYPE_FACE_EXPRESSION_INFO_FB = 1000201002,
+ XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB = 1000201006;
+
/**
* XrFaceExpressionFB - The name of blend shapes that can be tracked
*
@@ -124,73 +124,73 @@ public class FBFaceTracking {
* {@link #XR_FACE_EXPRESSION_UPPER_LIP_RAISER_R_FB FACE_EXPRESSION_UPPER_LIP_RAISER_R_FB}
* {@link #XR_FACE_EXPRESSION_COUNT_FB FACE_EXPRESSION_COUNT_FB}
*
- */
+ */
public static final int
- XR_FACE_EXPRESSION_BROW_LOWERER_L_FB = 0,
- XR_FACE_EXPRESSION_BROW_LOWERER_R_FB = 1,
- XR_FACE_EXPRESSION_CHEEK_PUFF_L_FB = 2,
- XR_FACE_EXPRESSION_CHEEK_PUFF_R_FB = 3,
- XR_FACE_EXPRESSION_CHEEK_RAISER_L_FB = 4,
- XR_FACE_EXPRESSION_CHEEK_RAISER_R_FB = 5,
- XR_FACE_EXPRESSION_CHEEK_SUCK_L_FB = 6,
- XR_FACE_EXPRESSION_CHEEK_SUCK_R_FB = 7,
- XR_FACE_EXPRESSION_CHIN_RAISER_B_FB = 8,
- XR_FACE_EXPRESSION_CHIN_RAISER_T_FB = 9,
- XR_FACE_EXPRESSION_DIMPLER_L_FB = 10,
- XR_FACE_EXPRESSION_DIMPLER_R_FB = 11,
- XR_FACE_EXPRESSION_EYES_CLOSED_L_FB = 12,
- XR_FACE_EXPRESSION_EYES_CLOSED_R_FB = 13,
- XR_FACE_EXPRESSION_EYES_LOOK_DOWN_L_FB = 14,
- XR_FACE_EXPRESSION_EYES_LOOK_DOWN_R_FB = 15,
- XR_FACE_EXPRESSION_EYES_LOOK_LEFT_L_FB = 16,
- XR_FACE_EXPRESSION_EYES_LOOK_LEFT_R_FB = 17,
- XR_FACE_EXPRESSION_EYES_LOOK_RIGHT_L_FB = 18,
- XR_FACE_EXPRESSION_EYES_LOOK_RIGHT_R_FB = 19,
- XR_FACE_EXPRESSION_EYES_LOOK_UP_L_FB = 20,
- XR_FACE_EXPRESSION_EYES_LOOK_UP_R_FB = 21,
- XR_FACE_EXPRESSION_INNER_BROW_RAISER_L_FB = 22,
- XR_FACE_EXPRESSION_INNER_BROW_RAISER_R_FB = 23,
- XR_FACE_EXPRESSION_JAW_DROP_FB = 24,
- XR_FACE_EXPRESSION_JAW_SIDEWAYS_LEFT_FB = 25,
- XR_FACE_EXPRESSION_JAW_SIDEWAYS_RIGHT_FB = 26,
- XR_FACE_EXPRESSION_JAW_THRUST_FB = 27,
- XR_FACE_EXPRESSION_LID_TIGHTENER_L_FB = 28,
- XR_FACE_EXPRESSION_LID_TIGHTENER_R_FB = 29,
- XR_FACE_EXPRESSION_LIP_CORNER_DEPRESSOR_L_FB = 30,
- XR_FACE_EXPRESSION_LIP_CORNER_DEPRESSOR_R_FB = 31,
- XR_FACE_EXPRESSION_LIP_CORNER_PULLER_L_FB = 32,
- XR_FACE_EXPRESSION_LIP_CORNER_PULLER_R_FB = 33,
- XR_FACE_EXPRESSION_LIP_FUNNELER_LB_FB = 34,
- XR_FACE_EXPRESSION_LIP_FUNNELER_LT_FB = 35,
- XR_FACE_EXPRESSION_LIP_FUNNELER_RB_FB = 36,
- XR_FACE_EXPRESSION_LIP_FUNNELER_RT_FB = 37,
- XR_FACE_EXPRESSION_LIP_PRESSOR_L_FB = 38,
- XR_FACE_EXPRESSION_LIP_PRESSOR_R_FB = 39,
- XR_FACE_EXPRESSION_LIP_PUCKER_L_FB = 40,
- XR_FACE_EXPRESSION_LIP_PUCKER_R_FB = 41,
- XR_FACE_EXPRESSION_LIP_STRETCHER_L_FB = 42,
- XR_FACE_EXPRESSION_LIP_STRETCHER_R_FB = 43,
- XR_FACE_EXPRESSION_LIP_SUCK_LB_FB = 44,
- XR_FACE_EXPRESSION_LIP_SUCK_LT_FB = 45,
- XR_FACE_EXPRESSION_LIP_SUCK_RB_FB = 46,
- XR_FACE_EXPRESSION_LIP_SUCK_RT_FB = 47,
- XR_FACE_EXPRESSION_LIP_TIGHTENER_L_FB = 48,
- XR_FACE_EXPRESSION_LIP_TIGHTENER_R_FB = 49,
- XR_FACE_EXPRESSION_LIPS_TOWARD_FB = 50,
- XR_FACE_EXPRESSION_LOWER_LIP_DEPRESSOR_L_FB = 51,
- XR_FACE_EXPRESSION_LOWER_LIP_DEPRESSOR_R_FB = 52,
- XR_FACE_EXPRESSION_MOUTH_LEFT_FB = 53,
- XR_FACE_EXPRESSION_MOUTH_RIGHT_FB = 54,
- XR_FACE_EXPRESSION_NOSE_WRINKLER_L_FB = 55,
- XR_FACE_EXPRESSION_NOSE_WRINKLER_R_FB = 56,
- XR_FACE_EXPRESSION_OUTER_BROW_RAISER_L_FB = 57,
- XR_FACE_EXPRESSION_OUTER_BROW_RAISER_R_FB = 58,
- XR_FACE_EXPRESSION_UPPER_LID_RAISER_L_FB = 59,
- XR_FACE_EXPRESSION_UPPER_LID_RAISER_R_FB = 60,
- XR_FACE_EXPRESSION_UPPER_LIP_RAISER_L_FB = 61,
- XR_FACE_EXPRESSION_UPPER_LIP_RAISER_R_FB = 62,
- XR_FACE_EXPRESSION_COUNT_FB = 63;
-
+ XR_FACE_EXPRESSION_BROW_LOWERER_L_FB = 0,
+ XR_FACE_EXPRESSION_BROW_LOWERER_R_FB = 1,
+ XR_FACE_EXPRESSION_CHEEK_PUFF_L_FB = 2,
+ XR_FACE_EXPRESSION_CHEEK_PUFF_R_FB = 3,
+ XR_FACE_EXPRESSION_CHEEK_RAISER_L_FB = 4,
+ XR_FACE_EXPRESSION_CHEEK_RAISER_R_FB = 5,
+ XR_FACE_EXPRESSION_CHEEK_SUCK_L_FB = 6,
+ XR_FACE_EXPRESSION_CHEEK_SUCK_R_FB = 7,
+ XR_FACE_EXPRESSION_CHIN_RAISER_B_FB = 8,
+ XR_FACE_EXPRESSION_CHIN_RAISER_T_FB = 9,
+ XR_FACE_EXPRESSION_DIMPLER_L_FB = 10,
+ XR_FACE_EXPRESSION_DIMPLER_R_FB = 11,
+ XR_FACE_EXPRESSION_EYES_CLOSED_L_FB = 12,
+ XR_FACE_EXPRESSION_EYES_CLOSED_R_FB = 13,
+ XR_FACE_EXPRESSION_EYES_LOOK_DOWN_L_FB = 14,
+ XR_FACE_EXPRESSION_EYES_LOOK_DOWN_R_FB = 15,
+ XR_FACE_EXPRESSION_EYES_LOOK_LEFT_L_FB = 16,
+ XR_FACE_EXPRESSION_EYES_LOOK_LEFT_R_FB = 17,
+ XR_FACE_EXPRESSION_EYES_LOOK_RIGHT_L_FB = 18,
+ XR_FACE_EXPRESSION_EYES_LOOK_RIGHT_R_FB = 19,
+ XR_FACE_EXPRESSION_EYES_LOOK_UP_L_FB = 20,
+ XR_FACE_EXPRESSION_EYES_LOOK_UP_R_FB = 21,
+ XR_FACE_EXPRESSION_INNER_BROW_RAISER_L_FB = 22,
+ XR_FACE_EXPRESSION_INNER_BROW_RAISER_R_FB = 23,
+ XR_FACE_EXPRESSION_JAW_DROP_FB = 24,
+ XR_FACE_EXPRESSION_JAW_SIDEWAYS_LEFT_FB = 25,
+ XR_FACE_EXPRESSION_JAW_SIDEWAYS_RIGHT_FB = 26,
+ XR_FACE_EXPRESSION_JAW_THRUST_FB = 27,
+ XR_FACE_EXPRESSION_LID_TIGHTENER_L_FB = 28,
+ XR_FACE_EXPRESSION_LID_TIGHTENER_R_FB = 29,
+ XR_FACE_EXPRESSION_LIP_CORNER_DEPRESSOR_L_FB = 30,
+ XR_FACE_EXPRESSION_LIP_CORNER_DEPRESSOR_R_FB = 31,
+ XR_FACE_EXPRESSION_LIP_CORNER_PULLER_L_FB = 32,
+ XR_FACE_EXPRESSION_LIP_CORNER_PULLER_R_FB = 33,
+ XR_FACE_EXPRESSION_LIP_FUNNELER_LB_FB = 34,
+ XR_FACE_EXPRESSION_LIP_FUNNELER_LT_FB = 35,
+ XR_FACE_EXPRESSION_LIP_FUNNELER_RB_FB = 36,
+ XR_FACE_EXPRESSION_LIP_FUNNELER_RT_FB = 37,
+ XR_FACE_EXPRESSION_LIP_PRESSOR_L_FB = 38,
+ XR_FACE_EXPRESSION_LIP_PRESSOR_R_FB = 39,
+ XR_FACE_EXPRESSION_LIP_PUCKER_L_FB = 40,
+ XR_FACE_EXPRESSION_LIP_PUCKER_R_FB = 41,
+ XR_FACE_EXPRESSION_LIP_STRETCHER_L_FB = 42,
+ XR_FACE_EXPRESSION_LIP_STRETCHER_R_FB = 43,
+ XR_FACE_EXPRESSION_LIP_SUCK_LB_FB = 44,
+ XR_FACE_EXPRESSION_LIP_SUCK_LT_FB = 45,
+ XR_FACE_EXPRESSION_LIP_SUCK_RB_FB = 46,
+ XR_FACE_EXPRESSION_LIP_SUCK_RT_FB = 47,
+ XR_FACE_EXPRESSION_LIP_TIGHTENER_L_FB = 48,
+ XR_FACE_EXPRESSION_LIP_TIGHTENER_R_FB = 49,
+ XR_FACE_EXPRESSION_LIPS_TOWARD_FB = 50,
+ XR_FACE_EXPRESSION_LOWER_LIP_DEPRESSOR_L_FB = 51,
+ XR_FACE_EXPRESSION_LOWER_LIP_DEPRESSOR_R_FB = 52,
+ XR_FACE_EXPRESSION_MOUTH_LEFT_FB = 53,
+ XR_FACE_EXPRESSION_MOUTH_RIGHT_FB = 54,
+ XR_FACE_EXPRESSION_NOSE_WRINKLER_L_FB = 55,
+ XR_FACE_EXPRESSION_NOSE_WRINKLER_R_FB = 56,
+ XR_FACE_EXPRESSION_OUTER_BROW_RAISER_L_FB = 57,
+ XR_FACE_EXPRESSION_OUTER_BROW_RAISER_R_FB = 58,
+ XR_FACE_EXPRESSION_UPPER_LID_RAISER_L_FB = 59,
+ XR_FACE_EXPRESSION_UPPER_LID_RAISER_R_FB = 60,
+ XR_FACE_EXPRESSION_UPPER_LIP_RAISER_L_FB = 61,
+ XR_FACE_EXPRESSION_UPPER_LIP_RAISER_R_FB = 62,
+ XR_FACE_EXPRESSION_COUNT_FB = 63;
+
/**
* XrFaceExpressionSetFB - The set of blend shapes of a facial expression to track.
*
@@ -203,9 +203,9 @@ public class FBFaceTracking {
* See Also
*
* {@link XrFaceTrackerCreateInfoFB}
- */
- public static final int XR_FACE_EXPRESSION_SET_DEFAULT_FB = 0;
-
+ */
+ public static final int XR_FACE_EXPRESSION_SET_DEFAULT_FB = 0;
+
/**
* XrFaceConfidenceFB - The name of face areas where confidence is known
*
@@ -220,27 +220,27 @@ public class FBFaceTracking {
* {@link #XR_FACE_CONFIDENCE_UPPER_FACE_FB FACE_CONFIDENCE_UPPER_FACE_FB}
* {@link #XR_FACE_CONFIDENCE_COUNT_FB FACE_CONFIDENCE_COUNT_FB}
*
- */
+ */
public static final int
- XR_FACE_CONFIDENCE_LOWER_FACE_FB = 0,
- XR_FACE_CONFIDENCE_UPPER_FACE_FB = 1,
- XR_FACE_CONFIDENCE_COUNT_FB = 2;
+ XR_FACE_CONFIDENCE_LOWER_FACE_FB = 0,
+ XR_FACE_CONFIDENCE_UPPER_FACE_FB = 1,
+ XR_FACE_CONFIDENCE_COUNT_FB = 2;
protected FBFaceTracking() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrCreateFaceTrackerFB ] ---
+
+ /** Unsafe version of: {@link #xrCreateFaceTrackerFB CreateFaceTrackerFB} */
+ public static int nxrCreateFaceTrackerFB(XrSession session, long createInfo, long faceTracker) {
+ long __functionAddress = session.getCapabilities().xrCreateFaceTrackerFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), createInfo, faceTracker, __functionAddress);
+ }
- // --- [ xrCreateFaceTrackerFB ] ---
-
- /** Unsafe version of: {@link #xrCreateFaceTrackerFB CreateFaceTrackerFB} */
- public static int nxrCreateFaceTrackerFB(XrSession session, long createInfo, long faceTracker) {
- long __functionAddress = session.getCapabilities().xrCreateFaceTrackerFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), createInfo, faceTracker, __functionAddress);
- }
-
/**
* Create a face tracking handle.
*
@@ -298,17 +298,17 @@ public static int nxrCreateFaceTrackerFB(XrSession session, long createInfo, lon
* @param session an {@code XrSession} in which the face tracker will be active.
* @param createInfo the {@link XrFaceTrackerCreateInfoFB} used to specify the face tracker.
* @param faceTracker the returned {@code XrFaceTrackerFB} handle.
- */
- @NativeType("XrResult")
- public static int xrCreateFaceTrackerFB(XrSession session, @NativeType("XrFaceTrackerCreateInfoFB const *") XrFaceTrackerCreateInfoFB createInfo, @NativeType("XrFaceTrackerFB *") PointerBuffer faceTracker) {
- if (CHECKS) {
- check(faceTracker, 1);
- }
- return nxrCreateFaceTrackerFB(session, createInfo.address(), memAddress(faceTracker));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrCreateFaceTrackerFB(XrSession session, @NativeType("XrFaceTrackerCreateInfoFB const *") XrFaceTrackerCreateInfoFB createInfo, @NativeType("XrFaceTrackerFB *") PointerBuffer faceTracker) {
+ if (CHECKS) {
+ check(faceTracker, 1);
+ }
+ return nxrCreateFaceTrackerFB(session, createInfo.address(), memAddress(faceTracker));
+ }
+
+ // --- [ xrDestroyFaceTrackerFB ] ---
- // --- [ xrDestroyFaceTrackerFB ] ---
-
/**
* Destroy a facial expressions handle.
*
@@ -348,27 +348,27 @@ public static int xrCreateFaceTrackerFB(XrSession session, @NativeType("XrFaceTr
*
*
* @param faceTracker an {@code XrFaceTrackerFB} previously created by {@link #xrCreateFaceTrackerFB CreateFaceTrackerFB}.
- */
- @NativeType("XrResult")
- public static int xrDestroyFaceTrackerFB(XrFaceTrackerFB faceTracker) {
- long __functionAddress = faceTracker.getCapabilities().xrDestroyFaceTrackerFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(faceTracker.address(), __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrDestroyFaceTrackerFB(XrFaceTrackerFB faceTracker) {
+ long __functionAddress = faceTracker.getCapabilities().xrDestroyFaceTrackerFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(faceTracker.address(), __functionAddress);
+ }
+
+ // --- [ xrGetFaceExpressionWeightsFB ] ---
+
+ /** Unsafe version of: {@link #xrGetFaceExpressionWeightsFB GetFaceExpressionWeightsFB} */
+ public static int nxrGetFaceExpressionWeightsFB(XrFaceTrackerFB faceTracker, long expressionInfo, long expressionWeights) {
+ long __functionAddress = faceTracker.getCapabilities().xrGetFaceExpressionWeightsFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(faceTracker.address(), expressionInfo, expressionWeights, __functionAddress);
+ }
- // --- [ xrGetFaceExpressionWeightsFB ] ---
-
- /** Unsafe version of: {@link #xrGetFaceExpressionWeightsFB GetFaceExpressionWeightsFB} */
- public static int nxrGetFaceExpressionWeightsFB(XrFaceTrackerFB faceTracker, long expressionInfo, long expressionWeights) {
- long __functionAddress = faceTracker.getCapabilities().xrGetFaceExpressionWeightsFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(faceTracker.address(), expressionInfo, expressionWeights, __functionAddress);
- }
-
/**
* Obtain blend shapes of facial expression.
*
@@ -418,10 +418,10 @@ public static int nxrGetFaceExpressionWeightsFB(XrFaceTrackerFB faceTracker, lon
* @param faceTracker an {@code XrFaceTrackerFB} previously created by {@link #xrCreateFaceTrackerFB CreateFaceTrackerFB}.
* @param expressionInfo a pointer to {@link XrFaceExpressionInfoFB} describing information to obtain face expression.
* @param expressionWeights a pointer to {@link XrFaceExpressionWeightsFB} receiving the returned facial expression weights.
- */
- @NativeType("XrResult")
- public static int xrGetFaceExpressionWeightsFB(XrFaceTrackerFB faceTracker, @NativeType("XrFaceExpressionInfoFB const *") XrFaceExpressionInfoFB expressionInfo, @NativeType("XrFaceExpressionWeightsFB *") XrFaceExpressionWeightsFB expressionWeights) {
- return nxrGetFaceExpressionWeightsFB(faceTracker, expressionInfo.address(), expressionWeights.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetFaceExpressionWeightsFB(XrFaceTrackerFB faceTracker, @NativeType("XrFaceExpressionInfoFB const *") XrFaceExpressionInfoFB expressionInfo, @NativeType("XrFaceExpressionWeightsFB *") XrFaceExpressionWeightsFB expressionWeights) {
+ return nxrGetFaceExpressionWeightsFB(faceTracker, expressionInfo.address(), expressionWeights.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveation.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveation.java
index d39f8b51d4..18b4e6d143 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveation.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveation.java
@@ -4,15 +4,15 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_FB_foveation extension.
*
@@ -26,18 +26,18 @@
*
*
* In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo} {@code enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public class FBFoveation {
-
- /** The extension specification version. */
- public static final int XR_FB_foveation_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_FOVEATION_EXTENSION_NAME = "XR_FB_foveation";
-
- /** Extends {@code XrObjectType}. */
- public static final int XR_OBJECT_TYPE_FOVEATION_PROFILE_FB = 1000114000;
-
+ */
+public class FBFoveation {
+
+ /** The extension specification version. */
+ public static final int XR_FB_foveation_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_FOVEATION_EXTENSION_NAME = "XR_FB_foveation";
+
+ /** Extends {@code XrObjectType}. */
+ public static final int XR_OBJECT_TYPE_FOVEATION_PROFILE_FB = 1000114000;
+
/**
* Extends {@code XrStructureType}.
*
@@ -48,12 +48,12 @@ public class FBFoveation {
* {@link #XR_TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB}
* {@link #XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB TYPE_SWAPCHAIN_STATE_FOVEATION_FB}
*
- */
+ */
public static final int
- XR_TYPE_FOVEATION_PROFILE_CREATE_INFO_FB = 1000114000,
- XR_TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB = 1000114001,
- XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB = 1000114002;
-
+ XR_TYPE_FOVEATION_PROFILE_CREATE_INFO_FB = 1000114000,
+ XR_TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB = 1000114001,
+ XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB = 1000114002;
+
/**
* XrSwapchainCreateFoveationFlagBitsFB - XrSwapchainCreateFoveationFlagBitsFB
*
@@ -63,26 +63,26 @@ public class FBFoveation {
* {@link #XR_SWAPCHAIN_CREATE_FOVEATION_SCALED_BIN_BIT_FB SWAPCHAIN_CREATE_FOVEATION_SCALED_BIN_BIT_FB} — Explicitly create the swapchain with scaled bin foveation support. The application must ensure that the swapchain is using the OpenGL graphics API and that the QCOM_texture_foveated extension is supported and enabled.
* {@link #XR_SWAPCHAIN_CREATE_FOVEATION_FRAGMENT_DENSITY_MAP_BIT_FB SWAPCHAIN_CREATE_FOVEATION_FRAGMENT_DENSITY_MAP_BIT_FB} — Explicitly create the swapchain with fragment density map foveation support. The application must ensure that the swapchain is using the Vulkan graphics API and that the VK_EXT_fragment_density_map extension is supported and enabled.
*
- */
+ */
public static final int
- XR_SWAPCHAIN_CREATE_FOVEATION_SCALED_BIN_BIT_FB = 0x1,
- XR_SWAPCHAIN_CREATE_FOVEATION_FRAGMENT_DENSITY_MAP_BIT_FB = 0x2;
+ XR_SWAPCHAIN_CREATE_FOVEATION_SCALED_BIN_BIT_FB = 0x1,
+ XR_SWAPCHAIN_CREATE_FOVEATION_FRAGMENT_DENSITY_MAP_BIT_FB = 0x2;
protected FBFoveation() {
throw new UnsupportedOperationException();
- }
-
- // --- [ xrCreateFoveationProfileFB ] ---
-
- /** Unsafe version of: {@link #xrCreateFoveationProfileFB CreateFoveationProfileFB} */
- public static int nxrCreateFoveationProfileFB(XrSession session, long createInfo, long profile) {
- long __functionAddress = session.getCapabilities().xrCreateFoveationProfileFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), createInfo, profile, __functionAddress);
- }
-
+ }
+
+ // --- [ xrCreateFoveationProfileFB ] ---
+
+ /** Unsafe version of: {@link #xrCreateFoveationProfileFB CreateFoveationProfileFB} */
+ public static int nxrCreateFoveationProfileFB(XrSession session, long createInfo, long profile) {
+ long __functionAddress = session.getCapabilities().xrCreateFoveationProfileFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), createInfo, profile, __functionAddress);
+ }
+
/**
* Create a foveation profile.
*
@@ -137,17 +137,17 @@ public static int nxrCreateFoveationProfileFB(XrSession session, long createInfo
* @param session the {@code XrSession} that created the swapchains to which this foveation profile will be applied.
* @param createInfo a pointer to an {@link XrFoveationProfileCreateInfoFB} structure containing parameters to be used to create the foveation profile.
* @param profile a pointer to a handle in which the created {@code XrFoveationProfileFB} is returned.
- */
- @NativeType("XrResult")
- public static int xrCreateFoveationProfileFB(XrSession session, @NativeType("XrFoveationProfileCreateInfoFB const *") XrFoveationProfileCreateInfoFB createInfo, @NativeType("XrFoveationProfileFB *") PointerBuffer profile) {
- if (CHECKS) {
- check(profile, 1);
- }
- return nxrCreateFoveationProfileFB(session, createInfo.address(), memAddress(profile));
- }
-
- // --- [ xrDestroyFoveationProfileFB ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrCreateFoveationProfileFB(XrSession session, @NativeType("XrFoveationProfileCreateInfoFB const *") XrFoveationProfileCreateInfoFB createInfo, @NativeType("XrFoveationProfileFB *") PointerBuffer profile) {
+ if (CHECKS) {
+ check(profile, 1);
+ }
+ return nxrCreateFoveationProfileFB(session, createInfo.address(), memAddress(profile));
+ }
+
+ // --- [ xrDestroyFoveationProfileFB ] ---
+
/**
* Destroy a foveation profile.
*
@@ -192,14 +192,14 @@ public static int xrCreateFoveationProfileFB(XrSession session, @NativeType("XrF
*
*
* @param profile the {@code XrFoveationProfileFB} to destroy.
- */
- @NativeType("XrResult")
- public static int xrDestroyFoveationProfileFB(XrFoveationProfileFB profile) {
- long __functionAddress = profile.getCapabilities().xrDestroyFoveationProfileFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(profile.address(), __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrDestroyFoveationProfileFB(XrFoveationProfileFB profile) {
+ long __functionAddress = profile.getCapabilities().xrDestroyFoveationProfileFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(profile.address(), __functionAddress);
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveationConfiguration.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveationConfiguration.java
index 681d303a6f..93adc9b11b 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveationConfiguration.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveationConfiguration.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_FB_foveation_configuration extension.
*
@@ -17,18 +17,18 @@
*
*
* In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo} {@code enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public final class FBFoveationConfiguration {
-
- /** The extension specification version. */
- public static final int XR_FB_foveation_configuration_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_FOVEATION_CONFIGURATION_EXTENSION_NAME = "XR_FB_foveation_configuration";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB = 1000115000;
-
+ */
+public final class FBFoveationConfiguration {
+
+ /** The extension specification version. */
+ public static final int XR_FB_foveation_configuration_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_FOVEATION_CONFIGURATION_EXTENSION_NAME = "XR_FB_foveation_configuration";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB = 1000115000;
+
/**
* XrFoveationLevelFB - Foveation levels
*
@@ -44,13 +44,13 @@ public final class FBFoveationConfiguration {
* See Also
*
* {@link XrFoveationLevelProfileCreateInfoFB}
- */
+ */
public static final int
- XR_FOVEATION_LEVEL_NONE_FB = 0,
- XR_FOVEATION_LEVEL_LOW_FB = 1,
- XR_FOVEATION_LEVEL_MEDIUM_FB = 2,
- XR_FOVEATION_LEVEL_HIGH_FB = 3;
-
+ XR_FOVEATION_LEVEL_NONE_FB = 0,
+ XR_FOVEATION_LEVEL_LOW_FB = 1,
+ XR_FOVEATION_LEVEL_MEDIUM_FB = 2,
+ XR_FOVEATION_LEVEL_HIGH_FB = 3;
+
/**
* XrFoveationDynamicFB - Dynamic foveation settings
*
@@ -64,11 +64,11 @@ public final class FBFoveationConfiguration {
* See Also
*
* {@link XrFoveationLevelProfileCreateInfoFB}
- */
+ */
public static final int
- XR_FOVEATION_DYNAMIC_DISABLED_FB = 0,
- XR_FOVEATION_DYNAMIC_LEVEL_ENABLED_FB = 1;
+ XR_FOVEATION_DYNAMIC_DISABLED_FB = 0,
+ XR_FOVEATION_DYNAMIC_LEVEL_ENABLED_FB = 1;
- private FBFoveationConfiguration() {}
+ private FBFoveationConfiguration() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveationVulkan.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveationVulkan.java
index a1773c2b29..ecb45c442c 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveationVulkan.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveationVulkan.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_FB_foveation_vulkan extension.
*
@@ -17,18 +17,18 @@
*
*
* In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo} {@code enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public final class FBFoveationVulkan {
-
- /** The extension specification version. */
- public static final int XR_FB_foveation_vulkan_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_FOVEATION_VULKAN_EXTENSION_NAME = "XR_FB_foveation_vulkan";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FB = 1000160000;
+ */
+public final class FBFoveationVulkan {
+
+ /** The extension specification version. */
+ public static final int XR_FB_foveation_vulkan_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_FOVEATION_VULKAN_EXTENSION_NAME = "XR_FB_foveation_vulkan";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FB = 1000160000;
- private FBFoveationVulkan() {}
+ private FBFoveationVulkan() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingAim.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingAim.java
index 072fc8ec1b..2641377d9f 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingAim.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingAim.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_FB_hand_tracking_aim extension.
*
@@ -15,18 +15,18 @@
*
* - An application to get a set of basic gesture states for the hand when using the {@link EXTHandTracking XR_EXT_hand_tracking} extension.
*
- */
-public final class FBHandTrackingAim {
-
- /** The extension specification version. */
- public static final int XR_FB_hand_tracking_aim_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_FB_HAND_TRACKING_AIM_EXTENSION_NAME = "XR_FB_hand_tracking_aim";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_HAND_TRACKING_AIM_STATE_FB = 1000111001;
-
+ */
+public final class FBHandTrackingAim {
+
+ /** The extension specification version. */
+ public static final int XR_FB_hand_tracking_aim_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_FB_HAND_TRACKING_AIM_EXTENSION_NAME = "XR_FB_hand_tracking_aim";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_HAND_TRACKING_AIM_STATE_FB = 1000111001;
+
/**
* XrHandTrackingAimFlagBitsFB - XrHandTrackingAimFlagBitsFB
*
@@ -43,18 +43,18 @@ public final class FBHandTrackingAim {
* {@link #XR_HAND_TRACKING_AIM_DOMINANT_HAND_BIT_FB HAND_TRACKING_AIM_DOMINANT_HAND_BIT_FB} — Hand is currently marked as dominant for the system
* {@link #XR_HAND_TRACKING_AIM_MENU_PRESSED_BIT_FB HAND_TRACKING_AIM_MENU_PRESSED_BIT_FB} — System menu gesture is active
*
- */
+ */
public static final int
- XR_HAND_TRACKING_AIM_COMPUTED_BIT_FB = 0x1,
- XR_HAND_TRACKING_AIM_VALID_BIT_FB = 0x2,
- XR_HAND_TRACKING_AIM_INDEX_PINCHING_BIT_FB = 0x4,
- XR_HAND_TRACKING_AIM_MIDDLE_PINCHING_BIT_FB = 0x8,
- XR_HAND_TRACKING_AIM_RING_PINCHING_BIT_FB = 0x10,
- XR_HAND_TRACKING_AIM_LITTLE_PINCHING_BIT_FB = 0x20,
- XR_HAND_TRACKING_AIM_SYSTEM_GESTURE_BIT_FB = 0x40,
- XR_HAND_TRACKING_AIM_DOMINANT_HAND_BIT_FB = 0x80,
- XR_HAND_TRACKING_AIM_MENU_PRESSED_BIT_FB = 0x100;
+ XR_HAND_TRACKING_AIM_COMPUTED_BIT_FB = 0x1,
+ XR_HAND_TRACKING_AIM_VALID_BIT_FB = 0x2,
+ XR_HAND_TRACKING_AIM_INDEX_PINCHING_BIT_FB = 0x4,
+ XR_HAND_TRACKING_AIM_MIDDLE_PINCHING_BIT_FB = 0x8,
+ XR_HAND_TRACKING_AIM_RING_PINCHING_BIT_FB = 0x10,
+ XR_HAND_TRACKING_AIM_LITTLE_PINCHING_BIT_FB = 0x20,
+ XR_HAND_TRACKING_AIM_SYSTEM_GESTURE_BIT_FB = 0x40,
+ XR_HAND_TRACKING_AIM_DOMINANT_HAND_BIT_FB = 0x80,
+ XR_HAND_TRACKING_AIM_MENU_PRESSED_BIT_FB = 0x100;
- private FBHandTrackingAim() {}
+ private FBHandTrackingAim() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingCapsules.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingCapsules.java
index d85db68d2b..c78dc2b596 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingCapsules.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingCapsules.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_FB_hand_tracking_capsules extension.
*
@@ -15,30 +15,30 @@
*
* - An application to get a list of capsules that represent the volume of the hand when using the {@link EXTHandTracking XR_EXT_hand_tracking} extension.
*
- */
-public final class FBHandTrackingCapsules {
-
- /** The extension specification version. */
- public static final int XR_FB_hand_tracking_capsules_SPEC_VERSION = 3;
-
- /** The extension name. */
- public static final String XR_FB_HAND_TRACKING_CAPSULES_EXTENSION_NAME = "XR_FB_hand_tracking_capsules";
-
- /** XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB */
- public static final int XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB = 2;
-
- /** XR_HAND_TRACKING_CAPSULE_COUNT_FB */
- public static final int XR_HAND_TRACKING_CAPSULE_COUNT_FB = 19;
-
- /** XR_FB_HAND_TRACKING_CAPSULE_POINT_COUNT */
- public static final int XR_FB_HAND_TRACKING_CAPSULE_POINT_COUNT = 2;
-
- /** XR_FB_HAND_TRACKING_CAPSULE_COUNT */
- public static final int XR_FB_HAND_TRACKING_CAPSULE_COUNT = 19;
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_HAND_TRACKING_CAPSULES_STATE_FB = 1000112000;
-
- private FBHandTrackingCapsules() {}
+ */
+public final class FBHandTrackingCapsules {
+
+ /** The extension specification version. */
+ public static final int XR_FB_hand_tracking_capsules_SPEC_VERSION = 3;
+
+ /** The extension name. */
+ public static final String XR_FB_HAND_TRACKING_CAPSULES_EXTENSION_NAME = "XR_FB_hand_tracking_capsules";
+
+ /** XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB */
+ public static final int XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB = 2;
+
+ /** XR_HAND_TRACKING_CAPSULE_COUNT_FB */
+ public static final int XR_HAND_TRACKING_CAPSULE_COUNT_FB = 19;
+
+ /** XR_FB_HAND_TRACKING_CAPSULE_POINT_COUNT */
+ public static final int XR_FB_HAND_TRACKING_CAPSULE_POINT_COUNT = 2;
+
+ /** XR_FB_HAND_TRACKING_CAPSULE_COUNT */
+ public static final int XR_FB_HAND_TRACKING_CAPSULE_COUNT = 19;
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_HAND_TRACKING_CAPSULES_STATE_FB = 1000112000;
+
+ private FBHandTrackingCapsules() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingMesh.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingMesh.java
index 728c3cce8a..bc853fe878 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingMesh.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingMesh.java
@@ -4,12 +4,12 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+
/**
* The XR_FB_hand_tracking_mesh extension.
*
@@ -21,15 +21,15 @@
* An application to get a skinned hand mesh and a bind pose skeleton that can be used to render a hand object driven by the joints from the {@link EXTHandTracking XR_EXT_hand_tracking} extension.
* Control the scale of the hand joints returned by {@link EXTHandTracking XR_EXT_hand_tracking}.
*
- */
-public class FBHandTrackingMesh {
-
- /** The extension specification version. */
- public static final int XR_FB_hand_tracking_mesh_SPEC_VERSION = 3;
-
- /** The extension name. */
- public static final String XR_FB_HAND_TRACKING_MESH_EXTENSION_NAME = "XR_FB_hand_tracking_mesh";
-
+ */
+public class FBHandTrackingMesh {
+
+ /** The extension specification version. */
+ public static final int XR_FB_hand_tracking_mesh_SPEC_VERSION = 3;
+
+ /** The extension name. */
+ public static final String XR_FB_HAND_TRACKING_MESH_EXTENSION_NAME = "XR_FB_hand_tracking_mesh";
+
/**
* Extends {@code XrStructureType}.
*
@@ -39,26 +39,26 @@ public class FBHandTrackingMesh {
* {@link #XR_TYPE_HAND_TRACKING_MESH_FB TYPE_HAND_TRACKING_MESH_FB}
* {@link #XR_TYPE_HAND_TRACKING_SCALE_FB TYPE_HAND_TRACKING_SCALE_FB}
*
- */
+ */
public static final int
- XR_TYPE_HAND_TRACKING_MESH_FB = 1000110001,
- XR_TYPE_HAND_TRACKING_SCALE_FB = 1000110003;
+ XR_TYPE_HAND_TRACKING_MESH_FB = 1000110001,
+ XR_TYPE_HAND_TRACKING_SCALE_FB = 1000110003;
protected FBHandTrackingMesh() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrGetHandMeshFB ] ---
+
+ /** Unsafe version of: {@link #xrGetHandMeshFB GetHandMeshFB} */
+ public static int nxrGetHandMeshFB(XrHandTrackerEXT handTracker, long mesh) {
+ long __functionAddress = handTracker.getCapabilities().xrGetHandMeshFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(handTracker.address(), mesh, __functionAddress);
+ }
- // --- [ xrGetHandMeshFB ] ---
-
- /** Unsafe version of: {@link #xrGetHandMeshFB GetHandMeshFB} */
- public static int nxrGetHandMeshFB(XrHandTrackerEXT handTracker, long mesh) {
- long __functionAddress = handTracker.getCapabilities().xrGetHandMeshFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(handTracker.address(), mesh, __functionAddress);
- }
-
/**
* Create a foveation profile.
*
@@ -110,10 +110,10 @@ public static int nxrGetHandMeshFB(XrHandTrackerEXT handTracker, long mesh) {
*
* @param handTracker the {@code XrHandTrackerEXT} that is associated with a particular hand.
* @param mesh the {@link XrHandTrackingMeshFB} output structure.
- */
- @NativeType("XrResult")
- public static int xrGetHandMeshFB(XrHandTrackerEXT handTracker, @NativeType("XrHandTrackingMeshFB *") XrHandTrackingMeshFB mesh) {
- return nxrGetHandMeshFB(handTracker, mesh.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetHandMeshFB(XrHandTrackerEXT handTracker, @NativeType("XrHandTrackingMeshFB *") XrHandTrackingMeshFB mesh) {
+ return nxrGetHandMeshFB(handTracker, mesh.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHapticAmplitudeEnvelope.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHapticAmplitudeEnvelope.java
index 6498d4a18a..500b566cf9 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHapticAmplitudeEnvelope.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHapticAmplitudeEnvelope.java
@@ -4,26 +4,26 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_FB_haptic_amplitude_envelope extension.
*
* This extension enables applications to trigger haptic effect using an Amplitude Envelope buffer.
- */
-public final class FBHapticAmplitudeEnvelope {
-
- /** The extension specification version. */
- public static final int XR_FB_haptic_amplitude_envelope_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_HAPTIC_AMPLITUDE_ENVELOPE_EXTENSION_NAME = "XR_FB_haptic_amplitude_envelope";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB = 1000173001;
-
- /** API Constants */
- public static final int XR_MAX_HAPTIC_AMPLITUDE_ENVELOPE_SAMPLES_FB = 0xFA0;
+ */
+public final class FBHapticAmplitudeEnvelope {
+
+ /** The extension specification version. */
+ public static final int XR_FB_haptic_amplitude_envelope_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_HAPTIC_AMPLITUDE_ENVELOPE_EXTENSION_NAME = "XR_FB_haptic_amplitude_envelope";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB = 1000173001;
+
+ /** API Constants */
+ public static final int XR_MAX_HAPTIC_AMPLITUDE_ENVELOPE_SAMPLES_FB = 0xFA0;
- private FBHapticAmplitudeEnvelope() {}
+ private FBHapticAmplitudeEnvelope() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHapticPcm.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHapticPcm.java
index b7ff4a0dc9..7a72c1c174 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHapticPcm.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHapticPcm.java
@@ -4,25 +4,25 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+
/**
* The XR_FB_haptic_pcm extension.
*
* This extension enables applications to trigger haptic effects using Pulse Code Modulation (PCM) buffers.
- */
-public class FBHapticPcm {
-
- /** The extension specification version. */
- public static final int XR_FB_haptic_pcm_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_HAPTIC_PCM_EXTENSION_NAME = "XR_FB_haptic_pcm";
-
+ */
+public class FBHapticPcm {
+
+ /** The extension specification version. */
+ public static final int XR_FB_haptic_pcm_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_HAPTIC_PCM_EXTENSION_NAME = "XR_FB_haptic_pcm";
+
/**
* Extends {@code XrStructureType}.
*
@@ -33,31 +33,31 @@ public class FBHapticPcm {
* {@link #XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB}
* {@link #XR_TYPE_DEVICE_PCM_SAMPLE_RATE_GET_INFO_FB TYPE_DEVICE_PCM_SAMPLE_RATE_GET_INFO_FB}
*
- */
+ */
public static final int
- XR_TYPE_HAPTIC_PCM_VIBRATION_FB = 1000209001,
- XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB = 1000209002,
- XR_TYPE_DEVICE_PCM_SAMPLE_RATE_GET_INFO_FB = 1000209002;
-
- /** API Constants */
- public static final int XR_MAX_HAPTIC_PCM_BUFFER_SIZE_FB = 0xFA0;
+ XR_TYPE_HAPTIC_PCM_VIBRATION_FB = 1000209001,
+ XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB = 1000209002,
+ XR_TYPE_DEVICE_PCM_SAMPLE_RATE_GET_INFO_FB = 1000209002;
+
+ /** API Constants */
+ public static final int XR_MAX_HAPTIC_PCM_BUFFER_SIZE_FB = 0xFA0;
protected FBHapticPcm() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrGetDeviceSampleRateFB ] ---
+
+ /** Unsafe version of: {@link #xrGetDeviceSampleRateFB GetDeviceSampleRateFB} */
+ public static int nxrGetDeviceSampleRateFB(XrSession session, long hapticActionInfo, long deviceSampleRate) {
+ long __functionAddress = session.getCapabilities().xrGetDeviceSampleRateFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrHapticActionInfo.validate(hapticActionInfo);
+ }
+ return callPPPI(session.address(), hapticActionInfo, deviceSampleRate, __functionAddress);
+ }
- // --- [ xrGetDeviceSampleRateFB ] ---
-
- /** Unsafe version of: {@link #xrGetDeviceSampleRateFB GetDeviceSampleRateFB} */
- public static int nxrGetDeviceSampleRateFB(XrSession session, long hapticActionInfo, long deviceSampleRate) {
- long __functionAddress = session.getCapabilities().xrGetDeviceSampleRateFB;
- if (CHECKS) {
- check(__functionAddress);
- XrHapticActionInfo.validate(hapticActionInfo);
- }
- return callPPPI(session.address(), hapticActionInfo, deviceSampleRate, __functionAddress);
- }
-
/**
* Get device sample rate.
*
@@ -111,10 +111,10 @@ public static int nxrGetDeviceSampleRateFB(XrSession session, long hapticActionI
* @param session the specified {@code XrSession}.
* @param hapticActionInfo the {@link XrHapticActionInfo} used to provide action and subaction paths
* @param deviceSampleRate a pointer to {@link XrDevicePcmSampleRateStateFB} which is populated by the runtime.
- */
- @NativeType("XrResult")
- public static int xrGetDeviceSampleRateFB(XrSession session, @NativeType("XrHapticActionInfo const *") XrHapticActionInfo hapticActionInfo, @NativeType("XrDevicePcmSampleRateGetInfoFB *") XrDevicePcmSampleRateGetInfoFB deviceSampleRate) {
- return nxrGetDeviceSampleRateFB(session, hapticActionInfo.address(), deviceSampleRate.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetDeviceSampleRateFB(XrSession session, @NativeType("XrHapticActionInfo const *") XrHapticActionInfo hapticActionInfo, @NativeType("XrDevicePcmSampleRateGetInfoFB *") XrDevicePcmSampleRateGetInfoFB deviceSampleRate) {
+ return nxrGetDeviceSampleRateFB(session, hapticActionInfo.address(), deviceSampleRate.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBKeyboardTracking.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBKeyboardTracking.java
index 2bff29d9c2..3cecde80ec 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBKeyboardTracking.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBKeyboardTracking.java
@@ -4,31 +4,31 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_FB_keyboard_tracking extension.
*
* This extension allows the application to query the system for a supported trackable keyboard type and obtain an {@code XrSpace} handle to track it. It also provides relevant metadata about the keyboard itself, including bounds and a human readable identifier.
- */
-public class FBKeyboardTracking {
-
- /** The extension specification version. */
- public static final int XR_FB_keyboard_tracking_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_KEYBOARD_TRACKING_EXTENSION_NAME = "XR_FB_keyboard_tracking";
-
- /** XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB */
- public static final int XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB = 128;
-
+ */
+public class FBKeyboardTracking {
+
+ /** The extension specification version. */
+ public static final int XR_FB_keyboard_tracking_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_KEYBOARD_TRACKING_EXTENSION_NAME = "XR_FB_keyboard_tracking";
+
+ /** XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB */
+ public static final int XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB = 128;
+
/**
* Extends {@code XrStructureType}.
*
@@ -39,12 +39,12 @@ public class FBKeyboardTracking {
* {@link #XR_TYPE_KEYBOARD_TRACKING_QUERY_FB TYPE_KEYBOARD_TRACKING_QUERY_FB}
* {@link #XR_TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB}
*
- */
+ */
public static final int
- XR_TYPE_KEYBOARD_SPACE_CREATE_INFO_FB = 1000116009,
- XR_TYPE_KEYBOARD_TRACKING_QUERY_FB = 1000116004,
- XR_TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB = 1000116002;
-
+ XR_TYPE_KEYBOARD_SPACE_CREATE_INFO_FB = 1000116009,
+ XR_TYPE_KEYBOARD_TRACKING_QUERY_FB = 1000116004,
+ XR_TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB = 1000116002;
+
/**
* XrKeyboardTrackingFlagBitsFB - XrKeyboardTrackingFlagBitsFB
*
@@ -56,13 +56,13 @@ public class FBKeyboardTracking {
* {@link #XR_KEYBOARD_TRACKING_REMOTE_BIT_FB KEYBOARD_TRACKING_REMOTE_BIT_FB} — indicates that the physically tracked keyboard is intended to be used while paired to a separate remote computing device. Mutally exclusive with XR_KEYBOARD_TRACKING_LOCAL_BIT_FB.
* {@link #XR_KEYBOARD_TRACKING_CONNECTED_BIT_FB KEYBOARD_TRACKING_CONNECTED_BIT_FB} — indicates that the physically tracked keyboard is actively connected to the headset and capable of sending key data
*
- */
+ */
public static final int
- XR_KEYBOARD_TRACKING_EXISTS_BIT_FB = 0x1,
- XR_KEYBOARD_TRACKING_LOCAL_BIT_FB = 0x2,
- XR_KEYBOARD_TRACKING_REMOTE_BIT_FB = 0x4,
- XR_KEYBOARD_TRACKING_CONNECTED_BIT_FB = 0x8;
-
+ XR_KEYBOARD_TRACKING_EXISTS_BIT_FB = 0x1,
+ XR_KEYBOARD_TRACKING_LOCAL_BIT_FB = 0x2,
+ XR_KEYBOARD_TRACKING_REMOTE_BIT_FB = 0x4,
+ XR_KEYBOARD_TRACKING_CONNECTED_BIT_FB = 0x8;
+
/**
* XrKeyboardTrackingQueryFlagBitsFB - XrKeyboardTrackingQueryFlagBitsFB
*
@@ -72,26 +72,26 @@ public class FBKeyboardTracking {
* {@link #XR_KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FB KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FB} — indicates the query is for the physically tracked keyboard that is intended to be used in a local pairing with the System. Mutally exclusive with XR_KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FB.
* {@link #XR_KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FB KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FB} — indicates the query is for the physically tracked keyboard that may be connected to a separate remote computing device. Mutally exclusive with XR_KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FB.
*
- */
+ */
public static final int
- XR_KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FB = 0x2,
- XR_KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FB = 0x4;
+ XR_KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FB = 0x2,
+ XR_KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FB = 0x4;
protected FBKeyboardTracking() {
throw new UnsupportedOperationException();
- }
-
- // --- [ xrQuerySystemTrackedKeyboardFB ] ---
-
- /** Unsafe version of: {@link #xrQuerySystemTrackedKeyboardFB QuerySystemTrackedKeyboardFB} */
- public static int nxrQuerySystemTrackedKeyboardFB(XrSession session, long queryInfo, long keyboard) {
- long __functionAddress = session.getCapabilities().xrQuerySystemTrackedKeyboardFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), queryInfo, keyboard, __functionAddress);
- }
-
+ }
+
+ // --- [ xrQuerySystemTrackedKeyboardFB ] ---
+
+ /** Unsafe version of: {@link #xrQuerySystemTrackedKeyboardFB QuerySystemTrackedKeyboardFB} */
+ public static int nxrQuerySystemTrackedKeyboardFB(XrSession session, long queryInfo, long keyboard) {
+ long __functionAddress = session.getCapabilities().xrQuerySystemTrackedKeyboardFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), queryInfo, keyboard, __functionAddress);
+ }
+
/**
* Queries the system keyboard.
*
@@ -145,23 +145,23 @@ public static int nxrQuerySystemTrackedKeyboardFB(XrSession session, long queryI
* @param session the session that will be associated with a keyboard space.
* @param queryInfo the {@link XrKeyboardTrackingQueryFB} that describes the type of keyboard to return. queryInfo must have either {@link #XR_KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FB KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FB} or {@link #XR_KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FB KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FB} set.
* @param keyboard the {@link XrKeyboardTrackingDescriptionFB} output structure.
- */
- @NativeType("XrResult")
- public static int xrQuerySystemTrackedKeyboardFB(XrSession session, @NativeType("XrKeyboardTrackingQueryFB const *") XrKeyboardTrackingQueryFB queryInfo, @NativeType("XrKeyboardTrackingDescriptionFB *") XrKeyboardTrackingDescriptionFB keyboard) {
- return nxrQuerySystemTrackedKeyboardFB(session, queryInfo.address(), keyboard.address());
- }
-
- // --- [ xrCreateKeyboardSpaceFB ] ---
-
- /** Unsafe version of: {@link #xrCreateKeyboardSpaceFB CreateKeyboardSpaceFB} */
- public static int nxrCreateKeyboardSpaceFB(XrSession session, long createInfo, long keyboardSpace) {
- long __functionAddress = session.getCapabilities().xrCreateKeyboardSpaceFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), createInfo, keyboardSpace, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrQuerySystemTrackedKeyboardFB(XrSession session, @NativeType("XrKeyboardTrackingQueryFB const *") XrKeyboardTrackingQueryFB queryInfo, @NativeType("XrKeyboardTrackingDescriptionFB *") XrKeyboardTrackingDescriptionFB keyboard) {
+ return nxrQuerySystemTrackedKeyboardFB(session, queryInfo.address(), keyboard.address());
+ }
+
+ // --- [ xrCreateKeyboardSpaceFB ] ---
+
+ /** Unsafe version of: {@link #xrCreateKeyboardSpaceFB CreateKeyboardSpaceFB} */
+ public static int nxrCreateKeyboardSpaceFB(XrSession session, long createInfo, long keyboardSpace) {
+ long __functionAddress = session.getCapabilities().xrCreateKeyboardSpaceFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), createInfo, keyboardSpace, __functionAddress);
+ }
+
/**
* Create a foveation profile.
*
@@ -217,13 +217,13 @@ public static int nxrCreateKeyboardSpaceFB(XrSession session, long createInfo, l
* @param session the session that will be associated with the returned keyboard space.
* @param createInfo the {@link XrKeyboardSpaceCreateInfoFB} that describes the type of keyboard to track.
* @param keyboardSpace the {@code XrSpace} output structure.
- */
- @NativeType("XrResult")
- public static int xrCreateKeyboardSpaceFB(XrSession session, @NativeType("XrKeyboardSpaceCreateInfoFB const *") XrKeyboardSpaceCreateInfoFB createInfo, @NativeType("XrSpace *") PointerBuffer keyboardSpace) {
- if (CHECKS) {
- check(keyboardSpace, 1);
- }
- return nxrCreateKeyboardSpaceFB(session, createInfo.address(), memAddress(keyboardSpace));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrCreateKeyboardSpaceFB(XrSession session, @NativeType("XrKeyboardSpaceCreateInfoFB const *") XrKeyboardSpaceCreateInfoFB createInfo, @NativeType("XrSpace *") PointerBuffer keyboardSpace) {
+ if (CHECKS) {
+ check(keyboardSpace, 1);
+ }
+ return nxrCreateKeyboardSpaceFB(session, createInfo.address(), memAddress(keyboardSpace));
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBPassthrough.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBPassthrough.java
index ec74177531..4202faec0e 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBPassthrough.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBPassthrough.java
@@ -4,15 +4,15 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_FB_passthrough extension.
*
@@ -32,15 +32,15 @@
* An application to apply styles, such as color mapping and edge rendering, to passthrough.
* An application to provide a geometry to be used in place of the user’s physical environment. Camera images will be projected onto the surface provided by the application. In some cases where a part of the environment, such as a desk, can be approximated well, this provides better visual experience.
*
- */
-public class FBPassthrough {
-
- /** The extension specification version. */
- public static final int XR_FB_passthrough_SPEC_VERSION = 3;
-
- /** The extension name. */
- public static final String XR_FB_PASSTHROUGH_EXTENSION_NAME = "XR_FB_passthrough";
-
+ */
+public class FBPassthrough {
+
+ /** The extension specification version. */
+ public static final int XR_FB_passthrough_SPEC_VERSION = 3;
+
+ /** The extension name. */
+ public static final String XR_FB_PASSTHROUGH_EXTENSION_NAME = "XR_FB_passthrough";
+
/**
* Extends {@code XrStructureType}.
*
@@ -60,21 +60,21 @@ public class FBPassthrough {
* {@link #XR_TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB}
* {@link #XR_TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB}
*
- */
+ */
public static final int
- XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FB = 1000118000,
- XR_TYPE_PASSTHROUGH_CREATE_INFO_FB = 1000118001,
- XR_TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB = 1000118002,
- XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_FB = 1000118003,
- XR_TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB = 1000118004,
- XR_TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB = 1000118005,
- XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB = 1000118006,
- XR_TYPE_PASSTHROUGH_STYLE_FB = 1000118020,
- XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB = 1000118021,
- XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB = 1000118022,
- XR_TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB = 1000118023,
- XR_TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB = 1000118030;
-
+ XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FB = 1000118000,
+ XR_TYPE_PASSTHROUGH_CREATE_INFO_FB = 1000118001,
+ XR_TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB = 1000118002,
+ XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_FB = 1000118003,
+ XR_TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB = 1000118004,
+ XR_TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB = 1000118005,
+ XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB = 1000118006,
+ XR_TYPE_PASSTHROUGH_STYLE_FB = 1000118020,
+ XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB = 1000118021,
+ XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB = 1000118022,
+ XR_TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB = 1000118023,
+ XR_TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB = 1000118030;
+
/**
* Extends {@code XrResult}.
*
@@ -88,18 +88,18 @@ public class FBPassthrough {
* {@link #XR_ERROR_INSUFFICIENT_RESOURCES_PASSTHROUGH_FB ERROR_INSUFFICIENT_RESOURCES_PASSTHROUGH_FB}
* {@link #XR_ERROR_UNKNOWN_PASSTHROUGH_FB ERROR_UNKNOWN_PASSTHROUGH_FB}
*
- */
+ */
public static final int
- XR_ERROR_UNEXPECTED_STATE_PASSTHROUGH_FB = -1000118000,
- XR_ERROR_FEATURE_ALREADY_CREATED_PASSTHROUGH_FB = -1000118001,
- XR_ERROR_FEATURE_REQUIRED_PASSTHROUGH_FB = -1000118002,
- XR_ERROR_NOT_PERMITTED_PASSTHROUGH_FB = -1000118003,
- XR_ERROR_INSUFFICIENT_RESOURCES_PASSTHROUGH_FB = -1000118004,
- XR_ERROR_UNKNOWN_PASSTHROUGH_FB = -1000118050;
-
- /** XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB */
- public static final int XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB = 256;
-
+ XR_ERROR_UNEXPECTED_STATE_PASSTHROUGH_FB = -1000118000,
+ XR_ERROR_FEATURE_ALREADY_CREATED_PASSTHROUGH_FB = -1000118001,
+ XR_ERROR_FEATURE_REQUIRED_PASSTHROUGH_FB = -1000118002,
+ XR_ERROR_NOT_PERMITTED_PASSTHROUGH_FB = -1000118003,
+ XR_ERROR_INSUFFICIENT_RESOURCES_PASSTHROUGH_FB = -1000118004,
+ XR_ERROR_UNKNOWN_PASSTHROUGH_FB = -1000118050;
+
+ /** XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB */
+ public static final int XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB = 256;
+
/**
* Extends {@code XrObjectType}.
*
@@ -110,12 +110,12 @@ public class FBPassthrough {
* {@link #XR_OBJECT_TYPE_PASSTHROUGH_LAYER_FB OBJECT_TYPE_PASSTHROUGH_LAYER_FB}
* {@link #XR_OBJECT_TYPE_GEOMETRY_INSTANCE_FB OBJECT_TYPE_GEOMETRY_INSTANCE_FB}
*
- */
+ */
public static final int
- XR_OBJECT_TYPE_PASSTHROUGH_FB = 1000118000,
- XR_OBJECT_TYPE_PASSTHROUGH_LAYER_FB = 1000118002,
- XR_OBJECT_TYPE_GEOMETRY_INSTANCE_FB = 1000118004;
-
+ XR_OBJECT_TYPE_PASSTHROUGH_FB = 1000118000,
+ XR_OBJECT_TYPE_PASSTHROUGH_LAYER_FB = 1000118002,
+ XR_OBJECT_TYPE_GEOMETRY_INSTANCE_FB = 1000118004;
+
/**
* XrPassthroughCapabilityFlagBitsFB - XrPassthroughCapabilityFlagBitsFB
*
@@ -126,12 +126,12 @@ public class FBPassthrough {
* {@link #XR_PASSTHROUGH_CAPABILITY_COLOR_BIT_FB PASSTHROUGH_CAPABILITY_COLOR_BIT_FB} — The system can show passthrough with realistic colors. {@link #XR_PASSTHROUGH_CAPABILITY_BIT_FB PASSTHROUGH_CAPABILITY_BIT_FB} must be set if {@link #XR_PASSTHROUGH_CAPABILITY_COLOR_BIT_FB PASSTHROUGH_CAPABILITY_COLOR_BIT_FB} is set.
* {@link #XR_PASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FB PASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FB} — The system supports passthrough layers composited using depth testing. {@link #XR_PASSTHROUGH_CAPABILITY_BIT_FB PASSTHROUGH_CAPABILITY_BIT_FB} must be set if {@link #XR_PASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FB PASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FB} is set.
*
- */
+ */
public static final int
- XR_PASSTHROUGH_CAPABILITY_BIT_FB = 0x1,
- XR_PASSTHROUGH_CAPABILITY_COLOR_BIT_FB = 0x2,
- XR_PASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FB = 0x4;
-
+ XR_PASSTHROUGH_CAPABILITY_BIT_FB = 0x1,
+ XR_PASSTHROUGH_CAPABILITY_COLOR_BIT_FB = 0x2,
+ XR_PASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FB = 0x4;
+
/**
* XrPassthroughFlagBitsFB - XrPassthroughFlagBitsFB
*
@@ -141,11 +141,11 @@ public class FBPassthrough {
* {@link #XR_PASSTHROUGH_IS_RUNNING_AT_CREATION_BIT_FB PASSTHROUGH_IS_RUNNING_AT_CREATION_BIT_FB} — The object (passthrough, layer) is running at creation.
* {@link #XR_PASSTHROUGH_LAYER_DEPTH_BIT_FB PASSTHROUGH_LAYER_DEPTH_BIT_FB} — The passthrough system sends depth information to the compositor. Only applicable to layer objects.
*
- */
+ */
public static final int
- XR_PASSTHROUGH_IS_RUNNING_AT_CREATION_BIT_FB = 0x1,
- XR_PASSTHROUGH_LAYER_DEPTH_BIT_FB = 0x2;
-
+ XR_PASSTHROUGH_IS_RUNNING_AT_CREATION_BIT_FB = 0x1,
+ XR_PASSTHROUGH_LAYER_DEPTH_BIT_FB = 0x2;
+
/**
* XrPassthroughLayerPurposeFB - Layer purpose
*
@@ -161,11 +161,11 @@ public class FBPassthrough {
* See Also
*
* {@link XrPassthroughLayerCreateInfoFB}
- */
+ */
public static final int
- XR_PASSTHROUGH_LAYER_PURPOSE_RECONSTRUCTION_FB = 0,
- XR_PASSTHROUGH_LAYER_PURPOSE_PROJECTED_FB = 1;
-
+ XR_PASSTHROUGH_LAYER_PURPOSE_RECONSTRUCTION_FB = 0,
+ XR_PASSTHROUGH_LAYER_PURPOSE_PROJECTED_FB = 1;
+
/**
* XrPassthroughStateChangedFlagBitsFB - XrPassthroughStateChangedFlagBitsFB
*
@@ -177,28 +177,28 @@ public class FBPassthrough {
* {@link #XR_PASSTHROUGH_STATE_CHANGED_RECOVERABLE_ERROR_BIT_FB PASSTHROUGH_STATE_CHANGED_RECOVERABLE_ERROR_BIT_FB} — A recoverable error has occurred. The runtime will attempt to recover, but some functionality may be temporarily unavailable.
* {@link #XR_PASSTHROUGH_STATE_CHANGED_RESTORED_ERROR_BIT_FB PASSTHROUGH_STATE_CHANGED_RESTORED_ERROR_BIT_FB} — The runtime has recovered from a previous error and is functioning normally.
*
- */
+ */
public static final int
- XR_PASSTHROUGH_STATE_CHANGED_REINIT_REQUIRED_BIT_FB = 0x1,
- XR_PASSTHROUGH_STATE_CHANGED_NON_RECOVERABLE_ERROR_BIT_FB = 0x2,
- XR_PASSTHROUGH_STATE_CHANGED_RECOVERABLE_ERROR_BIT_FB = 0x4,
- XR_PASSTHROUGH_STATE_CHANGED_RESTORED_ERROR_BIT_FB = 0x8;
+ XR_PASSTHROUGH_STATE_CHANGED_REINIT_REQUIRED_BIT_FB = 0x1,
+ XR_PASSTHROUGH_STATE_CHANGED_NON_RECOVERABLE_ERROR_BIT_FB = 0x2,
+ XR_PASSTHROUGH_STATE_CHANGED_RECOVERABLE_ERROR_BIT_FB = 0x4,
+ XR_PASSTHROUGH_STATE_CHANGED_RESTORED_ERROR_BIT_FB = 0x8;
protected FBPassthrough() {
throw new UnsupportedOperationException();
- }
-
- // --- [ xrCreatePassthroughFB ] ---
-
- /** Unsafe version of: {@link #xrCreatePassthroughFB CreatePassthroughFB} */
- public static int nxrCreatePassthroughFB(XrSession session, long createInfo, long outPassthrough) {
- long __functionAddress = session.getCapabilities().xrCreatePassthroughFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), createInfo, outPassthrough, __functionAddress);
- }
-
+ }
+
+ // --- [ xrCreatePassthroughFB ] ---
+
+ /** Unsafe version of: {@link #xrCreatePassthroughFB CreatePassthroughFB} */
+ public static int nxrCreatePassthroughFB(XrSession session, long createInfo, long outPassthrough) {
+ long __functionAddress = session.getCapabilities().xrCreatePassthroughFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), createInfo, outPassthrough, __functionAddress);
+ }
+
/**
* Create a passthrough feature.
*
@@ -257,17 +257,17 @@ public static int nxrCreatePassthroughFB(XrSession session, long createInfo, lon
* @param session the {@code XrSession}.
* @param createInfo the {@link XrPassthroughCreateInfoFB}.
* @param outPassthrough the {@code XrPassthroughFB}.
- */
- @NativeType("XrResult")
- public static int xrCreatePassthroughFB(XrSession session, @NativeType("XrPassthroughCreateInfoFB const *") XrPassthroughCreateInfoFB createInfo, @NativeType("XrPassthroughFB *") PointerBuffer outPassthrough) {
- if (CHECKS) {
- check(outPassthrough, 1);
- }
- return nxrCreatePassthroughFB(session, createInfo.address(), memAddress(outPassthrough));
- }
-
- // --- [ xrDestroyPassthroughFB ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrCreatePassthroughFB(XrSession session, @NativeType("XrPassthroughCreateInfoFB const *") XrPassthroughCreateInfoFB createInfo, @NativeType("XrPassthroughFB *") PointerBuffer outPassthrough) {
+ if (CHECKS) {
+ check(outPassthrough, 1);
+ }
+ return nxrCreatePassthroughFB(session, createInfo.address(), memAddress(outPassthrough));
+ }
+
+ // --- [ xrDestroyPassthroughFB ] ---
+
/**
* Destroy a passthrough feature.
*
@@ -313,18 +313,18 @@ public static int xrCreatePassthroughFB(XrSession session, @NativeType("XrPassth
*
*
* @param passthrough the {@code XrPassthroughFB} to be destroyed.
- */
- @NativeType("XrResult")
- public static int xrDestroyPassthroughFB(XrPassthroughFB passthrough) {
- long __functionAddress = passthrough.getCapabilities().xrDestroyPassthroughFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(passthrough.address(), __functionAddress);
- }
-
- // --- [ xrPassthroughStartFB ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrDestroyPassthroughFB(XrPassthroughFB passthrough) {
+ long __functionAddress = passthrough.getCapabilities().xrDestroyPassthroughFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(passthrough.address(), __functionAddress);
+ }
+
+ // --- [ xrPassthroughStartFB ] ---
+
/**
* Start a passthrough feature.
*
@@ -369,18 +369,18 @@ public static int xrDestroyPassthroughFB(XrPassthroughFB passthrough) {
*
*
* @param passthrough the {@code XrPassthroughFB} to be started.
- */
- @NativeType("XrResult")
- public static int xrPassthroughStartFB(XrPassthroughFB passthrough) {
- long __functionAddress = passthrough.getCapabilities().xrPassthroughStartFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(passthrough.address(), __functionAddress);
- }
-
- // --- [ xrPassthroughPauseFB ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrPassthroughStartFB(XrPassthroughFB passthrough) {
+ long __functionAddress = passthrough.getCapabilities().xrPassthroughStartFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(passthrough.address(), __functionAddress);
+ }
+
+ // --- [ xrPassthroughPauseFB ] ---
+
/**
* Pause a passthrough feature.
*
@@ -425,28 +425,28 @@ public static int xrPassthroughStartFB(XrPassthroughFB passthrough) {
*
*
* @param passthrough the {@code XrPassthroughFB} to be paused.
- */
- @NativeType("XrResult")
- public static int xrPassthroughPauseFB(XrPassthroughFB passthrough) {
- long __functionAddress = passthrough.getCapabilities().xrPassthroughPauseFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(passthrough.address(), __functionAddress);
- }
-
- // --- [ xrCreatePassthroughLayerFB ] ---
-
- /** Unsafe version of: {@link #xrCreatePassthroughLayerFB CreatePassthroughLayerFB} */
- public static int nxrCreatePassthroughLayerFB(XrSession session, long createInfo, long outLayer) {
- long __functionAddress = session.getCapabilities().xrCreatePassthroughLayerFB;
- if (CHECKS) {
- check(__functionAddress);
- XrPassthroughLayerCreateInfoFB.validate(createInfo);
- }
- return callPPPI(session.address(), createInfo, outLayer, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrPassthroughPauseFB(XrPassthroughFB passthrough) {
+ long __functionAddress = passthrough.getCapabilities().xrPassthroughPauseFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(passthrough.address(), __functionAddress);
+ }
+
+ // --- [ xrCreatePassthroughLayerFB ] ---
+
+ /** Unsafe version of: {@link #xrCreatePassthroughLayerFB CreatePassthroughLayerFB} */
+ public static int nxrCreatePassthroughLayerFB(XrSession session, long createInfo, long outLayer) {
+ long __functionAddress = session.getCapabilities().xrCreatePassthroughLayerFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrPassthroughLayerCreateInfoFB.validate(createInfo);
+ }
+ return callPPPI(session.address(), createInfo, outLayer, __functionAddress);
+ }
+
/**
* Create a passthrough layer.
*
@@ -505,17 +505,17 @@ public static int nxrCreatePassthroughLayerFB(XrSession session, long createInfo
* @param session the {@code XrSession}.
* @param createInfo the {@link XrPassthroughLayerCreateInfoFB}.
* @param outLayer the {@code XrPassthroughLayerFB}.
- */
- @NativeType("XrResult")
- public static int xrCreatePassthroughLayerFB(XrSession session, @NativeType("XrPassthroughLayerCreateInfoFB const *") XrPassthroughLayerCreateInfoFB createInfo, @NativeType("XrPassthroughLayerFB *") PointerBuffer outLayer) {
- if (CHECKS) {
- check(outLayer, 1);
- }
- return nxrCreatePassthroughLayerFB(session, createInfo.address(), memAddress(outLayer));
- }
-
- // --- [ xrDestroyPassthroughLayerFB ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrCreatePassthroughLayerFB(XrSession session, @NativeType("XrPassthroughLayerCreateInfoFB const *") XrPassthroughLayerCreateInfoFB createInfo, @NativeType("XrPassthroughLayerFB *") PointerBuffer outLayer) {
+ if (CHECKS) {
+ check(outLayer, 1);
+ }
+ return nxrCreatePassthroughLayerFB(session, createInfo.address(), memAddress(outLayer));
+ }
+
+ // --- [ xrDestroyPassthroughLayerFB ] ---
+
/**
* Destroy a passthrough layer.
*
@@ -561,18 +561,18 @@ public static int xrCreatePassthroughLayerFB(XrSession session, @NativeType("XrP
*
*
* @param layer the {@code XrPassthroughLayerFB} to be destroyed.
- */
- @NativeType("XrResult")
- public static int xrDestroyPassthroughLayerFB(XrPassthroughLayerFB layer) {
- long __functionAddress = layer.getCapabilities().xrDestroyPassthroughLayerFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(layer.address(), __functionAddress);
- }
-
- // --- [ xrPassthroughLayerPauseFB ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrDestroyPassthroughLayerFB(XrPassthroughLayerFB layer) {
+ long __functionAddress = layer.getCapabilities().xrDestroyPassthroughLayerFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(layer.address(), __functionAddress);
+ }
+
+ // --- [ xrPassthroughLayerPauseFB ] ---
+
/**
* Pause a passthrough layer.
*
@@ -617,18 +617,18 @@ public static int xrDestroyPassthroughLayerFB(XrPassthroughLayerFB layer) {
*
*
* @param layer the {@code XrPassthroughLayerFB} to be paused.
- */
- @NativeType("XrResult")
- public static int xrPassthroughLayerPauseFB(XrPassthroughLayerFB layer) {
- long __functionAddress = layer.getCapabilities().xrPassthroughLayerPauseFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(layer.address(), __functionAddress);
- }
-
- // --- [ xrPassthroughLayerResumeFB ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrPassthroughLayerPauseFB(XrPassthroughLayerFB layer) {
+ long __functionAddress = layer.getCapabilities().xrPassthroughLayerPauseFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(layer.address(), __functionAddress);
+ }
+
+ // --- [ xrPassthroughLayerResumeFB ] ---
+
/**
* Resume a passthrough layer.
*
@@ -673,27 +673,27 @@ public static int xrPassthroughLayerPauseFB(XrPassthroughLayerFB layer) {
*
*
* @param layer the {@code XrPassthroughLayerFB} to be resumed.
- */
- @NativeType("XrResult")
- public static int xrPassthroughLayerResumeFB(XrPassthroughLayerFB layer) {
- long __functionAddress = layer.getCapabilities().xrPassthroughLayerResumeFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(layer.address(), __functionAddress);
- }
-
- // --- [ xrPassthroughLayerSetStyleFB ] ---
-
- /** Unsafe version of: {@link #xrPassthroughLayerSetStyleFB PassthroughLayerSetStyleFB} */
- public static int nxrPassthroughLayerSetStyleFB(XrPassthroughLayerFB layer, long style) {
- long __functionAddress = layer.getCapabilities().xrPassthroughLayerSetStyleFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(layer.address(), style, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrPassthroughLayerResumeFB(XrPassthroughLayerFB layer) {
+ long __functionAddress = layer.getCapabilities().xrPassthroughLayerResumeFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(layer.address(), __functionAddress);
+ }
+
+ // --- [ xrPassthroughLayerSetStyleFB ] ---
+
+ /** Unsafe version of: {@link #xrPassthroughLayerSetStyleFB PassthroughLayerSetStyleFB} */
+ public static int nxrPassthroughLayerSetStyleFB(XrPassthroughLayerFB layer, long style) {
+ long __functionAddress = layer.getCapabilities().xrPassthroughLayerSetStyleFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(layer.address(), style, __functionAddress);
+ }
+
/**
* Set style on a passthrough layer.
*
@@ -744,24 +744,24 @@ public static int nxrPassthroughLayerSetStyleFB(XrPassthroughLayerFB layer, long
*
* @param layer the {@code XrPassthroughLayerFB} to get the style.
* @param style the {@link XrPassthroughStyleFB} to be set.
- */
- @NativeType("XrResult")
- public static int xrPassthroughLayerSetStyleFB(XrPassthroughLayerFB layer, @NativeType("XrPassthroughStyleFB const *") XrPassthroughStyleFB style) {
- return nxrPassthroughLayerSetStyleFB(layer, style.address());
- }
-
- // --- [ xrCreateGeometryInstanceFB ] ---
-
- /** Unsafe version of: {@link #xrCreateGeometryInstanceFB CreateGeometryInstanceFB} */
- public static int nxrCreateGeometryInstanceFB(XrSession session, long createInfo, long outGeometryInstance) {
- long __functionAddress = session.getCapabilities().xrCreateGeometryInstanceFB;
- if (CHECKS) {
- check(__functionAddress);
- XrGeometryInstanceCreateInfoFB.validate(createInfo);
- }
- return callPPPI(session.address(), createInfo, outGeometryInstance, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrPassthroughLayerSetStyleFB(XrPassthroughLayerFB layer, @NativeType("XrPassthroughStyleFB const *") XrPassthroughStyleFB style) {
+ return nxrPassthroughLayerSetStyleFB(layer, style.address());
+ }
+
+ // --- [ xrCreateGeometryInstanceFB ] ---
+
+ /** Unsafe version of: {@link #xrCreateGeometryInstanceFB CreateGeometryInstanceFB} */
+ public static int nxrCreateGeometryInstanceFB(XrSession session, long createInfo, long outGeometryInstance) {
+ long __functionAddress = session.getCapabilities().xrCreateGeometryInstanceFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrGeometryInstanceCreateInfoFB.validate(createInfo);
+ }
+ return callPPPI(session.address(), createInfo, outGeometryInstance, __functionAddress);
+ }
+
/**
* Create a triangle mesh.
*
@@ -819,17 +819,17 @@ public static int nxrCreateGeometryInstanceFB(XrSession session, long createInfo
* @param session the {@code XrSession}.
* @param createInfo the {@link XrGeometryInstanceCreateInfoFB}.
* @param outGeometryInstance the {@code XrGeometryInstanceFB}.
- */
- @NativeType("XrResult")
- public static int xrCreateGeometryInstanceFB(XrSession session, @NativeType("XrGeometryInstanceCreateInfoFB const *") XrGeometryInstanceCreateInfoFB createInfo, @NativeType("XrGeometryInstanceFB *") PointerBuffer outGeometryInstance) {
- if (CHECKS) {
- check(outGeometryInstance, 1);
- }
- return nxrCreateGeometryInstanceFB(session, createInfo.address(), memAddress(outGeometryInstance));
- }
-
- // --- [ xrDestroyGeometryInstanceFB ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrCreateGeometryInstanceFB(XrSession session, @NativeType("XrGeometryInstanceCreateInfoFB const *") XrGeometryInstanceCreateInfoFB createInfo, @NativeType("XrGeometryInstanceFB *") PointerBuffer outGeometryInstance) {
+ if (CHECKS) {
+ check(outGeometryInstance, 1);
+ }
+ return nxrCreateGeometryInstanceFB(session, createInfo.address(), memAddress(outGeometryInstance));
+ }
+
+ // --- [ xrDestroyGeometryInstanceFB ] ---
+
/**
* Destroy a geometry instance.
*
@@ -873,28 +873,28 @@ public static int xrCreateGeometryInstanceFB(XrSession session, @NativeType("XrG
* {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
*
*
- */
- @NativeType("XrResult")
- public static int xrDestroyGeometryInstanceFB(XrGeometryInstanceFB instance) {
- long __functionAddress = instance.getCapabilities().xrDestroyGeometryInstanceFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(instance.address(), __functionAddress);
- }
-
- // --- [ xrGeometryInstanceSetTransformFB ] ---
-
- /** Unsafe version of: {@link #xrGeometryInstanceSetTransformFB GeometryInstanceSetTransformFB} */
- public static int nxrGeometryInstanceSetTransformFB(XrGeometryInstanceFB instance, long transformation) {
- long __functionAddress = instance.getCapabilities().xrGeometryInstanceSetTransformFB;
- if (CHECKS) {
- check(__functionAddress);
- XrGeometryInstanceTransformFB.validate(transformation);
- }
- return callPPI(instance.address(), transformation, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrDestroyGeometryInstanceFB(XrGeometryInstanceFB instance) {
+ long __functionAddress = instance.getCapabilities().xrDestroyGeometryInstanceFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(instance.address(), __functionAddress);
+ }
+
+ // --- [ xrGeometryInstanceSetTransformFB ] ---
+
+ /** Unsafe version of: {@link #xrGeometryInstanceSetTransformFB GeometryInstanceSetTransformFB} */
+ public static int nxrGeometryInstanceSetTransformFB(XrGeometryInstanceFB instance, long transformation) {
+ long __functionAddress = instance.getCapabilities().xrGeometryInstanceSetTransformFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrGeometryInstanceTransformFB.validate(transformation);
+ }
+ return callPPI(instance.address(), transformation, __functionAddress);
+ }
+
/**
* Create a triangle mesh.
*
@@ -944,10 +944,10 @@ public static int nxrGeometryInstanceSetTransformFB(XrGeometryInstanceFB instanc
* See Also
*
* {@link XrGeometryInstanceTransformFB}
- */
- @NativeType("XrResult")
- public static int xrGeometryInstanceSetTransformFB(XrGeometryInstanceFB instance, @NativeType("XrGeometryInstanceTransformFB const *") XrGeometryInstanceTransformFB transformation) {
- return nxrGeometryInstanceSetTransformFB(instance, transformation.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGeometryInstanceSetTransformFB(XrGeometryInstanceFB instance, @NativeType("XrGeometryInstanceTransformFB const *") XrGeometryInstanceTransformFB transformation) {
+ return nxrGeometryInstanceSetTransformFB(instance, transformation.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBPassthroughKeyboardHands.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBPassthroughKeyboardHands.java
index a7c2ef6f9f..2a4dd798cc 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBPassthroughKeyboardHands.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBPassthroughKeyboardHands.java
@@ -4,12 +4,12 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+
/**
* The XR_FB_passthrough_keyboard_hands extension.
*
@@ -23,15 +23,15 @@
* Creation of keyboard hands passthrough layer using {@link FBPassthrough#xrCreatePassthroughLayerFB CreatePassthroughLayerFB}
* Setting the level of intensity for the hand mask in a passthrough layer with purpose {@code XrPassthroughLayerPurposeFB} as {@link #XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_HANDS_FB PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_HANDS_FB} or {@link #XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_MASKED_HANDS_FB PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_MASKED_HANDS_FB}
*
- */
-public class FBPassthroughKeyboardHands {
-
- /** The extension specification version. */
- public static final int XR_FB_passthrough_keyboard_hands_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_FB_PASSTHROUGH_KEYBOARD_HANDS_EXTENSION_NAME = "XR_FB_passthrough_keyboard_hands";
-
+ */
+public class FBPassthroughKeyboardHands {
+
+ /** The extension specification version. */
+ public static final int XR_FB_passthrough_keyboard_hands_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_FB_PASSTHROUGH_KEYBOARD_HANDS_EXTENSION_NAME = "XR_FB_passthrough_keyboard_hands";
+
/**
* Extends {@code XrPassthroughLayerPurposeFB}.
*
@@ -41,29 +41,29 @@ public class FBPassthroughKeyboardHands {
* {@link #XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_HANDS_FB PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_HANDS_FB}
* {@link #XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_MASKED_HANDS_FB PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_MASKED_HANDS_FB}
*
- */
+ */
public static final int
- XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_HANDS_FB = 1000203001,
- XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_MASKED_HANDS_FB = 1000203002;
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FB = 1000203002;
+ XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_HANDS_FB = 1000203001,
+ XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_MASKED_HANDS_FB = 1000203002;
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FB = 1000203002;
protected FBPassthroughKeyboardHands() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrPassthroughLayerSetKeyboardHandsIntensityFB ] ---
+
+ /** Unsafe version of: {@link #xrPassthroughLayerSetKeyboardHandsIntensityFB PassthroughLayerSetKeyboardHandsIntensityFB} */
+ public static int nxrPassthroughLayerSetKeyboardHandsIntensityFB(XrPassthroughLayerFB layer, long intensity) {
+ long __functionAddress = layer.getCapabilities().xrPassthroughLayerSetKeyboardHandsIntensityFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(layer.address(), intensity, __functionAddress);
+ }
- // --- [ xrPassthroughLayerSetKeyboardHandsIntensityFB ] ---
-
- /** Unsafe version of: {@link #xrPassthroughLayerSetKeyboardHandsIntensityFB PassthroughLayerSetKeyboardHandsIntensityFB} */
- public static int nxrPassthroughLayerSetKeyboardHandsIntensityFB(XrPassthroughLayerFB layer, long intensity) {
- long __functionAddress = layer.getCapabilities().xrPassthroughLayerSetKeyboardHandsIntensityFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(layer.address(), intensity, __functionAddress);
- }
-
/**
* Renders hands over the keyboard (keyboard hands) with a specific intensity of hands passthrough layer.
*
@@ -114,10 +114,10 @@ public static int nxrPassthroughLayerSetKeyboardHandsIntensityFB(XrPassthroughLa
*
* @param layer the {@code XrPassthroughLayerFB} to apply the intensity.
* @param intensity the {@link XrPassthroughKeyboardHandsIntensityFB} to be set.
- */
- @NativeType("XrResult")
- public static int xrPassthroughLayerSetKeyboardHandsIntensityFB(XrPassthroughLayerFB layer, @NativeType("XrPassthroughKeyboardHandsIntensityFB const *") XrPassthroughKeyboardHandsIntensityFB intensity) {
- return nxrPassthroughLayerSetKeyboardHandsIntensityFB(layer, intensity.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrPassthroughLayerSetKeyboardHandsIntensityFB(XrPassthroughLayerFB layer, @NativeType("XrPassthroughKeyboardHandsIntensityFB const *") XrPassthroughKeyboardHandsIntensityFB intensity) {
+ return nxrPassthroughLayerSetKeyboardHandsIntensityFB(layer, intensity.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBRenderModel.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBRenderModel.java
index fd2e76654d..278090b4ec 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBRenderModel.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBRenderModel.java
@@ -4,33 +4,33 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_FB_render_model extension.
*
* This extension allows applications to request GLTF models for certain connected devices supported by the runtime. Paths that correspond to these devices will be provided through the extension and can be used to get information about the models as well as loading them.
- */
-public class FBRenderModel {
-
- /** The extension specification version. */
- public static final int XR_FB_render_model_SPEC_VERSION = 3;
-
- /** The extension name. */
- public static final String XR_FB_RENDER_MODEL_EXTENSION_NAME = "XR_FB_render_model";
-
- /** XR_MAX_RENDER_MODEL_NAME_SIZE_FB */
- public static final int XR_MAX_RENDER_MODEL_NAME_SIZE_FB = 64;
-
+ */
+public class FBRenderModel {
+
+ /** The extension specification version. */
+ public static final int XR_FB_render_model_SPEC_VERSION = 3;
+
+ /** The extension name. */
+ public static final String XR_FB_RENDER_MODEL_EXTENSION_NAME = "XR_FB_render_model";
+
+ /** XR_MAX_RENDER_MODEL_NAME_SIZE_FB */
+ public static final int XR_MAX_RENDER_MODEL_NAME_SIZE_FB = 64;
+
/**
* Extends {@code XrStructureType}.
*
@@ -44,15 +44,15 @@ public class FBRenderModel {
* {@link #XR_TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB}
* {@link #XR_TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB}
*
- */
+ */
public static final int
- XR_TYPE_RENDER_MODEL_PATH_INFO_FB = 1000119000,
- XR_TYPE_RENDER_MODEL_PROPERTIES_FB = 1000119001,
- XR_TYPE_RENDER_MODEL_BUFFER_FB = 1000119002,
- XR_TYPE_RENDER_MODEL_LOAD_INFO_FB = 1000119003,
- XR_TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB = 1000119004,
- XR_TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB = 1000119005;
-
+ XR_TYPE_RENDER_MODEL_PATH_INFO_FB = 1000119000,
+ XR_TYPE_RENDER_MODEL_PROPERTIES_FB = 1000119001,
+ XR_TYPE_RENDER_MODEL_BUFFER_FB = 1000119002,
+ XR_TYPE_RENDER_MODEL_LOAD_INFO_FB = 1000119003,
+ XR_TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB = 1000119004,
+ XR_TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB = 1000119005;
+
/**
* Extends {@code XrResult}.
*
@@ -62,11 +62,11 @@ public class FBRenderModel {
* {@link #XR_ERROR_RENDER_MODEL_KEY_INVALID_FB ERROR_RENDER_MODEL_KEY_INVALID_FB}
* {@link #XR_RENDER_MODEL_UNAVAILABLE_FB RENDER_MODEL_UNAVAILABLE_FB}
*
- */
+ */
public static final int
- XR_ERROR_RENDER_MODEL_KEY_INVALID_FB = -1000119000,
- XR_RENDER_MODEL_UNAVAILABLE_FB = 1000119020;
-
+ XR_ERROR_RENDER_MODEL_KEY_INVALID_FB = -1000119000,
+ XR_RENDER_MODEL_UNAVAILABLE_FB = 1000119020;
+
/**
* XrRenderModelFlagBitsFB - XrRenderModelFlagBitsFB
*
@@ -78,33 +78,33 @@ public class FBRenderModel {
*
*
* Render Model Support Levels: An application should request a model of a certain complexity via the {@link XrRenderModelCapabilitiesRequestFB} on the structure chain of {@link XrRenderModelPropertiesFB} passed into {@link #xrGetRenderModelPropertiesFB GetRenderModelPropertiesFB}. The flags on the {@link XrRenderModelCapabilitiesRequestFB} are an acknowledgement of the application’s ability to render such a model. Multiple values of {@code XrRenderModelFlagBitsFB} can be set on this variable to indicate acceptance of different support levels. The flags parameter on the {@link XrRenderModelPropertiesFB} will indicate what capabilities the model in the runtime actually requires. It will be set to a single value of {@code XrRenderModelFlagBitsFB}.
- */
+ */
public static final int
- XR_RENDER_MODEL_SUPPORTS_GLTF_2_0_SUBSET_1_BIT_FB = 0x1,
- XR_RENDER_MODEL_SUPPORTS_GLTF_2_0_SUBSET_2_BIT_FB = 0x2;
-
- /** API Constants */
- public static final long XR_NULL_RENDER_MODEL_KEY_FB = 0x0L;
+ XR_RENDER_MODEL_SUPPORTS_GLTF_2_0_SUBSET_1_BIT_FB = 0x1,
+ XR_RENDER_MODEL_SUPPORTS_GLTF_2_0_SUBSET_2_BIT_FB = 0x2;
+
+ /** API Constants */
+ public static final long XR_NULL_RENDER_MODEL_KEY_FB = 0x0L;
protected FBRenderModel() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrEnumerateRenderModelPathsFB ] ---
- // --- [ xrEnumerateRenderModelPathsFB ] ---
-
/**
* Unsafe version of: {@link #xrEnumerateRenderModelPathsFB EnumerateRenderModelPathsFB}
*
* @param pathCapacityInput the capacity of the {@code paths}, or 0 to retrieve the required capacity.
- */
- public static int nxrEnumerateRenderModelPathsFB(XrSession session, int pathCapacityInput, long pathCountOutput, long paths) {
- long __functionAddress = session.getCapabilities().xrEnumerateRenderModelPathsFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), pathCapacityInput, pathCountOutput, paths, __functionAddress);
- }
-
+ */
+ public static int nxrEnumerateRenderModelPathsFB(XrSession session, int pathCapacityInput, long pathCountOutput, long paths) {
+ long __functionAddress = session.getCapabilities().xrEnumerateRenderModelPathsFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), pathCapacityInput, pathCountOutput, paths, __functionAddress);
+ }
+
/**
* Enumerate supported render model paths.
*
@@ -158,26 +158,26 @@ public static int nxrEnumerateRenderModelPathsFB(XrSession session, int pathCapa
* @param session the specified {@code XrSession}.
* @param pathCountOutput a pointer to the count of {@code float} {@code paths} written, or a pointer to the required capacity in the case that {@code pathCapacityInput} is insufficient.
* @param paths a pointer to an application-allocated array that will be filled with {@link XrRenderModelPathInfoFB} values that are supported by the runtime, but can be {@code NULL} if {@code pathCapacityInput} is 0
- */
- @NativeType("XrResult")
- public static int xrEnumerateRenderModelPathsFB(XrSession session, @NativeType("uint32_t *") IntBuffer pathCountOutput, @Nullable @NativeType("XrRenderModelPathInfoFB *") XrRenderModelPathInfoFB.Buffer paths) {
- if (CHECKS) {
- check(pathCountOutput, 1);
- }
- return nxrEnumerateRenderModelPathsFB(session, remainingSafe(paths), memAddress(pathCountOutput), memAddressSafe(paths));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrEnumerateRenderModelPathsFB(XrSession session, @NativeType("uint32_t *") IntBuffer pathCountOutput, @Nullable @NativeType("XrRenderModelPathInfoFB *") XrRenderModelPathInfoFB.Buffer paths) {
+ if (CHECKS) {
+ check(pathCountOutput, 1);
+ }
+ return nxrEnumerateRenderModelPathsFB(session, remainingSafe(paths), memAddress(pathCountOutput), memAddressSafe(paths));
+ }
+
+ // --- [ xrGetRenderModelPropertiesFB ] ---
+
+ /** Unsafe version of: {@link #xrGetRenderModelPropertiesFB GetRenderModelPropertiesFB} */
+ public static int nxrGetRenderModelPropertiesFB(XrSession session, long path, long properties) {
+ long __functionAddress = session.getCapabilities().xrGetRenderModelPropertiesFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJPI(session.address(), path, properties, __functionAddress);
+ }
- // --- [ xrGetRenderModelPropertiesFB ] ---
-
- /** Unsafe version of: {@link #xrGetRenderModelPropertiesFB GetRenderModelPropertiesFB} */
- public static int nxrGetRenderModelPropertiesFB(XrSession session, long path, long properties) {
- long __functionAddress = session.getCapabilities().xrGetRenderModelPropertiesFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJPI(session.address(), path, properties, __functionAddress);
- }
-
/**
* Get information for a render model.
*
@@ -237,23 +237,23 @@ public static int nxrGetRenderModelPropertiesFB(XrSession session, long path, lo
* @param session the specified {@code XrSession}.
* @param path the path of the render model to get the properties for.
* @param properties a pointer to the {@link XrRenderModelPropertiesFB} to write the render model information to.
- */
- @NativeType("XrResult")
- public static int xrGetRenderModelPropertiesFB(XrSession session, @NativeType("XrPath") long path, @NativeType("XrRenderModelPropertiesFB *") XrRenderModelPropertiesFB properties) {
- return nxrGetRenderModelPropertiesFB(session, path, properties.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetRenderModelPropertiesFB(XrSession session, @NativeType("XrPath") long path, @NativeType("XrRenderModelPropertiesFB *") XrRenderModelPropertiesFB properties) {
+ return nxrGetRenderModelPropertiesFB(session, path, properties.address());
+ }
+
+ // --- [ xrLoadRenderModelFB ] ---
+
+ /** Unsafe version of: {@link #xrLoadRenderModelFB LoadRenderModelFB} */
+ public static int nxrLoadRenderModelFB(XrSession session, long info, long buffer) {
+ long __functionAddress = session.getCapabilities().xrLoadRenderModelFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), info, buffer, __functionAddress);
+ }
- // --- [ xrLoadRenderModelFB ] ---
-
- /** Unsafe version of: {@link #xrLoadRenderModelFB LoadRenderModelFB} */
- public static int nxrLoadRenderModelFB(XrSession session, long info, long buffer) {
- long __functionAddress = session.getCapabilities().xrLoadRenderModelFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), info, buffer, __functionAddress);
- }
-
/**
* Load binary data for a render model.
*
@@ -312,10 +312,10 @@ public static int nxrLoadRenderModelFB(XrSession session, long info, long buffer
* @param session the specified {@code XrSession}.
* @param info a pointer to the {@link XrRenderModelLoadInfoFB} structure.
* @param buffer a pointer to the {@link XrRenderModelBufferFB} structure to write the binary data into.
- */
- @NativeType("XrResult")
- public static int xrLoadRenderModelFB(XrSession session, @NativeType("XrRenderModelLoadInfoFB const *") XrRenderModelLoadInfoFB info, @NativeType("XrRenderModelBufferFB *") XrRenderModelBufferFB buffer) {
- return nxrLoadRenderModelFB(session, info.address(), buffer.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrLoadRenderModelFB(XrSession session, @NativeType("XrRenderModelLoadInfoFB const *") XrRenderModelLoadInfoFB info, @NativeType("XrRenderModelBufferFB *") XrRenderModelBufferFB buffer) {
+ return nxrLoadRenderModelFB(session, info.address(), buffer.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSceneCapture.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSceneCapture.java
index 8edb7c0299..383bb72ccc 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSceneCapture.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSceneCapture.java
@@ -4,30 +4,30 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import java.nio.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_FB_scene_capture extension.
*
* This extension allows an application to request that the system begin capturing information about what is in the environment around the user.
*
* In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public class FBSceneCapture {
-
- /** The extension specification version. */
- public static final int XR_FB_scene_capture_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_SCENE_CAPTURE_EXTENSION_NAME = "XR_FB_scene_capture";
-
+ */
+public class FBSceneCapture {
+
+ /** The extension specification version. */
+ public static final int XR_FB_scene_capture_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_SCENE_CAPTURE_EXTENSION_NAME = "XR_FB_scene_capture";
+
/**
* Extends {@code XrStructureType}.
*
@@ -37,26 +37,26 @@ public class FBSceneCapture {
* {@link #XR_TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB}
* {@link #XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB TYPE_SCENE_CAPTURE_REQUEST_INFO_FB}
*
- */
+ */
public static final int
- XR_TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB = 1000198001,
- XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB = 1000198050;
+ XR_TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB = 1000198001,
+ XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB = 1000198050;
protected FBSceneCapture() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrRequestSceneCaptureFB ] ---
+
+ /** Unsafe version of: {@link #xrRequestSceneCaptureFB RequestSceneCaptureFB} */
+ public static int nxrRequestSceneCaptureFB(XrSession session, long info, long requestId) {
+ long __functionAddress = session.getCapabilities().xrRequestSceneCaptureFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), info, requestId, __functionAddress);
+ }
- // --- [ xrRequestSceneCaptureFB ] ---
-
- /** Unsafe version of: {@link #xrRequestSceneCaptureFB RequestSceneCaptureFB} */
- public static int nxrRequestSceneCaptureFB(XrSession session, long info, long requestId) {
- long __functionAddress = session.getCapabilities().xrRequestSceneCaptureFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), info, requestId, __functionAddress);
- }
-
/**
* Begins a scene capture using the specified parameters.
*
@@ -110,13 +110,13 @@ public static int nxrRequestSceneCaptureFB(XrSession session, long info, long re
* @param session a handle to an {@code XrSession}.
* @param info an {@link XrSceneCaptureRequestInfoFB} which specifies how the scene capture should occur.
* @param requestId the output parameter that points to the ID of this asynchronous request.
- */
- @NativeType("XrResult")
- public static int xrRequestSceneCaptureFB(XrSession session, @NativeType("XrSceneCaptureRequestInfoFB const *") XrSceneCaptureRequestInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) {
- if (CHECKS) {
- check(requestId, 1);
- }
- return nxrRequestSceneCaptureFB(session, info.address(), memAddress(requestId));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrRequestSceneCaptureFB(XrSession session, @NativeType("XrSceneCaptureRequestInfoFB const *") XrSceneCaptureRequestInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) {
+ if (CHECKS) {
+ check(requestId, 1);
+ }
+ return nxrRequestSceneCaptureFB(session, info.address(), memAddress(requestId));
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpaceWarp.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpaceWarp.java
index aac3fc6b40..b62fe8e955 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpaceWarp.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpaceWarp.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_FB_space_warp extension.
*
@@ -16,15 +16,15 @@
*
* This extension is independent of {@link KHRCompositionLayerDepth XR_KHR_composition_layer_depth}, and both may be enabled and used at the same time, for different purposes. The {@link XrCompositionLayerSpaceWarpInfoFB}{@code ::depthSubImage} depth data is dedicated for space warp, and its resolution is usually lower than {@link XrCompositionLayerDepthInfoKHR}{@code ::subImage}. See {@link XrSystemSpaceWarpPropertiesFB} for suggested resolution of {@code depthSubImage}.
*
- */
-public final class FBSpaceWarp {
-
- /** The extension specification version. */
- public static final int XR_FB_space_warp_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_FB_SPACE_WARP_EXTENSION_NAME = "XR_FB_space_warp";
-
+ */
+public final class FBSpaceWarp {
+
+ /** The extension specification version. */
+ public static final int XR_FB_space_warp_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_FB_SPACE_WARP_EXTENSION_NAME = "XR_FB_space_warp";
+
/**
* Extends {@code XrStructureType}.
*
@@ -34,11 +34,11 @@ public final class FBSpaceWarp {
* {@link #XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB}
* {@link #XR_TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB}
*
- */
+ */
public static final int
- XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB = 1000171000,
- XR_TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB = 1000171001;
-
+ XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB = 1000171000,
+ XR_TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB = 1000171001;
+
/**
* XrCompositionLayerSpaceWarpInfoFlagBitsFB - XrCompositionLayerSpaceWarpInfoFlagBitsFB
*
@@ -47,9 +47,9 @@ public final class FBSpaceWarp {
*
* - {@link #XR_COMPOSITION_LAYER_SPACE_WARP_INFO_FRAME_SKIP_BIT_FB COMPOSITION_LAYER_SPACE_WARP_INFO_FRAME_SKIP_BIT_FB} requests that the runtime skips space warp frame extrapolation for a particular frame. This can be used when the application has better knowledge the particular frame will be not a good fit for space warp frame extrapolation.
*
- */
- public static final int XR_COMPOSITION_LAYER_SPACE_WARP_INFO_FRAME_SKIP_BIT_FB = 0x1;
+ */
+ public static final int XR_COMPOSITION_LAYER_SPACE_WARP_INFO_FRAME_SKIP_BIT_FB = 0x1;
- private FBSpaceWarp() {}
+ private FBSpaceWarp() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntity.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntity.java
index aa02ec70aa..44b0cef398 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntity.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntity.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_FB_spatial_entity extension.
*
@@ -32,15 +32,15 @@
* An application to enable or disable a component for a given spatial entity.
* An application to get the status of a component for a given spatial entity.
*
- */
-public class FBSpatialEntity {
-
- /** The extension specification version. */
- public static final int XR_FB_spatial_entity_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_FB_SPATIAL_ENTITY_EXTENSION_NAME = "XR_FB_spatial_entity";
-
+ */
+public class FBSpatialEntity {
+
+ /** The extension specification version. */
+ public static final int XR_FB_spatial_entity_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_FB_SPATIAL_ENTITY_EXTENSION_NAME = "XR_FB_spatial_entity";
+
/**
* Extends {@code XrStructureType}.
*
@@ -54,15 +54,15 @@ public class FBSpatialEntity {
* {@link #XR_TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB}
* {@link #XR_TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB}
*
- */
+ */
public static final int
- XR_TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB = 1000113004,
- XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB = 1000113003,
- XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB = 1000113007,
- XR_TYPE_SPACE_COMPONENT_STATUS_FB = 1000113001,
- XR_TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB = 1000113005,
- XR_TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB = 1000113006;
-
+ XR_TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB = 1000113004,
+ XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB = 1000113003,
+ XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB = 1000113007,
+ XR_TYPE_SPACE_COMPONENT_STATUS_FB = 1000113001,
+ XR_TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB = 1000113005,
+ XR_TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB = 1000113006;
+
/**
* Extends {@code XrResult}.
*
@@ -74,13 +74,13 @@ public class FBSpatialEntity {
* {@link #XR_ERROR_SPACE_COMPONENT_STATUS_PENDING_FB ERROR_SPACE_COMPONENT_STATUS_PENDING_FB}
* {@link #XR_ERROR_SPACE_COMPONENT_STATUS_ALREADY_SET_FB ERROR_SPACE_COMPONENT_STATUS_ALREADY_SET_FB}
*
- */
+ */
public static final int
- XR_ERROR_SPACE_COMPONENT_NOT_SUPPORTED_FB = -1000113000,
- XR_ERROR_SPACE_COMPONENT_NOT_ENABLED_FB = -1000113001,
- XR_ERROR_SPACE_COMPONENT_STATUS_PENDING_FB = -1000113002,
- XR_ERROR_SPACE_COMPONENT_STATUS_ALREADY_SET_FB = -1000113003;
-
+ XR_ERROR_SPACE_COMPONENT_NOT_SUPPORTED_FB = -1000113000,
+ XR_ERROR_SPACE_COMPONENT_NOT_ENABLED_FB = -1000113001,
+ XR_ERROR_SPACE_COMPONENT_STATUS_PENDING_FB = -1000113002,
+ XR_ERROR_SPACE_COMPONENT_STATUS_ALREADY_SET_FB = -1000113003;
+
/**
* XrSpaceComponentTypeFB - Component type
*
@@ -104,33 +104,33 @@ public class FBSpatialEntity {
* See Also
*
* {@link XrEventDataSpaceSetStatusCompleteFB}, {@link XrSpaceComponentFilterInfoFB}, {@link XrSpaceComponentStatusSetInfoFB}, {@link #xrEnumerateSpaceSupportedComponentsFB EnumerateSpaceSupportedComponentsFB}, {@link #xrGetSpaceComponentStatusFB GetSpaceComponentStatusFB}
- */
+ */
public static final int
- XR_SPACE_COMPONENT_TYPE_LOCATABLE_FB = 0,
- XR_SPACE_COMPONENT_TYPE_STORABLE_FB = 1,
- XR_SPACE_COMPONENT_TYPE_SHARABLE_FB = 2,
- XR_SPACE_COMPONENT_TYPE_BOUNDED_2D_FB = 3,
- XR_SPACE_COMPONENT_TYPE_BOUNDED_3D_FB = 4,
- XR_SPACE_COMPONENT_TYPE_SEMANTIC_LABELS_FB = 5,
- XR_SPACE_COMPONENT_TYPE_ROOM_LAYOUT_FB = 6,
- XR_SPACE_COMPONENT_TYPE_SPACE_CONTAINER_FB = 7;
+ XR_SPACE_COMPONENT_TYPE_LOCATABLE_FB = 0,
+ XR_SPACE_COMPONENT_TYPE_STORABLE_FB = 1,
+ XR_SPACE_COMPONENT_TYPE_SHARABLE_FB = 2,
+ XR_SPACE_COMPONENT_TYPE_BOUNDED_2D_FB = 3,
+ XR_SPACE_COMPONENT_TYPE_BOUNDED_3D_FB = 4,
+ XR_SPACE_COMPONENT_TYPE_SEMANTIC_LABELS_FB = 5,
+ XR_SPACE_COMPONENT_TYPE_ROOM_LAYOUT_FB = 6,
+ XR_SPACE_COMPONENT_TYPE_SPACE_CONTAINER_FB = 7;
protected FBSpatialEntity() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrCreateSpatialAnchorFB ] ---
+
+ /** Unsafe version of: {@link #xrCreateSpatialAnchorFB CreateSpatialAnchorFB} */
+ public static int nxrCreateSpatialAnchorFB(XrSession session, long info, long requestId) {
+ long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrSpatialAnchorCreateInfoFB.validate(info);
+ }
+ return callPPPI(session.address(), info, requestId, __functionAddress);
+ }
- // --- [ xrCreateSpatialAnchorFB ] ---
-
- /** Unsafe version of: {@link #xrCreateSpatialAnchorFB CreateSpatialAnchorFB} */
- public static int nxrCreateSpatialAnchorFB(XrSession session, long info, long requestId) {
- long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorFB;
- if (CHECKS) {
- check(__functionAddress);
- XrSpatialAnchorCreateInfoFB.validate(info);
- }
- return callPPPI(session.address(), info, requestId, __functionAddress);
- }
-
/**
* Creates a new spatial anchor.
*
@@ -188,26 +188,26 @@ public static int nxrCreateSpatialAnchorFB(XrSession session, long info, long re
* @param session a handle to an {@code XrSession}.
* @param info a pointer to an {@link XrSpatialAnchorCreateInfoFB} structure containing information about how to create the anchor.
* @param requestId the output parameter that points to the ID of this asynchronous request.
- */
- @NativeType("XrResult")
- public static int xrCreateSpatialAnchorFB(XrSession session, @NativeType("XrSpatialAnchorCreateInfoFB const *") XrSpatialAnchorCreateInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) {
- if (CHECKS) {
- check(requestId, 1);
- }
- return nxrCreateSpatialAnchorFB(session, info.address(), memAddress(requestId));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrCreateSpatialAnchorFB(XrSession session, @NativeType("XrSpatialAnchorCreateInfoFB const *") XrSpatialAnchorCreateInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) {
+ if (CHECKS) {
+ check(requestId, 1);
+ }
+ return nxrCreateSpatialAnchorFB(session, info.address(), memAddress(requestId));
+ }
+
+ // --- [ xrGetSpaceUuidFB ] ---
+
+ /** Unsafe version of: {@link #xrGetSpaceUuidFB GetSpaceUuidFB} */
+ public static int nxrGetSpaceUuidFB(XrSpace space, long uuid) {
+ long __functionAddress = space.getCapabilities().xrGetSpaceUuidFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(space.address(), uuid, __functionAddress);
+ }
- // --- [ xrGetSpaceUuidFB ] ---
-
- /** Unsafe version of: {@link #xrGetSpaceUuidFB GetSpaceUuidFB} */
- public static int nxrGetSpaceUuidFB(XrSpace space, long uuid) {
- long __functionAddress = space.getCapabilities().xrGetSpaceUuidFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(space.address(), uuid, __functionAddress);
- }
-
/**
* Gets an entity.
*
@@ -258,27 +258,27 @@ public static int nxrGetSpaceUuidFB(XrSpace space, long uuid) {
*
* @param space the {@code XrSpace} handle of a spatial entity.
* @param uuid an output parameter pointing to the entity’s UUID.
- */
- @NativeType("XrResult")
- public static int xrGetSpaceUuidFB(XrSpace space, @NativeType("XrUuidEXT *") XrUuidEXT uuid) {
- return nxrGetSpaceUuidFB(space, uuid.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetSpaceUuidFB(XrSpace space, @NativeType("XrUuidEXT *") XrUuidEXT uuid) {
+ return nxrGetSpaceUuidFB(space, uuid.address());
+ }
+
+ // --- [ xrEnumerateSpaceSupportedComponentsFB ] ---
- // --- [ xrEnumerateSpaceSupportedComponentsFB ] ---
-
/**
* Unsafe version of: {@link #xrEnumerateSpaceSupportedComponentsFB EnumerateSpaceSupportedComponentsFB}
*
* @param componentTypeCapacityInput the capacity of the {@code componentTypes} array, or 0 to indicate a request to retrieve the required capacity.
- */
- public static int nxrEnumerateSpaceSupportedComponentsFB(XrSpace space, int componentTypeCapacityInput, long componentTypeCountOutput, long componentTypes) {
- long __functionAddress = space.getCapabilities().xrEnumerateSpaceSupportedComponentsFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(space.address(), componentTypeCapacityInput, componentTypeCountOutput, componentTypes, __functionAddress);
- }
-
+ */
+ public static int nxrEnumerateSpaceSupportedComponentsFB(XrSpace space, int componentTypeCapacityInput, long componentTypeCountOutput, long componentTypes) {
+ long __functionAddress = space.getCapabilities().xrEnumerateSpaceSupportedComponentsFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(space.address(), componentTypeCapacityInput, componentTypeCountOutput, componentTypes, __functionAddress);
+ }
+
/**
* Enumerates supported components for a given spatial entity.
*
@@ -329,26 +329,26 @@ public static int nxrEnumerateSpaceSupportedComponentsFB(XrSpace space, int comp
* @param space the {@code XrSpace} handle to the spatial entity.
* @param componentTypeCountOutput a pointer to the count of {@code componentTypes} written, or a pointer to the required capacity in the case that {@code componentTypeCapacityInput} is insufficient.
* @param componentTypes a pointer to an array of {@code XrSpaceComponentTypeFB} values, but can be {@code NULL} if {@code componentTypeCapacityInput} is 0.
- */
- @NativeType("XrResult")
- public static int xrEnumerateSpaceSupportedComponentsFB(XrSpace space, @NativeType("uint32_t *") IntBuffer componentTypeCountOutput, @Nullable @NativeType("XrSpaceComponentTypeFB *") IntBuffer componentTypes) {
- if (CHECKS) {
- check(componentTypeCountOutput, 1);
- }
- return nxrEnumerateSpaceSupportedComponentsFB(space, remainingSafe(componentTypes), memAddress(componentTypeCountOutput), memAddressSafe(componentTypes));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrEnumerateSpaceSupportedComponentsFB(XrSpace space, @NativeType("uint32_t *") IntBuffer componentTypeCountOutput, @Nullable @NativeType("XrSpaceComponentTypeFB *") IntBuffer componentTypes) {
+ if (CHECKS) {
+ check(componentTypeCountOutput, 1);
+ }
+ return nxrEnumerateSpaceSupportedComponentsFB(space, remainingSafe(componentTypes), memAddress(componentTypeCountOutput), memAddressSafe(componentTypes));
+ }
+
+ // --- [ xrSetSpaceComponentStatusFB ] ---
+
+ /** Unsafe version of: {@link #xrSetSpaceComponentStatusFB SetSpaceComponentStatusFB} */
+ public static int nxrSetSpaceComponentStatusFB(XrSpace space, long info, long requestId) {
+ long __functionAddress = space.getCapabilities().xrSetSpaceComponentStatusFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(space.address(), info, requestId, __functionAddress);
+ }
- // --- [ xrSetSpaceComponentStatusFB ] ---
-
- /** Unsafe version of: {@link #xrSetSpaceComponentStatusFB SetSpaceComponentStatusFB} */
- public static int nxrSetSpaceComponentStatusFB(XrSpace space, long info, long requestId) {
- long __functionAddress = space.getCapabilities().xrSetSpaceComponentStatusFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(space.address(), info, requestId, __functionAddress);
- }
-
/**
* Enables or disables supported component interfaces for an entity.
*
@@ -405,26 +405,26 @@ public static int nxrSetSpaceComponentStatusFB(XrSpace space, long info, long re
* @param space the {@code XrSpace} handle to the spatial entity.
* @param info a pointer to an {@link XrSpaceComponentStatusSetInfoFB} structure containing information about the component to be enabled or disabled.
* @param requestId the output parameter that points to the ID of this asynchronous request.
- */
- @NativeType("XrResult")
- public static int xrSetSpaceComponentStatusFB(XrSpace space, @NativeType("XrSpaceComponentStatusSetInfoFB const *") XrSpaceComponentStatusSetInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) {
- if (CHECKS) {
- check(requestId, 1);
- }
- return nxrSetSpaceComponentStatusFB(space, info.address(), memAddress(requestId));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSetSpaceComponentStatusFB(XrSpace space, @NativeType("XrSpaceComponentStatusSetInfoFB const *") XrSpaceComponentStatusSetInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) {
+ if (CHECKS) {
+ check(requestId, 1);
+ }
+ return nxrSetSpaceComponentStatusFB(space, info.address(), memAddress(requestId));
+ }
+
+ // --- [ xrGetSpaceComponentStatusFB ] ---
+
+ /** Unsafe version of: {@link #xrGetSpaceComponentStatusFB GetSpaceComponentStatusFB} */
+ public static int nxrGetSpaceComponentStatusFB(XrSpace space, int componentType, long status) {
+ long __functionAddress = space.getCapabilities().xrGetSpaceComponentStatusFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(space.address(), componentType, status, __functionAddress);
+ }
- // --- [ xrGetSpaceComponentStatusFB ] ---
-
- /** Unsafe version of: {@link #xrGetSpaceComponentStatusFB GetSpaceComponentStatusFB} */
- public static int nxrGetSpaceComponentStatusFB(XrSpace space, int componentType, long status) {
- long __functionAddress = space.getCapabilities().xrGetSpaceComponentStatusFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(space.address(), componentType, status, __functionAddress);
- }
-
/**
* Provides the current state of a component.
*
@@ -479,10 +479,10 @@ public static int nxrGetSpaceComponentStatusFB(XrSpace space, int componentType,
* @param space the {@code XrSpace} handle of a spatial entity.
* @param componentType the component type to query.
* @param status an output parameter pointing to the structure containing the status of the component that was queried.
- */
- @NativeType("XrResult")
- public static int xrGetSpaceComponentStatusFB(XrSpace space, @NativeType("XrSpaceComponentTypeFB") int componentType, @NativeType("XrSpaceComponentStatusFB *") XrSpaceComponentStatusFB status) {
- return nxrGetSpaceComponentStatusFB(space, componentType, status.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetSpaceComponentStatusFB(XrSpace space, @NativeType("XrSpaceComponentTypeFB") int componentType, @NativeType("XrSpaceComponentStatusFB *") XrSpaceComponentStatusFB status) {
+ return nxrGetSpaceComponentStatusFB(space, componentType, status.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityContainer.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityContainer.java
index b795d6f831..d03681ce18 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityContainer.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityContainer.java
@@ -4,45 +4,45 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+
/**
* The XR_FB_spatial_entity_container extension.
*
* This extension expands on the concept of spatial entities to include a way for one spatial entity to contain multiple child spatial entities, forming a hierarchy.
*
* In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public class FBSpatialEntityContainer {
-
- /** The extension specification version. */
- public static final int XR_FB_spatial_entity_container_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_FB_SPATIAL_ENTITY_CONTAINER_EXTENSION_NAME = "XR_FB_spatial_entity_container";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_SPACE_CONTAINER_FB = 1000199000;
+ */
+public class FBSpatialEntityContainer {
+
+ /** The extension specification version. */
+ public static final int XR_FB_spatial_entity_container_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_FB_SPATIAL_ENTITY_CONTAINER_EXTENSION_NAME = "XR_FB_spatial_entity_container";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_SPACE_CONTAINER_FB = 1000199000;
protected FBSpatialEntityContainer() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrGetSpaceContainerFB ] ---
+
+ /** Unsafe version of: {@link #xrGetSpaceContainerFB GetSpaceContainerFB} */
+ public static int nxrGetSpaceContainerFB(XrSession session, XrSpace space, long spaceContainerOutput) {
+ long __functionAddress = session.getCapabilities().xrGetSpaceContainerFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), space.address(), spaceContainerOutput, __functionAddress);
+ }
- // --- [ xrGetSpaceContainerFB ] ---
-
- /** Unsafe version of: {@link #xrGetSpaceContainerFB GetSpaceContainerFB} */
- public static int nxrGetSpaceContainerFB(XrSession session, XrSpace space, long spaceContainerOutput) {
- long __functionAddress = session.getCapabilities().xrGetSpaceContainerFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), space.address(), spaceContainerOutput, __functionAddress);
- }
-
/**
* Gets a XrSpaceContainerFB which lists contained spaces.
*
@@ -100,10 +100,10 @@ public static int nxrGetSpaceContainerFB(XrSession session, XrSpace space, long
* @param session a handle to an {@code XrSession}.
* @param space a handle to an {@code XrSpace}.
* @param spaceContainerOutput the output parameter that points to an {@link XrSpaceContainerFB} containing information about which spaces are contained by {@code space}.
- */
- @NativeType("XrResult")
- public static int xrGetSpaceContainerFB(XrSession session, XrSpace space, @NativeType("XrSpaceContainerFB *") XrSpaceContainerFB spaceContainerOutput) {
- return nxrGetSpaceContainerFB(session, space, spaceContainerOutput.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetSpaceContainerFB(XrSession session, XrSpace space, @NativeType("XrSpaceContainerFB *") XrSpaceContainerFB spaceContainerOutput) {
+ return nxrGetSpaceContainerFB(session, space, spaceContainerOutput.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityQuery.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityQuery.java
index b8cb838fcb..97e3e6ad90 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityQuery.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityQuery.java
@@ -4,30 +4,30 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import java.nio.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_FB_spatial_entity_query extension.
*
* This extension enables an application to discover persistent spatial entities in the area and restore them. Using the query system, the application can load persistent spatial entities from storage. The query system consists of a set of filters to define the spatial entity search query and an operation that needs to be performed on the search results.
*
* In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public class FBSpatialEntityQuery {
-
- /** The extension specification version. */
- public static final int XR_FB_spatial_entity_query_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_SPATIAL_ENTITY_QUERY_EXTENSION_NAME = "XR_FB_spatial_entity_query";
-
+ */
+public class FBSpatialEntityQuery {
+
+ /** The extension specification version. */
+ public static final int XR_FB_spatial_entity_query_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_SPATIAL_ENTITY_QUERY_EXTENSION_NAME = "XR_FB_spatial_entity_query";
+
/**
* Extends {@code XrStructureType}.
*
@@ -42,16 +42,16 @@ public class FBSpatialEntityQuery {
* {@link #XR_TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB}
* {@link #XR_TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB}
*
- */
+ */
public static final int
- XR_TYPE_SPACE_QUERY_INFO_FB = 1000156001,
- XR_TYPE_SPACE_QUERY_RESULTS_FB = 1000156002,
- XR_TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FB = 1000156003,
- XR_TYPE_SPACE_UUID_FILTER_INFO_FB = 1000156054,
- XR_TYPE_SPACE_COMPONENT_FILTER_INFO_FB = 1000156052,
- XR_TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB = 1000156103,
- XR_TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB = 1000156104;
-
+ XR_TYPE_SPACE_QUERY_INFO_FB = 1000156001,
+ XR_TYPE_SPACE_QUERY_RESULTS_FB = 1000156002,
+ XR_TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FB = 1000156003,
+ XR_TYPE_SPACE_UUID_FILTER_INFO_FB = 1000156054,
+ XR_TYPE_SPACE_COMPONENT_FILTER_INFO_FB = 1000156052,
+ XR_TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB = 1000156103,
+ XR_TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB = 1000156104;
+
/**
* XrSpaceQueryActionFB - Type of query being performed
*
@@ -68,9 +68,9 @@ public class FBSpatialEntityQuery {
* See Also
*
* {@link XrSpaceQueryInfoFB}
- */
- public static final int XR_SPACE_QUERY_ACTION_LOAD_FB = 0;
-
+ */
+ public static final int XR_SPACE_QUERY_ACTION_LOAD_FB = 0;
+
/**
* XrSpaceStorageLocationFB - Storage location to persist spatial entities
*
@@ -89,27 +89,27 @@ public class FBSpatialEntityQuery {
* See Also
*
* {@link XrEventDataSpaceEraseCompleteFB}, {@link XrEventDataSpaceSaveCompleteFB}, {@link XrSpaceEraseInfoFB}, {@link XrSpaceListSaveInfoFB}, {@link XrSpaceSaveInfoFB}, {@link XrSpaceStorageLocationFilterInfoFB}
- */
+ */
public static final int
- XR_SPACE_STORAGE_LOCATION_INVALID_FB = 0,
- XR_SPACE_STORAGE_LOCATION_LOCAL_FB = 1,
- XR_SPACE_STORAGE_LOCATION_CLOUD_FB = 2;
+ XR_SPACE_STORAGE_LOCATION_INVALID_FB = 0,
+ XR_SPACE_STORAGE_LOCATION_LOCAL_FB = 1,
+ XR_SPACE_STORAGE_LOCATION_CLOUD_FB = 2;
protected FBSpatialEntityQuery() {
throw new UnsupportedOperationException();
- }
-
- // --- [ xrQuerySpacesFB ] ---
-
- /** Unsafe version of: {@link #xrQuerySpacesFB QuerySpacesFB} */
- public static int nxrQuerySpacesFB(XrSession session, long info, long requestId) {
- long __functionAddress = session.getCapabilities().xrQuerySpacesFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), info, requestId, __functionAddress);
- }
-
+ }
+
+ // --- [ xrQuerySpacesFB ] ---
+
+ /** Unsafe version of: {@link #xrQuerySpacesFB QuerySpacesFB} */
+ public static int nxrQuerySpacesFB(XrSession session, long info, long requestId) {
+ long __functionAddress = session.getCapabilities().xrQuerySpacesFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), info, requestId, __functionAddress);
+ }
+
/**
* Queries for spatial entities.
*
@@ -163,26 +163,26 @@ public static int nxrQuerySpacesFB(XrSession session, long info, long requestId)
* @param session a handle to an {@code XrSession}.
* @param info a pointer to the {@link XrSpaceQueryInfoBaseHeaderFB} structure.
* @param requestId an output parameter, and the variable it points to will be populated with the ID of this asynchronous request.
- */
- @NativeType("XrResult")
- public static int xrQuerySpacesFB(XrSession session, @NativeType("XrSpaceQueryInfoBaseHeaderFB const *") XrSpaceQueryInfoBaseHeaderFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) {
- if (CHECKS) {
- check(requestId, 1);
- }
- return nxrQuerySpacesFB(session, info.address(), memAddress(requestId));
- }
-
- // --- [ xrRetrieveSpaceQueryResultsFB ] ---
-
- /** Unsafe version of: {@link #xrRetrieveSpaceQueryResultsFB RetrieveSpaceQueryResultsFB} */
- public static int nxrRetrieveSpaceQueryResultsFB(XrSession session, long requestId, long results) {
- long __functionAddress = session.getCapabilities().xrRetrieveSpaceQueryResultsFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJPI(session.address(), requestId, results, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrQuerySpacesFB(XrSession session, @NativeType("XrSpaceQueryInfoBaseHeaderFB const *") XrSpaceQueryInfoBaseHeaderFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) {
+ if (CHECKS) {
+ check(requestId, 1);
+ }
+ return nxrQuerySpacesFB(session, info.address(), memAddress(requestId));
+ }
+
+ // --- [ xrRetrieveSpaceQueryResultsFB ] ---
+
+ /** Unsafe version of: {@link #xrRetrieveSpaceQueryResultsFB RetrieveSpaceQueryResultsFB} */
+ public static int nxrRetrieveSpaceQueryResultsFB(XrSession session, long requestId, long results) {
+ long __functionAddress = session.getCapabilities().xrRetrieveSpaceQueryResultsFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJPI(session.address(), requestId, results, __functionAddress);
+ }
+
/**
* Copies query results into an output buffer.
*
@@ -235,10 +235,10 @@ public static int nxrRetrieveSpaceQueryResultsFB(XrSession session, long request
* @param session the {@code XrSession} for which the in-progress query is valid.
* @param requestId the {@code XrAsyncRequestIdFB} to enumerate results for.
* @param results a pointer to an {@link XrSpaceQueryResultsFB} to populate with results.
- */
- @NativeType("XrResult")
- public static int xrRetrieveSpaceQueryResultsFB(XrSession session, @NativeType("XrAsyncRequestIdFB") long requestId, @NativeType("XrSpaceQueryResultsFB *") XrSpaceQueryResultsFB results) {
- return nxrRetrieveSpaceQueryResultsFB(session, requestId, results.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrRetrieveSpaceQueryResultsFB(XrSession session, @NativeType("XrAsyncRequestIdFB") long requestId, @NativeType("XrSpaceQueryResultsFB *") XrSpaceQueryResultsFB results) {
+ return nxrRetrieveSpaceQueryResultsFB(session, requestId, results.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntitySharing.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntitySharing.java
index 2fdf02cf5e..108342068f 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntitySharing.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntitySharing.java
@@ -4,30 +4,30 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import java.nio.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_FB_spatial_entity_sharing extension.
*
* This extension enables spatial entities to be shared between users. If the {@link FBSpatialEntity#XR_SPACE_COMPONENT_TYPE_SHARABLE_FB SPACE_COMPONENT_TYPE_SHARABLE_FB} component has been enabled on the spatial entity, application developers may share {@code XrSpace} entities between users.
*
* In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public class FBSpatialEntitySharing {
-
- /** The extension specification version. */
- public static final int XR_FB_spatial_entity_sharing_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_SPATIAL_ENTITY_SHARING_EXTENSION_NAME = "XR_FB_spatial_entity_sharing";
-
+ */
+public class FBSpatialEntitySharing {
+
+ /** The extension specification version. */
+ public static final int XR_FB_spatial_entity_sharing_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_SPATIAL_ENTITY_SHARING_EXTENSION_NAME = "XR_FB_spatial_entity_sharing";
+
/**
* Extends {@code XrStructureType}.
*
@@ -37,11 +37,11 @@ public class FBSpatialEntitySharing {
* {@link #XR_TYPE_SPACE_SHARE_INFO_FB TYPE_SPACE_SHARE_INFO_FB}
* {@link #XR_TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB}
*
- */
+ */
public static final int
- XR_TYPE_SPACE_SHARE_INFO_FB = 1000169001,
- XR_TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB = 1000169002;
-
+ XR_TYPE_SPACE_SHARE_INFO_FB = 1000169001,
+ XR_TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB = 1000169002;
+
/**
* Extends {@code XrResult}.
*
@@ -54,30 +54,30 @@ public class FBSpatialEntitySharing {
* {@link #XR_ERROR_SPACE_NETWORK_REQUEST_FAILED_FB ERROR_SPACE_NETWORK_REQUEST_FAILED_FB}
* {@link #XR_ERROR_SPACE_CLOUD_STORAGE_DISABLED_FB ERROR_SPACE_CLOUD_STORAGE_DISABLED_FB}
*
- */
+ */
public static final int
- XR_ERROR_SPACE_MAPPING_INSUFFICIENT_FB = -1000169000,
- XR_ERROR_SPACE_LOCALIZATION_FAILED_FB = -1000169001,
- XR_ERROR_SPACE_NETWORK_TIMEOUT_FB = -1000169002,
- XR_ERROR_SPACE_NETWORK_REQUEST_FAILED_FB = -1000169003,
- XR_ERROR_SPACE_CLOUD_STORAGE_DISABLED_FB = -1000169004;
+ XR_ERROR_SPACE_MAPPING_INSUFFICIENT_FB = -1000169000,
+ XR_ERROR_SPACE_LOCALIZATION_FAILED_FB = -1000169001,
+ XR_ERROR_SPACE_NETWORK_TIMEOUT_FB = -1000169002,
+ XR_ERROR_SPACE_NETWORK_REQUEST_FAILED_FB = -1000169003,
+ XR_ERROR_SPACE_CLOUD_STORAGE_DISABLED_FB = -1000169004;
protected FBSpatialEntitySharing() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrShareSpacesFB ] ---
+
+ /** Unsafe version of: {@link #xrShareSpacesFB ShareSpacesFB} */
+ public static int nxrShareSpacesFB(XrSession session, long info, long requestId) {
+ long __functionAddress = session.getCapabilities().xrShareSpacesFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrSpaceShareInfoFB.validate(info);
+ }
+ return callPPPI(session.address(), info, requestId, __functionAddress);
+ }
- // --- [ xrShareSpacesFB ] ---
-
- /** Unsafe version of: {@link #xrShareSpacesFB ShareSpacesFB} */
- public static int nxrShareSpacesFB(XrSession session, long info, long requestId) {
- long __functionAddress = session.getCapabilities().xrShareSpacesFB;
- if (CHECKS) {
- check(__functionAddress);
- XrSpaceShareInfoFB.validate(info);
- }
- return callPPPI(session.address(), info, requestId, __functionAddress);
- }
-
/**
* Shares spatial entities with specified users.
*
@@ -137,13 +137,13 @@ public static int nxrShareSpacesFB(XrSession session, long info, long requestId)
* @param session a handle to an {@code XrSession}.
* @param info a pointer to an {@link XrSpaceShareInfoFB} structure containing information about which spatial entities to share with which users.
* @param requestId the output parameter that points to the ID of this asynchronous request.
- */
- @NativeType("XrResult")
- public static int xrShareSpacesFB(XrSession session, @NativeType("XrSpaceShareInfoFB const *") XrSpaceShareInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) {
- if (CHECKS) {
- check(requestId, 1);
- }
- return nxrShareSpacesFB(session, info.address(), memAddress(requestId));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrShareSpacesFB(XrSession session, @NativeType("XrSpaceShareInfoFB const *") XrSpaceShareInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) {
+ if (CHECKS) {
+ check(requestId, 1);
+ }
+ return nxrShareSpacesFB(session, info.address(), memAddress(requestId));
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityStorage.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityStorage.java
index 4385cb8dcc..ac0b4bc484 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityStorage.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityStorage.java
@@ -4,30 +4,30 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import java.nio.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_FB_spatial_entity_storage extension.
*
* This extension enables spatial entities to be stored and persisted across sessions. If the {@link FBSpatialEntity#XR_SPACE_COMPONENT_TYPE_STORABLE_FB SPACE_COMPONENT_TYPE_STORABLE_FB} component has been enabled on the spatial entity, application developers may save, load, and erase persisted {@code XrSpace} entities.
*
* In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public class FBSpatialEntityStorage {
-
- /** The extension specification version. */
- public static final int XR_FB_spatial_entity_storage_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_SPATIAL_ENTITY_STORAGE_EXTENSION_NAME = "XR_FB_spatial_entity_storage";
-
+ */
+public class FBSpatialEntityStorage {
+
+ /** The extension specification version. */
+ public static final int XR_FB_spatial_entity_storage_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_SPATIAL_ENTITY_STORAGE_EXTENSION_NAME = "XR_FB_spatial_entity_storage";
+
/**
* Extends {@code XrStructureType}.
*
@@ -39,13 +39,13 @@ public class FBSpatialEntityStorage {
* {@link #XR_TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB}
* {@link #XR_TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB}
*
- */
+ */
public static final int
- XR_TYPE_SPACE_SAVE_INFO_FB = 1000158000,
- XR_TYPE_SPACE_ERASE_INFO_FB = 1000158001,
- XR_TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB = 1000158106,
- XR_TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB = 1000158107;
-
+ XR_TYPE_SPACE_SAVE_INFO_FB = 1000158000,
+ XR_TYPE_SPACE_ERASE_INFO_FB = 1000158001,
+ XR_TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB = 1000158106,
+ XR_TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB = 1000158107;
+
/**
* XrSpacePersistenceModeFB - Persistence mode
*
@@ -63,27 +63,27 @@ public class FBSpatialEntityStorage {
* See Also
*
* {@link XrSpaceSaveInfoFB}
- */
+ */
public static final int
- XR_SPACE_PERSISTENCE_MODE_INVALID_FB = 0,
- XR_SPACE_PERSISTENCE_MODE_INDEFINITE_FB = 1;
+ XR_SPACE_PERSISTENCE_MODE_INVALID_FB = 0,
+ XR_SPACE_PERSISTENCE_MODE_INDEFINITE_FB = 1;
protected FBSpatialEntityStorage() {
throw new UnsupportedOperationException();
- }
-
- // --- [ xrSaveSpaceFB ] ---
-
- /** Unsafe version of: {@link #xrSaveSpaceFB SaveSpaceFB} */
- public static int nxrSaveSpaceFB(XrSession session, long info, long requestId) {
- long __functionAddress = session.getCapabilities().xrSaveSpaceFB;
- if (CHECKS) {
- check(__functionAddress);
- XrSpaceSaveInfoFB.validate(info);
- }
- return callPPPI(session.address(), info, requestId, __functionAddress);
- }
-
+ }
+
+ // --- [ xrSaveSpaceFB ] ---
+
+ /** Unsafe version of: {@link #xrSaveSpaceFB SaveSpaceFB} */
+ public static int nxrSaveSpaceFB(XrSession session, long info, long requestId) {
+ long __functionAddress = session.getCapabilities().xrSaveSpaceFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrSpaceSaveInfoFB.validate(info);
+ }
+ return callPPPI(session.address(), info, requestId, __functionAddress);
+ }
+
/**
* Saves a spatial entity to persistent storage.
*
@@ -138,27 +138,27 @@ public static int nxrSaveSpaceFB(XrSession session, long info, long requestId) {
* @param session a handle to an {@code XrSession}.
* @param info contains the parameters for the save operation.
* @param requestId an output parameter, and the variable it points to will be populated with the ID of this asynchronous request.
- */
- @NativeType("XrResult")
- public static int xrSaveSpaceFB(XrSession session, @NativeType("XrSpaceSaveInfoFB const *") XrSpaceSaveInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) {
- if (CHECKS) {
- check(requestId, 1);
- }
- return nxrSaveSpaceFB(session, info.address(), memAddress(requestId));
- }
-
- // --- [ xrEraseSpaceFB ] ---
-
- /** Unsafe version of: {@link #xrEraseSpaceFB EraseSpaceFB} */
- public static int nxrEraseSpaceFB(XrSession session, long info, long requestId) {
- long __functionAddress = session.getCapabilities().xrEraseSpaceFB;
- if (CHECKS) {
- check(__functionAddress);
- XrSpaceEraseInfoFB.validate(info);
- }
- return callPPPI(session.address(), info, requestId, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrSaveSpaceFB(XrSession session, @NativeType("XrSpaceSaveInfoFB const *") XrSpaceSaveInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) {
+ if (CHECKS) {
+ check(requestId, 1);
+ }
+ return nxrSaveSpaceFB(session, info.address(), memAddress(requestId));
+ }
+
+ // --- [ xrEraseSpaceFB ] ---
+
+ /** Unsafe version of: {@link #xrEraseSpaceFB EraseSpaceFB} */
+ public static int nxrEraseSpaceFB(XrSession session, long info, long requestId) {
+ long __functionAddress = session.getCapabilities().xrEraseSpaceFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrSpaceEraseInfoFB.validate(info);
+ }
+ return callPPPI(session.address(), info, requestId, __functionAddress);
+ }
+
/**
* Erases a spatial entity from persistent storage.
*
@@ -213,13 +213,13 @@ public static int nxrEraseSpaceFB(XrSession session, long info, long requestId)
* @param session a handle to an {@code XrSession}.
* @param info contains the parameters for the erase operation.
* @param requestId an output parameter, and the variable it points to will be populated with the ID of this asynchronous request.
- */
- @NativeType("XrResult")
- public static int xrEraseSpaceFB(XrSession session, @NativeType("XrSpaceEraseInfoFB const *") XrSpaceEraseInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) {
- if (CHECKS) {
- check(requestId, 1);
- }
- return nxrEraseSpaceFB(session, info.address(), memAddress(requestId));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrEraseSpaceFB(XrSession session, @NativeType("XrSpaceEraseInfoFB const *") XrSpaceEraseInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) {
+ if (CHECKS) {
+ check(requestId, 1);
+ }
+ return nxrEraseSpaceFB(session, info.address(), memAddress(requestId));
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityStorageBatch.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityStorageBatch.java
index a0096c0f2e..00b1c25854 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityStorageBatch.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityStorageBatch.java
@@ -4,30 +4,30 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import java.nio.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_FB_spatial_entity_storage_batch extension.
*
* This extension enables multiple spatial entities at a time to be persisted across sessions. If the {@link FBSpatialEntity#XR_SPACE_COMPONENT_TYPE_STORABLE_FB SPACE_COMPONENT_TYPE_STORABLE_FB} component has been enabled on the spatial entity, application developers may save and erase {@code XrSpace} entities.
*
* In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public class FBSpatialEntityStorageBatch {
-
- /** The extension specification version. */
- public static final int XR_FB_spatial_entity_storage_batch_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_SPATIAL_ENTITY_STORAGE_BATCH_EXTENSION_NAME = "XR_FB_spatial_entity_storage_batch";
-
+ */
+public class FBSpatialEntityStorageBatch {
+
+ /** The extension specification version. */
+ public static final int XR_FB_spatial_entity_storage_batch_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_SPATIAL_ENTITY_STORAGE_BATCH_EXTENSION_NAME = "XR_FB_spatial_entity_storage_batch";
+
/**
* Extends {@code XrStructureType}.
*
@@ -37,27 +37,27 @@ public class FBSpatialEntityStorageBatch {
* {@link #XR_TYPE_SPACE_LIST_SAVE_INFO_FB TYPE_SPACE_LIST_SAVE_INFO_FB}
* {@link #XR_TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB}
*
- */
+ */
public static final int
- XR_TYPE_SPACE_LIST_SAVE_INFO_FB = 1000238000,
- XR_TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB = 1000238001;
+ XR_TYPE_SPACE_LIST_SAVE_INFO_FB = 1000238000,
+ XR_TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB = 1000238001;
protected FBSpatialEntityStorageBatch() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrSaveSpaceListFB ] ---
+
+ /** Unsafe version of: {@link #xrSaveSpaceListFB SaveSpaceListFB} */
+ public static int nxrSaveSpaceListFB(XrSession session, long info, long requestId) {
+ long __functionAddress = session.getCapabilities().xrSaveSpaceListFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrSpaceListSaveInfoFB.validate(info);
+ }
+ return callPPPI(session.address(), info, requestId, __functionAddress);
+ }
- // --- [ xrSaveSpaceListFB ] ---
-
- /** Unsafe version of: {@link #xrSaveSpaceListFB SaveSpaceListFB} */
- public static int nxrSaveSpaceListFB(XrSession session, long info, long requestId) {
- long __functionAddress = session.getCapabilities().xrSaveSpaceListFB;
- if (CHECKS) {
- check(__functionAddress);
- XrSpaceListSaveInfoFB.validate(info);
- }
- return callPPPI(session.address(), info, requestId, __functionAddress);
- }
-
/**
* Saves a list of spatial entities to persistent storage.
*
@@ -117,13 +117,13 @@ public static int nxrSaveSpaceListFB(XrSession session, long info, long requestI
* @param session a handle to an {@code XrSession}.
* @param info contains the parameters for the save operation.
* @param requestId an output parameter, and the variable it points to will be populated with the ID of this asynchronous request.
- */
- @NativeType("XrResult")
- public static int xrSaveSpaceListFB(XrSession session, @NativeType("XrSpaceListSaveInfoFB const *") XrSpaceListSaveInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) {
- if (CHECKS) {
- check(requestId, 1);
- }
- return nxrSaveSpaceListFB(session, info.address(), memAddress(requestId));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSaveSpaceListFB(XrSession session, @NativeType("XrSpaceListSaveInfoFB const *") XrSpaceListSaveInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) {
+ if (CHECKS) {
+ check(requestId, 1);
+ }
+ return nxrSaveSpaceListFB(session, info.address(), memAddress(requestId));
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityUser.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityUser.java
index fd7143e949..21fdf1bb88 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityUser.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityUser.java
@@ -4,53 +4,53 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import java.nio.*;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_FB_spatial_entity_user extension.
*
* This extension enables creation and management of user objects which can be used by the application to reference a user other than the current user.
*
* In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public class FBSpatialEntityUser {
-
- /** The extension specification version. */
- public static final int XR_FB_spatial_entity_user_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_SPATIAL_ENTITY_USER_EXTENSION_NAME = "XR_FB_spatial_entity_user";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_SPACE_USER_CREATE_INFO_FB = 1000241001;
-
- /** Extends {@code XrObjectType}. */
- public static final int XR_OBJECT_TYPE_SPACE_USER_FB = 1000241000;
+ */
+public class FBSpatialEntityUser {
+
+ /** The extension specification version. */
+ public static final int XR_FB_spatial_entity_user_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_SPATIAL_ENTITY_USER_EXTENSION_NAME = "XR_FB_spatial_entity_user";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_SPACE_USER_CREATE_INFO_FB = 1000241001;
+
+ /** Extends {@code XrObjectType}. */
+ public static final int XR_OBJECT_TYPE_SPACE_USER_FB = 1000241000;
protected FBSpatialEntityUser() {
throw new UnsupportedOperationException();
- }
-
- // --- [ xrCreateSpaceUserFB ] ---
-
- /** Unsafe version of: {@link #xrCreateSpaceUserFB CreateSpaceUserFB} */
- public static int nxrCreateSpaceUserFB(XrSession session, long info, long user) {
- long __functionAddress = session.getCapabilities().xrCreateSpaceUserFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), info, user, __functionAddress);
- }
-
+ }
+
+ // --- [ xrCreateSpaceUserFB ] ---
+
+ /** Unsafe version of: {@link #xrCreateSpaceUserFB CreateSpaceUserFB} */
+ public static int nxrCreateSpaceUserFB(XrSession session, long info, long user) {
+ long __functionAddress = session.getCapabilities().xrCreateSpaceUserFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), info, user, __functionAddress);
+ }
+
/**
* Creates a user other than the current user.
*
@@ -105,26 +105,26 @@ public static int nxrCreateSpaceUserFB(XrSession session, long info, long user)
* @param session a handle to an {@code XrSession}.
* @param info a pointer to an {@link XrSpaceUserCreateInfoFB} structure containing information to create the user handle.
* @param user the output parameter that points to the handle of the user being created.
- */
- @NativeType("XrResult")
- public static int xrCreateSpaceUserFB(XrSession session, @NativeType("XrSpaceUserCreateInfoFB const *") XrSpaceUserCreateInfoFB info, @NativeType("XrSpaceUserFB *") PointerBuffer user) {
- if (CHECKS) {
- check(user, 1);
- }
- return nxrCreateSpaceUserFB(session, info.address(), memAddress(user));
- }
-
- // --- [ xrGetSpaceUserIdFB ] ---
-
- /** Unsafe version of: {@link #xrGetSpaceUserIdFB GetSpaceUserIdFB} */
- public static int nxrGetSpaceUserIdFB(XrSpaceUserFB user, long userId) {
- long __functionAddress = user.getCapabilities().xrGetSpaceUserIdFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(user.address(), userId, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrCreateSpaceUserFB(XrSession session, @NativeType("XrSpaceUserCreateInfoFB const *") XrSpaceUserCreateInfoFB info, @NativeType("XrSpaceUserFB *") PointerBuffer user) {
+ if (CHECKS) {
+ check(user, 1);
+ }
+ return nxrCreateSpaceUserFB(session, info.address(), memAddress(user));
+ }
+
+ // --- [ xrGetSpaceUserIdFB ] ---
+
+ /** Unsafe version of: {@link #xrGetSpaceUserIdFB GetSpaceUserIdFB} */
+ public static int nxrGetSpaceUserIdFB(XrSpaceUserFB user, long userId) {
+ long __functionAddress = user.getCapabilities().xrGetSpaceUserIdFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(user.address(), userId, __functionAddress);
+ }
+
/**
* Gets the user ID for a given user handle.
*
@@ -170,17 +170,17 @@ public static int nxrGetSpaceUserIdFB(XrSpaceUserFB user, long userId) {
*
* @param user a handle to an {@code XrSpaceUserFB}.
* @param userId the output parameter that points to the user ID of the user.
- */
- @NativeType("XrResult")
- public static int xrGetSpaceUserIdFB(XrSpaceUserFB user, @NativeType("XrSpaceUserIdFB *") LongBuffer userId) {
- if (CHECKS) {
- check(userId, 1);
- }
- return nxrGetSpaceUserIdFB(user, memAddress(userId));
- }
-
- // --- [ xrDestroySpaceUserFB ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrGetSpaceUserIdFB(XrSpaceUserFB user, @NativeType("XrSpaceUserIdFB *") LongBuffer userId) {
+ if (CHECKS) {
+ check(userId, 1);
+ }
+ return nxrGetSpaceUserIdFB(user, memAddress(userId));
+ }
+
+ // --- [ xrDestroySpaceUserFB ] ---
+
/**
* Destroys a user handle.
*
@@ -225,14 +225,14 @@ public static int xrGetSpaceUserIdFB(XrSpaceUserFB user, @NativeType("XrSpaceUse
*
*
* @param user a handle to the user object to be destroyed.
- */
- @NativeType("XrResult")
- public static int xrDestroySpaceUserFB(XrSpaceUserFB user) {
- long __functionAddress = user.getCapabilities().xrDestroySpaceUserFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(user.address(), __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrDestroySpaceUserFB(XrSpaceUserFB user) {
+ long __functionAddress = user.getCapabilities().xrDestroySpaceUserFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(user.address(), __functionAddress);
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateState.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateState.java
index 1ebea7f554..9c3d216635 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateState.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateState.java
@@ -4,42 +4,42 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+
/**
* The XR_FB_swapchain_update_state extension.
*
* This extension enables the application to modify and query specific mutable state associated with a swapchain.
*
* In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public class FBSwapchainUpdateState {
-
- /** The extension specification version. */
- public static final int XR_FB_swapchain_update_state_SPEC_VERSION = 3;
-
- /** The extension name. */
- public static final String XR_FB_SWAPCHAIN_UPDATE_STATE_EXTENSION_NAME = "XR_FB_swapchain_update_state";
+ */
+public class FBSwapchainUpdateState {
+
+ /** The extension specification version. */
+ public static final int XR_FB_swapchain_update_state_SPEC_VERSION = 3;
+
+ /** The extension name. */
+ public static final String XR_FB_SWAPCHAIN_UPDATE_STATE_EXTENSION_NAME = "XR_FB_swapchain_update_state";
protected FBSwapchainUpdateState() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrUpdateSwapchainFB ] ---
+
+ /** Unsafe version of: {@link #xrUpdateSwapchainFB UpdateSwapchainFB} */
+ public static int nxrUpdateSwapchainFB(XrSwapchain swapchain, long state) {
+ long __functionAddress = swapchain.getCapabilities().xrUpdateSwapchainFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(swapchain.address(), state, __functionAddress);
+ }
- // --- [ xrUpdateSwapchainFB ] ---
-
- /** Unsafe version of: {@link #xrUpdateSwapchainFB UpdateSwapchainFB} */
- public static int nxrUpdateSwapchainFB(XrSwapchain swapchain, long state) {
- long __functionAddress = swapchain.getCapabilities().xrUpdateSwapchainFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(swapchain.address(), state, __functionAddress);
- }
-
/**
* Updates state for the corresponding swapchain.
*
@@ -89,23 +89,23 @@ public static int nxrUpdateSwapchainFB(XrSwapchain swapchain, long state) {
*
* @param swapchain the {@code XrSwapchain} to update state for.
* @param state a pointer to a {@code XrSwapchainState} structure based off of {@link XrSwapchainStateBaseHeaderFB}.
- */
- @NativeType("XrResult")
- public static int xrUpdateSwapchainFB(XrSwapchain swapchain, @NativeType("XrSwapchainStateBaseHeaderFB const *") XrSwapchainStateBaseHeaderFB state) {
- return nxrUpdateSwapchainFB(swapchain, state.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrUpdateSwapchainFB(XrSwapchain swapchain, @NativeType("XrSwapchainStateBaseHeaderFB const *") XrSwapchainStateBaseHeaderFB state) {
+ return nxrUpdateSwapchainFB(swapchain, state.address());
+ }
+
+ // --- [ xrGetSwapchainStateFB ] ---
+
+ /** Unsafe version of: {@link #xrGetSwapchainStateFB GetSwapchainStateFB} */
+ public static int nxrGetSwapchainStateFB(XrSwapchain swapchain, long state) {
+ long __functionAddress = swapchain.getCapabilities().xrGetSwapchainStateFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(swapchain.address(), state, __functionAddress);
+ }
- // --- [ xrGetSwapchainStateFB ] ---
-
- /** Unsafe version of: {@link #xrGetSwapchainStateFB GetSwapchainStateFB} */
- public static int nxrGetSwapchainStateFB(XrSwapchain swapchain, long state) {
- long __functionAddress = swapchain.getCapabilities().xrGetSwapchainStateFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(swapchain.address(), state, __functionAddress);
- }
-
/**
* Query state for the corresponding swapchain.
*
@@ -155,10 +155,10 @@ public static int nxrGetSwapchainStateFB(XrSwapchain swapchain, long state) {
*
* @param swapchain the {@code XrSwapchain} to update state for.
* @param state a pointer to a {@code XrSwapchainState} structure based off of {@link XrSwapchainStateBaseHeaderFB}.
- */
- @NativeType("XrResult")
- public static int xrGetSwapchainStateFB(XrSwapchain swapchain, @NativeType("XrSwapchainStateBaseHeaderFB *") XrSwapchainStateBaseHeaderFB state) {
- return nxrGetSwapchainStateFB(swapchain, state.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetSwapchainStateFB(XrSwapchain swapchain, @NativeType("XrSwapchainStateBaseHeaderFB *") XrSwapchainStateBaseHeaderFB state) {
+ return nxrGetSwapchainStateFB(swapchain, state.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateStateOpenGLES.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateStateOpenGLES.java
index 4beb9212b3..2c11d8168f 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateStateOpenGLES.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateStateOpenGLES.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_FB_swapchain_update_state_opengl_es extension.
*
@@ -15,18 +15,18 @@
*
*
* In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo} {@code enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public final class FBSwapchainUpdateStateOpenGLES {
-
- /** The extension specification version. */
- public static final int XR_FB_swapchain_update_state_opengl_es_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_SWAPCHAIN_UPDATE_STATE_OPENGL_ES_EXTENSION_NAME = "XR_FB_swapchain_update_state_opengl_es";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB = 1000162000;
+ */
+public final class FBSwapchainUpdateStateOpenGLES {
+
+ /** The extension specification version. */
+ public static final int XR_FB_swapchain_update_state_opengl_es_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_SWAPCHAIN_UPDATE_STATE_OPENGL_ES_EXTENSION_NAME = "XR_FB_swapchain_update_state_opengl_es";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB = 1000162000;
- private FBSwapchainUpdateStateOpenGLES() {}
+ private FBSwapchainUpdateStateOpenGLES() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateStateVulkan.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateStateVulkan.java
index c31b82126d..b487ee8f61 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateStateVulkan.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateStateVulkan.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_FB_swapchain_update_state_vulkan extension.
*
@@ -15,18 +15,18 @@
*
*
* In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo} {@code enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public final class FBSwapchainUpdateStateVulkan {
-
- /** The extension specification version. */
- public static final int XR_FB_swapchain_update_state_vulkan_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_SWAPCHAIN_UPDATE_STATE_VULKAN_EXTENSION_NAME = "XR_FB_swapchain_update_state_vulkan";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB = 1000163000;
+ */
+public final class FBSwapchainUpdateStateVulkan {
+
+ /** The extension specification version. */
+ public static final int XR_FB_swapchain_update_state_vulkan_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_SWAPCHAIN_UPDATE_STATE_VULKAN_EXTENSION_NAME = "XR_FB_swapchain_update_state_vulkan";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB = 1000163000;
- private FBSwapchainUpdateStateVulkan() {}
+ private FBSwapchainUpdateStateVulkan() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTouchControllerPro.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTouchControllerPro.java
index df2d76dd97..7e70ea98e7 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTouchControllerPro.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTouchControllerPro.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_FB_touch_controller_pro extension.
*
@@ -78,15 +78,15 @@
*
*
*
- */
-public final class FBTouchControllerPro {
-
- /** The extension specification version. */
- public static final int XR_FB_touch_controller_pro_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_TOUCH_CONTROLLER_PRO_EXTENSION_NAME = "XR_FB_touch_controller_pro";
+ */
+public final class FBTouchControllerPro {
+
+ /** The extension specification version. */
+ public static final int XR_FB_touch_controller_pro_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_TOUCH_CONTROLLER_PRO_EXTENSION_NAME = "XR_FB_touch_controller_pro";
- private FBTouchControllerPro() {}
+ private FBTouchControllerPro() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTouchControllerProximity.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTouchControllerProximity.java
index c64edc5d75..804dfcfeae 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTouchControllerProximity.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTouchControllerProximity.java
@@ -4,20 +4,20 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_FB_touch_controller_proximity extension.
*
* This extension introduces a new component path, proximity_fb, and adds support for it for the pathname:oculus/touch_controller interaction profile.
- */
-public final class FBTouchControllerProximity {
-
- /** The extension specification version. */
- public static final int XR_FB_touch_controller_proximity_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_FB_TOUCH_CONTROLLER_PROXIMITY_EXTENSION_NAME = "XR_FB_touch_controller_proximity";
+ */
+public final class FBTouchControllerProximity {
+
+ /** The extension specification version. */
+ public static final int XR_FB_touch_controller_proximity_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_FB_TOUCH_CONTROLLER_PROXIMITY_EXTENSION_NAME = "XR_FB_touch_controller_proximity";
- private FBTouchControllerProximity() {}
+ private FBTouchControllerProximity() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTriangleMesh.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTriangleMesh.java
index 3e49716a32..e1d6551559 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTriangleMesh.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTriangleMesh.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import java.nio.*;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_FB_triangle_mesh extension.
*
@@ -28,21 +28,21 @@
*
*
* In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public class FBTriangleMesh {
-
- /** The extension specification version. */
- public static final int XR_FB_triangle_mesh_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_FB_TRIANGLE_MESH_EXTENSION_NAME = "XR_FB_triangle_mesh";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB = 1000117001;
-
- /** Extends {@code XrObjectType}. */
- public static final int XR_OBJECT_TYPE_TRIANGLE_MESH_FB = 1000117000;
-
+ */
+public class FBTriangleMesh {
+
+ /** The extension specification version. */
+ public static final int XR_FB_triangle_mesh_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_FB_TRIANGLE_MESH_EXTENSION_NAME = "XR_FB_triangle_mesh";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB = 1000117001;
+
+ /** Extends {@code XrObjectType}. */
+ public static final int XR_OBJECT_TYPE_TRIANGLE_MESH_FB = 1000117000;
+
/**
* XrTriangleMeshFlagBitsFB - XrTriangleMeshFlagBitsFB
*
@@ -51,9 +51,9 @@ public class FBTriangleMesh {
*
* - {@link #XR_TRIANGLE_MESH_MUTABLE_BIT_FB TRIANGLE_MESH_MUTABLE_BIT_FB} — The triangle mesh is mutable (can be modified after it is created).
*
- */
- public static final int XR_TRIANGLE_MESH_MUTABLE_BIT_FB = 0x1;
-
+ */
+ public static final int XR_TRIANGLE_MESH_MUTABLE_BIT_FB = 0x1;
+
/**
* XrWindingOrderFB - Triangle winding order
*
@@ -68,27 +68,27 @@ public class FBTriangleMesh {
* See Also
*
* {@link XrTriangleMeshCreateInfoFB}
- */
+ */
public static final int
- XR_WINDING_ORDER_UNKNOWN_FB = 0,
- XR_WINDING_ORDER_CW_FB = 1,
- XR_WINDING_ORDER_CCW_FB = 2;
+ XR_WINDING_ORDER_UNKNOWN_FB = 0,
+ XR_WINDING_ORDER_CW_FB = 1,
+ XR_WINDING_ORDER_CCW_FB = 2;
protected FBTriangleMesh() {
throw new UnsupportedOperationException();
- }
-
- // --- [ xrCreateTriangleMeshFB ] ---
-
- /** Unsafe version of: {@link #xrCreateTriangleMeshFB CreateTriangleMeshFB} */
- public static int nxrCreateTriangleMeshFB(XrSession session, long createInfo, long outTriangleMesh) {
- long __functionAddress = session.getCapabilities().xrCreateTriangleMeshFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), createInfo, outTriangleMesh, __functionAddress);
- }
-
+ }
+
+ // --- [ xrCreateTriangleMeshFB ] ---
+
+ /** Unsafe version of: {@link #xrCreateTriangleMeshFB CreateTriangleMeshFB} */
+ public static int nxrCreateTriangleMeshFB(XrSession session, long createInfo, long outTriangleMesh) {
+ long __functionAddress = session.getCapabilities().xrCreateTriangleMeshFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), createInfo, outTriangleMesh, __functionAddress);
+ }
+
/**
* Create a triangle mesh.
*
@@ -149,17 +149,17 @@ public static int nxrCreateTriangleMeshFB(XrSession session, long createInfo, lo
* @param session the {@code XrSession} to which the mesh will belong.
* @param createInfo a pointer to an {@link XrTriangleMeshCreateInfoFB} structure containing parameters to be used to create the mesh.
* @param outTriangleMesh a pointer to a handle in which the created {@code XrTriangleMeshFB} is returned.
- */
- @NativeType("XrResult")
- public static int xrCreateTriangleMeshFB(XrSession session, @NativeType("XrTriangleMeshCreateInfoFB const *") XrTriangleMeshCreateInfoFB createInfo, @NativeType("XrTriangleMeshFB *") PointerBuffer outTriangleMesh) {
- if (CHECKS) {
- check(outTriangleMesh, 1);
- }
- return nxrCreateTriangleMeshFB(session, createInfo.address(), memAddress(outTriangleMesh));
- }
-
- // --- [ xrDestroyTriangleMeshFB ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrCreateTriangleMeshFB(XrSession session, @NativeType("XrTriangleMeshCreateInfoFB const *") XrTriangleMeshCreateInfoFB createInfo, @NativeType("XrTriangleMeshFB *") PointerBuffer outTriangleMesh) {
+ if (CHECKS) {
+ check(outTriangleMesh, 1);
+ }
+ return nxrCreateTriangleMeshFB(session, createInfo.address(), memAddress(outTriangleMesh));
+ }
+
+ // --- [ xrDestroyTriangleMeshFB ] ---
+
/**
* Destroy a triangle mesh.
*
@@ -206,27 +206,27 @@ public static int xrCreateTriangleMeshFB(XrSession session, @NativeType("XrTrian
*
*
* @param mesh the {@code XrTriangleMeshFB} to destroy.
- */
- @NativeType("XrResult")
- public static int xrDestroyTriangleMeshFB(XrTriangleMeshFB mesh) {
- long __functionAddress = mesh.getCapabilities().xrDestroyTriangleMeshFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(mesh.address(), __functionAddress);
- }
-
- // --- [ xrTriangleMeshGetVertexBufferFB ] ---
-
- /** Unsafe version of: {@link #xrTriangleMeshGetVertexBufferFB TriangleMeshGetVertexBufferFB} */
- public static int nxrTriangleMeshGetVertexBufferFB(XrTriangleMeshFB mesh, long outVertexBuffer) {
- long __functionAddress = mesh.getCapabilities().xrTriangleMeshGetVertexBufferFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(mesh.address(), outVertexBuffer, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrDestroyTriangleMeshFB(XrTriangleMeshFB mesh) {
+ long __functionAddress = mesh.getCapabilities().xrDestroyTriangleMeshFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(mesh.address(), __functionAddress);
+ }
+
+ // --- [ xrTriangleMeshGetVertexBufferFB ] ---
+
+ /** Unsafe version of: {@link #xrTriangleMeshGetVertexBufferFB TriangleMeshGetVertexBufferFB} */
+ public static int nxrTriangleMeshGetVertexBufferFB(XrTriangleMeshFB mesh, long outVertexBuffer) {
+ long __functionAddress = mesh.getCapabilities().xrTriangleMeshGetVertexBufferFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(mesh.address(), outVertexBuffer, __functionAddress);
+ }
+
/**
* Obtain the vertex buffer of a triangle mesh.
*
@@ -284,26 +284,26 @@ public static int nxrTriangleMeshGetVertexBufferFB(XrTriangleMeshFB mesh, long o
*
* @param mesh the {@code XrTriangleMeshFB} to get the vertex buffer for.
* @param outVertexBuffer a pointer to return the vertex buffer into.
- */
- @NativeType("XrResult")
- public static int xrTriangleMeshGetVertexBufferFB(XrTriangleMeshFB mesh, @NativeType("XrVector3f **") PointerBuffer outVertexBuffer) {
- if (CHECKS) {
- check(outVertexBuffer, 1);
- }
- return nxrTriangleMeshGetVertexBufferFB(mesh, memAddress(outVertexBuffer));
- }
-
- // --- [ xrTriangleMeshGetIndexBufferFB ] ---
-
- /** Unsafe version of: {@link #xrTriangleMeshGetIndexBufferFB TriangleMeshGetIndexBufferFB} */
- public static int nxrTriangleMeshGetIndexBufferFB(XrTriangleMeshFB mesh, long outIndexBuffer) {
- long __functionAddress = mesh.getCapabilities().xrTriangleMeshGetIndexBufferFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(mesh.address(), outIndexBuffer, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrTriangleMeshGetVertexBufferFB(XrTriangleMeshFB mesh, @NativeType("XrVector3f **") PointerBuffer outVertexBuffer) {
+ if (CHECKS) {
+ check(outVertexBuffer, 1);
+ }
+ return nxrTriangleMeshGetVertexBufferFB(mesh, memAddress(outVertexBuffer));
+ }
+
+ // --- [ xrTriangleMeshGetIndexBufferFB ] ---
+
+ /** Unsafe version of: {@link #xrTriangleMeshGetIndexBufferFB TriangleMeshGetIndexBufferFB} */
+ public static int nxrTriangleMeshGetIndexBufferFB(XrTriangleMeshFB mesh, long outIndexBuffer) {
+ long __functionAddress = mesh.getCapabilities().xrTriangleMeshGetIndexBufferFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(mesh.address(), outIndexBuffer, __functionAddress);
+ }
+
/**
* Obtain the index buffer of a triangle mesh.
*
@@ -356,17 +356,17 @@ public static int nxrTriangleMeshGetIndexBufferFB(XrTriangleMeshFB mesh, long ou
*
* @param mesh the {@code XrTriangleMeshFB} to get the index buffer for.
* @param outIndexBuffer a pointer to return the index buffer into.
- */
- @NativeType("XrResult")
- public static int xrTriangleMeshGetIndexBufferFB(XrTriangleMeshFB mesh, @NativeType("uint32_t **") PointerBuffer outIndexBuffer) {
- if (CHECKS) {
- check(outIndexBuffer, 1);
- }
- return nxrTriangleMeshGetIndexBufferFB(mesh, memAddress(outIndexBuffer));
- }
-
- // --- [ xrTriangleMeshBeginUpdateFB ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrTriangleMeshGetIndexBufferFB(XrTriangleMeshFB mesh, @NativeType("uint32_t **") PointerBuffer outIndexBuffer) {
+ if (CHECKS) {
+ check(outIndexBuffer, 1);
+ }
+ return nxrTriangleMeshGetIndexBufferFB(mesh, memAddress(outIndexBuffer));
+ }
+
+ // --- [ xrTriangleMeshBeginUpdateFB ] ---
+
/**
* Begin an update of the mesh data.
*
@@ -424,18 +424,18 @@ public static int xrTriangleMeshGetIndexBufferFB(XrTriangleMeshFB mesh, @NativeT
* {@link #xrTriangleMeshEndUpdateFB TriangleMeshEndUpdateFB}
*
* @param mesh the {@code XrTriangleMeshFB} to update.
- */
- @NativeType("XrResult")
- public static int xrTriangleMeshBeginUpdateFB(XrTriangleMeshFB mesh) {
- long __functionAddress = mesh.getCapabilities().xrTriangleMeshBeginUpdateFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(mesh.address(), __functionAddress);
- }
-
- // --- [ xrTriangleMeshEndUpdateFB ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrTriangleMeshBeginUpdateFB(XrTriangleMeshFB mesh) {
+ long __functionAddress = mesh.getCapabilities().xrTriangleMeshBeginUpdateFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(mesh.address(), __functionAddress);
+ }
+
+ // --- [ xrTriangleMeshEndUpdateFB ] ---
+
/**
* End an update of the mesh data.
*
@@ -494,27 +494,27 @@ public static int xrTriangleMeshBeginUpdateFB(XrTriangleMeshFB mesh) {
* @param mesh the {@code XrTriangleMeshFB} to update.
* @param vertexCount the vertex count after the update.
* @param triangleCount the triangle count after the update.
- */
- @NativeType("XrResult")
- public static int xrTriangleMeshEndUpdateFB(XrTriangleMeshFB mesh, @NativeType("uint32_t") int vertexCount, @NativeType("uint32_t") int triangleCount) {
- long __functionAddress = mesh.getCapabilities().xrTriangleMeshEndUpdateFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(mesh.address(), vertexCount, triangleCount, __functionAddress);
- }
-
- // --- [ xrTriangleMeshBeginVertexBufferUpdateFB ] ---
-
- /** Unsafe version of: {@link #xrTriangleMeshBeginVertexBufferUpdateFB TriangleMeshBeginVertexBufferUpdateFB} */
- public static int nxrTriangleMeshBeginVertexBufferUpdateFB(XrTriangleMeshFB mesh, long outVertexCount) {
- long __functionAddress = mesh.getCapabilities().xrTriangleMeshBeginVertexBufferUpdateFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(mesh.address(), outVertexCount, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrTriangleMeshEndUpdateFB(XrTriangleMeshFB mesh, @NativeType("uint32_t") int vertexCount, @NativeType("uint32_t") int triangleCount) {
+ long __functionAddress = mesh.getCapabilities().xrTriangleMeshEndUpdateFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(mesh.address(), vertexCount, triangleCount, __functionAddress);
+ }
+
+ // --- [ xrTriangleMeshBeginVertexBufferUpdateFB ] ---
+
+ /** Unsafe version of: {@link #xrTriangleMeshBeginVertexBufferUpdateFB TriangleMeshBeginVertexBufferUpdateFB} */
+ public static int nxrTriangleMeshBeginVertexBufferUpdateFB(XrTriangleMeshFB mesh, long outVertexCount) {
+ long __functionAddress = mesh.getCapabilities().xrTriangleMeshBeginVertexBufferUpdateFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(mesh.address(), outVertexCount, __functionAddress);
+ }
+
/**
* Begin an update of the vertex data.
*
@@ -572,17 +572,17 @@ public static int nxrTriangleMeshBeginVertexBufferUpdateFB(XrTriangleMeshFB mesh
*
* @param mesh the {@code XrTriangleMeshFB} to update.
* @param outVertexCount a pointer to a value to populate with the current vertex count. The updated data must have the exact same number of vertices.
- */
- @NativeType("XrResult")
- public static int xrTriangleMeshBeginVertexBufferUpdateFB(XrTriangleMeshFB mesh, @NativeType("uint32_t *") IntBuffer outVertexCount) {
- if (CHECKS) {
- check(outVertexCount, 1);
- }
- return nxrTriangleMeshBeginVertexBufferUpdateFB(mesh, memAddress(outVertexCount));
- }
-
- // --- [ xrTriangleMeshEndVertexBufferUpdateFB ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrTriangleMeshBeginVertexBufferUpdateFB(XrTriangleMeshFB mesh, @NativeType("uint32_t *") IntBuffer outVertexCount) {
+ if (CHECKS) {
+ check(outVertexCount, 1);
+ }
+ return nxrTriangleMeshBeginVertexBufferUpdateFB(mesh, memAddress(outVertexCount));
+ }
+
+ // --- [ xrTriangleMeshEndVertexBufferUpdateFB ] ---
+
/**
* End an update of the vertex data.
*
@@ -637,14 +637,14 @@ public static int xrTriangleMeshBeginVertexBufferUpdateFB(XrTriangleMeshFB mesh,
* {@link #xrTriangleMeshBeginVertexBufferUpdateFB TriangleMeshBeginVertexBufferUpdateFB}
*
* @param mesh the {@code XrTriangleMeshFB} to update.
- */
- @NativeType("XrResult")
- public static int xrTriangleMeshEndVertexBufferUpdateFB(XrTriangleMeshFB mesh) {
- long __functionAddress = mesh.getCapabilities().xrTriangleMeshEndVertexBufferUpdateFB;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(mesh.address(), __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrTriangleMeshEndVertexBufferUpdateFB(XrTriangleMeshFB mesh) {
+ long __functionAddress = mesh.getCapabilities().xrTriangleMeshEndVertexBufferUpdateFB;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(mesh.address(), __functionAddress);
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCFacialTracking.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCFacialTracking.java
index 31bf6d27e4..b3457a2b77 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCFacialTracking.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCFacialTracking.java
@@ -4,31 +4,31 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_HTC_facial_tracking extension.
*
* This extension allows an application to track and integrate users' eye and lip movements, empowering developers to read intention and model facial expressions.
- */
-public class HTCFacialTracking {
-
- /** The extension specification version. */
- public static final int XR_HTC_facial_tracking_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_HTC_FACIAL_TRACKING_EXTENSION_NAME = "XR_HTC_facial_tracking";
-
- /** Extends {@code XrObjectType}. */
- public static final int XR_OBJECT_TYPE_FACIAL_TRACKER_HTC = 1000104000;
-
+ */
+public class HTCFacialTracking {
+
+ /** The extension specification version. */
+ public static final int XR_HTC_facial_tracking_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_HTC_FACIAL_TRACKING_EXTENSION_NAME = "XR_HTC_facial_tracking";
+
+ /** Extends {@code XrObjectType}. */
+ public static final int XR_OBJECT_TYPE_FACIAL_TRACKER_HTC = 1000104000;
+
/**
* Extends {@code XrStructureType}.
*
@@ -39,12 +39,12 @@ public class HTCFacialTracking {
* {@link #XR_TYPE_FACIAL_TRACKER_CREATE_INFO_HTC TYPE_FACIAL_TRACKER_CREATE_INFO_HTC}
* {@link #XR_TYPE_FACIAL_EXPRESSIONS_HTC TYPE_FACIAL_EXPRESSIONS_HTC}
*
- */
+ */
public static final int
- XR_TYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTC = 1000104000,
- XR_TYPE_FACIAL_TRACKER_CREATE_INFO_HTC = 1000104001,
- XR_TYPE_FACIAL_EXPRESSIONS_HTC = 1000104002;
-
+ XR_TYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTC = 1000104000,
+ XR_TYPE_FACIAL_TRACKER_CREATE_INFO_HTC = 1000104001,
+ XR_TYPE_FACIAL_EXPRESSIONS_HTC = 1000104002;
+
/**
* XrEyeExpressionHTC - The blend shapes of eye expression
*
@@ -66,23 +66,23 @@ public class HTCFacialTracking {
* {@link #XR_EYE_EXPRESSION_LEFT_UP_HTC EYE_EXPRESSION_LEFT_UP_HTC}
* {@link #XR_EYE_EXPRESSION_RIGHT_UP_HTC EYE_EXPRESSION_RIGHT_UP_HTC}
*
- */
+ */
public static final int
- XR_EYE_EXPRESSION_LEFT_BLINK_HTC = 0,
- XR_EYE_EXPRESSION_LEFT_WIDE_HTC = 1,
- XR_EYE_EXPRESSION_RIGHT_BLINK_HTC = 2,
- XR_EYE_EXPRESSION_RIGHT_WIDE_HTC = 3,
- XR_EYE_EXPRESSION_LEFT_SQUEEZE_HTC = 4,
- XR_EYE_EXPRESSION_RIGHT_SQUEEZE_HTC = 5,
- XR_EYE_EXPRESSION_LEFT_DOWN_HTC = 6,
- XR_EYE_EXPRESSION_RIGHT_DOWN_HTC = 7,
- XR_EYE_EXPRESSION_LEFT_OUT_HTC = 8,
- XR_EYE_EXPRESSION_RIGHT_IN_HTC = 9,
- XR_EYE_EXPRESSION_LEFT_IN_HTC = 10,
- XR_EYE_EXPRESSION_RIGHT_OUT_HTC = 11,
- XR_EYE_EXPRESSION_LEFT_UP_HTC = 12,
- XR_EYE_EXPRESSION_RIGHT_UP_HTC = 13;
-
+ XR_EYE_EXPRESSION_LEFT_BLINK_HTC = 0,
+ XR_EYE_EXPRESSION_LEFT_WIDE_HTC = 1,
+ XR_EYE_EXPRESSION_RIGHT_BLINK_HTC = 2,
+ XR_EYE_EXPRESSION_RIGHT_WIDE_HTC = 3,
+ XR_EYE_EXPRESSION_LEFT_SQUEEZE_HTC = 4,
+ XR_EYE_EXPRESSION_RIGHT_SQUEEZE_HTC = 5,
+ XR_EYE_EXPRESSION_LEFT_DOWN_HTC = 6,
+ XR_EYE_EXPRESSION_RIGHT_DOWN_HTC = 7,
+ XR_EYE_EXPRESSION_LEFT_OUT_HTC = 8,
+ XR_EYE_EXPRESSION_RIGHT_IN_HTC = 9,
+ XR_EYE_EXPRESSION_LEFT_IN_HTC = 10,
+ XR_EYE_EXPRESSION_RIGHT_OUT_HTC = 11,
+ XR_EYE_EXPRESSION_LEFT_UP_HTC = 12,
+ XR_EYE_EXPRESSION_RIGHT_UP_HTC = 13;
+
/**
* XrLipExpressionHTC - The blend shapes of lip expression
*
@@ -127,46 +127,46 @@ public class HTCFacialTracking {
* {@link #XR_LIP_EXPRESSION_TONGUE_DOWNRIGHT_MORPH_HTC LIP_EXPRESSION_TONGUE_DOWNRIGHT_MORPH_HTC}
* {@link #XR_LIP_EXPRESSION_TONGUE_DOWNLEFT_MORPH_HTC LIP_EXPRESSION_TONGUE_DOWNLEFT_MORPH_HTC}
*
- */
+ */
public static final int
- XR_LIP_EXPRESSION_JAW_RIGHT_HTC = 0,
- XR_LIP_EXPRESSION_JAW_LEFT_HTC = 1,
- XR_LIP_EXPRESSION_JAW_FORWARD_HTC = 2,
- XR_LIP_EXPRESSION_JAW_OPEN_HTC = 3,
- XR_LIP_EXPRESSION_MOUTH_APE_SHAPE_HTC = 4,
- XR_LIP_EXPRESSION_MOUTH_UPPER_RIGHT_HTC = 5,
- XR_LIP_EXPRESSION_MOUTH_UPPER_LEFT_HTC = 6,
- XR_LIP_EXPRESSION_MOUTH_LOWER_RIGHT_HTC = 7,
- XR_LIP_EXPRESSION_MOUTH_LOWER_LEFT_HTC = 8,
- XR_LIP_EXPRESSION_MOUTH_UPPER_OVERTURN_HTC = 9,
- XR_LIP_EXPRESSION_MOUTH_LOWER_OVERTURN_HTC = 10,
- XR_LIP_EXPRESSION_MOUTH_POUT_HTC = 11,
- XR_LIP_EXPRESSION_MOUTH_SMILE_RIGHT_HTC = 12,
- XR_LIP_EXPRESSION_MOUTH_SMILE_LEFT_HTC = 13,
- XR_LIP_EXPRESSION_MOUTH_SAD_RIGHT_HTC = 14,
- XR_LIP_EXPRESSION_MOUTH_SAD_LEFT_HTC = 15,
- XR_LIP_EXPRESSION_CHEEK_PUFF_RIGHT_HTC = 16,
- XR_LIP_EXPRESSION_CHEEK_PUFF_LEFT_HTC = 17,
- XR_LIP_EXPRESSION_CHEEK_SUCK_HTC = 18,
- XR_LIP_EXPRESSION_MOUTH_UPPER_UPRIGHT_HTC = 19,
- XR_LIP_EXPRESSION_MOUTH_UPPER_UPLEFT_HTC = 20,
- XR_LIP_EXPRESSION_MOUTH_LOWER_DOWNRIGHT_HTC = 21,
- XR_LIP_EXPRESSION_MOUTH_LOWER_DOWNLEFT_HTC = 22,
- XR_LIP_EXPRESSION_MOUTH_UPPER_INSIDE_HTC = 23,
- XR_LIP_EXPRESSION_MOUTH_LOWER_INSIDE_HTC = 24,
- XR_LIP_EXPRESSION_MOUTH_LOWER_OVERLAY_HTC = 25,
- XR_LIP_EXPRESSION_TONGUE_LONGSTEP1_HTC = 26,
- XR_LIP_EXPRESSION_TONGUE_LEFT_HTC = 27,
- XR_LIP_EXPRESSION_TONGUE_RIGHT_HTC = 28,
- XR_LIP_EXPRESSION_TONGUE_UP_HTC = 29,
- XR_LIP_EXPRESSION_TONGUE_DOWN_HTC = 30,
- XR_LIP_EXPRESSION_TONGUE_ROLL_HTC = 31,
- XR_LIP_EXPRESSION_TONGUE_LONGSTEP2_HTC = 32,
- XR_LIP_EXPRESSION_TONGUE_UPRIGHT_MORPH_HTC = 33,
- XR_LIP_EXPRESSION_TONGUE_UPLEFT_MORPH_HTC = 34,
- XR_LIP_EXPRESSION_TONGUE_DOWNRIGHT_MORPH_HTC = 35,
- XR_LIP_EXPRESSION_TONGUE_DOWNLEFT_MORPH_HTC = 36;
-
+ XR_LIP_EXPRESSION_JAW_RIGHT_HTC = 0,
+ XR_LIP_EXPRESSION_JAW_LEFT_HTC = 1,
+ XR_LIP_EXPRESSION_JAW_FORWARD_HTC = 2,
+ XR_LIP_EXPRESSION_JAW_OPEN_HTC = 3,
+ XR_LIP_EXPRESSION_MOUTH_APE_SHAPE_HTC = 4,
+ XR_LIP_EXPRESSION_MOUTH_UPPER_RIGHT_HTC = 5,
+ XR_LIP_EXPRESSION_MOUTH_UPPER_LEFT_HTC = 6,
+ XR_LIP_EXPRESSION_MOUTH_LOWER_RIGHT_HTC = 7,
+ XR_LIP_EXPRESSION_MOUTH_LOWER_LEFT_HTC = 8,
+ XR_LIP_EXPRESSION_MOUTH_UPPER_OVERTURN_HTC = 9,
+ XR_LIP_EXPRESSION_MOUTH_LOWER_OVERTURN_HTC = 10,
+ XR_LIP_EXPRESSION_MOUTH_POUT_HTC = 11,
+ XR_LIP_EXPRESSION_MOUTH_SMILE_RIGHT_HTC = 12,
+ XR_LIP_EXPRESSION_MOUTH_SMILE_LEFT_HTC = 13,
+ XR_LIP_EXPRESSION_MOUTH_SAD_RIGHT_HTC = 14,
+ XR_LIP_EXPRESSION_MOUTH_SAD_LEFT_HTC = 15,
+ XR_LIP_EXPRESSION_CHEEK_PUFF_RIGHT_HTC = 16,
+ XR_LIP_EXPRESSION_CHEEK_PUFF_LEFT_HTC = 17,
+ XR_LIP_EXPRESSION_CHEEK_SUCK_HTC = 18,
+ XR_LIP_EXPRESSION_MOUTH_UPPER_UPRIGHT_HTC = 19,
+ XR_LIP_EXPRESSION_MOUTH_UPPER_UPLEFT_HTC = 20,
+ XR_LIP_EXPRESSION_MOUTH_LOWER_DOWNRIGHT_HTC = 21,
+ XR_LIP_EXPRESSION_MOUTH_LOWER_DOWNLEFT_HTC = 22,
+ XR_LIP_EXPRESSION_MOUTH_UPPER_INSIDE_HTC = 23,
+ XR_LIP_EXPRESSION_MOUTH_LOWER_INSIDE_HTC = 24,
+ XR_LIP_EXPRESSION_MOUTH_LOWER_OVERLAY_HTC = 25,
+ XR_LIP_EXPRESSION_TONGUE_LONGSTEP1_HTC = 26,
+ XR_LIP_EXPRESSION_TONGUE_LEFT_HTC = 27,
+ XR_LIP_EXPRESSION_TONGUE_RIGHT_HTC = 28,
+ XR_LIP_EXPRESSION_TONGUE_UP_HTC = 29,
+ XR_LIP_EXPRESSION_TONGUE_DOWN_HTC = 30,
+ XR_LIP_EXPRESSION_TONGUE_ROLL_HTC = 31,
+ XR_LIP_EXPRESSION_TONGUE_LONGSTEP2_HTC = 32,
+ XR_LIP_EXPRESSION_TONGUE_UPRIGHT_MORPH_HTC = 33,
+ XR_LIP_EXPRESSION_TONGUE_UPLEFT_MORPH_HTC = 34,
+ XR_LIP_EXPRESSION_TONGUE_DOWNRIGHT_MORPH_HTC = 35,
+ XR_LIP_EXPRESSION_TONGUE_DOWNLEFT_MORPH_HTC = 36;
+
/**
* XrFacialTrackingTypeHTC - Describes the type of facial tracking.
*
@@ -180,31 +180,31 @@ public class HTCFacialTracking {
* See Also
*
* {@link XrFacialTrackerCreateInfoHTC}
- */
+ */
public static final int
- XR_FACIAL_TRACKING_TYPE_EYE_DEFAULT_HTC = 1,
- XR_FACIAL_TRACKING_TYPE_LIP_DEFAULT_HTC = 2;
-
- /** API Constants */
+ XR_FACIAL_TRACKING_TYPE_EYE_DEFAULT_HTC = 1,
+ XR_FACIAL_TRACKING_TYPE_LIP_DEFAULT_HTC = 2;
+
+ /** API Constants */
public static final int
- XR_FACIAL_EXPRESSION_EYE_COUNT_HTC = 0xE,
- XR_FACIAL_EXPRESSION_LIP_COUNT_HTC = 0x25;
+ XR_FACIAL_EXPRESSION_EYE_COUNT_HTC = 0xE,
+ XR_FACIAL_EXPRESSION_LIP_COUNT_HTC = 0x25;
protected HTCFacialTracking() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrCreateFacialTrackerHTC ] ---
+
+ /** Unsafe version of: {@link #xrCreateFacialTrackerHTC CreateFacialTrackerHTC} */
+ public static int nxrCreateFacialTrackerHTC(XrSession session, long createInfo, long facialTracker) {
+ long __functionAddress = session.getCapabilities().xrCreateFacialTrackerHTC;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), createInfo, facialTracker, __functionAddress);
+ }
- // --- [ xrCreateFacialTrackerHTC ] ---
-
- /** Unsafe version of: {@link #xrCreateFacialTrackerHTC CreateFacialTrackerHTC} */
- public static int nxrCreateFacialTrackerHTC(XrSession session, long createInfo, long facialTracker) {
- long __functionAddress = session.getCapabilities().xrCreateFacialTrackerHTC;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), createInfo, facialTracker, __functionAddress);
- }
-
/**
* Create an facial tracker handle.
*
@@ -262,17 +262,17 @@ public static int nxrCreateFacialTrackerHTC(XrSession session, long createInfo,
* @param session an {@code XrSession} in which the facial expression will be active.
* @param createInfo the {@link XrFacialTrackerCreateInfoHTC} used to specify the facial tracking type.
* @param facialTracker the returned {@code XrFacialTrackerHTC} handle.
- */
- @NativeType("XrResult")
- public static int xrCreateFacialTrackerHTC(XrSession session, @NativeType("XrFacialTrackerCreateInfoHTC const *") XrFacialTrackerCreateInfoHTC createInfo, @NativeType("XrFacialTrackerHTC *") PointerBuffer facialTracker) {
- if (CHECKS) {
- check(facialTracker, 1);
- }
- return nxrCreateFacialTrackerHTC(session, createInfo.address(), memAddress(facialTracker));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrCreateFacialTrackerHTC(XrSession session, @NativeType("XrFacialTrackerCreateInfoHTC const *") XrFacialTrackerCreateInfoHTC createInfo, @NativeType("XrFacialTrackerHTC *") PointerBuffer facialTracker) {
+ if (CHECKS) {
+ check(facialTracker, 1);
+ }
+ return nxrCreateFacialTrackerHTC(session, createInfo.address(), memAddress(facialTracker));
+ }
+
+ // --- [ xrDestroyFacialTrackerHTC ] ---
- // --- [ xrDestroyFacialTrackerHTC ] ---
-
/**
* Destroy a facial tracker handle.
*
@@ -316,27 +316,27 @@ public static int xrCreateFacialTrackerHTC(XrSession session, @NativeType("XrFac
*
*
* @param facialTracker an {@code XrFacialTrackerHTC} previously created by {@link #xrCreateFacialTrackerHTC CreateFacialTrackerHTC}.
- */
- @NativeType("XrResult")
- public static int xrDestroyFacialTrackerHTC(XrFacialTrackerHTC facialTracker) {
- long __functionAddress = facialTracker.getCapabilities().xrDestroyFacialTrackerHTC;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(facialTracker.address(), __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrDestroyFacialTrackerHTC(XrFacialTrackerHTC facialTracker) {
+ long __functionAddress = facialTracker.getCapabilities().xrDestroyFacialTrackerHTC;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(facialTracker.address(), __functionAddress);
+ }
+
+ // --- [ xrGetFacialExpressionsHTC ] ---
+
+ /** Unsafe version of: {@link #xrGetFacialExpressionsHTC GetFacialExpressionsHTC} */
+ public static int nxrGetFacialExpressionsHTC(XrFacialTrackerHTC facialTracker, long facialExpressions) {
+ long __functionAddress = facialTracker.getCapabilities().xrGetFacialExpressionsHTC;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(facialTracker.address(), facialExpressions, __functionAddress);
+ }
- // --- [ xrGetFacialExpressionsHTC ] ---
-
- /** Unsafe version of: {@link #xrGetFacialExpressionsHTC GetFacialExpressionsHTC} */
- public static int nxrGetFacialExpressionsHTC(XrFacialTrackerHTC facialTracker, long facialExpressions) {
- long __functionAddress = facialTracker.getCapabilities().xrGetFacialExpressionsHTC;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(facialTracker.address(), facialExpressions, __functionAddress);
- }
-
/**
* Retrieve facial expressions.
*
@@ -385,10 +385,10 @@ public static int nxrGetFacialExpressionsHTC(XrFacialTrackerHTC facialTracker, l
*
* @param facialTracker an {@code XrFacialTrackerHTC} previously created by {@link #xrCreateFacialTrackerHTC CreateFacialTrackerHTC}.
* @param facialExpressions a pointer to {@link XrFacialExpressionsHTC} receiving the returned facial expressions.
- */
- @NativeType("XrResult")
- public static int xrGetFacialExpressionsHTC(XrFacialTrackerHTC facialTracker, @NativeType("XrFacialExpressionsHTC *") XrFacialExpressionsHTC facialExpressions) {
- return nxrGetFacialExpressionsHTC(facialTracker, facialExpressions.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetFacialExpressionsHTC(XrFacialTrackerHTC facialTracker, @NativeType("XrFacialExpressionsHTC *") XrFacialExpressionsHTC facialExpressions) {
+ return nxrGetFacialExpressionsHTC(facialTracker, facialExpressions.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCFoveation.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCFoveation.java
index bae1093c5f..ad2a76083c 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCFoveation.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCFoveation.java
@@ -4,12 +4,12 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+
/**
* The XR_HTC_foveation extension.
*
@@ -26,15 +26,15 @@
*
* This extension is recommended for {@code XrSession} whose {@code XrViewConfigurationType} is {@link XR10#XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO}.
*
- */
-public class HTCFoveation {
-
- /** The extension specification version. */
- public static final int XR_HTC_foveation_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_HTC_FOVEATION_EXTENSION_NAME = "XR_HTC_foveation";
-
+ */
+public class HTCFoveation {
+
+ /** The extension specification version. */
+ public static final int XR_HTC_foveation_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_HTC_FOVEATION_EXTENSION_NAME = "XR_HTC_foveation";
+
/**
* Extends {@code XrStructureType}.
*
@@ -45,12 +45,12 @@ public class HTCFoveation {
* {@link #XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC}
* {@link #XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC}
*
- */
+ */
public static final int
- XR_TYPE_FOVEATION_APPLY_INFO_HTC = 1000318000,
- XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC = 1000318001,
- XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC = 1000318002;
-
+ XR_TYPE_FOVEATION_APPLY_INFO_HTC = 1000318000,
+ XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC = 1000318001,
+ XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC = 1000318002;
+
/**
* XrFoveationModeHTC - Foveation mode
*
@@ -66,13 +66,13 @@ public class HTCFoveation {
* See Also
*
* {@link XrFoveationApplyInfoHTC}
- */
+ */
public static final int
- XR_FOVEATION_MODE_DISABLE_HTC = 0,
- XR_FOVEATION_MODE_FIXED_HTC = 1,
- XR_FOVEATION_MODE_DYNAMIC_HTC = 2,
- XR_FOVEATION_MODE_CUSTOM_HTC = 3;
-
+ XR_FOVEATION_MODE_DISABLE_HTC = 0,
+ XR_FOVEATION_MODE_FIXED_HTC = 1,
+ XR_FOVEATION_MODE_DYNAMIC_HTC = 2,
+ XR_FOVEATION_MODE_CUSTOM_HTC = 3;
+
/**
* XrFoveationLevelHTC - The pixel density drop level of periphery area
*
@@ -88,13 +88,13 @@ public class HTCFoveation {
* See Also
*
* {@link XrFoveationConfigurationHTC}
- */
+ */
public static final int
- XR_FOVEATION_LEVEL_NONE_HTC = 0,
- XR_FOVEATION_LEVEL_LOW_HTC = 1,
- XR_FOVEATION_LEVEL_MEDIUM_HTC = 2,
- XR_FOVEATION_LEVEL_HIGH_HTC = 3;
-
+ XR_FOVEATION_LEVEL_NONE_HTC = 0,
+ XR_FOVEATION_LEVEL_LOW_HTC = 1,
+ XR_FOVEATION_LEVEL_MEDIUM_HTC = 2,
+ XR_FOVEATION_LEVEL_HIGH_HTC = 3;
+
/**
* XrFoveationDynamicFlagBitsHTC - Features allow to change in dynamic mode
*
@@ -105,28 +105,28 @@ public class HTCFoveation {
* {@link #XR_FOVEATION_DYNAMIC_CLEAR_FOV_ENABLED_BIT_HTC FOVEATION_DYNAMIC_CLEAR_FOV_ENABLED_BIT_HTC} — Allow system to set clear FOV degree dynamically.
* {@link #XR_FOVEATION_DYNAMIC_FOCAL_CENTER_OFFSET_ENABLED_BIT_HTC FOVEATION_DYNAMIC_FOCAL_CENTER_OFFSET_ENABLED_BIT_HTC} — Allow system to set focal center offset dynamically.
*
- */
+ */
public static final int
- XR_FOVEATION_DYNAMIC_LEVEL_ENABLED_BIT_HTC = 0x1,
- XR_FOVEATION_DYNAMIC_CLEAR_FOV_ENABLED_BIT_HTC = 0x2,
- XR_FOVEATION_DYNAMIC_FOCAL_CENTER_OFFSET_ENABLED_BIT_HTC = 0x4;
+ XR_FOVEATION_DYNAMIC_LEVEL_ENABLED_BIT_HTC = 0x1,
+ XR_FOVEATION_DYNAMIC_CLEAR_FOV_ENABLED_BIT_HTC = 0x2,
+ XR_FOVEATION_DYNAMIC_FOCAL_CENTER_OFFSET_ENABLED_BIT_HTC = 0x4;
protected HTCFoveation() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrApplyFoveationHTC ] ---
+
+ /** Unsafe version of: {@link #xrApplyFoveationHTC ApplyFoveationHTC} */
+ public static int nxrApplyFoveationHTC(XrSession session, long applyInfo) {
+ long __functionAddress = session.getCapabilities().xrApplyFoveationHTC;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrFoveationApplyInfoHTC.validate(applyInfo);
+ }
+ return callPPI(session.address(), applyInfo, __functionAddress);
+ }
- // --- [ xrApplyFoveationHTC ] ---
-
- /** Unsafe version of: {@link #xrApplyFoveationHTC ApplyFoveationHTC} */
- public static int nxrApplyFoveationHTC(XrSession session, long applyInfo) {
- long __functionAddress = session.getCapabilities().xrApplyFoveationHTC;
- if (CHECKS) {
- check(__functionAddress);
- XrFoveationApplyInfoHTC.validate(applyInfo);
- }
- return callPPI(session.address(), applyInfo, __functionAddress);
- }
-
/**
* Apply foveation config to system.
*
@@ -177,10 +177,10 @@ public static int nxrApplyFoveationHTC(XrSession session, long applyInfo) {
*
* @param session a handle to an {@code XrSession} in which the foveation will apply to.
* @param applyInfo a pointer to an {@link XrFoveationApplyInfoHTC} structure containing information about the foveation configuration and applied {@link XrSwapchainSubImage}.
- */
- @NativeType("XrResult")
- public static int xrApplyFoveationHTC(XrSession session, @NativeType("XrFoveationApplyInfoHTC const *") XrFoveationApplyInfoHTC applyInfo) {
- return nxrApplyFoveationHTC(session, applyInfo.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrApplyFoveationHTC(XrSession session, @NativeType("XrFoveationApplyInfoHTC const *") XrFoveationApplyInfoHTC applyInfo) {
+ return nxrApplyFoveationHTC(session, applyInfo.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCHandInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCHandInteraction.java
index 16266109ea..56eae94193 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCHandInteraction.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCHandInteraction.java
@@ -4,20 +4,20 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_HTC_hand_interaction extension.
*
* This extension defines a new interaction profile for tracked hands.
- */
-public final class HTCHandInteraction {
-
- /** The extension specification version. */
- public static final int XR_HTC_hand_interaction_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_HTC_HAND_INTERACTION_EXTENSION_NAME = "XR_HTC_hand_interaction";
+ */
+public final class HTCHandInteraction {
+
+ /** The extension specification version. */
+ public static final int XR_HTC_hand_interaction_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_HTC_HAND_INTERACTION_EXTENSION_NAME = "XR_HTC_hand_interaction";
- private HTCHandInteraction() {}
+ private HTCHandInteraction() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCPassthrough.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCPassthrough.java
index 3e31235cdf..560edd51ea 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCPassthrough.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCPassthrough.java
@@ -4,15 +4,15 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_HTC_passthrough extension.
*
@@ -25,18 +25,18 @@
* Specify the passthrough form with full of the entire screen or projection onto the mesh specified by the application.
* Set the alpha blending level for the composition of the passthrough layer.
*
- */
-public class HTCPassthrough {
-
- /** The extension specification version. */
- public static final int XR_HTC_passthrough_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_HTC_PASSTHROUGH_EXTENSION_NAME = "XR_HTC_passthrough";
-
- /** Extends {@code XrObjectType}. */
- public static final int XR_OBJECT_TYPE_PASSTHROUGH_HTC = 1000317000;
-
+ */
+public class HTCPassthrough {
+
+ /** The extension specification version. */
+ public static final int XR_HTC_passthrough_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_HTC_PASSTHROUGH_EXTENSION_NAME = "XR_HTC_passthrough";
+
+ /** Extends {@code XrObjectType}. */
+ public static final int XR_OBJECT_TYPE_PASSTHROUGH_HTC = 1000317000;
+
/**
* Extends {@code XrStructureType}.
*
@@ -48,13 +48,13 @@ public class HTCPassthrough {
* {@link #XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC}
* {@link #XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC}
*
- */
+ */
public static final int
- XR_TYPE_PASSTHROUGH_CREATE_INFO_HTC = 1000317001,
- XR_TYPE_PASSTHROUGH_COLOR_HTC = 1000317002,
- XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC = 1000317003,
- XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC = 1000317004;
-
+ XR_TYPE_PASSTHROUGH_CREATE_INFO_HTC = 1000317001,
+ XR_TYPE_PASSTHROUGH_COLOR_HTC = 1000317002,
+ XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC = 1000317003,
+ XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC = 1000317004;
+
/**
* XrPassthroughFormHTC - Describes the form of passthrough.
*
@@ -68,26 +68,26 @@ public class HTCPassthrough {
* See Also
*
* {@link XrPassthroughCreateInfoHTC}
- */
+ */
public static final int
- XR_PASSTHROUGH_FORM_PLANAR_HTC = 0,
- XR_PASSTHROUGH_FORM_PROJECTED_HTC = 1;
+ XR_PASSTHROUGH_FORM_PLANAR_HTC = 0,
+ XR_PASSTHROUGH_FORM_PROJECTED_HTC = 1;
protected HTCPassthrough() {
throw new UnsupportedOperationException();
- }
-
- // --- [ xrCreatePassthroughHTC ] ---
-
- /** Unsafe version of: {@link #xrCreatePassthroughHTC CreatePassthroughHTC} */
- public static int nxrCreatePassthroughHTC(XrSession session, long createInfo, long passthrough) {
- long __functionAddress = session.getCapabilities().xrCreatePassthroughHTC;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), createInfo, passthrough, __functionAddress);
- }
-
+ }
+
+ // --- [ xrCreatePassthroughHTC ] ---
+
+ /** Unsafe version of: {@link #xrCreatePassthroughHTC CreatePassthroughHTC} */
+ public static int nxrCreatePassthroughHTC(XrSession session, long createInfo, long passthrough) {
+ long __functionAddress = session.getCapabilities().xrCreatePassthroughHTC;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), createInfo, passthrough, __functionAddress);
+ }
+
/**
* Create a passthrough handle.
*
@@ -145,17 +145,17 @@ public static int nxrCreatePassthroughHTC(XrSession session, long createInfo, lo
* @param session an {@code XrSession} in which the passthrough will be active.
* @param createInfo a pointer to an {@link XrPassthroughCreateInfoHTC} structure containing information about how to create the passthrough.
* @param passthrough a pointer to a handle in which the created {@code XrPassthroughHTC} is returned.
- */
- @NativeType("XrResult")
- public static int xrCreatePassthroughHTC(XrSession session, @NativeType("XrPassthroughCreateInfoHTC const *") XrPassthroughCreateInfoHTC createInfo, @NativeType("XrPassthroughHTC *") PointerBuffer passthrough) {
- if (CHECKS) {
- check(passthrough, 1);
- }
- return nxrCreatePassthroughHTC(session, createInfo.address(), memAddress(passthrough));
- }
-
- // --- [ xrDestroyPassthroughHTC ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrCreatePassthroughHTC(XrSession session, @NativeType("XrPassthroughCreateInfoHTC const *") XrPassthroughCreateInfoHTC createInfo, @NativeType("XrPassthroughHTC *") PointerBuffer passthrough) {
+ if (CHECKS) {
+ check(passthrough, 1);
+ }
+ return nxrCreatePassthroughHTC(session, createInfo.address(), memAddress(passthrough));
+ }
+
+ // --- [ xrDestroyPassthroughHTC ] ---
+
/**
* Destroy a passthrough handle.
*
@@ -200,14 +200,14 @@ public static int xrCreatePassthroughHTC(XrSession session, @NativeType("XrPasst
*
*
* @param passthrough the {@code XrPassthroughHTC} to be destroyed.
- */
- @NativeType("XrResult")
- public static int xrDestroyPassthroughHTC(XrPassthroughHTC passthrough) {
- long __functionAddress = passthrough.getCapabilities().xrDestroyPassthroughHTC;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(passthrough.address(), __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrDestroyPassthroughHTC(XrPassthroughHTC passthrough) {
+ long __functionAddress = passthrough.getCapabilities().xrDestroyPassthroughHTC;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(passthrough.address(), __functionAddress);
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveCosmosControllerInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveCosmosControllerInteraction.java
index 3d40f29c7f..f0f71345bc 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveCosmosControllerInteraction.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveCosmosControllerInteraction.java
@@ -4,20 +4,20 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_HTC_vive_cosmos_controller_interaction extension.
*
* This extension defines a new interaction profile for the VIVE Cosmos Controller.
- */
-public final class HTCViveCosmosControllerInteraction {
-
- /** The extension specification version. */
- public static final int XR_HTC_vive_cosmos_controller_interaction_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_HTC_VIVE_COSMOS_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_HTC_vive_cosmos_controller_interaction";
+ */
+public final class HTCViveCosmosControllerInteraction {
+
+ /** The extension specification version. */
+ public static final int XR_HTC_vive_cosmos_controller_interaction_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_HTC_VIVE_COSMOS_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_HTC_vive_cosmos_controller_interaction";
- private HTCViveCosmosControllerInteraction() {}
+ private HTCViveCosmosControllerInteraction() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveFocus3ControllerInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveFocus3ControllerInteraction.java
index 206f6c45fe..29010f4b12 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveFocus3ControllerInteraction.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveFocus3ControllerInteraction.java
@@ -4,20 +4,20 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_HTC_vive_focus3_controller_interaction extension.
*
* This extension defines a new interaction profile for the VIVE Focus 3 Controller.
- */
-public final class HTCViveFocus3ControllerInteraction {
-
- /** The extension specification version. */
- public static final int XR_HTC_vive_focus3_controller_interaction_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_HTC_VIVE_FOCUS3_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_HTC_vive_focus3_controller_interaction";
+ */
+public final class HTCViveFocus3ControllerInteraction {
+
+ /** The extension specification version. */
+ public static final int XR_HTC_vive_focus3_controller_interaction_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_HTC_VIVE_FOCUS3_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_HTC_vive_focus3_controller_interaction";
- private HTCViveFocus3ControllerInteraction() {}
+ private HTCViveFocus3ControllerInteraction() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveWristTrackerInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveWristTrackerInteraction.java
index 2f9479b20f..e1423de6a8 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveWristTrackerInteraction.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveWristTrackerInteraction.java
@@ -4,20 +4,20 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_HTC_vive_wrist_tracker_interaction extension.
*
* This extension provides an {@code XrPath} for getting device input from a VIVE wrist tracker to enable its interactions. VIVE wrist tracker is a tracked device mainly worn on user’s wrist for pose tracking. Besides this use case, user also can tie it to a physical object to track its object pose, e.g. tie on a gun.
- */
-public final class HTCViveWristTrackerInteraction {
-
- /** The extension specification version. */
- public static final int XR_HTC_vive_wrist_tracker_interaction_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_HTC_VIVE_WRIST_TRACKER_INTERACTION_EXTENSION_NAME = "XR_HTC_vive_wrist_tracker_interaction";
+ */
+public final class HTCViveWristTrackerInteraction {
+
+ /** The extension specification version. */
+ public static final int XR_HTC_vive_wrist_tracker_interaction_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_HTC_VIVE_WRIST_TRACKER_INTERACTION_EXTENSION_NAME = "XR_HTC_vive_wrist_tracker_interaction";
- private HTCViveWristTrackerInteraction() {}
+ private HTCViveWristTrackerInteraction() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCXViveTrackerInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCXViveTrackerInteraction.java
index 9b66582811..69f7089e4c 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCXViveTrackerInteraction.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCXViveTrackerInteraction.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_HTCX_vive_tracker_interaction extension.
*
@@ -61,15 +61,15 @@
* As with other controllers, if a VIVE tracker is connected and bound to a top-level user path, or disconnected while bound to top-level user path, the runtime must send event {@link XR10#XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED}, and the application may call {@link XR10#xrGetCurrentInteractionProfile GetCurrentInteractionProfile} to check if the tracker is active or not.
*
* The device that a tracker is attached to probably has a different motion model than what the tracker assumes. The motion tracking might not be as expected in this case.
- */
-public class HTCXViveTrackerInteraction {
-
- /** The extension specification version. */
- public static final int XR_HTCX_vive_tracker_interaction_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_HTCX_VIVE_TRACKER_INTERACTION_EXTENSION_NAME = "XR_HTCX_vive_tracker_interaction";
-
+ */
+public class HTCXViveTrackerInteraction {
+
+ /** The extension specification version. */
+ public static final int XR_HTCX_vive_tracker_interaction_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_HTCX_VIVE_TRACKER_INTERACTION_EXTENSION_NAME = "XR_HTCX_vive_tracker_interaction";
+
/**
* Extends {@code XrStructureType}.
*
@@ -79,30 +79,30 @@ public class HTCXViveTrackerInteraction {
* {@link #XR_TYPE_VIVE_TRACKER_PATHS_HTCX TYPE_VIVE_TRACKER_PATHS_HTCX}
* {@link #XR_TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX}
*
- */
+ */
public static final int
- XR_TYPE_VIVE_TRACKER_PATHS_HTCX = 1000103000,
- XR_TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX = 1000103001;
+ XR_TYPE_VIVE_TRACKER_PATHS_HTCX = 1000103000,
+ XR_TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX = 1000103001;
protected HTCXViveTrackerInteraction() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrEnumerateViveTrackerPathsHTCX ] ---
- // --- [ xrEnumerateViveTrackerPathsHTCX ] ---
-
/**
* Unsafe version of: {@link #xrEnumerateViveTrackerPathsHTCX EnumerateViveTrackerPathsHTCX}
*
* @param pathsCapacityInput the capacity of the {@code viveTrackerPaths}, or 0 to retrieve the required capacity.
- */
- public static int nxrEnumerateViveTrackerPathsHTCX(XrInstance instance, int pathsCapacityInput, long pathsCountOutput, long viveTrackerPaths) {
- long __functionAddress = instance.getCapabilities().xrEnumerateViveTrackerPathsHTCX;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(instance.address(), pathsCapacityInput, pathsCountOutput, viveTrackerPaths, __functionAddress);
- }
-
+ */
+ public static int nxrEnumerateViveTrackerPathsHTCX(XrInstance instance, int pathsCapacityInput, long pathsCountOutput, long viveTrackerPaths) {
+ long __functionAddress = instance.getCapabilities().xrEnumerateViveTrackerPathsHTCX;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(instance.address(), pathsCapacityInput, pathsCountOutput, viveTrackerPaths, __functionAddress);
+ }
+
/**
* Enumerates all connected VIVE trackers.
*
@@ -155,13 +155,13 @@ public static int nxrEnumerateViveTrackerPathsHTCX(XrInstance instance, int path
* @param instance an instance previously created.
* @param pathsCountOutput a pointer to the count of {@link XrViveTrackerPathsHTCX} {@code viveTrackerPaths} written, or a pointer to the required capacity in the case that {@code pathsCapacityInput} is insufficient.
* @param viveTrackerPaths a pointer to an array of {@link XrViveTrackerPathsHTCX} VIVE tracker paths, but can be {@code NULL} if {@code pathsCapacityInput} is 0.
- */
- @NativeType("XrResult")
- public static int xrEnumerateViveTrackerPathsHTCX(XrInstance instance, @NativeType("uint32_t *") IntBuffer pathsCountOutput, @Nullable @NativeType("XrViveTrackerPathsHTCX *") XrViveTrackerPathsHTCX.Buffer viveTrackerPaths) {
- if (CHECKS) {
- check(pathsCountOutput, 1);
- }
- return nxrEnumerateViveTrackerPathsHTCX(instance, remainingSafe(viveTrackerPaths), memAddress(pathsCountOutput), memAddressSafe(viveTrackerPaths));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrEnumerateViveTrackerPathsHTCX(XrInstance instance, @NativeType("uint32_t *") IntBuffer pathsCountOutput, @Nullable @NativeType("XrViveTrackerPathsHTCX *") XrViveTrackerPathsHTCX.Buffer viveTrackerPaths) {
+ if (CHECKS) {
+ check(pathsCountOutput, 1);
+ }
+ return nxrEnumerateViveTrackerPathsHTCX(instance, remainingSafe(viveTrackerPaths), memAddress(pathsCountOutput), memAddressSafe(viveTrackerPaths));
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HUAWEIControllerInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HUAWEIControllerInteraction.java
index 6659db84d7..04c02b7f18 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HUAWEIControllerInteraction.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HUAWEIControllerInteraction.java
@@ -4,20 +4,20 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_HUAWEI_controller_interaction extension.
*
* This extension defines a new interaction profile for the Huawei Controller, including but not limited to Huawei VR Glasses Controller.
- */
-public final class HUAWEIControllerInteraction {
-
- /** The extension specification version. */
- public static final int XR_HUAWEI_controller_interaction_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_HUAWEI_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_HUAWEI_controller_interaction";
+ */
+public final class HUAWEIControllerInteraction {
+
+ /** The extension specification version. */
+ public static final int XR_HUAWEI_controller_interaction_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_HUAWEI_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_HUAWEI_controller_interaction";
- private HUAWEIControllerInteraction() {}
+ private HUAWEIControllerInteraction() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRBindingModification.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRBindingModification.java
index b965437756..279b3f23e5 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRBindingModification.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRBindingModification.java
@@ -4,25 +4,25 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_KHR_binding_modification extension.
*
* This extension adds an optional structure that can be included on the {@link XrInteractionProfileSuggestedBinding}{@code ::next} chain passed to {@link XR10#xrSuggestInteractionProfileBindings SuggestInteractionProfileBindings} to specify additional information to modify default binding behavior.
*
* This extension does not define any actual modification structs, but includes the list of modifications and the {@link XrBindingModificationBaseHeaderKHR} structure to allow other extensions to provide specific modifications.
- */
-public final class KHRBindingModification {
-
- /** The extension specification version. */
- public static final int XR_KHR_binding_modification_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_KHR_BINDING_MODIFICATION_EXTENSION_NAME = "XR_KHR_binding_modification";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_BINDING_MODIFICATIONS_KHR = 1000120000;
+ */
+public final class KHRBindingModification {
+
+ /** The extension specification version. */
+ public static final int XR_KHR_binding_modification_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_KHR_BINDING_MODIFICATION_EXTENSION_NAME = "XR_KHR_binding_modification";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_BINDING_MODIFICATIONS_KHR = 1000120000;
- private KHRBindingModification() {}
+ private KHRBindingModification() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerColorScaleBias.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerColorScaleBias.java
index a100e4939b..31ed8ea2af 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerColorScaleBias.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerColorScaleBias.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_KHR_composition_layer_color_scale_bias extension.
*
@@ -22,18 +22,18 @@
* This extension specifies the {@link XrCompositionLayerColorScaleBiasKHR} structure, which, if present in the {@link XrCompositionLayerBaseHeader}{@code ::next} chain, must be applied to the composition layer.
*
* This extension does not define a new composition layer type, but rather it defines a transform that may be applied to the color derived from existing composition layer types.
- */
-public final class KHRCompositionLayerColorScaleBias {
-
- /** The extension specification version. */
- public static final int XR_KHR_composition_layer_color_scale_bias_SPEC_VERSION = 5;
-
- /** The extension name. */
- public static final String XR_KHR_COMPOSITION_LAYER_COLOR_SCALE_BIAS_EXTENSION_NAME = "XR_KHR_composition_layer_color_scale_bias";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR = 1000034000;
+ */
+public final class KHRCompositionLayerColorScaleBias {
+
+ /** The extension specification version. */
+ public static final int XR_KHR_composition_layer_color_scale_bias_SPEC_VERSION = 5;
+
+ /** The extension name. */
+ public static final String XR_KHR_COMPOSITION_LAYER_COLOR_SCALE_BIAS_EXTENSION_NAME = "XR_KHR_composition_layer_color_scale_bias";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR = 1000034000;
- private KHRCompositionLayerColorScaleBias() {}
+ private KHRCompositionLayerColorScaleBias() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerCube.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerCube.java
index 04a66c4686..15e774f9db 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerCube.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerCube.java
@@ -4,25 +4,25 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_KHR_composition_layer_cube extension.
*
* This extension adds an additional layer type that enables direct sampling from cubemaps.
*
* The cube layer is the natural layer type for hardware accelerated environment maps. Without updating the image source, the user can look all around, and the compositor can display what they are looking at without intervention from the application.
- */
-public final class KHRCompositionLayerCube {
-
- /** The extension specification version. */
- public static final int XR_KHR_composition_layer_cube_SPEC_VERSION = 8;
-
- /** The extension name. */
- public static final String XR_KHR_COMPOSITION_LAYER_CUBE_EXTENSION_NAME = "XR_KHR_composition_layer_cube";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_COMPOSITION_LAYER_CUBE_KHR = 1000006000;
+ */
+public final class KHRCompositionLayerCube {
+
+ /** The extension specification version. */
+ public static final int XR_KHR_composition_layer_cube_SPEC_VERSION = 8;
+
+ /** The extension name. */
+ public static final String XR_KHR_COMPOSITION_LAYER_CUBE_EXTENSION_NAME = "XR_KHR_composition_layer_cube";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_COMPOSITION_LAYER_CUBE_KHR = 1000006000;
- private KHRCompositionLayerCube() {}
+ private KHRCompositionLayerCube() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerCylinder.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerCylinder.java
index 983ced4933..9634b8ed36 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerCylinder.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerCylinder.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_KHR_composition_layer_cylinder extension.
*
@@ -26,18 +26,18 @@
* p — Origin of pose transform
* U/V — UV coordinates
*
- */
-public final class KHRCompositionLayerCylinder {
-
- /** The extension specification version. */
- public static final int XR_KHR_composition_layer_cylinder_SPEC_VERSION = 4;
-
- /** The extension name. */
- public static final String XR_KHR_COMPOSITION_LAYER_CYLINDER_EXTENSION_NAME = "XR_KHR_composition_layer_cylinder";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR = 1000017000;
+ */
+public final class KHRCompositionLayerCylinder {
+
+ /** The extension specification version. */
+ public static final int XR_KHR_composition_layer_cylinder_SPEC_VERSION = 4;
+
+ /** The extension name. */
+ public static final String XR_KHR_COMPOSITION_LAYER_CYLINDER_EXTENSION_NAME = "XR_KHR_composition_layer_cylinder";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR = 1000017000;
- private KHRCompositionLayerCylinder() {}
+ private KHRCompositionLayerCylinder() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerDepth.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerDepth.java
index 9793739ccb..81fd6208ed 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerDepth.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerDepth.java
@@ -4,25 +4,25 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_KHR_composition_layer_depth extension.
*
* This extension defines an extra layer type which allows applications to submit depth images along with color images in projection layers, i.e. {@link XrCompositionLayerProjection}.
*
* The XR runtime may use this information to perform more accurate reprojections taking depth into account. Use of this extension does not affect the order of layer composition as described in Compositing.
- */
-public final class KHRCompositionLayerDepth {
-
- /** The extension specification version. */
- public static final int XR_KHR_composition_layer_depth_SPEC_VERSION = 6;
-
- /** The extension name. */
- public static final String XR_KHR_COMPOSITION_LAYER_DEPTH_EXTENSION_NAME = "XR_KHR_composition_layer_depth";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR = 1000010000;
+ */
+public final class KHRCompositionLayerDepth {
+
+ /** The extension specification version. */
+ public static final int XR_KHR_composition_layer_depth_SPEC_VERSION = 6;
+
+ /** The extension name. */
+ public static final String XR_KHR_COMPOSITION_LAYER_DEPTH_EXTENSION_NAME = "XR_KHR_composition_layer_depth";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR = 1000010000;
- private KHRCompositionLayerDepth() {}
+ private KHRCompositionLayerDepth() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerEquirect.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerEquirect.java
index 80528d3aa8..c76c4e3de2 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerEquirect.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerEquirect.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_KHR_composition_layer_equirect extension.
*
@@ -13,18 +13,18 @@
* The equirect layer type provides most of the same benefits as a cubemap, but from an equirect 2D image source. This image source is appealing mostly because equirect environment maps are very common, and the highest quality you can get from them is by sampling them directly in the compositor.
*
* This is not a projection type of layer but rather an object-in-world type of layer, similar to {@link XrCompositionLayerQuad}. Only the interior of the sphere surface must be visible; the exterior of the sphere is not visible and must not be drawn by the runtime.
- */
-public final class KHRCompositionLayerEquirect {
-
- /** The extension specification version. */
- public static final int XR_KHR_composition_layer_equirect_SPEC_VERSION = 3;
-
- /** The extension name. */
- public static final String XR_KHR_COMPOSITION_LAYER_EQUIRECT_EXTENSION_NAME = "XR_KHR_composition_layer_equirect";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR = 1000018000;
+ */
+public final class KHRCompositionLayerEquirect {
+
+ /** The extension specification version. */
+ public static final int XR_KHR_composition_layer_equirect_SPEC_VERSION = 3;
+
+ /** The extension name. */
+ public static final String XR_KHR_COMPOSITION_LAYER_EQUIRECT_EXTENSION_NAME = "XR_KHR_composition_layer_equirect";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR = 1000018000;
- private KHRCompositionLayerEquirect() {}
+ private KHRCompositionLayerEquirect() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerEquirect2.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerEquirect2.java
index a0bf904302..90fd7c1138 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerEquirect2.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerEquirect2.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_KHR_composition_layer_equirect2 extension.
*
@@ -15,18 +15,18 @@
* This is not a projection type of layer but rather an object-in-world type of layer, similar to {@link XrCompositionLayerQuad}. Only the interior of the sphere surface must be visible; the exterior of the sphere is not visible and must not be drawn by the runtime.
*
* This extension uses a different parameterization more in keeping with the formulation of KHR_composition_layer_cylinder but is functionally equivalent to KHR_composition_layer_equirect.
- */
-public final class KHRCompositionLayerEquirect2 {
-
- /** The extension specification version. */
- public static final int XR_KHR_composition_layer_equirect2_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_KHR_COMPOSITION_LAYER_EQUIRECT2_EXTENSION_NAME = "XR_KHR_composition_layer_equirect2";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR = 1000091000;
+ */
+public final class KHRCompositionLayerEquirect2 {
+
+ /** The extension specification version. */
+ public static final int XR_KHR_composition_layer_equirect2_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_KHR_COMPOSITION_LAYER_EQUIRECT2_EXTENSION_NAME = "XR_KHR_composition_layer_equirect2";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR = 1000091000;
- private KHRCompositionLayerEquirect2() {}
+ private KHRCompositionLayerEquirect2() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRConvertTimespecTime.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRConvertTimespecTime.java
index f1e1ff164b..3037701817 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRConvertTimespecTime.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRConvertTimespecTime.java
@@ -4,44 +4,44 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import java.nio.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_KHR_convert_timespec_time extension.
*
* This extension provides two functions for converting between timespec monotonic time and {@code XrTime}. The {@link #xrConvertTimespecTimeToTimeKHR ConvertTimespecTimeToTimeKHR} function converts from timespec time to {@code XrTime}, while the {@link #xrConvertTimeToTimespecTimeKHR ConvertTimeToTimespecTimeKHR} function converts {@code XrTime} to timespec monotonic time. The primary use case for this functionality is to be able to synchronize events between the local system and the OpenXR system.
- */
-public class KHRConvertTimespecTime {
-
- /** The extension specification version. */
- public static final int XR_KHR_convert_timespec_time_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME = "XR_KHR_convert_timespec_time";
+ */
+public class KHRConvertTimespecTime {
+
+ /** The extension specification version. */
+ public static final int XR_KHR_convert_timespec_time_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME = "XR_KHR_convert_timespec_time";
protected KHRConvertTimespecTime() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrConvertTimespecTimeToTimeKHR ] ---
+
+ /** Unsafe version of: {@link #xrConvertTimespecTimeToTimeKHR ConvertTimespecTimeToTimeKHR} */
+ public static int nxrConvertTimespecTimeToTimeKHR(XrInstance instance, long unixTime, long time) {
+ long __functionAddress = instance.getCapabilities().xrConvertTimespecTimeToTimeKHR;
+ if (CHECKS) {
+ check(__functionAddress);
+ check(unixTime);
+ }
+ return callPPPI(instance.address(), unixTime, time, __functionAddress);
+ }
- // --- [ xrConvertTimespecTimeToTimeKHR ] ---
-
- /** Unsafe version of: {@link #xrConvertTimespecTimeToTimeKHR ConvertTimespecTimeToTimeKHR} */
- public static int nxrConvertTimespecTimeToTimeKHR(XrInstance instance, long unixTime, long time) {
- long __functionAddress = instance.getCapabilities().xrConvertTimespecTimeToTimeKHR;
- if (CHECKS) {
- check(__functionAddress);
- check(unixTime);
- }
- return callPPPI(instance.address(), unixTime, time, __functionAddress);
- }
-
/**
* Convert timespec monotonic time to XrTime.
*
@@ -90,17 +90,17 @@ public static int nxrConvertTimespecTimeToTimeKHR(XrInstance instance, long unix
*
* @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}.
* @param time the resulting {@code XrTime} that is equivalent to the {@code timespecTime}.
- */
- @NativeType("XrResult")
- public static int xrConvertTimespecTimeToTimeKHR(XrInstance instance, @NativeType("struct timespec const *") long unixTime, @NativeType("XrTime *") LongBuffer time) {
- if (CHECKS) {
- check(time, 1);
- }
- return nxrConvertTimespecTimeToTimeKHR(instance, unixTime, memAddress(time));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrConvertTimespecTimeToTimeKHR(XrInstance instance, @NativeType("struct timespec const *") long unixTime, @NativeType("XrTime *") LongBuffer time) {
+ if (CHECKS) {
+ check(time, 1);
+ }
+ return nxrConvertTimespecTimeToTimeKHR(instance, unixTime, memAddress(time));
+ }
+
+ // --- [ xrConvertTimeToTimespecTimeKHR ] ---
- // --- [ xrConvertTimeToTimespecTimeKHR ] ---
-
/**
* Convert XrTime to timespec monotonic time.
*
@@ -149,15 +149,15 @@ public static int xrConvertTimespecTimeToTimeKHR(XrInstance instance, @NativeTyp
* @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}.
* @param time an {@code XrTime}.
* @param timespecTime the resulting timespec time that is equivalent to a {@code timespec} obtained from {@code clock_gettime} with {@code CLOCK_MONOTONIC}.
- */
- @NativeType("XrResult")
- public static int xrConvertTimeToTimespecTimeKHR(XrInstance instance, @NativeType("XrTime") long time, @NativeType("struct timespec *") long timespecTime) {
- long __functionAddress = instance.getCapabilities().xrConvertTimeToTimespecTimeKHR;
- if (CHECKS) {
- check(__functionAddress);
- check(timespecTime);
- }
- return callPJPI(instance.address(), time, timespecTime, __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrConvertTimeToTimespecTimeKHR(XrInstance instance, @NativeType("XrTime") long time, @NativeType("struct timespec *") long timespecTime) {
+ long __functionAddress = instance.getCapabilities().xrConvertTimeToTimespecTimeKHR;
+ if (CHECKS) {
+ check(__functionAddress);
+ check(timespecTime);
+ }
+ return callPJPI(instance.address(), time, timespecTime, __functionAddress);
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRLoaderInit.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRLoaderInit.java
index 670095c6c6..ee9cf49f2b 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRLoaderInit.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRLoaderInit.java
@@ -4,40 +4,40 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+
/**
* The XR_KHR_loader_init extension.
*
* On some platforms, before loading can occur the loader must be initialized with platform-specific parameters. Unlike other extensions, the presence of this extension is signaled by a successful call to {@link XR10#xrGetInstanceProcAddr GetInstanceProcAddr} to retrieve the function pointer for {@link #xrInitializeLoaderKHR InitializeLoaderKHR} using a null instance handle. If this extension is supported, its use may be required on some platforms and the use of the {@link #xrInitializeLoaderKHR InitializeLoaderKHR} function must precede other OpenXR calls except {@link XR10#xrGetInstanceProcAddr GetInstanceProcAddr}. This function exists as part of the loader library that the application is using.
- */
-public class KHRLoaderInit {
-
- /** The extension specification version. */
- public static final int XR_KHR_loader_init_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_KHR_LOADER_INIT_EXTENSION_NAME = "XR_KHR_loader_init";
+ */
+public class KHRLoaderInit {
+
+ /** The extension specification version. */
+ public static final int XR_KHR_loader_init_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_KHR_LOADER_INIT_EXTENSION_NAME = "XR_KHR_loader_init";
protected KHRLoaderInit() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrInitializeLoaderKHR ] ---
+
+ /** Unsafe version of: {@link #xrInitializeLoaderKHR InitializeLoaderKHR} */
+ public static int nxrInitializeLoaderKHR(long loaderInitInfo) {
+ long __functionAddress = XR.getGlobalCommands().xrInitializeLoaderKHR;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(loaderInitInfo, __functionAddress);
+ }
- // --- [ xrInitializeLoaderKHR ] ---
-
- /** Unsafe version of: {@link #xrInitializeLoaderKHR InitializeLoaderKHR} */
- public static int nxrInitializeLoaderKHR(long loaderInitInfo) {
- long __functionAddress = XR.getGlobalCommands().xrInitializeLoaderKHR;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(loaderInitInfo, __functionAddress);
- }
-
/**
* Initializes loader.
*
@@ -75,10 +75,10 @@ public static int nxrInitializeLoaderKHR(long loaderInitInfo) {
* {@link XrLoaderInitInfoBaseHeaderKHR}
*
* @param loaderInitInfo a pointer to an {@link XrLoaderInitInfoBaseHeaderKHR} structure, which is a polymorphic type defined by other platform- or implementation-specific extensions.
- */
- @NativeType("XrResult")
- public static int xrInitializeLoaderKHR(@NativeType("XrLoaderInitInfoBaseHeaderKHR const *") XrLoaderInitInfoBaseHeaderKHR loaderInitInfo) {
- return nxrInitializeLoaderKHR(loaderInitInfo.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrInitializeLoaderKHR(@NativeType("XrLoaderInitInfoBaseHeaderKHR const *") XrLoaderInitInfoBaseHeaderKHR loaderInitInfo) {
+ return nxrInitializeLoaderKHR(loaderInitInfo.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHROpenGLESEnable.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHROpenGLESEnable.java
index 6af8048d0f..ef1373ea45 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHROpenGLESEnable.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHROpenGLESEnable.java
@@ -4,12 +4,12 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+
/**
* The XR_KHR_opengl_es_enable extension.
*
@@ -26,15 +26,15 @@
*
- */
-public class KHROpenGLESEnable {
-
- /** The extension specification version. */
- public static final int XR_KHR_opengl_es_enable_SPEC_VERSION = 8;
-
- /** The extension name. */
- public static final String XR_KHR_OPENGL_ES_ENABLE_EXTENSION_NAME = "XR_KHR_opengl_es_enable";
-
+ */
+public class KHROpenGLESEnable {
+
+ /** The extension specification version. */
+ public static final int XR_KHR_opengl_es_enable_SPEC_VERSION = 8;
+
+ /** The extension name. */
+ public static final String XR_KHR_OPENGL_ES_ENABLE_EXTENSION_NAME = "XR_KHR_opengl_es_enable";
+
/**
* Extends {@code XrStructureType}.
*
@@ -45,27 +45,27 @@ public class KHROpenGLESEnable {
* {@link #XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR}
* {@link #XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR}
*
- */
+ */
public static final int
- XR_TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR = 1000024001,
- XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR = 1000024002,
- XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR = 1000024003;
+ XR_TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR = 1000024001,
+ XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR = 1000024002,
+ XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR = 1000024003;
protected KHROpenGLESEnable() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrGetOpenGLESGraphicsRequirementsKHR ] ---
+
+ /** Unsafe version of: {@link #xrGetOpenGLESGraphicsRequirementsKHR GetOpenGLESGraphicsRequirementsKHR} */
+ public static int nxrGetOpenGLESGraphicsRequirementsKHR(XrInstance instance, long systemId, long graphicsRequirements) {
+ long __functionAddress = instance.getCapabilities().xrGetOpenGLESGraphicsRequirementsKHR;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJPI(instance.address(), systemId, graphicsRequirements, __functionAddress);
+ }
- // --- [ xrGetOpenGLESGraphicsRequirementsKHR ] ---
-
- /** Unsafe version of: {@link #xrGetOpenGLESGraphicsRequirementsKHR GetOpenGLESGraphicsRequirementsKHR} */
- public static int nxrGetOpenGLESGraphicsRequirementsKHR(XrInstance instance, long systemId, long graphicsRequirements) {
- long __functionAddress = instance.getCapabilities().xrGetOpenGLESGraphicsRequirementsKHR;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJPI(instance.address(), systemId, graphicsRequirements, __functionAddress);
- }
-
/**
* Retrieve the OpenGL ES version requirements for an instance and system.
*
@@ -116,10 +116,10 @@ public static int nxrGetOpenGLESGraphicsRequirementsKHR(XrInstance instance, lon
* @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}.
* @param systemId an {@code XrSystemId} handle for the system which will be used to create a session.
* @param graphicsRequirements the {@link XrGraphicsRequirementsOpenGLESKHR} output structure.
- */
- @NativeType("XrResult")
- public static int xrGetOpenGLESGraphicsRequirementsKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrGraphicsRequirementsOpenGLESKHR *") XrGraphicsRequirementsOpenGLESKHR graphicsRequirements) {
- return nxrGetOpenGLESGraphicsRequirementsKHR(instance, systemId, graphicsRequirements.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetOpenGLESGraphicsRequirementsKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrGraphicsRequirementsOpenGLESKHR *") XrGraphicsRequirementsOpenGLESKHR graphicsRequirements) {
+ return nxrGetOpenGLESGraphicsRequirementsKHR(instance, systemId, graphicsRequirements.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHROpenGLEnable.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHROpenGLEnable.java
index 125dd2d246..74b022585c 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHROpenGLEnable.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHROpenGLEnable.java
@@ -4,12 +4,12 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+
/**
* The XR_KHR_opengl_enable extension.
*
@@ -31,15 +31,15 @@
* Note that a runtime implementation of this extension is only required to support the structs introduced by this extension which belong to the platform it is running on.
*
* Note that the OpenGL context given to the call {@link XR10#xrCreateSession CreateSession} must not be bound in another thread when calling the functions: {@link XR10#xrCreateSession CreateSession}, {@link XR10#xrDestroySession DestroySession}, {@link XR10#xrBeginFrame BeginFrame}, {@link XR10#xrEndFrame EndFrame}, {@link XR10#xrCreateSwapchain CreateSwapchain}, {@link XR10#xrDestroySwapchain DestroySwapchain}, {@link XR10#xrEnumerateSwapchainImages EnumerateSwapchainImages}, {@link XR10#xrAcquireSwapchainImage AcquireSwapchainImage}, {@link XR10#xrWaitSwapchainImage WaitSwapchainImage} and {@link XR10#xrReleaseSwapchainImage ReleaseSwapchainImage}. It may be bound in the thread calling those functions. The runtime must not access the context from any other function. In particular the application must be able to call {@link XR10#xrWaitFrame WaitFrame} from a different thread than the rendering thread.
- */
-public class KHROpenGLEnable {
-
- /** The extension specification version. */
- public static final int XR_KHR_opengl_enable_SPEC_VERSION = 10;
-
- /** The extension name. */
- public static final String XR_KHR_OPENGL_ENABLE_EXTENSION_NAME = "XR_KHR_opengl_enable";
-
+ */
+public class KHROpenGLEnable {
+
+ /** The extension specification version. */
+ public static final int XR_KHR_opengl_enable_SPEC_VERSION = 10;
+
+ /** The extension name. */
+ public static final String XR_KHR_OPENGL_ENABLE_EXTENSION_NAME = "XR_KHR_opengl_enable";
+
/**
* Extends {@code XrStructureType}.
*
@@ -53,30 +53,30 @@ public class KHROpenGLEnable {
* {@link #XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR}
* {@link #XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR}
*
- */
+ */
public static final int
- XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR = 1000023000,
- XR_TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR = 1000023001,
- XR_TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR = 1000023002,
- XR_TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR = 1000023003,
- XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR = 1000023004,
- XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR = 1000023005;
+ XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR = 1000023000,
+ XR_TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR = 1000023001,
+ XR_TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR = 1000023002,
+ XR_TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR = 1000023003,
+ XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR = 1000023004,
+ XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR = 1000023005;
protected KHROpenGLEnable() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrGetOpenGLGraphicsRequirementsKHR ] ---
+
+ /** Unsafe version of: {@link #xrGetOpenGLGraphicsRequirementsKHR GetOpenGLGraphicsRequirementsKHR} */
+ public static int nxrGetOpenGLGraphicsRequirementsKHR(XrInstance instance, long systemId, long graphicsRequirements) {
+ long __functionAddress = instance.getCapabilities().xrGetOpenGLGraphicsRequirementsKHR;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJPI(instance.address(), systemId, graphicsRequirements, __functionAddress);
+ }
- // --- [ xrGetOpenGLGraphicsRequirementsKHR ] ---
-
- /** Unsafe version of: {@link #xrGetOpenGLGraphicsRequirementsKHR GetOpenGLGraphicsRequirementsKHR} */
- public static int nxrGetOpenGLGraphicsRequirementsKHR(XrInstance instance, long systemId, long graphicsRequirements) {
- long __functionAddress = instance.getCapabilities().xrGetOpenGLGraphicsRequirementsKHR;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJPI(instance.address(), systemId, graphicsRequirements, __functionAddress);
- }
-
/**
* Retrieve the OpenGL version requirements for an instance and system.
*
@@ -127,10 +127,10 @@ public static int nxrGetOpenGLGraphicsRequirementsKHR(XrInstance instance, long
* @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}.
* @param systemId an {@code XrSystemId} handle for the system which will be used to create a session.
* @param graphicsRequirements the {@link XrGraphicsRequirementsOpenGLKHR} output structure.
- */
- @NativeType("XrResult")
- public static int xrGetOpenGLGraphicsRequirementsKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrGraphicsRequirementsOpenGLKHR *") XrGraphicsRequirementsOpenGLKHR graphicsRequirements) {
- return nxrGetOpenGLGraphicsRequirementsKHR(instance, systemId, graphicsRequirements.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetOpenGLGraphicsRequirementsKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrGraphicsRequirementsOpenGLKHR *") XrGraphicsRequirementsOpenGLKHR graphicsRequirements) {
+ return nxrGetOpenGLGraphicsRequirementsKHR(instance, systemId, graphicsRequirements.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRSwapchainUsageInputAttachmentBit.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRSwapchainUsageInputAttachmentBit.java
index f1ccaa1226..3bc58b2618 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRSwapchainUsageInputAttachmentBit.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRSwapchainUsageInputAttachmentBit.java
@@ -4,23 +4,23 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_KHR_swapchain_usage_input_attachment_bit extension.
*
* This extension enables an application to specify that swapchain images should be created in a way so that they can be used as input attachments. At the time of writing this bit only affects Vulkan swapchains.
- */
-public final class KHRSwapchainUsageInputAttachmentBit {
-
- /** The extension specification version. */
- public static final int XR_KHR_swapchain_usage_input_attachment_bit_SPEC_VERSION = 3;
-
- /** The extension name. */
- public static final String XR_KHR_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_EXTENSION_NAME = "XR_KHR_swapchain_usage_input_attachment_bit";
-
- /** Extends {@code XrSwapchainUsageFlagBits}. */
- public static final int XR_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_KHR = 0x80;
+ */
+public final class KHRSwapchainUsageInputAttachmentBit {
+
+ /** The extension specification version. */
+ public static final int XR_KHR_swapchain_usage_input_attachment_bit_SPEC_VERSION = 3;
+
+ /** The extension name. */
+ public static final String XR_KHR_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_EXTENSION_NAME = "XR_KHR_swapchain_usage_input_attachment_bit";
+
+ /** Extends {@code XrSwapchainUsageFlagBits}. */
+ public static final int XR_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_KHR = 0x80;
- private KHRSwapchainUsageInputAttachmentBit() {}
+ private KHRSwapchainUsageInputAttachmentBit() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVisibilityMask.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVisibilityMask.java
index a0af1f990f..cf0c736424 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVisibilityMask.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVisibilityMask.java
@@ -4,25 +4,25 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+
/**
* The XR_KHR_visibility_mask extension.
*
* This extension support the providing of a per-view drawing mask for applications. The primary purpose of this is to enable performance improvements that result from avoiding drawing on areas that aren’t visible to the user. A common occurrence in head-mounted VR hardware is that the optical system’s frustum doesn’t intersect precisely with the rectangular display it is viewing. As a result, it may be that there are parts of the display that aren’t visible to the user, such as the corners of the display. In such cases it would be unnecessary for the application to draw into those parts.
- */
-public class KHRVisibilityMask {
-
- /** The extension specification version. */
- public static final int XR_KHR_visibility_mask_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_KHR_VISIBILITY_MASK_EXTENSION_NAME = "XR_KHR_visibility_mask";
-
+ */
+public class KHRVisibilityMask {
+
+ /** The extension specification version. */
+ public static final int XR_KHR_visibility_mask_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_KHR_VISIBILITY_MASK_EXTENSION_NAME = "XR_KHR_visibility_mask";
+
/**
* Extends {@code XrStructureType}.
*
@@ -32,11 +32,11 @@ public class KHRVisibilityMask {
* {@link #XR_TYPE_VISIBILITY_MASK_KHR TYPE_VISIBILITY_MASK_KHR}
* {@link #XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR}
*
- */
+ */
public static final int
- XR_TYPE_VISIBILITY_MASK_KHR = 1000031000,
- XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR = 1000031001;
-
+ XR_TYPE_VISIBILITY_MASK_KHR = 1000031000,
+ XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR = 1000031001;
+
/**
* XrVisibilityMaskTypeKHR - Visibility Mask Type
*
@@ -51,27 +51,27 @@ public class KHRVisibilityMask {
* See Also
*
* {@link #xrGetVisibilityMaskKHR GetVisibilityMaskKHR}
- */
+ */
public static final int
- XR_VISIBILITY_MASK_TYPE_HIDDEN_TRIANGLE_MESH_KHR = 1,
- XR_VISIBILITY_MASK_TYPE_VISIBLE_TRIANGLE_MESH_KHR = 2,
- XR_VISIBILITY_MASK_TYPE_LINE_LOOP_KHR = 3;
+ XR_VISIBILITY_MASK_TYPE_HIDDEN_TRIANGLE_MESH_KHR = 1,
+ XR_VISIBILITY_MASK_TYPE_VISIBLE_TRIANGLE_MESH_KHR = 2,
+ XR_VISIBILITY_MASK_TYPE_LINE_LOOP_KHR = 3;
protected KHRVisibilityMask() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrGetVisibilityMaskKHR ] ---
+
+ /** Unsafe version of: {@link #xrGetVisibilityMaskKHR GetVisibilityMaskKHR} */
+ public static int nxrGetVisibilityMaskKHR(XrSession session, int viewConfigurationType, int viewIndex, int visibilityMaskType, long visibilityMask) {
+ long __functionAddress = session.getCapabilities().xrGetVisibilityMaskKHR;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(session.address(), viewConfigurationType, viewIndex, visibilityMaskType, visibilityMask, __functionAddress);
+ }
- // --- [ xrGetVisibilityMaskKHR ] ---
-
- /** Unsafe version of: {@link #xrGetVisibilityMaskKHR GetVisibilityMaskKHR} */
- public static int nxrGetVisibilityMaskKHR(XrSession session, int viewConfigurationType, int viewIndex, int visibilityMaskType, long visibilityMask) {
- long __functionAddress = session.getCapabilities().xrGetVisibilityMaskKHR;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(session.address(), viewConfigurationType, viewIndex, visibilityMaskType, visibilityMask, __functionAddress);
- }
-
/**
* Gets visibility mask.
*
@@ -131,10 +131,10 @@ public static int nxrGetVisibilityMaskKHR(XrSession session, int viewConfigurati
* @param viewIndex the individual view within the view configuration from which to retrieve mask information.
* @param visibilityMaskType the type of visibility mask requested.
* @param visibilityMask an input/output struct which specifies the view mask.
- */
- @NativeType("XrResult")
- public static int xrGetVisibilityMaskKHR(XrSession session, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("uint32_t") int viewIndex, @NativeType("XrVisibilityMaskTypeKHR") int visibilityMaskType, @NativeType("XrVisibilityMaskKHR *") XrVisibilityMaskKHR visibilityMask) {
- return nxrGetVisibilityMaskKHR(session, viewConfigurationType, viewIndex, visibilityMaskType, visibilityMask.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetVisibilityMaskKHR(XrSession session, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("uint32_t") int viewIndex, @NativeType("XrVisibilityMaskTypeKHR") int visibilityMaskType, @NativeType("XrVisibilityMaskKHR *") XrVisibilityMaskKHR visibilityMask) {
+ return nxrGetVisibilityMaskKHR(session, viewConfigurationType, viewIndex, visibilityMaskType, visibilityMask.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanEnable.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanEnable.java
index 6fa30d1930..8f6a419586 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanEnable.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanEnable.java
@@ -4,21 +4,21 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
-import org.lwjgl.vulkan.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
+import org.lwjgl.vulkan.*;
+
/**
* The XR_KHR_vulkan_enable extension.
*
@@ -29,15 +29,15 @@
* This extension also provides mechanisms for the application to interact with images acquired by calling {@link XR10#xrEnumerateSwapchainImages EnumerateSwapchainImages}.
*
* In order to expose the structures, types, and functions of this extension, you must define {@link XR10#XR_USE_GRAPHICS_API_VULKAN USE_GRAPHICS_API_VULKAN} before including the OpenXR platform header {@code openxr_platform.h}, in all portions of your library or application that include it.
- */
-public class KHRVulkanEnable {
-
- /** The extension specification version. */
- public static final int XR_KHR_vulkan_enable_SPEC_VERSION = 8;
-
- /** The extension name. */
- public static final String XR_KHR_VULKAN_ENABLE_EXTENSION_NAME = "XR_KHR_vulkan_enable";
-
+ */
+public class KHRVulkanEnable {
+
+ /** The extension specification version. */
+ public static final int XR_KHR_vulkan_enable_SPEC_VERSION = 8;
+
+ /** The extension name. */
+ public static final String XR_KHR_VULKAN_ENABLE_EXTENSION_NAME = "XR_KHR_vulkan_enable";
+
/**
* Extends {@code XrStructureType}.
*
@@ -48,31 +48,31 @@ public class KHRVulkanEnable {
* {@link #XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR}
* {@link #XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR}
*
- */
+ */
public static final int
- XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR = 1000025000,
- XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR = 1000025001,
- XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR = 1000025002;
+ XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR = 1000025000,
+ XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR = 1000025001,
+ XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR = 1000025002;
protected KHRVulkanEnable() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrGetVulkanInstanceExtensionsKHR ] ---
- // --- [ xrGetVulkanInstanceExtensionsKHR ] ---
-
/**
* Unsafe version of: {@link #xrGetVulkanInstanceExtensionsKHR GetVulkanInstanceExtensionsKHR}
*
* @param bufferCapacityInput the capacity of the {@code buffer}, or 0 to indicate a request to retrieve the required capacity.
- */
- public static int nxrGetVulkanInstanceExtensionsKHR(XrInstance instance, long systemId, int bufferCapacityInput, long bufferCountOutput, long buffer) {
- long __functionAddress = instance.getCapabilities().xrGetVulkanInstanceExtensionsKHR;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJPPI(instance.address(), systemId, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress);
- }
-
+ */
+ public static int nxrGetVulkanInstanceExtensionsKHR(XrInstance instance, long systemId, int bufferCapacityInput, long bufferCountOutput, long buffer) {
+ long __functionAddress = instance.getCapabilities().xrGetVulkanInstanceExtensionsKHR;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJPPI(instance.address(), systemId, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress);
+ }
+
/**
* Get list of required Vulkan instance extensions for an OpenXR instance and system.
*
@@ -122,30 +122,30 @@ public static int nxrGetVulkanInstanceExtensionsKHR(XrInstance instance, long sy
* @param systemId an {@code XrSystemId} handle for the system which will be used to create a session.
* @param bufferCountOutput a pointer to the count of characters written (including terminating {@code \0}), or a pointer to the required capacity in the case that {@code bufferCapacityInput} is insufficient.
* @param buffer a pointer to an array of characters, but can be {@code NULL} if {@code bufferCapacityInput} is 0. The format of the output is a single space (ASCII {@code 0x20}) delimited string of extension names.
- */
- @NativeType("XrResult")
- public static int xrGetVulkanInstanceExtensionsKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("char *") ByteBuffer buffer) {
- if (CHECKS) {
- check(bufferCountOutput, 1);
- }
- return nxrGetVulkanInstanceExtensionsKHR(instance, systemId, remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetVulkanInstanceExtensionsKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("char *") ByteBuffer buffer) {
+ if (CHECKS) {
+ check(bufferCountOutput, 1);
+ }
+ return nxrGetVulkanInstanceExtensionsKHR(instance, systemId, remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer));
+ }
+
+ // --- [ xrGetVulkanDeviceExtensionsKHR ] ---
- // --- [ xrGetVulkanDeviceExtensionsKHR ] ---
-
/**
* Unsafe version of: {@link #xrGetVulkanDeviceExtensionsKHR GetVulkanDeviceExtensionsKHR}
*
* @param bufferCapacityInput the capacity of the {@code buffer}, or 0 to indicate a request to retrieve the required capacity.
- */
- public static int nxrGetVulkanDeviceExtensionsKHR(XrInstance instance, long systemId, int bufferCapacityInput, long bufferCountOutput, long buffer) {
- long __functionAddress = instance.getCapabilities().xrGetVulkanDeviceExtensionsKHR;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJPPI(instance.address(), systemId, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress);
- }
-
+ */
+ public static int nxrGetVulkanDeviceExtensionsKHR(XrInstance instance, long systemId, int bufferCapacityInput, long bufferCountOutput, long buffer) {
+ long __functionAddress = instance.getCapabilities().xrGetVulkanDeviceExtensionsKHR;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJPPI(instance.address(), systemId, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress);
+ }
+
/**
* Get list of required Vulkan device extensions for an OpenXR instance and system.
*
@@ -195,26 +195,26 @@ public static int nxrGetVulkanDeviceExtensionsKHR(XrInstance instance, long syst
* @param systemId an {@code XrSystemId} handle for the system which will be used to create a session.
* @param bufferCountOutput a pointer to the count of characters written (including terminating {@code \0}), or a pointer to the required capacity in the case that {@code bufferCapacityInput} is insufficient.
* @param buffer a pointer to an array of characters, but can be {@code NULL} if {@code bufferCapacityInput} is 0. The format of the output is a single space (ASCII {@code 0x20}) delimited string of extension names.
- */
- @NativeType("XrResult")
- public static int xrGetVulkanDeviceExtensionsKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("char *") ByteBuffer buffer) {
- if (CHECKS) {
- check(bufferCountOutput, 1);
- }
- return nxrGetVulkanDeviceExtensionsKHR(instance, systemId, remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetVulkanDeviceExtensionsKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("char *") ByteBuffer buffer) {
+ if (CHECKS) {
+ check(bufferCountOutput, 1);
+ }
+ return nxrGetVulkanDeviceExtensionsKHR(instance, systemId, remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer));
+ }
+
+ // --- [ xrGetVulkanGraphicsDeviceKHR ] ---
+
+ /** Unsafe version of: {@link #xrGetVulkanGraphicsDeviceKHR GetVulkanGraphicsDeviceKHR} */
+ public static int nxrGetVulkanGraphicsDeviceKHR(XrInstance instance, long systemId, VkInstance vkInstance, long vkPhysicalDevice) {
+ long __functionAddress = instance.getCapabilities().xrGetVulkanGraphicsDeviceKHR;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJPPI(instance.address(), systemId, vkInstance.address(), vkPhysicalDevice, __functionAddress);
+ }
- // --- [ xrGetVulkanGraphicsDeviceKHR ] ---
-
- /** Unsafe version of: {@link #xrGetVulkanGraphicsDeviceKHR GetVulkanGraphicsDeviceKHR} */
- public static int nxrGetVulkanGraphicsDeviceKHR(XrInstance instance, long systemId, VkInstance vkInstance, long vkPhysicalDevice) {
- long __functionAddress = instance.getCapabilities().xrGetVulkanGraphicsDeviceKHR;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJPPI(instance.address(), systemId, vkInstance.address(), vkPhysicalDevice, __functionAddress);
- }
-
/**
* Retrieve the Vulkan physical device associated with an OpenXR instance and system.
*
@@ -264,26 +264,26 @@ public static int nxrGetVulkanGraphicsDeviceKHR(XrInstance instance, long system
* @param systemId an {@code XrSystemId} handle for the system which will be used to create a session.
* @param vkInstance a valid Vulkan {@code VkInstance}.
* @param vkPhysicalDevice a pointer to a {@code VkPhysicalDevice} value to populate.
- */
- @NativeType("XrResult")
- public static int xrGetVulkanGraphicsDeviceKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, VkInstance vkInstance, @NativeType("VkPhysicalDevice *") PointerBuffer vkPhysicalDevice) {
- if (CHECKS) {
- check(vkPhysicalDevice, 1);
- }
- return nxrGetVulkanGraphicsDeviceKHR(instance, systemId, vkInstance, memAddress(vkPhysicalDevice));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetVulkanGraphicsDeviceKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, VkInstance vkInstance, @NativeType("VkPhysicalDevice *") PointerBuffer vkPhysicalDevice) {
+ if (CHECKS) {
+ check(vkPhysicalDevice, 1);
+ }
+ return nxrGetVulkanGraphicsDeviceKHR(instance, systemId, vkInstance, memAddress(vkPhysicalDevice));
+ }
+
+ // --- [ xrGetVulkanGraphicsRequirementsKHR ] ---
+
+ /** Unsafe version of: {@link #xrGetVulkanGraphicsRequirementsKHR GetVulkanGraphicsRequirementsKHR} */
+ public static int nxrGetVulkanGraphicsRequirementsKHR(XrInstance instance, long systemId, long graphicsRequirements) {
+ long __functionAddress = instance.getCapabilities().xrGetVulkanGraphicsRequirementsKHR;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJPI(instance.address(), systemId, graphicsRequirements, __functionAddress);
+ }
- // --- [ xrGetVulkanGraphicsRequirementsKHR ] ---
-
- /** Unsafe version of: {@link #xrGetVulkanGraphicsRequirementsKHR GetVulkanGraphicsRequirementsKHR} */
- public static int nxrGetVulkanGraphicsRequirementsKHR(XrInstance instance, long systemId, long graphicsRequirements) {
- long __functionAddress = instance.getCapabilities().xrGetVulkanGraphicsRequirementsKHR;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJPI(instance.address(), systemId, graphicsRequirements, __functionAddress);
- }
-
/**
* Retrieve the Vulkan version requirements for an instance and system.
*
@@ -334,10 +334,10 @@ public static int nxrGetVulkanGraphicsRequirementsKHR(XrInstance instance, long
* @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}.
* @param systemId an {@code XrSystemId} handle for the system which will be used to create a session.
* @param graphicsRequirements the {@link XrGraphicsRequirementsVulkanKHR} output structure.
- */
- @NativeType("XrResult")
- public static int xrGetVulkanGraphicsRequirementsKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrGraphicsRequirementsVulkanKHR *") XrGraphicsRequirementsVulkanKHR graphicsRequirements) {
- return nxrGetVulkanGraphicsRequirementsKHR(instance, systemId, graphicsRequirements.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetVulkanGraphicsRequirementsKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrGraphicsRequirementsVulkanKHR *") XrGraphicsRequirementsVulkanKHR graphicsRequirements) {
+ return nxrGetVulkanGraphicsRequirementsKHR(instance, systemId, graphicsRequirements.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanEnable2.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanEnable2.java
index 686d8d8c53..c327dc33ff 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanEnable2.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanEnable2.java
@@ -4,19 +4,19 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import java.nio.*;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
-import org.lwjgl.vulkan.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
+import org.lwjgl.vulkan.*;
+
/**
* The XR_KHR_vulkan_enable2 extension.
*
@@ -32,15 +32,15 @@
*
* This extension is intended as an alternative to {@link KHRVulkanEnable XR_KHR_vulkan_enable}, and does not depend on it.
*
- */
-public class KHRVulkanEnable2 {
-
- /** The extension specification version. */
- public static final int XR_KHR_vulkan_enable2_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_KHR_VULKAN_ENABLE2_EXTENSION_NAME = "XR_KHR_vulkan_enable2";
-
+ */
+public class KHRVulkanEnable2 {
+
+ /** The extension specification version. */
+ public static final int XR_KHR_vulkan_enable2_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_KHR_VULKAN_ENABLE2_EXTENSION_NAME = "XR_KHR_vulkan_enable2";
+
/**
* Extends {@code XrStructureType}.
*
@@ -54,31 +54,31 @@ public class KHRVulkanEnable2 {
* {@link #XR_TYPE_SWAPCHAIN_IMAGE_VULKAN2_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN2_KHR}
* {@link #XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN2_KHR TYPE_GRAPHICS_REQUIREMENTS_VULKAN2_KHR}
*
- */
+ */
public static final int
- XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR = 1000090000,
- XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR = 1000090001,
- XR_TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR = 1000090003,
- XR_TYPE_GRAPHICS_BINDING_VULKAN2_KHR = 1000090000,
- XR_TYPE_SWAPCHAIN_IMAGE_VULKAN2_KHR = 1000090001,
- XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN2_KHR = 1000090002;
+ XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR = 1000090000,
+ XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR = 1000090001,
+ XR_TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR = 1000090003,
+ XR_TYPE_GRAPHICS_BINDING_VULKAN2_KHR = 1000090000,
+ XR_TYPE_SWAPCHAIN_IMAGE_VULKAN2_KHR = 1000090001,
+ XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN2_KHR = 1000090002;
protected KHRVulkanEnable2() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrCreateVulkanInstanceKHR ] ---
+
+ /** Unsafe version of: {@link #xrCreateVulkanInstanceKHR CreateVulkanInstanceKHR} */
+ public static int nxrCreateVulkanInstanceKHR(XrInstance instance, long createInfo, long vulkanInstance, long vulkanResult) {
+ long __functionAddress = instance.getCapabilities().xrCreateVulkanInstanceKHR;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrVulkanInstanceCreateInfoKHR.validate(createInfo);
+ }
+ return callPPPPI(instance.address(), createInfo, vulkanInstance, vulkanResult, __functionAddress);
+ }
- // --- [ xrCreateVulkanInstanceKHR ] ---
-
- /** Unsafe version of: {@link #xrCreateVulkanInstanceKHR CreateVulkanInstanceKHR} */
- public static int nxrCreateVulkanInstanceKHR(XrInstance instance, long createInfo, long vulkanInstance, long vulkanResult) {
- long __functionAddress = instance.getCapabilities().xrCreateVulkanInstanceKHR;
- if (CHECKS) {
- check(__functionAddress);
- XrVulkanInstanceCreateInfoKHR.validate(createInfo);
- }
- return callPPPPI(instance.address(), createInfo, vulkanInstance, vulkanResult, __functionAddress);
- }
-
/**
* Create an OpenXR compatible VkInstance.
*
@@ -129,28 +129,28 @@ public static int nxrCreateVulkanInstanceKHR(XrInstance instance, long createInf
* @param createInfo extensible input struct of type {@link XrVulkanInstanceCreateInfoKHR}
* @param vulkanInstance points to a {@code VkInstance} handle to populate with the new Vulkan instance.
* @param vulkanResult points to a {@code VkResult} to populate with the result of the {@code vkCreateInstance} operation as returned by {@code pfnGetInstanceProcAddr}.
- */
- @NativeType("XrResult")
- public static int xrCreateVulkanInstanceKHR(XrInstance instance, @NativeType("XrVulkanInstanceCreateInfoKHR const *") XrVulkanInstanceCreateInfoKHR createInfo, @NativeType("VkInstance *") PointerBuffer vulkanInstance, @NativeType("VkResult *") IntBuffer vulkanResult) {
- if (CHECKS) {
- check(vulkanInstance, 1);
- check(vulkanResult, 1);
- }
- return nxrCreateVulkanInstanceKHR(instance, createInfo.address(), memAddress(vulkanInstance), memAddress(vulkanResult));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrCreateVulkanInstanceKHR(XrInstance instance, @NativeType("XrVulkanInstanceCreateInfoKHR const *") XrVulkanInstanceCreateInfoKHR createInfo, @NativeType("VkInstance *") PointerBuffer vulkanInstance, @NativeType("VkResult *") IntBuffer vulkanResult) {
+ if (CHECKS) {
+ check(vulkanInstance, 1);
+ check(vulkanResult, 1);
+ }
+ return nxrCreateVulkanInstanceKHR(instance, createInfo.address(), memAddress(vulkanInstance), memAddress(vulkanResult));
+ }
+
+ // --- [ xrCreateVulkanDeviceKHR ] ---
+
+ /** Unsafe version of: {@link #xrCreateVulkanDeviceKHR CreateVulkanDeviceKHR} */
+ public static int nxrCreateVulkanDeviceKHR(XrInstance instance, long createInfo, long vulkanDevice, long vulkanResult) {
+ long __functionAddress = instance.getCapabilities().xrCreateVulkanDeviceKHR;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrVulkanDeviceCreateInfoKHR.validate(createInfo);
+ }
+ return callPPPPI(instance.address(), createInfo, vulkanDevice, vulkanResult, __functionAddress);
+ }
- // --- [ xrCreateVulkanDeviceKHR ] ---
-
- /** Unsafe version of: {@link #xrCreateVulkanDeviceKHR CreateVulkanDeviceKHR} */
- public static int nxrCreateVulkanDeviceKHR(XrInstance instance, long createInfo, long vulkanDevice, long vulkanResult) {
- long __functionAddress = instance.getCapabilities().xrCreateVulkanDeviceKHR;
- if (CHECKS) {
- check(__functionAddress);
- XrVulkanDeviceCreateInfoKHR.validate(createInfo);
- }
- return callPPPPI(instance.address(), createInfo, vulkanDevice, vulkanResult, __functionAddress);
- }
-
/**
* Create an OpenXR compatible VkDevice.
*
@@ -201,28 +201,28 @@ public static int nxrCreateVulkanDeviceKHR(XrInstance instance, long createInfo,
* @param createInfo extensible input struct of type {@code XrCreateVulkanDeviceCreateInfoKHR}
* @param vulkanDevice points to a {@code VkDevice} handle to populate with the new Vulkan device.
* @param vulkanResult points to a {@code VkResult} to populate with the result of the {@code vkCreateDevice} operation as returned by {@code pfnGetInstanceProcAddr}.
- */
- @NativeType("XrResult")
- public static int xrCreateVulkanDeviceKHR(XrInstance instance, @NativeType("XrVulkanDeviceCreateInfoKHR const *") XrVulkanDeviceCreateInfoKHR createInfo, @NativeType("VkDevice *") PointerBuffer vulkanDevice, @NativeType("VkResult *") IntBuffer vulkanResult) {
- if (CHECKS) {
- check(vulkanDevice, 1);
- check(vulkanResult, 1);
- }
- return nxrCreateVulkanDeviceKHR(instance, createInfo.address(), memAddress(vulkanDevice), memAddress(vulkanResult));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrCreateVulkanDeviceKHR(XrInstance instance, @NativeType("XrVulkanDeviceCreateInfoKHR const *") XrVulkanDeviceCreateInfoKHR createInfo, @NativeType("VkDevice *") PointerBuffer vulkanDevice, @NativeType("VkResult *") IntBuffer vulkanResult) {
+ if (CHECKS) {
+ check(vulkanDevice, 1);
+ check(vulkanResult, 1);
+ }
+ return nxrCreateVulkanDeviceKHR(instance, createInfo.address(), memAddress(vulkanDevice), memAddress(vulkanResult));
+ }
+
+ // --- [ xrGetVulkanGraphicsDevice2KHR ] ---
+
+ /** Unsafe version of: {@link #xrGetVulkanGraphicsDevice2KHR GetVulkanGraphicsDevice2KHR} */
+ public static int nxrGetVulkanGraphicsDevice2KHR(XrInstance instance, long getInfo, long vulkanPhysicalDevice) {
+ long __functionAddress = instance.getCapabilities().xrGetVulkanGraphicsDevice2KHR;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrVulkanGraphicsDeviceGetInfoKHR.validate(getInfo);
+ }
+ return callPPPI(instance.address(), getInfo, vulkanPhysicalDevice, __functionAddress);
+ }
- // --- [ xrGetVulkanGraphicsDevice2KHR ] ---
-
- /** Unsafe version of: {@link #xrGetVulkanGraphicsDevice2KHR GetVulkanGraphicsDevice2KHR} */
- public static int nxrGetVulkanGraphicsDevice2KHR(XrInstance instance, long getInfo, long vulkanPhysicalDevice) {
- long __functionAddress = instance.getCapabilities().xrGetVulkanGraphicsDevice2KHR;
- if (CHECKS) {
- check(__functionAddress);
- XrVulkanGraphicsDeviceGetInfoKHR.validate(getInfo);
- }
- return callPPPI(instance.address(), getInfo, vulkanPhysicalDevice, __functionAddress);
- }
-
/**
* Retrieve the Vulkan physical device associated with an OpenXR instance and system.
*
@@ -268,36 +268,36 @@ public static int nxrGetVulkanGraphicsDevice2KHR(XrInstance instance, long getIn
* @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}.
* @param getInfo extensible input struct of type {@link XrVulkanGraphicsDeviceGetInfoKHR}
* @param vulkanPhysicalDevice a pointer to a {@code VkPhysicalDevice} handle to populate.
- */
- @NativeType("XrResult")
- public static int xrGetVulkanGraphicsDevice2KHR(XrInstance instance, @NativeType("XrVulkanGraphicsDeviceGetInfoKHR const *") XrVulkanGraphicsDeviceGetInfoKHR getInfo, @NativeType("VkPhysicalDevice *") PointerBuffer vulkanPhysicalDevice) {
- if (CHECKS) {
- check(vulkanPhysicalDevice, 1);
- }
- return nxrGetVulkanGraphicsDevice2KHR(instance, getInfo.address(), memAddress(vulkanPhysicalDevice));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetVulkanGraphicsDevice2KHR(XrInstance instance, @NativeType("XrVulkanGraphicsDeviceGetInfoKHR const *") XrVulkanGraphicsDeviceGetInfoKHR getInfo, @NativeType("VkPhysicalDevice *") PointerBuffer vulkanPhysicalDevice) {
+ if (CHECKS) {
+ check(vulkanPhysicalDevice, 1);
+ }
+ return nxrGetVulkanGraphicsDevice2KHR(instance, getInfo.address(), memAddress(vulkanPhysicalDevice));
+ }
+
+ // --- [ xrGetVulkanGraphicsRequirements2KHR ] ---
+
+ /** Unsafe version of: {@link #xrGetVulkanGraphicsRequirements2KHR GetVulkanGraphicsRequirements2KHR} */
+ public static int nxrGetVulkanGraphicsRequirements2KHR(XrInstance instance, long systemId, long graphicsRequirements) {
+ long __functionAddress = instance.getCapabilities().xrGetVulkanGraphicsRequirements2KHR;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJPI(instance.address(), systemId, graphicsRequirements, __functionAddress);
+ }
- // --- [ xrGetVulkanGraphicsRequirements2KHR ] ---
-
- /** Unsafe version of: {@link #xrGetVulkanGraphicsRequirements2KHR GetVulkanGraphicsRequirements2KHR} */
- public static int nxrGetVulkanGraphicsRequirements2KHR(XrInstance instance, long systemId, long graphicsRequirements) {
- long __functionAddress = instance.getCapabilities().xrGetVulkanGraphicsRequirements2KHR;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJPI(instance.address(), systemId, graphicsRequirements, __functionAddress);
- }
-
/**
* See {@link KHRVulkanEnable#xrGetVulkanGraphicsRequirementsKHR GetVulkanGraphicsRequirementsKHR}.
*
* @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}.
* @param systemId an {@code XrSystemId} handle for the system which will be used to create a session.
* @param graphicsRequirements the {@link XrGraphicsRequirementsVulkanKHR} output structure.
- */
- @NativeType("XrResult")
- public static int xrGetVulkanGraphicsRequirements2KHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrGraphicsRequirementsVulkanKHR *") XrGraphicsRequirementsVulkanKHR graphicsRequirements) {
- return nxrGetVulkanGraphicsRequirements2KHR(instance, systemId, graphicsRequirements.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetVulkanGraphicsRequirements2KHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrGraphicsRequirementsVulkanKHR *") XrGraphicsRequirementsVulkanKHR graphicsRequirements) {
+ return nxrGetVulkanGraphicsRequirements2KHR(instance, systemId, graphicsRequirements.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanSwapchainFormatList.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanSwapchainFormatList.java
index d7d2241dff..ed952e9f78 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanSwapchainFormatList.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanSwapchainFormatList.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_KHR_vulkan_swapchain_format_list extension.
*
@@ -13,18 +13,18 @@
* Applications using this extension to specify more than one swapchain format must create OpenXR swapchains with the {@link XR10#XR_SWAPCHAIN_USAGE_MUTABLE_FORMAT_BIT SWAPCHAIN_USAGE_MUTABLE_FORMAT_BIT} bit set.
*
* Runtimes implementing this extension must support the {@link KHRVulkanEnable XR_KHR_vulkan_enable} or the {@link KHRVulkanEnable2 XR_KHR_vulkan_enable2} extension. When {@link KHRVulkanEnable XR_KHR_vulkan_enable} is used, the runtime must add {@code VK_KHR_image_format_list} to the list of extensions enabled in {@link KHRVulkanEnable2#xrCreateVulkanDeviceKHR CreateVulkanDeviceKHR}.
- */
-public final class KHRVulkanSwapchainFormatList {
-
- /** The extension specification version. */
- public static final int XR_KHR_vulkan_swapchain_format_list_SPEC_VERSION = 4;
-
- /** The extension name. */
- public static final String XR_KHR_VULKAN_SWAPCHAIN_FORMAT_LIST_EXTENSION_NAME = "XR_KHR_vulkan_swapchain_format_list";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR = 1000014000;
+ */
+public final class KHRVulkanSwapchainFormatList {
+
+ /** The extension specification version. */
+ public static final int XR_KHR_vulkan_swapchain_format_list_SPEC_VERSION = 4;
+
+ /** The extension name. */
+ public static final String XR_KHR_VULKAN_SWAPCHAIN_FORMAT_LIST_EXTENSION_NAME = "XR_KHR_vulkan_swapchain_format_list";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR = 1000014000;
- private KHRVulkanSwapchainFormatList() {}
+ private KHRVulkanSwapchainFormatList() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRWin32ConvertPerformanceCounterTime.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRWin32ConvertPerformanceCounterTime.java
index 3c16e09d79..1fc307caf8 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRWin32ConvertPerformanceCounterTime.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRWin32ConvertPerformanceCounterTime.java
@@ -4,45 +4,45 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import java.nio.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
-import org.lwjgl.system.windows.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
+import org.lwjgl.system.windows.*;
+
/**
* The XR_KHR_win32_convert_performance_counter_time extension.
*
* This extension provides two functions for converting between the Windows performance counter (QPC) time stamps and {@code XrTime}. The {@link #xrConvertWin32PerformanceCounterToTimeKHR ConvertWin32PerformanceCounterToTimeKHR} function converts from Windows performance counter time stamps to {@code XrTime}, while the {@link #xrConvertTimeToWin32PerformanceCounterKHR ConvertTimeToWin32PerformanceCounterKHR} function converts {@code XrTime} to Windows performance counter time stamps. The primary use case for this functionality is to be able to synchronize events between the local system and the OpenXR system.
- */
-public class KHRWin32ConvertPerformanceCounterTime {
-
- /** The extension specification version. */
- public static final int XR_KHR_win32_convert_performance_counter_time_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_KHR_WIN32_CONVERT_PERFORMANCE_COUNTER_TIME_EXTENSION_NAME = "XR_KHR_win32_convert_performance_counter_time";
+ */
+public class KHRWin32ConvertPerformanceCounterTime {
+
+ /** The extension specification version. */
+ public static final int XR_KHR_win32_convert_performance_counter_time_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_KHR_WIN32_CONVERT_PERFORMANCE_COUNTER_TIME_EXTENSION_NAME = "XR_KHR_win32_convert_performance_counter_time";
protected KHRWin32ConvertPerformanceCounterTime() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrConvertWin32PerformanceCounterToTimeKHR ] ---
+
+ /** Unsafe version of: {@link #xrConvertWin32PerformanceCounterToTimeKHR ConvertWin32PerformanceCounterToTimeKHR} */
+ public static int nxrConvertWin32PerformanceCounterToTimeKHR(XrInstance instance, long performanceCounter, long time) {
+ long __functionAddress = instance.getCapabilities().xrConvertWin32PerformanceCounterToTimeKHR;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(instance.address(), performanceCounter, time, __functionAddress);
+ }
- // --- [ xrConvertWin32PerformanceCounterToTimeKHR ] ---
-
- /** Unsafe version of: {@link #xrConvertWin32PerformanceCounterToTimeKHR ConvertWin32PerformanceCounterToTimeKHR} */
- public static int nxrConvertWin32PerformanceCounterToTimeKHR(XrInstance instance, long performanceCounter, long time) {
- long __functionAddress = instance.getCapabilities().xrConvertWin32PerformanceCounterToTimeKHR;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(instance.address(), performanceCounter, time, __functionAddress);
- }
-
/**
* Convert Win32 {@code QueryPerformanceCounter} time to XrTime.
*
@@ -92,26 +92,26 @@ public static int nxrConvertWin32PerformanceCounterToTimeKHR(XrInstance instance
* @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}.
* @param performanceCounter a time returned by {@code QueryPerformanceCounter}.
* @param time the resulting {@code XrTime} that is equivalent to the {@code performanceCounter}.
- */
- @NativeType("XrResult")
- public static int xrConvertWin32PerformanceCounterToTimeKHR(XrInstance instance, @NativeType("LARGE_INTEGER const *") LARGE_INTEGER performanceCounter, @NativeType("XrTime *") LongBuffer time) {
- if (CHECKS) {
- check(time, 1);
- }
- return nxrConvertWin32PerformanceCounterToTimeKHR(instance, performanceCounter.address(), memAddress(time));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrConvertWin32PerformanceCounterToTimeKHR(XrInstance instance, @NativeType("LARGE_INTEGER const *") LARGE_INTEGER performanceCounter, @NativeType("XrTime *") LongBuffer time) {
+ if (CHECKS) {
+ check(time, 1);
+ }
+ return nxrConvertWin32PerformanceCounterToTimeKHR(instance, performanceCounter.address(), memAddress(time));
+ }
+
+ // --- [ xrConvertTimeToWin32PerformanceCounterKHR ] ---
+
+ /** Unsafe version of: {@link #xrConvertTimeToWin32PerformanceCounterKHR ConvertTimeToWin32PerformanceCounterKHR} */
+ public static int nxrConvertTimeToWin32PerformanceCounterKHR(XrInstance instance, long time, long performanceCounter) {
+ long __functionAddress = instance.getCapabilities().xrConvertTimeToWin32PerformanceCounterKHR;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJPI(instance.address(), time, performanceCounter, __functionAddress);
+ }
- // --- [ xrConvertTimeToWin32PerformanceCounterKHR ] ---
-
- /** Unsafe version of: {@link #xrConvertTimeToWin32PerformanceCounterKHR ConvertTimeToWin32PerformanceCounterKHR} */
- public static int nxrConvertTimeToWin32PerformanceCounterKHR(XrInstance instance, long time, long performanceCounter) {
- long __functionAddress = instance.getCapabilities().xrConvertTimeToWin32PerformanceCounterKHR;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJPI(instance.address(), time, performanceCounter, __functionAddress);
- }
-
/**
* Convert XrTime to Win32 {@code QueryPerformanceCounter} time.
*
@@ -160,10 +160,10 @@ public static int nxrConvertTimeToWin32PerformanceCounterKHR(XrInstance instance
* @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}.
* @param time an {@code XrTime}.
* @param performanceCounter the resulting Windows performance counter time stamp that is equivalent to the {@code time}.
- */
- @NativeType("XrResult")
- public static int xrConvertTimeToWin32PerformanceCounterKHR(XrInstance instance, @NativeType("XrTime") long time, @NativeType("LARGE_INTEGER *") LARGE_INTEGER performanceCounter) {
- return nxrConvertTimeToWin32PerformanceCounterKHR(instance, time, performanceCounter.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrConvertTimeToWin32PerformanceCounterKHR(XrInstance instance, @NativeType("XrTime") long time, @NativeType("LARGE_INTEGER *") LARGE_INTEGER performanceCounter) {
+ return nxrConvertTimeToWin32PerformanceCounterKHR(instance, time, performanceCounter.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAFoveationEyeTracked.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAFoveationEyeTracked.java
index 5143e68766..ef2640b066 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAFoveationEyeTracked.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAFoveationEyeTracked.java
@@ -4,12 +4,12 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+
/**
* The XR_META_foveation_eye_tracked extension.
*
@@ -25,18 +25,18 @@
*
*
* In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public class METAFoveationEyeTracked {
-
- /** The extension specification version. */
- public static final int XR_META_foveation_eye_tracked_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_META_FOVEATION_EYE_TRACKED_EXTENSION_NAME = "XR_META_foveation_eye_tracked";
-
- /** XR_FOVEATION_CENTER_SIZE_META */
- public static final int XR_FOVEATION_CENTER_SIZE_META = 2;
-
+ */
+public class METAFoveationEyeTracked {
+
+ /** The extension specification version. */
+ public static final int XR_META_foveation_eye_tracked_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_META_FOVEATION_EYE_TRACKED_EXTENSION_NAME = "XR_META_foveation_eye_tracked";
+
+ /** XR_FOVEATION_CENTER_SIZE_META */
+ public static final int XR_FOVEATION_CENTER_SIZE_META = 2;
+
/**
* Extends {@code XrStructureType}.
*
@@ -47,12 +47,12 @@ public class METAFoveationEyeTracked {
* {@link #XR_TYPE_FOVEATION_EYE_TRACKED_STATE_META TYPE_FOVEATION_EYE_TRACKED_STATE_META}
* {@link #XR_TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META}
*
- */
+ */
public static final int
- XR_TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_META = 1000200000,
- XR_TYPE_FOVEATION_EYE_TRACKED_STATE_META = 1000200001,
- XR_TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META = 1000200002;
-
+ XR_TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_META = 1000200000,
+ XR_TYPE_FOVEATION_EYE_TRACKED_STATE_META = 1000200001,
+ XR_TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META = 1000200002;
+
/**
* XrFoveationEyeTrackedStateFlagBitsMETA - XrFoveationEyeTrackedStateFlagBitsMETA
*
@@ -61,24 +61,24 @@ public class METAFoveationEyeTracked {
*
* - {@link #XR_FOVEATION_EYE_TRACKED_STATE_VALID_BIT_META FOVEATION_EYE_TRACKED_STATE_VALID_BIT_META} — Indicates whether or not foveation data is valid. This can happen if the eye tracker is obscured, the camera has dirt, or eye lid is closed, etc.
*
- */
- public static final int XR_FOVEATION_EYE_TRACKED_STATE_VALID_BIT_META = 0x1;
+ */
+ public static final int XR_FOVEATION_EYE_TRACKED_STATE_VALID_BIT_META = 0x1;
protected METAFoveationEyeTracked() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrGetFoveationEyeTrackedStateMETA ] ---
+
+ /** Unsafe version of: {@link #xrGetFoveationEyeTrackedStateMETA GetFoveationEyeTrackedStateMETA} */
+ public static int nxrGetFoveationEyeTrackedStateMETA(XrSession session, long foveationState) {
+ long __functionAddress = session.getCapabilities().xrGetFoveationEyeTrackedStateMETA;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(session.address(), foveationState, __functionAddress);
+ }
- // --- [ xrGetFoveationEyeTrackedStateMETA ] ---
-
- /** Unsafe version of: {@link #xrGetFoveationEyeTrackedStateMETA GetFoveationEyeTrackedStateMETA} */
- public static int nxrGetFoveationEyeTrackedStateMETA(XrSession session, long foveationState) {
- long __functionAddress = session.getCapabilities().xrGetFoveationEyeTrackedStateMETA;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(session.address(), foveationState, __functionAddress);
- }
-
/**
* Get the current eye tracked foveation state.
*
@@ -131,10 +131,10 @@ public static int nxrGetFoveationEyeTrackedStateMETA(XrSession session, long fov
*
* @param session the {@code XrSession} in which the eye tracked foveation profile is applied.
* @param foveationState a pointer to an {@link XrFoveationEyeTrackedStateMETA} structure returning the current eye tracked foveation state.
- */
- @NativeType("XrResult")
- public static int xrGetFoveationEyeTrackedStateMETA(XrSession session, @NativeType("XrFoveationEyeTrackedStateMETA *") XrFoveationEyeTrackedStateMETA foveationState) {
- return nxrGetFoveationEyeTrackedStateMETA(session, foveationState.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetFoveationEyeTrackedStateMETA(XrSession session, @NativeType("XrFoveationEyeTrackedStateMETA *") XrFoveationEyeTrackedStateMETA foveationState) {
+ return nxrGetFoveationEyeTrackedStateMETA(session, foveationState.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAHeadsetId.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAHeadsetId.java
index f72ef98527..f088fddcf1 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAHeadsetId.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAHeadsetId.java
@@ -4,19 +4,19 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-/** The META_headset_id extension. */
-public final class METAHeadsetId {
-
- /** The extension specification version. */
- public static final int XR_META_headset_id_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_META_HEADSET_ID_EXTENSION_NAME = "XR_META_headset_id";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_SYSTEM_HEADSET_ID_PROPERTIES_META = 1000245000;
- private METAHeadsetId() {}
+/** The META_headset_id extension. */
+public final class METAHeadsetId {
+
+ /** The extension specification version. */
+ public static final int XR_META_headset_id_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_META_HEADSET_ID_EXTENSION_NAME = "XR_META_headset_id";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_SYSTEM_HEADSET_ID_PROPERTIES_META = 1000245000;
+
+ private METAHeadsetId() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METALocalDimming.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METALocalDimming.java
index 5e15eef181..eb18d1d721 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METALocalDimming.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METALocalDimming.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_META_local_dimming extension.
*
@@ -16,18 +16,18 @@
* Using XrFrameEndInfoLocalDimmingFB is considered as a hint and will not trigger {@link XR10#xrEndFrame EndFrame} errors whether or not the requested dimming mode is fulfilled by the runtime.
* The runtime will have full control of the local dimming mode and may disregard app requests. For example, the runtime may allow only one primary client to control the local dimming mode.
*
- */
-public final class METALocalDimming {
-
- /** The extension specification version. */
- public static final int XR_META_local_dimming_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_META_LOCAL_DIMMING_EXTENSION_NAME = "XR_META_local_dimming";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_LOCAL_DIMMING_FRAME_END_INFO_META = 1000216000;
-
+ */
+public final class METALocalDimming {
+
+ /** The extension specification version. */
+ public static final int XR_META_local_dimming_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_META_LOCAL_DIMMING_EXTENSION_NAME = "XR_META_local_dimming";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_LOCAL_DIMMING_FRAME_END_INFO_META = 1000216000;
+
/**
* XrLocalDimmingModeMETA - Local dimming modes
*
@@ -41,11 +41,11 @@ public final class METALocalDimming {
* See Also
*
* {@link XrLocalDimmingFrameEndInfoMETA}
- */
+ */
public static final int
- XR_LOCAL_DIMMING_MODE_OFF_META = 0,
- XR_LOCAL_DIMMING_MODE_ON_META = 1;
+ XR_LOCAL_DIMMING_MODE_OFF_META = 0,
+ XR_LOCAL_DIMMING_MODE_ON_META = 1;
- private METALocalDimming() {}
+ private METALocalDimming() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAPerformanceMetrics.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAPerformanceMetrics.java
index 5378f6993e..b46de36d9a 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAPerformanceMetrics.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAPerformanceMetrics.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_META_performance_metrics extension.
*
@@ -41,15 +41,15 @@
* Note: the measurement intervals of individual performance metrics counters are defined by the OpenXR runtime. The application must not make assumptions or change its behavior at runtime by measuring them.
*
* In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.
- */
-public class METAPerformanceMetrics {
-
- /** The extension specification version. */
- public static final int XR_META_performance_metrics_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_META_PERFORMANCE_METRICS_EXTENSION_NAME = "XR_META_performance_metrics";
-
+ */
+public class METAPerformanceMetrics {
+
+ /** The extension specification version. */
+ public static final int XR_META_performance_metrics_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_META_PERFORMANCE_METRICS_EXTENSION_NAME = "XR_META_performance_metrics";
+
/**
* Extends {@code XrStructureType}.
*
@@ -59,11 +59,11 @@ public class METAPerformanceMetrics {
* {@link #XR_TYPE_PERFORMANCE_METRICS_STATE_META TYPE_PERFORMANCE_METRICS_STATE_META}
* {@link #XR_TYPE_PERFORMANCE_METRICS_COUNTER_META TYPE_PERFORMANCE_METRICS_COUNTER_META}
*
- */
+ */
public static final int
- XR_TYPE_PERFORMANCE_METRICS_STATE_META = 1000232001,
- XR_TYPE_PERFORMANCE_METRICS_COUNTER_META = 1000232002;
-
+ XR_TYPE_PERFORMANCE_METRICS_STATE_META = 1000232001,
+ XR_TYPE_PERFORMANCE_METRICS_COUNTER_META = 1000232002;
+
/**
* XrPerformanceMetricsCounterFlagBitsMETA - XrPerformanceMetricsCounterFlagBitsMETA
*
@@ -74,12 +74,12 @@ public class METAPerformanceMetrics {
* {@link #XR_PERFORMANCE_METRICS_COUNTER_UINT_VALUE_VALID_BIT_META PERFORMANCE_METRICS_COUNTER_UINT_VALUE_VALID_BIT_META} — Indicates the uintValue in XrPerformanceMetricsCounterMETA is valid.
* {@link #XR_PERFORMANCE_METRICS_COUNTER_FLOAT_VALUE_VALID_BIT_META PERFORMANCE_METRICS_COUNTER_FLOAT_VALUE_VALID_BIT_META} — Indicates the floatValue in XrPerformanceMetricsCounterMETA is valid.
*
- */
+ */
public static final int
- XR_PERFORMANCE_METRICS_COUNTER_ANY_VALUE_VALID_BIT_META = 0x1,
- XR_PERFORMANCE_METRICS_COUNTER_UINT_VALUE_VALID_BIT_META = 0x2,
- XR_PERFORMANCE_METRICS_COUNTER_FLOAT_VALUE_VALID_BIT_META = 0x4;
-
+ XR_PERFORMANCE_METRICS_COUNTER_ANY_VALUE_VALID_BIT_META = 0x1,
+ XR_PERFORMANCE_METRICS_COUNTER_UINT_VALUE_VALID_BIT_META = 0x2,
+ XR_PERFORMANCE_METRICS_COUNTER_FLOAT_VALUE_VALID_BIT_META = 0x4;
+
/**
* XrPerformanceMetricsCounterUnitMETA - XrPerformanceMetricsCounterUnitMETA
*
@@ -99,33 +99,33 @@ public class METAPerformanceMetrics {
* See Also
*
* {@link XrPerformanceMetricsCounterMETA}
- */
+ */
public static final int
- XR_PERFORMANCE_METRICS_COUNTER_UNIT_GENERIC_META = 0,
- XR_PERFORMANCE_METRICS_COUNTER_UNIT_PERCENTAGE_META = 1,
- XR_PERFORMANCE_METRICS_COUNTER_UNIT_MILLISECONDS_META = 2,
- XR_PERFORMANCE_METRICS_COUNTER_UNIT_BYTES_META = 3,
- XR_PERFORMANCE_METRICS_COUNTER_UNIT_HERTZ_META = 4;
+ XR_PERFORMANCE_METRICS_COUNTER_UNIT_GENERIC_META = 0,
+ XR_PERFORMANCE_METRICS_COUNTER_UNIT_PERCENTAGE_META = 1,
+ XR_PERFORMANCE_METRICS_COUNTER_UNIT_MILLISECONDS_META = 2,
+ XR_PERFORMANCE_METRICS_COUNTER_UNIT_BYTES_META = 3,
+ XR_PERFORMANCE_METRICS_COUNTER_UNIT_HERTZ_META = 4;
protected METAPerformanceMetrics() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrEnumeratePerformanceMetricsCounterPathsMETA ] ---
- // --- [ xrEnumeratePerformanceMetricsCounterPathsMETA ] ---
-
/**
* Unsafe version of: {@link #xrEnumeratePerformanceMetricsCounterPathsMETA EnumeratePerformanceMetricsCounterPathsMETA}
*
* @param counterPathCapacityInput the capacity of the {@code counterPaths} array, or 0 to indicate a request to retrieve the required capacity.
- */
- public static int nxrEnumeratePerformanceMetricsCounterPathsMETA(XrInstance instance, int counterPathCapacityInput, long counterPathCountOutput, long counterPaths) {
- long __functionAddress = instance.getCapabilities().xrEnumeratePerformanceMetricsCounterPathsMETA;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(instance.address(), counterPathCapacityInput, counterPathCountOutput, counterPaths, __functionAddress);
- }
-
+ */
+ public static int nxrEnumeratePerformanceMetricsCounterPathsMETA(XrInstance instance, int counterPathCapacityInput, long counterPathCountOutput, long counterPaths) {
+ long __functionAddress = instance.getCapabilities().xrEnumeratePerformanceMetricsCounterPathsMETA;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(instance.address(), counterPathCapacityInput, counterPathCountOutput, counterPaths, __functionAddress);
+ }
+
/**
* Enumerate all performance metrics counter paths that supported by the runtime.
*
@@ -170,26 +170,26 @@ public static int nxrEnumeratePerformanceMetricsCounterPathsMETA(XrInstance inst
* @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}.
* @param counterPathCountOutput filled in by the runtime with the count of {@code counterPaths} written or the required capacity in the case that {@code counterPathCapacityInput} is insufficient.
* @param counterPaths an array of {@code XrPath} filled in by the runtime which contains all the available performance metrics counters, but can be {@code NULL} if {@code counterPathCapacityInput} is 0.
- */
- @NativeType("XrResult")
- public static int xrEnumeratePerformanceMetricsCounterPathsMETA(XrInstance instance, @NativeType("uint32_t *") IntBuffer counterPathCountOutput, @Nullable @NativeType("XrPath *") LongBuffer counterPaths) {
- if (CHECKS) {
- check(counterPathCountOutput, 1);
- }
- return nxrEnumeratePerformanceMetricsCounterPathsMETA(instance, remainingSafe(counterPaths), memAddress(counterPathCountOutput), memAddressSafe(counterPaths));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrEnumeratePerformanceMetricsCounterPathsMETA(XrInstance instance, @NativeType("uint32_t *") IntBuffer counterPathCountOutput, @Nullable @NativeType("XrPath *") LongBuffer counterPaths) {
+ if (CHECKS) {
+ check(counterPathCountOutput, 1);
+ }
+ return nxrEnumeratePerformanceMetricsCounterPathsMETA(instance, remainingSafe(counterPaths), memAddress(counterPathCountOutput), memAddressSafe(counterPaths));
+ }
+
+ // --- [ xrSetPerformanceMetricsStateMETA ] ---
+
+ /** Unsafe version of: {@link #xrSetPerformanceMetricsStateMETA SetPerformanceMetricsStateMETA} */
+ public static int nxrSetPerformanceMetricsStateMETA(XrSession session, long state) {
+ long __functionAddress = session.getCapabilities().xrSetPerformanceMetricsStateMETA;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(session.address(), state, __functionAddress);
+ }
- // --- [ xrSetPerformanceMetricsStateMETA ] ---
-
- /** Unsafe version of: {@link #xrSetPerformanceMetricsStateMETA SetPerformanceMetricsStateMETA} */
- public static int nxrSetPerformanceMetricsStateMETA(XrSession session, long state) {
- long __functionAddress = session.getCapabilities().xrSetPerformanceMetricsStateMETA;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(session.address(), state, __functionAddress);
- }
-
/**
* Enable/disable performance metrics.
*
@@ -239,23 +239,23 @@ public static int nxrSetPerformanceMetricsStateMETA(XrSession session, long stat
*
* @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}.
* @param state a pointer to an {@link XrPerformanceMetricsStateMETA} structure.
- */
- @NativeType("XrResult")
- public static int xrSetPerformanceMetricsStateMETA(XrSession session, @NativeType("XrPerformanceMetricsStateMETA const *") XrPerformanceMetricsStateMETA state) {
- return nxrSetPerformanceMetricsStateMETA(session, state.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSetPerformanceMetricsStateMETA(XrSession session, @NativeType("XrPerformanceMetricsStateMETA const *") XrPerformanceMetricsStateMETA state) {
+ return nxrSetPerformanceMetricsStateMETA(session, state.address());
+ }
+
+ // --- [ xrGetPerformanceMetricsStateMETA ] ---
+
+ /** Unsafe version of: {@link #xrGetPerformanceMetricsStateMETA GetPerformanceMetricsStateMETA} */
+ public static int nxrGetPerformanceMetricsStateMETA(XrSession session, long state) {
+ long __functionAddress = session.getCapabilities().xrGetPerformanceMetricsStateMETA;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(session.address(), state, __functionAddress);
+ }
- // --- [ xrGetPerformanceMetricsStateMETA ] ---
-
- /** Unsafe version of: {@link #xrGetPerformanceMetricsStateMETA GetPerformanceMetricsStateMETA} */
- public static int nxrGetPerformanceMetricsStateMETA(XrSession session, long state) {
- long __functionAddress = session.getCapabilities().xrGetPerformanceMetricsStateMETA;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(session.address(), state, __functionAddress);
- }
-
/**
* Get current state of performance metrics.
*
@@ -304,23 +304,23 @@ public static int nxrGetPerformanceMetricsStateMETA(XrSession session, long stat
*
* @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}.
* @param state a pointer to an {@link XrPerformanceMetricsStateMETA} structure.
- */
- @NativeType("XrResult")
- public static int xrGetPerformanceMetricsStateMETA(XrSession session, @NativeType("XrPerformanceMetricsStateMETA *") XrPerformanceMetricsStateMETA state) {
- return nxrGetPerformanceMetricsStateMETA(session, state.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetPerformanceMetricsStateMETA(XrSession session, @NativeType("XrPerformanceMetricsStateMETA *") XrPerformanceMetricsStateMETA state) {
+ return nxrGetPerformanceMetricsStateMETA(session, state.address());
+ }
+
+ // --- [ xrQueryPerformanceMetricsCounterMETA ] ---
+
+ /** Unsafe version of: {@link #xrQueryPerformanceMetricsCounterMETA QueryPerformanceMetricsCounterMETA} */
+ public static int nxrQueryPerformanceMetricsCounterMETA(XrSession session, long counterPath, long counter) {
+ long __functionAddress = session.getCapabilities().xrQueryPerformanceMetricsCounterMETA;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJPI(session.address(), counterPath, counter, __functionAddress);
+ }
- // --- [ xrQueryPerformanceMetricsCounterMETA ] ---
-
- /** Unsafe version of: {@link #xrQueryPerformanceMetricsCounterMETA QueryPerformanceMetricsCounterMETA} */
- public static int nxrQueryPerformanceMetricsCounterMETA(XrSession session, long counterPath, long counter) {
- long __functionAddress = session.getCapabilities().xrQueryPerformanceMetricsCounterMETA;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJPI(session.address(), counterPath, counter, __functionAddress);
- }
-
/**
* Query performance metrics counter.
*
@@ -378,10 +378,10 @@ public static int nxrQueryPerformanceMetricsCounterMETA(XrSession session, long
* @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}.
* @param counterPath a valid performance metrics counter path.
* @param counter a pointer to an {@link XrPerformanceMetricsCounterMETA} structure.
- */
- @NativeType("XrResult")
- public static int xrQueryPerformanceMetricsCounterMETA(XrSession session, @NativeType("XrPath") long counterPath, @NativeType("XrPerformanceMetricsCounterMETA *") XrPerformanceMetricsCounterMETA counter) {
- return nxrQueryPerformanceMetricsCounterMETA(session, counterPath, counter.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrQueryPerformanceMetricsCounterMETA(XrSession session, @NativeType("XrPath") long counterPath, @NativeType("XrPerformanceMetricsCounterMETA *") XrPerformanceMetricsCounterMETA counter) {
+ return nxrQueryPerformanceMetricsCounterMETA(session, counterPath, counter.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAVulkanSwapchainCreateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAVulkanSwapchainCreateInfo.java
index ed357df602..c902749a30 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAVulkanSwapchainCreateInfo.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAVulkanSwapchainCreateInfo.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_META_vulkan_swapchain_create_info extension.
*
@@ -15,18 +15,18 @@
* The application must enable the corresponding Vulkan extensions before requesting additional Vulkan flags. For example, {@code VK_EXT_fragment_density_map} device extension must be enabled if an application requests {@code VK_IMAGE_CREATE_SUBSAMPLED_BIT_EXT} bit. Otherwise, it may cause undefined behavior, including an application crash.
*
* Runtimes that implement this extension must support the {@link KHRVulkanEnable XR_KHR_vulkan_enable} or the {@link KHRVulkanEnable2 XR_KHR_vulkan_enable2} extension.
- */
-public final class METAVulkanSwapchainCreateInfo {
-
- /** The extension specification version. */
- public static final int XR_META_vulkan_swapchain_create_info_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_META_VULKAN_SWAPCHAIN_CREATE_INFO_EXTENSION_NAME = "XR_META_vulkan_swapchain_create_info";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META = 1000227000;
+ */
+public final class METAVulkanSwapchainCreateInfo {
+
+ /** The extension specification version. */
+ public static final int XR_META_vulkan_swapchain_create_info_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_META_VULKAN_SWAPCHAIN_CREATE_INFO_EXTENSION_NAME = "XR_META_vulkan_swapchain_create_info";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META = 1000227000;
- private METAVulkanSwapchainCreateInfo() {}
+ private METAVulkanSwapchainCreateInfo() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLCompat.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLCompat.java
index 665eee11c8..36711bba47 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLCompat.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLCompat.java
@@ -4,46 +4,46 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_ML_compat extension.
*
* This extension provides functionality to facilitate transitioning from Magic Leap SDK to OpenXR SDK, most notably interoperability between Coordinate Frame UUIDs and {@code XrSpace}.
- */
-public class MLCompat {
-
- /** The extension specification version. */
- public static final int XR_ML_compat_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_ML_COMPAT_EXTENSION_NAME = "XR_ML_compat";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_COORDINATE_SPACE_CREATE_INFO_ML = 1000137000;
+ */
+public class MLCompat {
+
+ /** The extension specification version. */
+ public static final int XR_ML_compat_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_ML_COMPAT_EXTENSION_NAME = "XR_ML_compat";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_COORDINATE_SPACE_CREATE_INFO_ML = 1000137000;
protected MLCompat() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrCreateSpaceFromCoordinateFrameUIDML ] ---
+
+ /** Unsafe version of: {@link #xrCreateSpaceFromCoordinateFrameUIDML CreateSpaceFromCoordinateFrameUIDML} */
+ public static int nxrCreateSpaceFromCoordinateFrameUIDML(XrSession session, long createInfo, long space) {
+ long __functionAddress = session.getCapabilities().xrCreateSpaceFromCoordinateFrameUIDML;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), createInfo, space, __functionAddress);
+ }
- // --- [ xrCreateSpaceFromCoordinateFrameUIDML ] ---
-
- /** Unsafe version of: {@link #xrCreateSpaceFromCoordinateFrameUIDML CreateSpaceFromCoordinateFrameUIDML} */
- public static int nxrCreateSpaceFromCoordinateFrameUIDML(XrSession session, long createInfo, long space) {
- long __functionAddress = session.getCapabilities().xrCreateSpaceFromCoordinateFrameUIDML;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), createInfo, space, __functionAddress);
- }
-
/**
* Creates a space based on a cfuid.
*
@@ -101,13 +101,13 @@ public static int nxrCreateSpaceFromCoordinateFrameUIDML(XrSession session, long
* @param session a handle to an {@code XrSession} previously created with {@link XR10#xrCreateSession CreateSession}.
* @param createInfo the {@link XrCoordinateSpaceCreateInfoML} used to specify the space.
* @param space the returned space handle.
- */
- @NativeType("XrResult")
- public static int xrCreateSpaceFromCoordinateFrameUIDML(XrSession session, @NativeType("XrCoordinateSpaceCreateInfoML const *") XrCoordinateSpaceCreateInfoML createInfo, @NativeType("XrSpace *") PointerBuffer space) {
- if (CHECKS) {
- check(space, 1);
- }
- return nxrCreateSpaceFromCoordinateFrameUIDML(session, createInfo.address(), memAddress(space));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrCreateSpaceFromCoordinateFrameUIDML(XrSession session, @NativeType("XrCoordinateSpaceCreateInfoML const *") XrCoordinateSpaceCreateInfoML createInfo, @NativeType("XrSpace *") PointerBuffer space) {
+ if (CHECKS) {
+ check(space, 1);
+ }
+ return nxrCreateSpaceFromCoordinateFrameUIDML(session, createInfo.address(), memAddress(space));
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLCoordinateFrameUID.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLCoordinateFrameUID.java
index 0317c7e37c..b44186774e 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLCoordinateFrameUID.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLCoordinateFrameUID.java
@@ -4,16 +4,16 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
+
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* Layout
*
@@ -21,8 +21,8 @@
* struct MLCoordinateFrameUID {
* uint64_t data[2];
* }
- */
-public class MLCoordinateFrameUID extends Struct {
+ */
+public class MLCoordinateFrameUID extends Struct {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -32,26 +32,17 @@ public class MLCoordinateFrameUID extends Struct {
/** The struct member offsets. */
public static final int
- DATA;
+ DATA;
static {
- Layout layout = __struct(
+ Layout layout = __struct(
__array(8, 2)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- DATA = layout.offsetof(0);
- }
-
- protected MLCoordinateFrameUID(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected MLCoordinateFrameUID create(long address, @Nullable ByteBuffer container) {
- return new MLCoordinateFrameUID(address, container);
+ DATA = layout.offsetof(0);
}
/**
@@ -66,25 +57,25 @@ public MLCoordinateFrameUID(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** @return a {@link LongBuffer} view of the {@code data} field. */
- @NativeType("uint64_t[2]")
- public LongBuffer data() { return ndata(address()); }
- /** @return the value at the specified index of the {@code data} field. */
- @NativeType("uint64_t")
- public long data(int index) { return ndata(address(), index); }
+
+ /** @return a {@link LongBuffer} view of the {@code data} field. */
+ @NativeType("uint64_t[2]")
+ public LongBuffer data() { return ndata(address()); }
+ /** @return the value at the specified index of the {@code data} field. */
+ @NativeType("uint64_t")
+ public long data(int index) { return ndata(address(), index); }
// -----------------------------------
/** Returns a new {@code MLCoordinateFrameUID} instance for the specified memory address. */
public static MLCoordinateFrameUID create(long address) {
- return new MLCoordinateFrameUID(address, null);
+ return wrap(MLCoordinateFrameUID.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static MLCoordinateFrameUID createSafe(long address) {
- return address == NULL ? null : new MLCoordinateFrameUID(address, null);
+ return address == NULL ? null : wrap(MLCoordinateFrameUID.class, address);
}
/**
@@ -94,25 +85,25 @@ public static MLCoordinateFrameUID createSafe(long address) {
* @param capacity the buffer capacity
*/
public static MLCoordinateFrameUID.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static MLCoordinateFrameUID.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #data}. */
- public static LongBuffer ndata(long struct) { return memLongBuffer(struct + MLCoordinateFrameUID.DATA, 2); }
- /** Unsafe version of {@link #data(int) data}. */
- public static long ndata(long struct, int index) {
+
+ /** Unsafe version of {@link #data}. */
+ public static LongBuffer ndata(long struct) { return memLongBuffer(struct + MLCoordinateFrameUID.DATA, 2); }
+ /** Unsafe version of {@link #data(int) data}. */
+ public static long ndata(long struct, int index) {
return UNSAFE.getLong(null, struct + MLCoordinateFrameUID.DATA + check(index, 2) * 8);
- }
+ }
- // -----------------------------------
+ // -----------------------------------
/** An array of {@link MLCoordinateFrameUID} structs. */
public static class Buffer extends StructBuffer {
@@ -122,9 +113,9 @@ public static class Buffer extends StructBuffer {
/**
* Creates a new {@code MLCoordinateFrameUID.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link MLCoordinateFrameUID#SIZEOF}, and its mark will be undefined.
+ * by {@link MLCoordinateFrameUID#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -149,13 +140,13 @@ protected Buffer self() {
protected MLCoordinateFrameUID getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return a {@link LongBuffer} view of the {@code data} field. */
- @NativeType("uint64_t[2]")
- public LongBuffer data() { return MLCoordinateFrameUID.ndata(address()); }
- /** @return the value at the specified index of the {@code data} field. */
- @NativeType("uint64_t")
- public long data(int index) { return MLCoordinateFrameUID.ndata(address(), index); }
+
+ /** @return a {@link LongBuffer} view of the {@code data} field. */
+ @NativeType("uint64_t[2]")
+ public LongBuffer data() { return MLCoordinateFrameUID.ndata(address()); }
+ /** @return the value at the specified index of the {@code data} field. */
+ @NativeType("uint64_t")
+ public long data(int index) { return MLCoordinateFrameUID.ndata(address(), index); }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLFrameEndInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLFrameEndInfo.java
index da00132f7a..44502bbfa1 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLFrameEndInfo.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLFrameEndInfo.java
@@ -4,23 +4,23 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_ML_frame_end_info extension.
*
* This extension provides access to Magic Leap specific extensions to frame settings like focus distance, vignette, and protection.
- */
-public final class MLFrameEndInfo {
-
- /** The extension specification version. */
- public static final int XR_ML_frame_end_info_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_ML_FRAME_END_INFO_EXTENSION_NAME = "XR_ML_frame_end_info";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_FRAME_END_INFO_ML = 1000135000;
-
+ */
+public final class MLFrameEndInfo {
+
+ /** The extension specification version. */
+ public static final int XR_ML_frame_end_info_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_ML_FRAME_END_INFO_EXTENSION_NAME = "XR_ML_frame_end_info";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_FRAME_END_INFO_ML = 1000135000;
+
/**
* XrFrameEndInfoFlagBitsML - XrFrameEndInfoFlagBitsML
*
@@ -38,11 +38,11 @@ public final class MLFrameEndInfo {
* See Also
*
* {@link XrFrameEndInfoML}, {@link XR10#xrEndFrame EndFrame}
- */
+ */
public static final int
- XR_FRAME_END_INFO_PROTECTED_BIT_ML = 0x1,
- XR_FRAME_END_INFO_VIGNETTE_BIT_ML = 0x2;
+ XR_FRAME_END_INFO_PROTECTED_BIT_ML = 0x1,
+ XR_FRAME_END_INFO_VIGNETTE_BIT_ML = 0x2;
- private MLFrameEndInfo() {}
+ private MLFrameEndInfo() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLGlobalDimmer.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLGlobalDimmer.java
index 43f43e0223..9112bfd2a1 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLGlobalDimmer.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLGlobalDimmer.java
@@ -4,25 +4,25 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_ML_global_dimmer extension.
*
* This extension provides control over the global dimmer panel of the Magic Leap 2. The Global Dimming™ feature dims the entire display without dimming digital content to make text and images more solid and precise.
*
* Note that when using the {@link XR10#XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND ENVIRONMENT_BLEND_MODE_ALPHA_BLEND} mode the alpha channel of the color swapchain image is combined with the global dimmer value. The global dimmer however is able to address the whole panel whereas the alpha channel covers the video addressable portion.
- */
-public final class MLGlobalDimmer {
-
- /** The extension specification version. */
- public static final int XR_ML_global_dimmer_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_ML_GLOBAL_DIMMER_EXTENSION_NAME = "XR_ML_global_dimmer";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML = 1000136000;
-
+ */
+public final class MLGlobalDimmer {
+
+ /** The extension specification version. */
+ public static final int XR_ML_global_dimmer_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_ML_GLOBAL_DIMMER_EXTENSION_NAME = "XR_ML_global_dimmer";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML = 1000136000;
+
/**
* XrGlobalDimmerFrameEndInfoFlagBitsML - XrGlobalDimmerFrameEndInfoFlagBitsML
*
@@ -39,9 +39,9 @@ public final class MLGlobalDimmer {
* See Also
*
* {@link XrGlobalDimmerFrameEndInfoML}, {@link XR10#xrEndFrame EndFrame}
- */
- public static final int XR_GLOBAL_DIMMER_FRAME_END_INFO_ENABLED_BIT_ML = 0x1;
+ */
+ public static final int XR_GLOBAL_DIMMER_FRAME_END_INFO_ENABLED_BIT_ML = 0x1;
- private MLGlobalDimmer() {}
+ private MLGlobalDimmer() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLMl2ControllerInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLMl2ControllerInteraction.java
index 6b0c0d609d..292e4832f9 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLMl2ControllerInteraction.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLMl2ControllerInteraction.java
@@ -4,20 +4,20 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_ML_ml2_controller_interaction extension.
*
* This extension defines the interaction profile for the Magic Leap 2 Controller.
- */
-public final class MLMl2ControllerInteraction {
-
- /** The extension specification version. */
- public static final int XR_ML_ml2_controller_interaction_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_ML_ML2_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_ML_ml2_controller_interaction";
+ */
+public final class MLMl2ControllerInteraction {
+
+ /** The extension specification version. */
+ public static final int XR_ML_ml2_controller_interaction_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_ML_ML2_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_ML_ml2_controller_interaction";
- private MLMl2ControllerInteraction() {}
+ private MLMl2ControllerInteraction() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDHeadless.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDHeadless.java
index f9f6fcdb8c..6f3e352b46 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDHeadless.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDHeadless.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_MND_headless extension.
*
@@ -20,15 +20,15 @@
*
*
* Because {@link XR10#xrWaitFrame WaitFrame} is not required, an application using a headless session should sleep periodically to avoid consuming all available system resources in a busy-wait loop.
- */
-public final class MNDHeadless {
-
- /** The extension specification version. */
- public static final int XR_MND_headless_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_MND_HEADLESS_EXTENSION_NAME = "XR_MND_headless";
+ */
+public final class MNDHeadless {
+
+ /** The extension specification version. */
+ public static final int XR_MND_headless_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_MND_HEADLESS_EXTENSION_NAME = "XR_MND_headless";
- private MNDHeadless() {}
+ private MNDHeadless() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDSwapchainUsageInputAttachmentBit.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDSwapchainUsageInputAttachmentBit.java
index ccd14104f5..ccb999145c 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDSwapchainUsageInputAttachmentBit.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDSwapchainUsageInputAttachmentBit.java
@@ -4,23 +4,23 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_MND_swapchain_usage_input_attachment_bit extension.
*
* This extension enables an application to specify that swapchain images should be created in a way so that they can be used as input attachments. At the time of writing this bit only affects Vulkan swapchains.
- */
-public final class MNDSwapchainUsageInputAttachmentBit {
-
- /** The extension specification version. */
- public static final int XR_MND_swapchain_usage_input_attachment_bit_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_MND_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_EXTENSION_NAME = "XR_MND_swapchain_usage_input_attachment_bit";
-
- /** Extends {@code XrSwapchainUsageFlagBits}. */
- public static final int XR_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_MND = 0x80;
+ */
+public final class MNDSwapchainUsageInputAttachmentBit {
+
+ /** The extension specification version. */
+ public static final int XR_MND_swapchain_usage_input_attachment_bit_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_MND_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_EXTENSION_NAME = "XR_MND_swapchain_usage_input_attachment_bit";
+
+ /** Extends {@code XrSwapchainUsageFlagBits}. */
+ public static final int XR_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_MND = 0x80;
- private MNDSwapchainUsageInputAttachmentBit() {}
+ private MNDSwapchainUsageInputAttachmentBit() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDXEGLEnable.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDXEGLEnable.java
index ea77f0291a..89f2a92f57 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDXEGLEnable.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDXEGLEnable.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_MNDX_egl_enable extension.
*
@@ -13,18 +13,18 @@
*
* - {@link XR10#XR_USE_PLATFORM_EGL USE_PLATFORM_EGL}
*
- */
-public final class MNDXEGLEnable {
-
- /** The extension specification version. */
- public static final int XR_MNDX_egl_enable_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_MNDX_EGL_ENABLE_EXTENSION_NAME = "XR_MNDX_egl_enable";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_GRAPHICS_BINDING_EGL_MNDX = 1000048004;
+ */
+public final class MNDXEGLEnable {
+
+ /** The extension specification version. */
+ public static final int XR_MNDX_egl_enable_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_MNDX_EGL_ENABLE_EXTENSION_NAME = "XR_MNDX_egl_enable";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_GRAPHICS_BINDING_EGL_MNDX = 1000048004;
- private MNDXEGLEnable() {}
+ private MNDXEGLEnable() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDXForceFeedbackCurl.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDXForceFeedbackCurl.java
index 5defa16efb..cd8a31bda4 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDXForceFeedbackCurl.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDXForceFeedbackCurl.java
@@ -4,12 +4,12 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+
/**
* The XR_MNDX_force_feedback_curl extension.
*
@@ -18,15 +18,15 @@
* The intended use for this extension is to provide simple force feedback capabilities to restrict finger movement for VR Gloves.
*
* The application must also enable the {@link EXTHandTracking XR_EXT_hand_tracking} extension in order to use this extension.
- */
-public class MNDXForceFeedbackCurl {
-
- /** The extension specification version. */
- public static final int XR_MNDX_force_feedback_curl_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_MNDX_FORCE_FEEDBACK_CURL_EXTENSION_NAME = "XR_MNDX_force_feedback_curl";
-
+ */
+public class MNDXForceFeedbackCurl {
+
+ /** The extension specification version. */
+ public static final int XR_MNDX_force_feedback_curl_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_MNDX_FORCE_FEEDBACK_CURL_EXTENSION_NAME = "XR_MNDX_force_feedback_curl";
+
/**
* Extends {@code XrStructureType}.
*
@@ -36,11 +36,11 @@ public class MNDXForceFeedbackCurl {
* {@link #XR_TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX}
* {@link #XR_TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX}
*
- */
+ */
public static final int
- XR_TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX = 1000375000,
- XR_TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX = 1000375001;
-
+ XR_TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX = 1000375000,
+ XR_TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX = 1000375001;
+
/**
* XrForceFeedbackCurlLocationMNDX - Describes which location to apply force feedback
*
@@ -57,30 +57,30 @@ public class MNDXForceFeedbackCurl {
* See Also
*
* {@link XrForceFeedbackCurlApplyLocationMNDX}
- */
+ */
public static final int
- XR_FORCE_FEEDBACK_CURL_LOCATION_THUMB_CURL_MNDX = 0,
- XR_FORCE_FEEDBACK_CURL_LOCATION_INDEX_CURL_MNDX = 1,
- XR_FORCE_FEEDBACK_CURL_LOCATION_MIDDLE_CURL_MNDX = 2,
- XR_FORCE_FEEDBACK_CURL_LOCATION_RING_CURL_MNDX = 3,
- XR_FORCE_FEEDBACK_CURL_LOCATION_LITTLE_CURL_MNDX = 4;
+ XR_FORCE_FEEDBACK_CURL_LOCATION_THUMB_CURL_MNDX = 0,
+ XR_FORCE_FEEDBACK_CURL_LOCATION_INDEX_CURL_MNDX = 1,
+ XR_FORCE_FEEDBACK_CURL_LOCATION_MIDDLE_CURL_MNDX = 2,
+ XR_FORCE_FEEDBACK_CURL_LOCATION_RING_CURL_MNDX = 3,
+ XR_FORCE_FEEDBACK_CURL_LOCATION_LITTLE_CURL_MNDX = 4;
protected MNDXForceFeedbackCurl() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrApplyForceFeedbackCurlMNDX ] ---
+
+ /** Unsafe version of: {@link #xrApplyForceFeedbackCurlMNDX ApplyForceFeedbackCurlMNDX} */
+ public static int nxrApplyForceFeedbackCurlMNDX(XrHandTrackerEXT handTracker, long locations) {
+ long __functionAddress = handTracker.getCapabilities().xrApplyForceFeedbackCurlMNDX;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrForceFeedbackCurlApplyLocationsMNDX.validate(locations);
+ }
+ return callPPI(handTracker.address(), locations, __functionAddress);
+ }
- // --- [ xrApplyForceFeedbackCurlMNDX ] ---
-
- /** Unsafe version of: {@link #xrApplyForceFeedbackCurlMNDX ApplyForceFeedbackCurlMNDX} */
- public static int nxrApplyForceFeedbackCurlMNDX(XrHandTrackerEXT handTracker, long locations) {
- long __functionAddress = handTracker.getCapabilities().xrApplyForceFeedbackCurlMNDX;
- if (CHECKS) {
- check(__functionAddress);
- XrForceFeedbackCurlApplyLocationsMNDX.validate(locations);
- }
- return callPPI(handTracker.address(), locations, __functionAddress);
- }
-
/**
* Applies force feedback to a set of locations.
*
@@ -141,10 +141,10 @@ public static int nxrApplyForceFeedbackCurlMNDX(XrHandTrackerEXT handTracker, lo
*
* @param handTracker an {@code XrHandTrackerEXT} handle previously created with {@link EXTHandTracking#xrCreateHandTrackerEXT CreateHandTrackerEXT}.
* @param locations an {@link XrForceFeedbackCurlApplyLocationsMNDX} containing a set of locations to apply force feedback to.
- */
- @NativeType("XrResult")
- public static int xrApplyForceFeedbackCurlMNDX(XrHandTrackerEXT handTracker, @NativeType("XrForceFeedbackCurlApplyLocationsMNDX const *") XrForceFeedbackCurlApplyLocationsMNDX locations) {
- return nxrApplyForceFeedbackCurlMNDX(handTracker, locations.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrApplyForceFeedbackCurlMNDX(XrHandTrackerEXT handTracker, @NativeType("XrForceFeedbackCurlApplyLocationsMNDX const *") XrForceFeedbackCurlApplyLocationsMNDX locations) {
+ return nxrApplyForceFeedbackCurlMNDX(handTracker, locations.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTCompositionLayerReprojection.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTCompositionLayerReprojection.java
index f6687e48e9..bd9a774f6d 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTCompositionLayerReprojection.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTCompositionLayerReprojection.java
@@ -4,30 +4,30 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_MSFT_composition_layer_reprojection extension.
*
* This extension enables an application to provide additional reprojection information for a projection composition layer to help the runtime produce better hologram stability and visual quality.
- */
-public class MSFTCompositionLayerReprojection {
-
- /** The extension specification version. */
- public static final int XR_MSFT_composition_layer_reprojection_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_MSFT_COMPOSITION_LAYER_REPROJECTION_EXTENSION_NAME = "XR_MSFT_composition_layer_reprojection";
-
+ */
+public class MSFTCompositionLayerReprojection {
+
+ /** The extension specification version. */
+ public static final int XR_MSFT_composition_layer_reprojection_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_MSFT_COMPOSITION_LAYER_REPROJECTION_EXTENSION_NAME = "XR_MSFT_composition_layer_reprojection";
+
/**
* Extends {@code XrStructureType}.
*
@@ -37,14 +37,14 @@ public class MSFTCompositionLayerReprojection {
* {@link #XR_TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT}
* {@link #XR_TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT}
*
- */
+ */
public static final int
- XR_TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT = 1000066000,
- XR_TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT = 1000066001;
-
- /** Extends {@code XrResult}. */
- public static final int XR_ERROR_REPROJECTION_MODE_UNSUPPORTED_MSFT = -1000066000;
-
+ XR_TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT = 1000066000,
+ XR_TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT = 1000066001;
+
+ /** Extends {@code XrResult}. */
+ public static final int XR_ERROR_REPROJECTION_MODE_UNSUPPORTED_MSFT = -1000066000;
+
/**
* XrReprojectionModeMSFT - Describes the reprojection mode of a composition layer
*
@@ -64,32 +64,32 @@ public class MSFTCompositionLayerReprojection {
* See Also
*
* {@link XrCompositionLayerReprojectionInfoMSFT}, {@link #xrEnumerateReprojectionModesMSFT EnumerateReprojectionModesMSFT}
- */
+ */
public static final int
- XR_REPROJECTION_MODE_DEPTH_MSFT = 1,
- XR_REPROJECTION_MODE_PLANAR_FROM_DEPTH_MSFT = 2,
- XR_REPROJECTION_MODE_PLANAR_MANUAL_MSFT = 3,
- XR_REPROJECTION_MODE_ORIENTATION_ONLY_MSFT = 4;
+ XR_REPROJECTION_MODE_DEPTH_MSFT = 1,
+ XR_REPROJECTION_MODE_PLANAR_FROM_DEPTH_MSFT = 2,
+ XR_REPROJECTION_MODE_PLANAR_MANUAL_MSFT = 3,
+ XR_REPROJECTION_MODE_ORIENTATION_ONLY_MSFT = 4;
protected MSFTCompositionLayerReprojection() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrEnumerateReprojectionModesMSFT ] ---
- // --- [ xrEnumerateReprojectionModesMSFT ] ---
-
/**
* Unsafe version of: {@link #xrEnumerateReprojectionModesMSFT EnumerateReprojectionModesMSFT}
*
* @param modeCapacityInput the capacity of the array, or 0 to indicate a request to retrieve the required capacity.
- */
- public static int nxrEnumerateReprojectionModesMSFT(XrInstance instance, long systemId, int viewConfigurationType, int modeCapacityInput, long modeCountOutput, long modes) {
- long __functionAddress = instance.getCapabilities().xrEnumerateReprojectionModesMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJPPI(instance.address(), systemId, viewConfigurationType, modeCapacityInput, modeCountOutput, modes, __functionAddress);
- }
-
+ */
+ public static int nxrEnumerateReprojectionModesMSFT(XrInstance instance, long systemId, int viewConfigurationType, int modeCapacityInput, long modeCountOutput, long modes) {
+ long __functionAddress = instance.getCapabilities().xrEnumerateReprojectionModesMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJPPI(instance.address(), systemId, viewConfigurationType, modeCapacityInput, modeCountOutput, modes, __functionAddress);
+ }
+
/**
* Queries the supported reprojection modes.
*
@@ -145,13 +145,13 @@ public static int nxrEnumerateReprojectionModesMSFT(XrInstance instance, long sy
* @param viewConfigurationType the {@code XrViewConfigurationType} to enumerate.
* @param modeCountOutput a pointer to the count of the array, or a pointer to the required capacity in the case that {@code modeCapacityInput} is insufficient.
* @param modes a pointer to an application-allocated array that will be filled with the {@code XrReprojectionModeMSFT} values that are supported by the runtime. It can be {@code NULL} if {@code modeCapacityInput} is 0.
- */
- @NativeType("XrResult")
- public static int xrEnumerateReprojectionModesMSFT(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("uint32_t *") IntBuffer modeCountOutput, @Nullable @NativeType("XrReprojectionModeMSFT *") IntBuffer modes) {
- if (CHECKS) {
- check(modeCountOutput, 1);
- }
- return nxrEnumerateReprojectionModesMSFT(instance, systemId, viewConfigurationType, remainingSafe(modes), memAddress(modeCountOutput), memAddressSafe(modes));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrEnumerateReprojectionModesMSFT(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("uint32_t *") IntBuffer modeCountOutput, @Nullable @NativeType("XrReprojectionModeMSFT *") IntBuffer modes) {
+ if (CHECKS) {
+ check(modeCountOutput, 1);
+ }
+ return nxrEnumerateReprojectionModesMSFT(instance, systemId, viewConfigurationType, remainingSafe(modes), memAddress(modeCountOutput), memAddressSafe(modes));
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTControllerModel.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTControllerModel.java
index 18c46b095c..06a4645a25 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTControllerModel.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTControllerModel.java
@@ -4,35 +4,35 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_MSFT_controller_model extension.
*
* This extension provides a mechanism to load a GLTF model for controllers. An application can render the controller model using the real time pose input from controller’s grip action pose and animate controller parts representing the user’s interactions, such as pressing a button, or pulling a trigger.
*
* This extension supports any controller interaction profile that supports subpathname:/grip/pose. The returned controller model represents the physical controller held in the user’s hands, and it may be different from the current interaction profile.
- */
-public class MSFTControllerModel {
-
- /** The extension specification version. */
- public static final int XR_MSFT_controller_model_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_MSFT_CONTROLLER_MODEL_EXTENSION_NAME = "XR_MSFT_controller_model";
-
- /** XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT */
- public static final int XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT = 64;
-
+ */
+public class MSFTControllerModel {
+
+ /** The extension specification version. */
+ public static final int XR_MSFT_controller_model_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_MSFT_CONTROLLER_MODEL_EXTENSION_NAME = "XR_MSFT_controller_model";
+
+ /** XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT */
+ public static final int XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT = 64;
+
/**
* Extends {@code XrStructureType}.
*
@@ -45,35 +45,35 @@ public class MSFTControllerModel {
* {@link #XR_TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT}
* {@link #XR_TYPE_CONTROLLER_MODEL_STATE_MSFT TYPE_CONTROLLER_MODEL_STATE_MSFT}
*
- */
+ */
public static final int
- XR_TYPE_CONTROLLER_MODEL_KEY_STATE_MSFT = 1000055000,
- XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT = 1000055001,
- XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT = 1000055002,
- XR_TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT = 1000055003,
- XR_TYPE_CONTROLLER_MODEL_STATE_MSFT = 1000055004;
-
- /** Extends {@code XrResult}. */
- public static final int XR_ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT = -1000055000;
-
- /** API Constants */
- public static final long XR_NULL_CONTROLLER_MODEL_KEY_MSFT = 0x0L;
+ XR_TYPE_CONTROLLER_MODEL_KEY_STATE_MSFT = 1000055000,
+ XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT = 1000055001,
+ XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT = 1000055002,
+ XR_TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT = 1000055003,
+ XR_TYPE_CONTROLLER_MODEL_STATE_MSFT = 1000055004;
+
+ /** Extends {@code XrResult}. */
+ public static final int XR_ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT = -1000055000;
+
+ /** API Constants */
+ public static final long XR_NULL_CONTROLLER_MODEL_KEY_MSFT = 0x0L;
protected MSFTControllerModel() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrGetControllerModelKeyMSFT ] ---
+
+ /** Unsafe version of: {@link #xrGetControllerModelKeyMSFT GetControllerModelKeyMSFT} */
+ public static int nxrGetControllerModelKeyMSFT(XrSession session, long topLevelUserPath, long controllerModelKeyState) {
+ long __functionAddress = session.getCapabilities().xrGetControllerModelKeyMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJPI(session.address(), topLevelUserPath, controllerModelKeyState, __functionAddress);
+ }
- // --- [ xrGetControllerModelKeyMSFT ] ---
-
- /** Unsafe version of: {@link #xrGetControllerModelKeyMSFT GetControllerModelKeyMSFT} */
- public static int nxrGetControllerModelKeyMSFT(XrSession session, long topLevelUserPath, long controllerModelKeyState) {
- long __functionAddress = session.getCapabilities().xrGetControllerModelKeyMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJPI(session.address(), topLevelUserPath, controllerModelKeyState, __functionAddress);
- }
-
/**
* Retrieve the model key for the controller.
*
@@ -126,27 +126,27 @@ public static int nxrGetControllerModelKeyMSFT(XrSession session, long topLevelU
* @param session the specified {@code XrSession}.
* @param topLevelUserPath the top level user path corresponding to the controller render model being queried (e.g. pathname:/user/hand/left or pathname:/user/hand/right).
* @param controllerModelKeyState a pointer to the {@link XrControllerModelKeyStateMSFT} to write the model key state to.
- */
- @NativeType("XrResult")
- public static int xrGetControllerModelKeyMSFT(XrSession session, @NativeType("XrPath") long topLevelUserPath, @NativeType("XrControllerModelKeyStateMSFT *") XrControllerModelKeyStateMSFT controllerModelKeyState) {
- return nxrGetControllerModelKeyMSFT(session, topLevelUserPath, controllerModelKeyState.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetControllerModelKeyMSFT(XrSession session, @NativeType("XrPath") long topLevelUserPath, @NativeType("XrControllerModelKeyStateMSFT *") XrControllerModelKeyStateMSFT controllerModelKeyState) {
+ return nxrGetControllerModelKeyMSFT(session, topLevelUserPath, controllerModelKeyState.address());
+ }
+
+ // --- [ xrLoadControllerModelMSFT ] ---
- // --- [ xrLoadControllerModelMSFT ] ---
-
/**
* Unsafe version of: {@link #xrLoadControllerModelMSFT LoadControllerModelMSFT}
*
* @param bufferCapacityInput the capacity of the {@code buffer} array, or 0 to indicate a request to retrieve the required capacity.
- */
- public static int nxrLoadControllerModelMSFT(XrSession session, long modelKey, int bufferCapacityInput, long bufferCountOutput, long buffer) {
- long __functionAddress = session.getCapabilities().xrLoadControllerModelMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJPPI(session.address(), modelKey, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress);
- }
-
+ */
+ public static int nxrLoadControllerModelMSFT(XrSession session, long modelKey, int bufferCapacityInput, long bufferCountOutput, long buffer) {
+ long __functionAddress = session.getCapabilities().xrLoadControllerModelMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJPPI(session.address(), modelKey, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress);
+ }
+
/**
* Load controller render model.
*
@@ -202,26 +202,26 @@ public static int nxrLoadControllerModelMSFT(XrSession session, long modelKey, i
* @param modelKey the model key corresponding to the controller render model being queried.
* @param bufferCountOutput filled in by the runtime with the count of elements in {@code buffer} array, or returns the required capacity in the case that {@code bufferCapacityInput} is insufficient.
* @param buffer a pointer to an application-allocated array of the model for the device that will be filled with the {@code uint8_t} values by the runtime. It can be {@code NULL} if {@code bufferCapacityInput} is 0.
- */
- @NativeType("XrResult")
- public static int xrLoadControllerModelMSFT(XrSession session, @NativeType("XrControllerModelKeyMSFT") long modelKey, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("uint8_t *") ByteBuffer buffer) {
- if (CHECKS) {
- check(bufferCountOutput, 1);
- }
- return nxrLoadControllerModelMSFT(session, modelKey, remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrLoadControllerModelMSFT(XrSession session, @NativeType("XrControllerModelKeyMSFT") long modelKey, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("uint8_t *") ByteBuffer buffer) {
+ if (CHECKS) {
+ check(bufferCountOutput, 1);
+ }
+ return nxrLoadControllerModelMSFT(session, modelKey, remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer));
+ }
+
+ // --- [ xrGetControllerModelPropertiesMSFT ] ---
+
+ /** Unsafe version of: {@link #xrGetControllerModelPropertiesMSFT GetControllerModelPropertiesMSFT} */
+ public static int nxrGetControllerModelPropertiesMSFT(XrSession session, long modelKey, long properties) {
+ long __functionAddress = session.getCapabilities().xrGetControllerModelPropertiesMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJPI(session.address(), modelKey, properties, __functionAddress);
+ }
- // --- [ xrGetControllerModelPropertiesMSFT ] ---
-
- /** Unsafe version of: {@link #xrGetControllerModelPropertiesMSFT GetControllerModelPropertiesMSFT} */
- public static int nxrGetControllerModelPropertiesMSFT(XrSession session, long modelKey, long properties) {
- long __functionAddress = session.getCapabilities().xrGetControllerModelPropertiesMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJPI(session.address(), modelKey, properties, __functionAddress);
- }
-
/**
* Get controller model properties.
*
@@ -276,23 +276,23 @@ public static int nxrGetControllerModelPropertiesMSFT(XrSession session, long mo
* @param session the specified {@code XrSession}.
* @param modelKey a valid model key obtained from {@link XrControllerModelKeyStateMSFT}
* @param properties an {@link XrControllerModelPropertiesMSFT} returning the properties of the controller model
- */
- @NativeType("XrResult")
- public static int xrGetControllerModelPropertiesMSFT(XrSession session, @NativeType("XrControllerModelKeyMSFT") long modelKey, @NativeType("XrControllerModelPropertiesMSFT *") XrControllerModelPropertiesMSFT properties) {
- return nxrGetControllerModelPropertiesMSFT(session, modelKey, properties.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetControllerModelPropertiesMSFT(XrSession session, @NativeType("XrControllerModelKeyMSFT") long modelKey, @NativeType("XrControllerModelPropertiesMSFT *") XrControllerModelPropertiesMSFT properties) {
+ return nxrGetControllerModelPropertiesMSFT(session, modelKey, properties.address());
+ }
+
+ // --- [ xrGetControllerModelStateMSFT ] ---
+
+ /** Unsafe version of: {@link #xrGetControllerModelStateMSFT GetControllerModelStateMSFT} */
+ public static int nxrGetControllerModelStateMSFT(XrSession session, long modelKey, long state) {
+ long __functionAddress = session.getCapabilities().xrGetControllerModelStateMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJPI(session.address(), modelKey, state, __functionAddress);
+ }
- // --- [ xrGetControllerModelStateMSFT ] ---
-
- /** Unsafe version of: {@link #xrGetControllerModelStateMSFT GetControllerModelStateMSFT} */
- public static int nxrGetControllerModelStateMSFT(XrSession session, long modelKey, long state) {
- long __functionAddress = session.getCapabilities().xrGetControllerModelStateMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJPI(session.address(), modelKey, state, __functionAddress);
- }
-
/**
* Get controller model state.
*
@@ -347,10 +347,10 @@ public static int nxrGetControllerModelStateMSFT(XrSession session, long modelKe
* @param session the specified {@code XrSession}.
* @param modelKey the model key corresponding to the controller model being queried.
* @param state a pointer to {@link XrControllerModelNodeStateMSFT} returns the current controller model state.
- */
- @NativeType("XrResult")
- public static int xrGetControllerModelStateMSFT(XrSession session, @NativeType("XrControllerModelKeyMSFT") long modelKey, @NativeType("XrControllerModelStateMSFT *") XrControllerModelStateMSFT state) {
- return nxrGetControllerModelStateMSFT(session, modelKey, state.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetControllerModelStateMSFT(XrSession session, @NativeType("XrControllerModelKeyMSFT") long modelKey, @NativeType("XrControllerModelStateMSFT *") XrControllerModelStateMSFT state) {
+ return nxrGetControllerModelStateMSFT(session, modelKey, state.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTFirstPersonObserver.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTFirstPersonObserver.java
index 2b0dfbeb42..c76a944df2 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTFirstPersonObserver.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTFirstPersonObserver.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_MSFT_first_person_observer extension.
*
@@ -19,18 +19,18 @@
* Because this is a first-person view of the scene, applications can share a common culling and instanced rendering pass with their primary view renders. However, the view state (pose and FOV) of the first-person observer view will not match the view state of any of the primary views. Applications enabling this view configuration must call {@link XR10#xrLocateViews LocateViews} a second time each frame to explicitly query the view state for the {@link #XR_VIEW_CONFIGURATION_TYPE_SECONDARY_MONO_FIRST_PERSON_OBSERVER_MSFT VIEW_CONFIGURATION_TYPE_SECONDARY_MONO_FIRST_PERSON_OBSERVER_MSFT} configuration.
*
* This secondary view configuration may support a different set of environment blend modes than the primary view configuration. For example, a device that only supports additive blending for its primary display may support alpha-blending when composing the first-person observer view with camera frames. The application should render with assets and shaders that produce output acceptable to both the primary and observer view configuration’s environment blend modes when sharing render passes across both view configurations.
- */
-public final class MSFTFirstPersonObserver {
-
- /** The extension specification version. */
- public static final int XR_MSFT_first_person_observer_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_MSFT_FIRST_PERSON_OBSERVER_EXTENSION_NAME = "XR_MSFT_first_person_observer";
-
- /** Extends {@code XrViewConfigurationType}. */
- public static final int XR_VIEW_CONFIGURATION_TYPE_SECONDARY_MONO_FIRST_PERSON_OBSERVER_MSFT = 1000054000;
+ */
+public final class MSFTFirstPersonObserver {
+
+ /** The extension specification version. */
+ public static final int XR_MSFT_first_person_observer_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_MSFT_FIRST_PERSON_OBSERVER_EXTENSION_NAME = "XR_MSFT_first_person_observer";
+
+ /** Extends {@code XrViewConfigurationType}. */
+ public static final int XR_VIEW_CONFIGURATION_TYPE_SECONDARY_MONO_FIRST_PERSON_OBSERVER_MSFT = 1000054000;
- private MSFTFirstPersonObserver() {}
+ private MSFTFirstPersonObserver() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHandInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHandInteraction.java
index 21ad19a7da..37cec01416 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHandInteraction.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHandInteraction.java
@@ -4,20 +4,20 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_MSFT_hand_interaction extension.
*
* This extension defines a new interaction profile for near interactions and far interactions driven by directly-tracked hands.
- */
-public final class MSFTHandInteraction {
-
- /** The extension specification version. */
- public static final int XR_MSFT_hand_interaction_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_MSFT_HAND_INTERACTION_EXTENSION_NAME = "XR_MSFT_hand_interaction";
+ */
+public final class MSFTHandInteraction {
+
+ /** The extension specification version. */
+ public static final int XR_MSFT_hand_interaction_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_MSFT_HAND_INTERACTION_EXTENSION_NAME = "XR_MSFT_hand_interaction";
- private MSFTHandInteraction() {}
+ private MSFTHandInteraction() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHandTrackingMesh.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHandTrackingMesh.java
index ffcec1a96b..859cc2ed67 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHandTrackingMesh.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHandTrackingMesh.java
@@ -4,30 +4,30 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_MSFT_hand_tracking_mesh extension.
*
* This extension enables hand tracking inputs represented as a dynamic hand mesh. It enables applications to render hands in XR experiences and interact with virtual objects using hand meshes.
*
* The application must also enable the {@link EXTHandTracking XR_EXT_hand_tracking} extension in order to use this extension.
- */
-public class MSFTHandTrackingMesh {
-
- /** The extension specification version. */
- public static final int XR_MSFT_hand_tracking_mesh_SPEC_VERSION = 4;
-
- /** The extension name. */
- public static final String XR_MSFT_HAND_TRACKING_MESH_EXTENSION_NAME = "XR_MSFT_hand_tracking_mesh";
-
+ */
+public class MSFTHandTrackingMesh {
+
+ /** The extension specification version. */
+ public static final int XR_MSFT_hand_tracking_mesh_SPEC_VERSION = 4;
+
+ /** The extension name. */
+ public static final String XR_MSFT_HAND_TRACKING_MESH_EXTENSION_NAME = "XR_MSFT_hand_tracking_mesh";
+
/**
* Extends {@code XrStructureType}.
*
@@ -40,14 +40,14 @@ public class MSFTHandTrackingMesh {
* {@link #XR_TYPE_HAND_MESH_MSFT TYPE_HAND_MESH_MSFT}
* {@link #XR_TYPE_HAND_POSE_TYPE_INFO_MSFT TYPE_HAND_POSE_TYPE_INFO_MSFT}
*
- */
+ */
public static final int
- XR_TYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT = 1000052000,
- XR_TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT = 1000052001,
- XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT = 1000052002,
- XR_TYPE_HAND_MESH_MSFT = 1000052003,
- XR_TYPE_HAND_POSE_TYPE_INFO_MSFT = 1000052004;
-
+ XR_TYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT = 1000052000,
+ XR_TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT = 1000052001,
+ XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT = 1000052002,
+ XR_TYPE_HAND_MESH_MSFT = 1000052003,
+ XR_TYPE_HAND_POSE_TYPE_INFO_MSFT = 1000052004;
+
/**
* XrHandPoseTypeMSFT - Describe type of input hand pose
*
@@ -67,26 +67,26 @@ public class MSFTHandTrackingMesh {
* See Also
*
* {@link XrHandMeshSpaceCreateInfoMSFT}, {@link XrHandMeshUpdateInfoMSFT}, {@link XrHandPoseTypeInfoMSFT}, {@link XrHandTrackerCreateInfoEXT}, {@link EXTHandTracking#xrCreateHandTrackerEXT CreateHandTrackerEXT}
- */
+ */
public static final int
- XR_HAND_POSE_TYPE_TRACKED_MSFT = 0,
- XR_HAND_POSE_TYPE_REFERENCE_OPEN_PALM_MSFT = 1;
+ XR_HAND_POSE_TYPE_TRACKED_MSFT = 0,
+ XR_HAND_POSE_TYPE_REFERENCE_OPEN_PALM_MSFT = 1;
protected MSFTHandTrackingMesh() {
throw new UnsupportedOperationException();
- }
-
- // --- [ xrCreateHandMeshSpaceMSFT ] ---
-
- /** Unsafe version of: {@link #xrCreateHandMeshSpaceMSFT CreateHandMeshSpaceMSFT} */
- public static int nxrCreateHandMeshSpaceMSFT(XrHandTrackerEXT handTracker, long createInfo, long space) {
- long __functionAddress = handTracker.getCapabilities().xrCreateHandMeshSpaceMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(handTracker.address(), createInfo, space, __functionAddress);
- }
-
+ }
+
+ // --- [ xrCreateHandMeshSpaceMSFT ] ---
+
+ /** Unsafe version of: {@link #xrCreateHandMeshSpaceMSFT CreateHandMeshSpaceMSFT} */
+ public static int nxrCreateHandMeshSpaceMSFT(XrHandTrackerEXT handTracker, long createInfo, long space) {
+ long __functionAddress = handTracker.getCapabilities().xrCreateHandMeshSpaceMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(handTracker.address(), createInfo, space, __functionAddress);
+ }
+
/**
* Create a space for hand mesh tracking.
*
@@ -151,26 +151,26 @@ public static int nxrCreateHandMeshSpaceMSFT(XrHandTrackerEXT handTracker, long
* @param handTracker an {@code XrHandTrackerEXT} handle previously created with the {@link EXTHandTracking#xrCreateHandTrackerEXT CreateHandTrackerEXT} function.
* @param createInfo the {@link XrHandMeshSpaceCreateInfoMSFT} used to specify the hand mesh space.
* @param space the returned {@code XrSpace} handle of the new hand mesh space.
- */
- @NativeType("XrResult")
- public static int xrCreateHandMeshSpaceMSFT(XrHandTrackerEXT handTracker, @NativeType("XrHandMeshSpaceCreateInfoMSFT const *") XrHandMeshSpaceCreateInfoMSFT createInfo, @NativeType("XrSpace *") PointerBuffer space) {
- if (CHECKS) {
- check(space, 1);
- }
- return nxrCreateHandMeshSpaceMSFT(handTracker, createInfo.address(), memAddress(space));
- }
-
- // --- [ xrUpdateHandMeshMSFT ] ---
-
- /** Unsafe version of: {@link #xrUpdateHandMeshMSFT UpdateHandMeshMSFT} */
- public static int nxrUpdateHandMeshMSFT(XrHandTrackerEXT handTracker, long updateInfo, long handMesh) {
- long __functionAddress = handTracker.getCapabilities().xrUpdateHandMeshMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(handTracker.address(), updateInfo, handMesh, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrCreateHandMeshSpaceMSFT(XrHandTrackerEXT handTracker, @NativeType("XrHandMeshSpaceCreateInfoMSFT const *") XrHandMeshSpaceCreateInfoMSFT createInfo, @NativeType("XrSpace *") PointerBuffer space) {
+ if (CHECKS) {
+ check(space, 1);
+ }
+ return nxrCreateHandMeshSpaceMSFT(handTracker, createInfo.address(), memAddress(space));
+ }
+
+ // --- [ xrUpdateHandMeshMSFT ] ---
+
+ /** Unsafe version of: {@link #xrUpdateHandMeshMSFT UpdateHandMeshMSFT} */
+ public static int nxrUpdateHandMeshMSFT(XrHandTrackerEXT handTracker, long updateInfo, long handMesh) {
+ long __functionAddress = handTracker.getCapabilities().xrUpdateHandMeshMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(handTracker.address(), updateInfo, handMesh, __functionAddress);
+ }
+
/**
* Update hand mesh buffers.
*
@@ -228,10 +228,10 @@ public static int nxrUpdateHandMeshMSFT(XrHandTrackerEXT handTracker, long updat
* @param handTracker an {@code XrHandTrackerEXT} handle previously created with {@link EXTHandTracking#xrCreateHandTrackerEXT CreateHandTrackerEXT}.
* @param updateInfo an {@link XrHandMeshUpdateInfoMSFT} which contains information to query the hand mesh.
* @param handMesh an {@link XrHandMeshMSFT} structure to receive the updates of hand mesh data.
- */
- @NativeType("XrResult")
- public static int xrUpdateHandMeshMSFT(XrHandTrackerEXT handTracker, @NativeType("XrHandMeshUpdateInfoMSFT const *") XrHandMeshUpdateInfoMSFT updateInfo, @NativeType("XrHandMeshMSFT *") XrHandMeshMSFT handMesh) {
- return nxrUpdateHandMeshMSFT(handTracker, updateInfo.address(), handMesh.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrUpdateHandMeshMSFT(XrHandTrackerEXT handTracker, @NativeType("XrHandMeshUpdateInfoMSFT const *") XrHandMeshUpdateInfoMSFT updateInfo, @NativeType("XrHandMeshMSFT *") XrHandMeshMSFT handMesh) {
+ return nxrUpdateHandMeshMSFT(handTracker, updateInfo.address(), handMesh.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHolographicWindowAttachment.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHolographicWindowAttachment.java
index cb2bb8a730..577c87fa41 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHolographicWindowAttachment.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHolographicWindowAttachment.java
@@ -4,23 +4,23 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_MSFT_holographic_window_attachment extension.
*
* This extension enables the runtime to attach to app-provided HolographicSpace and CoreWindow WinRT objects when an {@code XrSession} is created. Applications may use this extension to create and control the CoreWindow/App View objects, allowing the app to subscribe to keyboard input events and react to activation event arguments. These events and data would otherwise be inaccessible if the application simply managed the app state and lifetime exclusively through the OpenXR API. This extension is only valid to use where an application can create a CoreWindow, such as UWP applications on the HoloLens.
- */
-public final class MSFTHolographicWindowAttachment {
-
- /** The extension specification version. */
- public static final int XR_MSFT_holographic_window_attachment_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_MSFT_HOLOGRAPHIC_WINDOW_ATTACHMENT_EXTENSION_NAME = "XR_MSFT_holographic_window_attachment";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT = 1000063000;
+ */
+public final class MSFTHolographicWindowAttachment {
+
+ /** The extension specification version. */
+ public static final int XR_MSFT_holographic_window_attachment_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_MSFT_HOLOGRAPHIC_WINDOW_ATTACHMENT_EXTENSION_NAME = "XR_MSFT_holographic_window_attachment";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT = 1000063000;
- private MSFTHolographicWindowAttachment() {}
+ private MSFTHolographicWindowAttachment() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTPerceptionAnchorInterop.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTPerceptionAnchorInterop.java
index 527f86fc78..1ce13f06ec 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTPerceptionAnchorInterop.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTPerceptionAnchorInterop.java
@@ -4,44 +4,44 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_MSFT_perception_anchor_interop extension.
*
* This extension supports conversion between {@code XrSpatialAnchorMSFT} and Windows.Perception.Spatial.SpatialAnchor. An application can use this extension to persist spatial anchors on the Windows device through SpatialAnchorStore or transfer spatial anchors between devices through SpatialAnchorTransferManager.
- */
-public class MSFTPerceptionAnchorInterop {
-
- /** The extension specification version. */
- public static final int XR_MSFT_perception_anchor_interop_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_MSFT_PERCEPTION_ANCHOR_INTEROP_EXTENSION_NAME = "XR_MSFT_perception_anchor_interop";
+ */
+public class MSFTPerceptionAnchorInterop {
+
+ /** The extension specification version. */
+ public static final int XR_MSFT_perception_anchor_interop_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_MSFT_PERCEPTION_ANCHOR_INTEROP_EXTENSION_NAME = "XR_MSFT_perception_anchor_interop";
protected MSFTPerceptionAnchorInterop() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrCreateSpatialAnchorFromPerceptionAnchorMSFT ] ---
+
+ /** Unsafe version of: {@link #xrCreateSpatialAnchorFromPerceptionAnchorMSFT CreateSpatialAnchorFromPerceptionAnchorMSFT} */
+ public static int nxrCreateSpatialAnchorFromPerceptionAnchorMSFT(XrSession session, long perceptionAnchor, long anchor) {
+ long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorFromPerceptionAnchorMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ check(perceptionAnchor);
+ }
+ return callPPPI(session.address(), perceptionAnchor, anchor, __functionAddress);
+ }
- // --- [ xrCreateSpatialAnchorFromPerceptionAnchorMSFT ] ---
-
- /** Unsafe version of: {@link #xrCreateSpatialAnchorFromPerceptionAnchorMSFT CreateSpatialAnchorFromPerceptionAnchorMSFT} */
- public static int nxrCreateSpatialAnchorFromPerceptionAnchorMSFT(XrSession session, long perceptionAnchor, long anchor) {
- long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorFromPerceptionAnchorMSFT;
- if (CHECKS) {
- check(__functionAddress);
- check(perceptionAnchor);
- }
- return callPPPI(session.address(), perceptionAnchor, anchor, __functionAddress);
- }
-
/**
* Create an {@code XrSpatialAnchorMSFT} from a Windows SpatialAnchor pointer.
*
@@ -95,26 +95,26 @@ public static int nxrCreateSpatialAnchorFromPerceptionAnchorMSFT(XrSession sessi
* @param session the specified {@code XrSession}.
* @param perceptionAnchor an IUnknown pointer to a Windows.Perception.Spatial.SpatialAnchor object.
* @param anchor a pointer to {@code XrSpatialAnchorMSFT} to receive the returned anchor handle.
- */
- @NativeType("XrResult")
- public static int xrCreateSpatialAnchorFromPerceptionAnchorMSFT(XrSession session, @NativeType("IUnknown *") long perceptionAnchor, @NativeType("XrSpatialAnchorMSFT *") PointerBuffer anchor) {
- if (CHECKS) {
- check(anchor, 1);
- }
- return nxrCreateSpatialAnchorFromPerceptionAnchorMSFT(session, perceptionAnchor, memAddress(anchor));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrCreateSpatialAnchorFromPerceptionAnchorMSFT(XrSession session, @NativeType("IUnknown *") long perceptionAnchor, @NativeType("XrSpatialAnchorMSFT *") PointerBuffer anchor) {
+ if (CHECKS) {
+ check(anchor, 1);
+ }
+ return nxrCreateSpatialAnchorFromPerceptionAnchorMSFT(session, perceptionAnchor, memAddress(anchor));
+ }
+
+ // --- [ xrTryGetPerceptionAnchorFromSpatialAnchorMSFT ] ---
+
+ /** Unsafe version of: {@link #xrTryGetPerceptionAnchorFromSpatialAnchorMSFT TryGetPerceptionAnchorFromSpatialAnchorMSFT} */
+ public static int nxrTryGetPerceptionAnchorFromSpatialAnchorMSFT(XrSession session, XrSpatialAnchorMSFT anchor, long perceptionAnchor) {
+ long __functionAddress = session.getCapabilities().xrTryGetPerceptionAnchorFromSpatialAnchorMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), anchor.address(), perceptionAnchor, __functionAddress);
+ }
- // --- [ xrTryGetPerceptionAnchorFromSpatialAnchorMSFT ] ---
-
- /** Unsafe version of: {@link #xrTryGetPerceptionAnchorFromSpatialAnchorMSFT TryGetPerceptionAnchorFromSpatialAnchorMSFT} */
- public static int nxrTryGetPerceptionAnchorFromSpatialAnchorMSFT(XrSession session, XrSpatialAnchorMSFT anchor, long perceptionAnchor) {
- long __functionAddress = session.getCapabilities().xrTryGetPerceptionAnchorFromSpatialAnchorMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), anchor.address(), perceptionAnchor, __functionAddress);
- }
-
/**
* Convert an {@code XrSpatialAnchorMSFT} to a Windows SpatialAnchor.
*
@@ -166,13 +166,13 @@ public static int nxrTryGetPerceptionAnchorFromSpatialAnchorMSFT(XrSession sessi
* @param session the specified {@code XrSession}.
* @param anchor a valid {@code XrSpatialAnchorMSFT} handle.
* @param perceptionAnchor a valid pointer to IUnknown pointer to receive the output Windows.Perception.Spatial.SpatialAnchor object.
- */
- @NativeType("XrResult")
- public static int xrTryGetPerceptionAnchorFromSpatialAnchorMSFT(XrSession session, XrSpatialAnchorMSFT anchor, @NativeType("IUnknown **") PointerBuffer perceptionAnchor) {
- if (CHECKS) {
- check(perceptionAnchor, 1);
- }
- return nxrTryGetPerceptionAnchorFromSpatialAnchorMSFT(session, anchor, memAddress(perceptionAnchor));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrTryGetPerceptionAnchorFromSpatialAnchorMSFT(XrSession session, XrSpatialAnchorMSFT anchor, @NativeType("IUnknown **") PointerBuffer perceptionAnchor) {
+ if (CHECKS) {
+ check(perceptionAnchor, 1);
+ }
+ return nxrTryGetPerceptionAnchorFromSpatialAnchorMSFT(session, anchor, memAddress(perceptionAnchor));
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSceneUnderstanding.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSceneUnderstanding.java
index 09a1014b7e..cf195aaf76 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSceneUnderstanding.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSceneUnderstanding.java
@@ -4,19 +4,19 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_MSFT_scene_understanding extension.
*
@@ -42,15 +42,15 @@
* Get properties of scene components using {@link #xrGetSceneComponentsMSFT GetSceneComponentsMSFT}.
* Locate scene components using {@link #xrLocateSceneComponentsMSFT LocateSceneComponentsMSFT}.
*
- */
-public class MSFTSceneUnderstanding {
-
- /** The extension specification version. */
- public static final int XR_MSFT_scene_understanding_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_MSFT_SCENE_UNDERSTANDING_EXTENSION_NAME = "XR_MSFT_scene_understanding";
-
+ */
+public class MSFTSceneUnderstanding {
+
+ /** The extension specification version. */
+ public static final int XR_MSFT_scene_understanding_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_MSFT_SCENE_UNDERSTANDING_EXTENSION_NAME = "XR_MSFT_scene_understanding";
+
/**
* Extends {@code XrObjectType}.
*
@@ -60,11 +60,11 @@ public class MSFTSceneUnderstanding {
* {@link #XR_OBJECT_TYPE_SCENE_OBSERVER_MSFT OBJECT_TYPE_SCENE_OBSERVER_MSFT}
* {@link #XR_OBJECT_TYPE_SCENE_MSFT OBJECT_TYPE_SCENE_MSFT}
*
- */
+ */
public static final int
- XR_OBJECT_TYPE_SCENE_OBSERVER_MSFT = 1000097000,
- XR_OBJECT_TYPE_SCENE_MSFT = 1000097001;
-
+ XR_OBJECT_TYPE_SCENE_OBSERVER_MSFT = 1000097000,
+ XR_OBJECT_TYPE_SCENE_MSFT = 1000097001;
+
/**
* Extends {@code XrStructureType}.
*
@@ -91,28 +91,28 @@ public class MSFTSceneUnderstanding {
* {@link #XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT TYPE_SCENE_MESH_INDICES_UINT32_MSFT}
* {@link #XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT TYPE_SCENE_MESH_INDICES_UINT16_MSFT}
*
- */
+ */
public static final int
- XR_TYPE_SCENE_OBSERVER_CREATE_INFO_MSFT = 1000097000,
- XR_TYPE_SCENE_CREATE_INFO_MSFT = 1000097001,
- XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT = 1000097002,
- XR_TYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFT = 1000097003,
- XR_TYPE_SCENE_COMPONENTS_MSFT = 1000097004,
- XR_TYPE_SCENE_COMPONENTS_GET_INFO_MSFT = 1000097005,
- XR_TYPE_SCENE_COMPONENT_LOCATIONS_MSFT = 1000097006,
- XR_TYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFT = 1000097007,
- XR_TYPE_SCENE_OBJECTS_MSFT = 1000097008,
- XR_TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT = 1000097009,
- XR_TYPE_SCENE_OBJECT_TYPES_FILTER_INFO_MSFT = 1000097010,
- XR_TYPE_SCENE_PLANES_MSFT = 1000097011,
- XR_TYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT = 1000097012,
- XR_TYPE_SCENE_MESHES_MSFT = 1000097013,
- XR_TYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFT = 1000097014,
- XR_TYPE_SCENE_MESH_BUFFERS_MSFT = 1000097015,
- XR_TYPE_SCENE_MESH_VERTEX_BUFFER_MSFT = 1000097016,
- XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT = 1000097017,
- XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT = 1000097018;
-
+ XR_TYPE_SCENE_OBSERVER_CREATE_INFO_MSFT = 1000097000,
+ XR_TYPE_SCENE_CREATE_INFO_MSFT = 1000097001,
+ XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT = 1000097002,
+ XR_TYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFT = 1000097003,
+ XR_TYPE_SCENE_COMPONENTS_MSFT = 1000097004,
+ XR_TYPE_SCENE_COMPONENTS_GET_INFO_MSFT = 1000097005,
+ XR_TYPE_SCENE_COMPONENT_LOCATIONS_MSFT = 1000097006,
+ XR_TYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFT = 1000097007,
+ XR_TYPE_SCENE_OBJECTS_MSFT = 1000097008,
+ XR_TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT = 1000097009,
+ XR_TYPE_SCENE_OBJECT_TYPES_FILTER_INFO_MSFT = 1000097010,
+ XR_TYPE_SCENE_PLANES_MSFT = 1000097011,
+ XR_TYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT = 1000097012,
+ XR_TYPE_SCENE_MESHES_MSFT = 1000097013,
+ XR_TYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFT = 1000097014,
+ XR_TYPE_SCENE_MESH_BUFFERS_MSFT = 1000097015,
+ XR_TYPE_SCENE_MESH_VERTEX_BUFFER_MSFT = 1000097016,
+ XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT = 1000097017,
+ XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT = 1000097018;
+
/**
* Extends {@code XrResult}.
*
@@ -126,15 +126,15 @@ public class MSFTSceneUnderstanding {
* {@link #XR_ERROR_SCENE_COMPUTE_FEATURE_INCOMPATIBLE_MSFT ERROR_SCENE_COMPUTE_FEATURE_INCOMPATIBLE_MSFT}
* {@link #XR_ERROR_SCENE_COMPUTE_CONSISTENCY_MISMATCH_MSFT ERROR_SCENE_COMPUTE_CONSISTENCY_MISMATCH_MSFT}
*
- */
+ */
public static final int
- XR_ERROR_COMPUTE_NEW_SCENE_NOT_COMPLETED_MSFT = -1000097000,
- XR_ERROR_SCENE_COMPONENT_ID_INVALID_MSFT = -1000097001,
- XR_ERROR_SCENE_COMPONENT_TYPE_MISMATCH_MSFT = -1000097002,
- XR_ERROR_SCENE_MESH_BUFFER_ID_INVALID_MSFT = -1000097003,
- XR_ERROR_SCENE_COMPUTE_FEATURE_INCOMPATIBLE_MSFT = -1000097004,
- XR_ERROR_SCENE_COMPUTE_CONSISTENCY_MISMATCH_MSFT = -1000097005;
-
+ XR_ERROR_COMPUTE_NEW_SCENE_NOT_COMPLETED_MSFT = -1000097000,
+ XR_ERROR_SCENE_COMPONENT_ID_INVALID_MSFT = -1000097001,
+ XR_ERROR_SCENE_COMPONENT_TYPE_MISMATCH_MSFT = -1000097002,
+ XR_ERROR_SCENE_MESH_BUFFER_ID_INVALID_MSFT = -1000097003,
+ XR_ERROR_SCENE_COMPUTE_FEATURE_INCOMPATIBLE_MSFT = -1000097004,
+ XR_ERROR_SCENE_COMPUTE_CONSISTENCY_MISMATCH_MSFT = -1000097005;
+
/**
* XrSceneComputeFeatureMSFT - Scene compute feature
*
@@ -159,13 +159,13 @@ public class MSFTSceneUnderstanding {
* See Also
*
* {@link XrNewSceneComputeInfoMSFT}, {@link #xrComputeNewSceneMSFT ComputeNewSceneMSFT}, {@link #xrEnumerateSceneComputeFeaturesMSFT EnumerateSceneComputeFeaturesMSFT}
- */
+ */
public static final int
- XR_SCENE_COMPUTE_FEATURE_PLANE_MSFT = 1,
- XR_SCENE_COMPUTE_FEATURE_PLANE_MESH_MSFT = 2,
- XR_SCENE_COMPUTE_FEATURE_VISUAL_MESH_MSFT = 3,
- XR_SCENE_COMPUTE_FEATURE_COLLIDER_MESH_MSFT = 4;
-
+ XR_SCENE_COMPUTE_FEATURE_PLANE_MSFT = 1,
+ XR_SCENE_COMPUTE_FEATURE_PLANE_MESH_MSFT = 2,
+ XR_SCENE_COMPUTE_FEATURE_VISUAL_MESH_MSFT = 3,
+ XR_SCENE_COMPUTE_FEATURE_COLLIDER_MESH_MSFT = 4;
+
/**
* XrSceneComputeConsistencyMSFT - Scene compute consistency
*
@@ -180,12 +180,12 @@ public class MSFTSceneUnderstanding {
* See Also
*
* {@link XrNewSceneComputeInfoMSFT}, {@link #xrComputeNewSceneMSFT ComputeNewSceneMSFT}
- */
+ */
public static final int
- XR_SCENE_COMPUTE_CONSISTENCY_SNAPSHOT_COMPLETE_MSFT = 1,
- XR_SCENE_COMPUTE_CONSISTENCY_SNAPSHOT_INCOMPLETE_FAST_MSFT = 2,
- XR_SCENE_COMPUTE_CONSISTENCY_OCCLUSION_OPTIMIZED_MSFT = 3;
-
+ XR_SCENE_COMPUTE_CONSISTENCY_SNAPSHOT_COMPLETE_MSFT = 1,
+ XR_SCENE_COMPUTE_CONSISTENCY_SNAPSHOT_INCOMPLETE_FAST_MSFT = 2,
+ XR_SCENE_COMPUTE_CONSISTENCY_OCCLUSION_OPTIMIZED_MSFT = 3;
+
/**
* XrMeshComputeLodMSFT - Mesh compute level of detail enumeration
*
@@ -201,13 +201,13 @@ public class MSFTSceneUnderstanding {
* See Also
*
* {@link XrVisualMeshComputeLodInfoMSFT}
- */
+ */
public static final int
- XR_MESH_COMPUTE_LOD_COARSE_MSFT = 1,
- XR_MESH_COMPUTE_LOD_MEDIUM_MSFT = 2,
- XR_MESH_COMPUTE_LOD_FINE_MSFT = 3,
- XR_MESH_COMPUTE_LOD_UNLIMITED_MSFT = 4;
-
+ XR_MESH_COMPUTE_LOD_COARSE_MSFT = 1,
+ XR_MESH_COMPUTE_LOD_MEDIUM_MSFT = 2,
+ XR_MESH_COMPUTE_LOD_FINE_MSFT = 3,
+ XR_MESH_COMPUTE_LOD_UNLIMITED_MSFT = 4;
+
/**
* XrSceneComponentTypeMSFT - Scene component type
*
@@ -224,14 +224,14 @@ public class MSFTSceneUnderstanding {
* See Also
*
* {@link XrSceneComponentMSFT}, {@link XrSceneComponentsGetInfoMSFT}
- */
+ */
public static final int
- XR_SCENE_COMPONENT_TYPE_INVALID_MSFT = -1,
- XR_SCENE_COMPONENT_TYPE_OBJECT_MSFT = 1,
- XR_SCENE_COMPONENT_TYPE_PLANE_MSFT = 2,
- XR_SCENE_COMPONENT_TYPE_VISUAL_MESH_MSFT = 3,
- XR_SCENE_COMPONENT_TYPE_COLLIDER_MESH_MSFT = 4;
-
+ XR_SCENE_COMPONENT_TYPE_INVALID_MSFT = -1,
+ XR_SCENE_COMPONENT_TYPE_OBJECT_MSFT = 1,
+ XR_SCENE_COMPONENT_TYPE_PLANE_MSFT = 2,
+ XR_SCENE_COMPONENT_TYPE_VISUAL_MESH_MSFT = 3,
+ XR_SCENE_COMPONENT_TYPE_COLLIDER_MESH_MSFT = 4;
+
/**
* XrSceneObjectTypeMSFT - Scene object type
*
@@ -250,16 +250,16 @@ public class MSFTSceneUnderstanding {
* See Also
*
* {@link XrNewSceneComputeInfoMSFT}, {@link XrSceneObjectMSFT}, {@link XrSceneObjectTypesFilterInfoMSFT}
- */
+ */
public static final int
- XR_SCENE_OBJECT_TYPE_UNCATEGORIZED_MSFT = -1,
- XR_SCENE_OBJECT_TYPE_BACKGROUND_MSFT = 1,
- XR_SCENE_OBJECT_TYPE_WALL_MSFT = 2,
- XR_SCENE_OBJECT_TYPE_FLOOR_MSFT = 3,
- XR_SCENE_OBJECT_TYPE_CEILING_MSFT = 4,
- XR_SCENE_OBJECT_TYPE_PLATFORM_MSFT = 5,
- XR_SCENE_OBJECT_TYPE_INFERRED_MSFT = 6;
-
+ XR_SCENE_OBJECT_TYPE_UNCATEGORIZED_MSFT = -1,
+ XR_SCENE_OBJECT_TYPE_BACKGROUND_MSFT = 1,
+ XR_SCENE_OBJECT_TYPE_WALL_MSFT = 2,
+ XR_SCENE_OBJECT_TYPE_FLOOR_MSFT = 3,
+ XR_SCENE_OBJECT_TYPE_CEILING_MSFT = 4,
+ XR_SCENE_OBJECT_TYPE_PLATFORM_MSFT = 5,
+ XR_SCENE_OBJECT_TYPE_INFERRED_MSFT = 6;
+
/**
* XrScenePlaneAlignmentTypeMSFT - Scene plane alignment type
*
@@ -274,12 +274,12 @@ public class MSFTSceneUnderstanding {
* See Also
*
* {@link XrScenePlaneAlignmentFilterInfoMSFT}, {@link XrScenePlaneMSFT}
- */
+ */
public static final int
- XR_SCENE_PLANE_ALIGNMENT_TYPE_NON_ORTHOGONAL_MSFT = 0,
- XR_SCENE_PLANE_ALIGNMENT_TYPE_HORIZONTAL_MSFT = 1,
- XR_SCENE_PLANE_ALIGNMENT_TYPE_VERTICAL_MSFT = 2;
-
+ XR_SCENE_PLANE_ALIGNMENT_TYPE_NON_ORTHOGONAL_MSFT = 0,
+ XR_SCENE_PLANE_ALIGNMENT_TYPE_HORIZONTAL_MSFT = 1,
+ XR_SCENE_PLANE_ALIGNMENT_TYPE_VERTICAL_MSFT = 2;
+
/**
* XrSceneComputeStateMSFT - Scene compute state type
*
@@ -295,32 +295,32 @@ public class MSFTSceneUnderstanding {
* See Also
*
* {@link #xrGetSceneComputeStateMSFT GetSceneComputeStateMSFT}
- */
+ */
public static final int
- XR_SCENE_COMPUTE_STATE_NONE_MSFT = 0,
- XR_SCENE_COMPUTE_STATE_UPDATING_MSFT = 1,
- XR_SCENE_COMPUTE_STATE_COMPLETED_MSFT = 2,
- XR_SCENE_COMPUTE_STATE_COMPLETED_WITH_ERROR_MSFT = 3;
+ XR_SCENE_COMPUTE_STATE_NONE_MSFT = 0,
+ XR_SCENE_COMPUTE_STATE_UPDATING_MSFT = 1,
+ XR_SCENE_COMPUTE_STATE_COMPLETED_MSFT = 2,
+ XR_SCENE_COMPUTE_STATE_COMPLETED_WITH_ERROR_MSFT = 3;
protected MSFTSceneUnderstanding() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrEnumerateSceneComputeFeaturesMSFT ] ---
- // --- [ xrEnumerateSceneComputeFeaturesMSFT ] ---
-
/**
* Unsafe version of: {@link #xrEnumerateSceneComputeFeaturesMSFT EnumerateSceneComputeFeaturesMSFT}
*
* @param featureCapacityInput the capacity of the array, or 0 to indicate a request to retrieve the required capacity.
- */
- public static int nxrEnumerateSceneComputeFeaturesMSFT(XrInstance instance, long systemId, int featureCapacityInput, long featureCountOutput, long features) {
- long __functionAddress = instance.getCapabilities().xrEnumerateSceneComputeFeaturesMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJPPI(instance.address(), systemId, featureCapacityInput, featureCountOutput, features, __functionAddress);
- }
-
+ */
+ public static int nxrEnumerateSceneComputeFeaturesMSFT(XrInstance instance, long systemId, int featureCapacityInput, long featureCountOutput, long features) {
+ long __functionAddress = instance.getCapabilities().xrEnumerateSceneComputeFeaturesMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJPPI(instance.address(), systemId, featureCapacityInput, featureCountOutput, features, __functionAddress);
+ }
+
/**
* Enumerates scene compute features.
*
@@ -375,26 +375,26 @@ public static int nxrEnumerateSceneComputeFeaturesMSFT(XrInstance instance, long
* @param systemId the {@code XrSystemId} whose scene compute features will be enumerated.
* @param featureCountOutput a pointer to the count of scene compute features, or a pointer to the required capacity in the case that {@code featureCapacityInput} is insufficient.
* @param features an array of {@code XrSceneComputeFeatureMSFT}.
- */
- @NativeType("XrResult")
- public static int xrEnumerateSceneComputeFeaturesMSFT(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("uint32_t *") IntBuffer featureCountOutput, @Nullable @NativeType("XrSceneComputeFeatureMSFT *") IntBuffer features) {
- if (CHECKS) {
- check(featureCountOutput, 1);
- }
- return nxrEnumerateSceneComputeFeaturesMSFT(instance, systemId, remainingSafe(features), memAddress(featureCountOutput), memAddressSafe(features));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrEnumerateSceneComputeFeaturesMSFT(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("uint32_t *") IntBuffer featureCountOutput, @Nullable @NativeType("XrSceneComputeFeatureMSFT *") IntBuffer features) {
+ if (CHECKS) {
+ check(featureCountOutput, 1);
+ }
+ return nxrEnumerateSceneComputeFeaturesMSFT(instance, systemId, remainingSafe(features), memAddress(featureCountOutput), memAddressSafe(features));
+ }
+
+ // --- [ xrCreateSceneObserverMSFT ] ---
+
+ /** Unsafe version of: {@link #xrCreateSceneObserverMSFT CreateSceneObserverMSFT} */
+ public static int nxrCreateSceneObserverMSFT(XrSession session, long createInfo, long sceneObserver) {
+ long __functionAddress = session.getCapabilities().xrCreateSceneObserverMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), createInfo, sceneObserver, __functionAddress);
+ }
- // --- [ xrCreateSceneObserverMSFT ] ---
-
- /** Unsafe version of: {@link #xrCreateSceneObserverMSFT CreateSceneObserverMSFT} */
- public static int nxrCreateSceneObserverMSFT(XrSession session, long createInfo, long sceneObserver) {
- long __functionAddress = session.getCapabilities().xrCreateSceneObserverMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), createInfo, sceneObserver, __functionAddress);
- }
-
/**
* Create a scene observer handle.
*
@@ -445,17 +445,17 @@ public static int nxrCreateSceneObserverMSFT(XrSession session, long createInfo,
* @param session an {@code XrSession} in which the scene observer will be active.
* @param createInfo exists for extensibility purposes, it is {@code NULL} or a pointer to a valid {@link XrSceneObserverCreateInfoMSFT} structure.
* @param sceneObserver the returned {@code XrSceneObserverMSFT} handle.
- */
- @NativeType("XrResult")
- public static int xrCreateSceneObserverMSFT(XrSession session, @Nullable @NativeType("XrSceneObserverCreateInfoMSFT const *") XrSceneObserverCreateInfoMSFT createInfo, @NativeType("XrSceneObserverMSFT *") PointerBuffer sceneObserver) {
- if (CHECKS) {
- check(sceneObserver, 1);
- }
- return nxrCreateSceneObserverMSFT(session, memAddressSafe(createInfo), memAddress(sceneObserver));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrCreateSceneObserverMSFT(XrSession session, @Nullable @NativeType("XrSceneObserverCreateInfoMSFT const *") XrSceneObserverCreateInfoMSFT createInfo, @NativeType("XrSceneObserverMSFT *") PointerBuffer sceneObserver) {
+ if (CHECKS) {
+ check(sceneObserver, 1);
+ }
+ return nxrCreateSceneObserverMSFT(session, memAddressSafe(createInfo), memAddress(sceneObserver));
+ }
+
+ // --- [ xrDestroySceneObserverMSFT ] ---
- // --- [ xrDestroySceneObserverMSFT ] ---
-
/**
* Destroy a scene observer handle.
*
@@ -499,27 +499,27 @@ public static int xrCreateSceneObserverMSFT(XrSession session, @Nullable @Native
* {@link #xrCreateSceneObserverMSFT CreateSceneObserverMSFT}
*
* @param sceneObserver an {@code XrSceneObserverMSFT} previously created by {@link #xrCreateSceneObserverMSFT CreateSceneObserverMSFT}.
- */
- @NativeType("XrResult")
- public static int xrDestroySceneObserverMSFT(XrSceneObserverMSFT sceneObserver) {
- long __functionAddress = sceneObserver.getCapabilities().xrDestroySceneObserverMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(sceneObserver.address(), __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrDestroySceneObserverMSFT(XrSceneObserverMSFT sceneObserver) {
+ long __functionAddress = sceneObserver.getCapabilities().xrDestroySceneObserverMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(sceneObserver.address(), __functionAddress);
+ }
+
+ // --- [ xrCreateSceneMSFT ] ---
+
+ /** Unsafe version of: {@link #xrCreateSceneMSFT CreateSceneMSFT} */
+ public static int nxrCreateSceneMSFT(XrSceneObserverMSFT sceneObserver, long createInfo, long scene) {
+ long __functionAddress = sceneObserver.getCapabilities().xrCreateSceneMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(sceneObserver.address(), createInfo, scene, __functionAddress);
+ }
- // --- [ xrCreateSceneMSFT ] ---
-
- /** Unsafe version of: {@link #xrCreateSceneMSFT CreateSceneMSFT} */
- public static int nxrCreateSceneMSFT(XrSceneObserverMSFT sceneObserver, long createInfo, long scene) {
- long __functionAddress = sceneObserver.getCapabilities().xrCreateSceneMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(sceneObserver.address(), createInfo, scene, __functionAddress);
- }
-
/**
* Create a scene handle.
*
@@ -575,17 +575,17 @@ public static int nxrCreateSceneMSFT(XrSceneObserverMSFT sceneObserver, long cre
* @param sceneObserver a handle to an {@code XrSceneObserverMSFT}.
* @param createInfo exists for extensibility purposes, it is {@code NULL} or a pointer to a valid {@link XrSceneCreateInfoMSFT} structure.
* @param scene the returned {@code XrSceneMSFT} handle.
- */
- @NativeType("XrResult")
- public static int xrCreateSceneMSFT(XrSceneObserverMSFT sceneObserver, @Nullable @NativeType("XrSceneCreateInfoMSFT const *") XrSceneCreateInfoMSFT createInfo, @NativeType("XrSceneMSFT *") PointerBuffer scene) {
- if (CHECKS) {
- check(scene, 1);
- }
- return nxrCreateSceneMSFT(sceneObserver, memAddressSafe(createInfo), memAddress(scene));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrCreateSceneMSFT(XrSceneObserverMSFT sceneObserver, @Nullable @NativeType("XrSceneCreateInfoMSFT const *") XrSceneCreateInfoMSFT createInfo, @NativeType("XrSceneMSFT *") PointerBuffer scene) {
+ if (CHECKS) {
+ check(scene, 1);
+ }
+ return nxrCreateSceneMSFT(sceneObserver, memAddressSafe(createInfo), memAddress(scene));
+ }
+
+ // --- [ xrDestroySceneMSFT ] ---
- // --- [ xrDestroySceneMSFT ] ---
-
/**
* Destroy a scene handle.
*
@@ -629,28 +629,28 @@ public static int xrCreateSceneMSFT(XrSceneObserverMSFT sceneObserver, @Nullable
* {@link #xrCreateSceneMSFT CreateSceneMSFT}
*
* @param scene an {@code XrSceneMSFT} previously created by {@link #xrCreateSceneMSFT CreateSceneMSFT}.
- */
- @NativeType("XrResult")
- public static int xrDestroySceneMSFT(XrSceneMSFT scene) {
- long __functionAddress = scene.getCapabilities().xrDestroySceneMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(scene.address(), __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrDestroySceneMSFT(XrSceneMSFT scene) {
+ long __functionAddress = scene.getCapabilities().xrDestroySceneMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(scene.address(), __functionAddress);
+ }
+
+ // --- [ xrComputeNewSceneMSFT ] ---
+
+ /** Unsafe version of: {@link #xrComputeNewSceneMSFT ComputeNewSceneMSFT} */
+ public static int nxrComputeNewSceneMSFT(XrSceneObserverMSFT sceneObserver, long computeInfo) {
+ long __functionAddress = sceneObserver.getCapabilities().xrComputeNewSceneMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrNewSceneComputeInfoMSFT.validate(computeInfo);
+ }
+ return callPPI(sceneObserver.address(), computeInfo, __functionAddress);
+ }
- // --- [ xrComputeNewSceneMSFT ] ---
-
- /** Unsafe version of: {@link #xrComputeNewSceneMSFT ComputeNewSceneMSFT} */
- public static int nxrComputeNewSceneMSFT(XrSceneObserverMSFT sceneObserver, long computeInfo) {
- long __functionAddress = sceneObserver.getCapabilities().xrComputeNewSceneMSFT;
- if (CHECKS) {
- check(__functionAddress);
- XrNewSceneComputeInfoMSFT.validate(computeInfo);
- }
- return callPPI(sceneObserver.address(), computeInfo, __functionAddress);
- }
-
/**
* Compute new scene.
*
@@ -774,23 +774,23 @@ public static int nxrComputeNewSceneMSFT(XrSceneObserverMSFT sceneObserver, long
*
* @param sceneObserver a handle to an {@code XrSceneObserverMSFT}.
* @param computeInfo a pointer to an {@link XrNewSceneComputeInfoMSFT} structure.
- */
- @NativeType("XrResult")
- public static int xrComputeNewSceneMSFT(XrSceneObserverMSFT sceneObserver, @NativeType("XrNewSceneComputeInfoMSFT const *") XrNewSceneComputeInfoMSFT computeInfo) {
- return nxrComputeNewSceneMSFT(sceneObserver, computeInfo.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrComputeNewSceneMSFT(XrSceneObserverMSFT sceneObserver, @NativeType("XrNewSceneComputeInfoMSFT const *") XrNewSceneComputeInfoMSFT computeInfo) {
+ return nxrComputeNewSceneMSFT(sceneObserver, computeInfo.address());
+ }
+
+ // --- [ xrGetSceneComputeStateMSFT ] ---
+
+ /** Unsafe version of: {@link #xrGetSceneComputeStateMSFT GetSceneComputeStateMSFT} */
+ public static int nxrGetSceneComputeStateMSFT(XrSceneObserverMSFT sceneObserver, long state) {
+ long __functionAddress = sceneObserver.getCapabilities().xrGetSceneComputeStateMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(sceneObserver.address(), state, __functionAddress);
+ }
- // --- [ xrGetSceneComputeStateMSFT ] ---
-
- /** Unsafe version of: {@link #xrGetSceneComputeStateMSFT GetSceneComputeStateMSFT} */
- public static int nxrGetSceneComputeStateMSFT(XrSceneObserverMSFT sceneObserver, long state) {
- long __functionAddress = sceneObserver.getCapabilities().xrGetSceneComputeStateMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(sceneObserver.address(), state, __functionAddress);
- }
-
/**
* Get the scene compute state.
*
@@ -833,26 +833,26 @@ public static int nxrGetSceneComputeStateMSFT(XrSceneObserverMSFT sceneObserver,
*
* @param sceneObserver a handle to an {@code XrSceneObserverMSFT}.
* @param state the returned {@code XrSceneComputeStateMSFT} value.
- */
- @NativeType("XrResult")
- public static int xrGetSceneComputeStateMSFT(XrSceneObserverMSFT sceneObserver, @NativeType("XrSceneComputeStateMSFT *") IntBuffer state) {
- if (CHECKS) {
- check(state, 1);
- }
- return nxrGetSceneComputeStateMSFT(sceneObserver, memAddress(state));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetSceneComputeStateMSFT(XrSceneObserverMSFT sceneObserver, @NativeType("XrSceneComputeStateMSFT *") IntBuffer state) {
+ if (CHECKS) {
+ check(state, 1);
+ }
+ return nxrGetSceneComputeStateMSFT(sceneObserver, memAddress(state));
+ }
+
+ // --- [ xrGetSceneComponentsMSFT ] ---
+
+ /** Unsafe version of: {@link #xrGetSceneComponentsMSFT GetSceneComponentsMSFT} */
+ public static int nxrGetSceneComponentsMSFT(XrSceneMSFT scene, long getInfo, long components) {
+ long __functionAddress = scene.getCapabilities().xrGetSceneComponentsMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(scene.address(), getInfo, components, __functionAddress);
+ }
- // --- [ xrGetSceneComponentsMSFT ] ---
-
- /** Unsafe version of: {@link #xrGetSceneComponentsMSFT GetSceneComponentsMSFT} */
- public static int nxrGetSceneComponentsMSFT(XrSceneMSFT scene, long getInfo, long components) {
- long __functionAddress = scene.getCapabilities().xrGetSceneComponentsMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(scene.address(), getInfo, components, __functionAddress);
- }
-
/**
* Get scene components from a scene.
*
@@ -910,24 +910,24 @@ public static int nxrGetSceneComponentsMSFT(XrSceneMSFT scene, long getInfo, lon
* @param scene an {@code XrSceneMSFT} previously created by {@link #xrCreateSceneMSFT CreateSceneMSFT}.
* @param getInfo a pointer to an {@link XrSceneComponentsGetInfoMSFT} structure.
* @param components the {@link XrSceneComponentsMSFT} output structure.
- */
- @NativeType("XrResult")
- public static int xrGetSceneComponentsMSFT(XrSceneMSFT scene, @NativeType("XrSceneComponentsGetInfoMSFT const *") XrSceneComponentsGetInfoMSFT getInfo, @NativeType("XrSceneComponentsMSFT *") XrSceneComponentsMSFT components) {
- return nxrGetSceneComponentsMSFT(scene, getInfo.address(), components.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetSceneComponentsMSFT(XrSceneMSFT scene, @NativeType("XrSceneComponentsGetInfoMSFT const *") XrSceneComponentsGetInfoMSFT getInfo, @NativeType("XrSceneComponentsMSFT *") XrSceneComponentsMSFT components) {
+ return nxrGetSceneComponentsMSFT(scene, getInfo.address(), components.address());
+ }
+
+ // --- [ xrLocateSceneComponentsMSFT ] ---
+
+ /** Unsafe version of: {@link #xrLocateSceneComponentsMSFT LocateSceneComponentsMSFT} */
+ public static int nxrLocateSceneComponentsMSFT(XrSceneMSFT scene, long locateInfo, long locations) {
+ long __functionAddress = scene.getCapabilities().xrLocateSceneComponentsMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrSceneComponentsLocateInfoMSFT.validate(locateInfo);
+ }
+ return callPPPI(scene.address(), locateInfo, locations, __functionAddress);
+ }
- // --- [ xrLocateSceneComponentsMSFT ] ---
-
- /** Unsafe version of: {@link #xrLocateSceneComponentsMSFT LocateSceneComponentsMSFT} */
- public static int nxrLocateSceneComponentsMSFT(XrSceneMSFT scene, long locateInfo, long locations) {
- long __functionAddress = scene.getCapabilities().xrLocateSceneComponentsMSFT;
- if (CHECKS) {
- check(__functionAddress);
- XrSceneComponentsLocateInfoMSFT.validate(locateInfo);
- }
- return callPPPI(scene.address(), locateInfo, locations, __functionAddress);
- }
-
/**
* Locate scene components.
*
@@ -988,23 +988,23 @@ public static int nxrLocateSceneComponentsMSFT(XrSceneMSFT scene, long locateInf
* @param scene a handle to an {@code XrSceneMSFT}.
* @param locateInfo a pointer to {@link XrSceneComponentsLocateInfoMSFT} describing information to locate scene components.
* @param locations a pointer to {@link XrSceneComponentLocationsMSFT} receiving the returned scene component locations.
- */
- @NativeType("XrResult")
- public static int xrLocateSceneComponentsMSFT(XrSceneMSFT scene, @NativeType("XrSceneComponentsLocateInfoMSFT const *") XrSceneComponentsLocateInfoMSFT locateInfo, @NativeType("XrSceneComponentLocationsMSFT *") XrSceneComponentLocationsMSFT locations) {
- return nxrLocateSceneComponentsMSFT(scene, locateInfo.address(), locations.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrLocateSceneComponentsMSFT(XrSceneMSFT scene, @NativeType("XrSceneComponentsLocateInfoMSFT const *") XrSceneComponentsLocateInfoMSFT locateInfo, @NativeType("XrSceneComponentLocationsMSFT *") XrSceneComponentLocationsMSFT locations) {
+ return nxrLocateSceneComponentsMSFT(scene, locateInfo.address(), locations.address());
+ }
+
+ // --- [ xrGetSceneMeshBuffersMSFT ] ---
+
+ /** Unsafe version of: {@link #xrGetSceneMeshBuffersMSFT GetSceneMeshBuffersMSFT} */
+ public static int nxrGetSceneMeshBuffersMSFT(XrSceneMSFT scene, long getInfo, long buffers) {
+ long __functionAddress = scene.getCapabilities().xrGetSceneMeshBuffersMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(scene.address(), getInfo, buffers, __functionAddress);
+ }
- // --- [ xrGetSceneMeshBuffersMSFT ] ---
-
- /** Unsafe version of: {@link #xrGetSceneMeshBuffersMSFT GetSceneMeshBuffersMSFT} */
- public static int nxrGetSceneMeshBuffersMSFT(XrSceneMSFT scene, long getInfo, long buffers) {
- long __functionAddress = scene.getCapabilities().xrGetSceneMeshBuffersMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(scene.address(), getInfo, buffers, __functionAddress);
- }
-
/**
* Get scene mesh buffers.
*
@@ -1075,10 +1075,10 @@ public static int nxrGetSceneMeshBuffersMSFT(XrSceneMSFT scene, long getInfo, lo
* @param scene an {@code XrSceneMSFT} previously created by {@link #xrCreateSceneMSFT CreateSceneMSFT}.
* @param getInfo a pointer to an {@link XrSceneMeshBuffersGetInfoMSFT} structure.
* @param buffers a pointer to an {@link XrSceneMeshBuffersMSFT} structure for reading a scene mesh buffer.
- */
- @NativeType("XrResult")
- public static int xrGetSceneMeshBuffersMSFT(XrSceneMSFT scene, @NativeType("XrSceneMeshBuffersGetInfoMSFT const *") XrSceneMeshBuffersGetInfoMSFT getInfo, @NativeType("XrSceneMeshBuffersMSFT *") XrSceneMeshBuffersMSFT buffers) {
- return nxrGetSceneMeshBuffersMSFT(scene, getInfo.address(), buffers.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetSceneMeshBuffersMSFT(XrSceneMSFT scene, @NativeType("XrSceneMeshBuffersGetInfoMSFT const *") XrSceneMeshBuffersGetInfoMSFT getInfo, @NativeType("XrSceneMeshBuffersMSFT *") XrSceneMeshBuffersMSFT buffers) {
+ return nxrGetSceneMeshBuffersMSFT(scene, getInfo.address(), buffers.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSceneUnderstandingSerialization.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSceneUnderstandingSerialization.java
index e71f94d196..3b984e2d8a 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSceneUnderstandingSerialization.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSceneUnderstandingSerialization.java
@@ -4,30 +4,30 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_MSFT_scene_understanding_serialization extension.
*
* This extension extends the scene understanding extension and enables scenes to be serialized or deserialized. It enables computing a new scene into a serialized binary stream and it enables deserializing a binary stream into an {@code XrSceneMSFT} handle.
- */
-public class MSFTSceneUnderstandingSerialization {
-
- /** The extension specification version. */
- public static final int XR_MSFT_scene_understanding_serialization_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_MSFT_SCENE_UNDERSTANDING_SERIALIZATION_EXTENSION_NAME = "XR_MSFT_scene_understanding_serialization";
-
+ */
+public class MSFTSceneUnderstandingSerialization {
+
+ /** The extension specification version. */
+ public static final int XR_MSFT_scene_understanding_serialization_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_MSFT_SCENE_UNDERSTANDING_SERIALIZATION_EXTENSION_NAME = "XR_MSFT_scene_understanding_serialization";
+
/**
* Extends {@code XrStructureType}.
*
@@ -37,32 +37,32 @@ public class MSFTSceneUnderstandingSerialization {
* {@link #XR_TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT}
* {@link #XR_TYPE_SCENE_DESERIALIZE_INFO_MSFT TYPE_SCENE_DESERIALIZE_INFO_MSFT}
*
- */
+ */
public static final int
- XR_TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT = 1000098000,
- XR_TYPE_SCENE_DESERIALIZE_INFO_MSFT = 1000098001;
-
- /** Extends {@code XrSceneComputeFeatureMSFT}. */
- public static final int XR_SCENE_COMPUTE_FEATURE_SERIALIZE_SCENE_MSFT = 1000098000;
-
- /** Extends {@code XrSceneComponentTypeMSFT}. */
- public static final int XR_SCENE_COMPONENT_TYPE_SERIALIZED_SCENE_FRAGMENT_MSFT = 1000098000;
+ XR_TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT = 1000098000,
+ XR_TYPE_SCENE_DESERIALIZE_INFO_MSFT = 1000098001;
+
+ /** Extends {@code XrSceneComputeFeatureMSFT}. */
+ public static final int XR_SCENE_COMPUTE_FEATURE_SERIALIZE_SCENE_MSFT = 1000098000;
+
+ /** Extends {@code XrSceneComponentTypeMSFT}. */
+ public static final int XR_SCENE_COMPONENT_TYPE_SERIALIZED_SCENE_FRAGMENT_MSFT = 1000098000;
protected MSFTSceneUnderstandingSerialization() {
throw new UnsupportedOperationException();
- }
-
- // --- [ xrDeserializeSceneMSFT ] ---
-
- /** Unsafe version of: {@link #xrDeserializeSceneMSFT DeserializeSceneMSFT} */
- public static int nxrDeserializeSceneMSFT(XrSceneObserverMSFT sceneObserver, long deserializeInfo) {
- long __functionAddress = sceneObserver.getCapabilities().xrDeserializeSceneMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(sceneObserver.address(), deserializeInfo, __functionAddress);
- }
-
+ }
+
+ // --- [ xrDeserializeSceneMSFT ] ---
+
+ /** Unsafe version of: {@link #xrDeserializeSceneMSFT DeserializeSceneMSFT} */
+ public static int nxrDeserializeSceneMSFT(XrSceneObserverMSFT sceneObserver, long deserializeInfo) {
+ long __functionAddress = sceneObserver.getCapabilities().xrDeserializeSceneMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(sceneObserver.address(), deserializeInfo, __functionAddress);
+ }
+
/**
* Deserialize scene.
*
@@ -120,27 +120,27 @@ public static int nxrDeserializeSceneMSFT(XrSceneObserverMSFT sceneObserver, lon
*
* @param sceneObserver a handle to an {@code XrSceneObserverMSFT} previously created with {@link MSFTSceneUnderstanding#xrCreateSceneObserverMSFT CreateSceneObserverMSFT}.
* @param deserializeInfo a pointer to an {@link XrSceneDeserializeInfoMSFT} structure.
- */
- @NativeType("XrResult")
- public static int xrDeserializeSceneMSFT(XrSceneObserverMSFT sceneObserver, @NativeType("XrSceneDeserializeInfoMSFT const *") XrSceneDeserializeInfoMSFT deserializeInfo) {
- return nxrDeserializeSceneMSFT(sceneObserver, deserializeInfo.address());
- }
-
- // --- [ xrGetSerializedSceneFragmentDataMSFT ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrDeserializeSceneMSFT(XrSceneObserverMSFT sceneObserver, @NativeType("XrSceneDeserializeInfoMSFT const *") XrSceneDeserializeInfoMSFT deserializeInfo) {
+ return nxrDeserializeSceneMSFT(sceneObserver, deserializeInfo.address());
+ }
+
+ // --- [ xrGetSerializedSceneFragmentDataMSFT ] ---
+
/**
* Unsafe version of: {@link #xrGetSerializedSceneFragmentDataMSFT GetSerializedSceneFragmentDataMSFT}
*
* @param countInput the number of bytes that should be read.
- */
- public static int nxrGetSerializedSceneFragmentDataMSFT(XrSceneMSFT scene, long getInfo, int countInput, long readOutput, long buffer) {
- long __functionAddress = scene.getCapabilities().xrGetSerializedSceneFragmentDataMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPPI(scene.address(), getInfo, countInput, readOutput, buffer, __functionAddress);
- }
-
+ */
+ public static int nxrGetSerializedSceneFragmentDataMSFT(XrSceneMSFT scene, long getInfo, int countInput, long readOutput, long buffer) {
+ long __functionAddress = scene.getCapabilities().xrGetSerializedSceneFragmentDataMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPPI(scene.address(), getInfo, countInput, readOutput, buffer, __functionAddress);
+ }
+
/**
* Get serialized scene fragment data.
*
@@ -202,13 +202,13 @@ public static int nxrGetSerializedSceneFragmentDataMSFT(XrSceneMSFT scene, long
* @param getInfo a pointer to an {@link XrSerializedSceneFragmentDataGetInfoMSFT} structure.
* @param readOutput the number of bytes read.
* @param buffer a pointer to the buffer where the data should be copied.
- */
- @NativeType("XrResult")
- public static int xrGetSerializedSceneFragmentDataMSFT(XrSceneMSFT scene, @NativeType("XrSerializedSceneFragmentDataGetInfoMSFT const *") XrSerializedSceneFragmentDataGetInfoMSFT getInfo, @NativeType("uint32_t *") IntBuffer readOutput, @Nullable @NativeType("uint8_t *") ByteBuffer buffer) {
- if (CHECKS) {
- check(readOutput, 1);
- }
- return nxrGetSerializedSceneFragmentDataMSFT(scene, getInfo.address(), remainingSafe(buffer), memAddress(readOutput), memAddressSafe(buffer));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetSerializedSceneFragmentDataMSFT(XrSceneMSFT scene, @NativeType("XrSerializedSceneFragmentDataGetInfoMSFT const *") XrSerializedSceneFragmentDataGetInfoMSFT getInfo, @NativeType("uint32_t *") IntBuffer readOutput, @Nullable @NativeType("uint8_t *") ByteBuffer buffer) {
+ if (CHECKS) {
+ check(readOutput, 1);
+ }
+ return nxrGetSerializedSceneFragmentDataMSFT(scene, getInfo.address(), remainingSafe(buffer), memAddress(readOutput), memAddressSafe(buffer));
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSecondaryViewConfiguration.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSecondaryViewConfiguration.java
index 35e3895dc9..429549f086 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSecondaryViewConfiguration.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSecondaryViewConfiguration.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_MSFT_secondary_view_configuration extension.
*
@@ -22,15 +22,15 @@
* Locate the secondary view configuration views using the {@link XR10#xrLocateViews LocateViews} function with the active secondary view configuration type.
* Submit the composition layers using the swapchain images for an active secondary view configuration using the {@link XR10#xrEndFrame EndFrame} function with the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT} chained extension structure.
*
- */
-public final class MSFTSecondaryViewConfiguration {
-
- /** The extension specification version. */
- public static final int XR_MSFT_secondary_view_configuration_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_MSFT_SECONDARY_VIEW_CONFIGURATION_EXTENSION_NAME = "XR_MSFT_secondary_view_configuration";
-
+ */
+public final class MSFTSecondaryViewConfiguration {
+
+ /** The extension specification version. */
+ public static final int XR_MSFT_secondary_view_configuration_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_MSFT_SECONDARY_VIEW_CONFIGURATION_EXTENSION_NAME = "XR_MSFT_secondary_view_configuration";
+
/**
* Extends {@code XrStructureType}.
*
@@ -44,18 +44,18 @@ public final class MSFTSecondaryViewConfiguration {
* {@link #XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT}
* {@link #XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT}
*
- */
+ */
public static final int
- XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT = 1000053000,
- XR_TYPE_SECONDARY_VIEW_CONFIGURATION_STATE_MSFT = 1000053001,
- XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT = 1000053002,
- XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT = 1000053003,
- XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT = 1000053004,
- XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT = 1000053005;
-
- /** Extends {@code XrResult}. */
- public static final int XR_ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT = -1000053000;
+ XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT = 1000053000,
+ XR_TYPE_SECONDARY_VIEW_CONFIGURATION_STATE_MSFT = 1000053001,
+ XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT = 1000053002,
+ XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT = 1000053003,
+ XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT = 1000053004,
+ XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT = 1000053005;
+
+ /** Extends {@code XrResult}. */
+ public static final int XR_ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT = -1000053000;
- private MSFTSecondaryViewConfiguration() {}
+ private MSFTSecondaryViewConfiguration() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialAnchor.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialAnchor.java
index c6b389097d..ebb608e3f3 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialAnchor.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialAnchor.java
@@ -4,28 +4,28 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_MSFT_spatial_anchor extension.
*
* This extension allows an application to create a spatial anchor, an arbitrary freespace point in the user’s physical environment that will then be tracked by the runtime. The runtime should then adjust the position and orientation of that anchor’s origin over time as needed, independently of all other spaces and anchors, to ensure that it maintains its original mapping to the real world.
- */
-public class MSFTSpatialAnchor {
-
- /** The extension specification version. */
- public static final int XR_MSFT_spatial_anchor_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_MSFT_SPATIAL_ANCHOR_EXTENSION_NAME = "XR_MSFT_spatial_anchor";
-
+ */
+public class MSFTSpatialAnchor {
+
+ /** The extension specification version. */
+ public static final int XR_MSFT_spatial_anchor_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_MSFT_SPATIAL_ANCHOR_EXTENSION_NAME = "XR_MSFT_spatial_anchor";
+
/**
* Extends {@code XrStructureType}.
*
@@ -35,33 +35,33 @@ public class MSFTSpatialAnchor {
* {@link #XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT}
* {@link #XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT}
*
- */
+ */
public static final int
- XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT = 1000039000,
- XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT = 1000039001;
-
- /** Extends {@code XrObjectType}. */
- public static final int XR_OBJECT_TYPE_SPATIAL_ANCHOR_MSFT = 1000039000;
-
- /** Extends {@code XrResult}. */
- public static final int XR_ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT = -1000039001;
+ XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT = 1000039000,
+ XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT = 1000039001;
+
+ /** Extends {@code XrObjectType}. */
+ public static final int XR_OBJECT_TYPE_SPATIAL_ANCHOR_MSFT = 1000039000;
+
+ /** Extends {@code XrResult}. */
+ public static final int XR_ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT = -1000039001;
protected MSFTSpatialAnchor() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrCreateSpatialAnchorMSFT ] ---
+
+ /** Unsafe version of: {@link #xrCreateSpatialAnchorMSFT CreateSpatialAnchorMSFT} */
+ public static int nxrCreateSpatialAnchorMSFT(XrSession session, long createInfo, long anchor) {
+ long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrSpatialAnchorCreateInfoMSFT.validate(createInfo);
+ }
+ return callPPPI(session.address(), createInfo, anchor, __functionAddress);
+ }
- // --- [ xrCreateSpatialAnchorMSFT ] ---
-
- /** Unsafe version of: {@link #xrCreateSpatialAnchorMSFT CreateSpatialAnchorMSFT} */
- public static int nxrCreateSpatialAnchorMSFT(XrSession session, long createInfo, long anchor) {
- long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorMSFT;
- if (CHECKS) {
- check(__functionAddress);
- XrSpatialAnchorCreateInfoMSFT.validate(createInfo);
- }
- return callPPPI(session.address(), createInfo, anchor, __functionAddress);
- }
-
/**
* Creates a spatial anchor.
*
@@ -122,27 +122,27 @@ public static int nxrCreateSpatialAnchorMSFT(XrSession session, long createInfo,
* @param session a handle to an {@code XrSession}.
* @param createInfo a pointer to an {@link XrSpatialAnchorCreateInfoMSFT} structure containing information about how to create the anchor.
* @param anchor a pointer to a handle in which the created {@code XrSpatialAnchorMSFT} is returned.
- */
- @NativeType("XrResult")
- public static int xrCreateSpatialAnchorMSFT(XrSession session, @NativeType("XrSpatialAnchorCreateInfoMSFT const *") XrSpatialAnchorCreateInfoMSFT createInfo, @NativeType("XrSpatialAnchorMSFT *") PointerBuffer anchor) {
- if (CHECKS) {
- check(anchor, 1);
- }
- return nxrCreateSpatialAnchorMSFT(session, createInfo.address(), memAddress(anchor));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrCreateSpatialAnchorMSFT(XrSession session, @NativeType("XrSpatialAnchorCreateInfoMSFT const *") XrSpatialAnchorCreateInfoMSFT createInfo, @NativeType("XrSpatialAnchorMSFT *") PointerBuffer anchor) {
+ if (CHECKS) {
+ check(anchor, 1);
+ }
+ return nxrCreateSpatialAnchorMSFT(session, createInfo.address(), memAddress(anchor));
+ }
+
+ // --- [ xrCreateSpatialAnchorSpaceMSFT ] ---
+
+ /** Unsafe version of: {@link #xrCreateSpatialAnchorSpaceMSFT CreateSpatialAnchorSpaceMSFT} */
+ public static int nxrCreateSpatialAnchorSpaceMSFT(XrSession session, long createInfo, long space) {
+ long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorSpaceMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrSpatialAnchorSpaceCreateInfoMSFT.validate(createInfo);
+ }
+ return callPPPI(session.address(), createInfo, space, __functionAddress);
+ }
- // --- [ xrCreateSpatialAnchorSpaceMSFT ] ---
-
- /** Unsafe version of: {@link #xrCreateSpatialAnchorSpaceMSFT CreateSpatialAnchorSpaceMSFT} */
- public static int nxrCreateSpatialAnchorSpaceMSFT(XrSession session, long createInfo, long space) {
- long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorSpaceMSFT;
- if (CHECKS) {
- check(__functionAddress);
- XrSpatialAnchorSpaceCreateInfoMSFT.validate(createInfo);
- }
- return callPPPI(session.address(), createInfo, space, __functionAddress);
- }
-
/**
* Creates a space from a spatial anchor.
*
@@ -199,17 +199,17 @@ public static int nxrCreateSpatialAnchorSpaceMSFT(XrSession session, long create
* @param session a handle to an {@code XrSession}.
* @param createInfo a pointer to an {@link XrSpatialAnchorSpaceCreateInfoMSFT} structure containing information about how to create the anchor.
* @param space a pointer to a handle in which the created {@code XrSpace} is returned.
- */
- @NativeType("XrResult")
- public static int xrCreateSpatialAnchorSpaceMSFT(XrSession session, @NativeType("XrSpatialAnchorSpaceCreateInfoMSFT const *") XrSpatialAnchorSpaceCreateInfoMSFT createInfo, @NativeType("XrSpace *") PointerBuffer space) {
- if (CHECKS) {
- check(space, 1);
- }
- return nxrCreateSpatialAnchorSpaceMSFT(session, createInfo.address(), memAddress(space));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrCreateSpatialAnchorSpaceMSFT(XrSession session, @NativeType("XrSpatialAnchorSpaceCreateInfoMSFT const *") XrSpatialAnchorSpaceCreateInfoMSFT createInfo, @NativeType("XrSpace *") PointerBuffer space) {
+ if (CHECKS) {
+ check(space, 1);
+ }
+ return nxrCreateSpatialAnchorSpaceMSFT(session, createInfo.address(), memAddress(space));
+ }
+
+ // --- [ xrDestroySpatialAnchorMSFT ] ---
- // --- [ xrDestroySpatialAnchorMSFT ] ---
-
/**
* Destroys a spatial anchor.
*
@@ -257,14 +257,14 @@ public static int xrCreateSpatialAnchorSpaceMSFT(XrSession session, @NativeType(
* {@link #xrCreateSpatialAnchorMSFT CreateSpatialAnchorMSFT}
*
* @param anchor a handle to an {@code XrSpatialAnchorMSFT} previously created by {@link #xrCreateSpatialAnchorMSFT CreateSpatialAnchorMSFT}.
- */
- @NativeType("XrResult")
- public static int xrDestroySpatialAnchorMSFT(XrSpatialAnchorMSFT anchor) {
- long __functionAddress = anchor.getCapabilities().xrDestroySpatialAnchorMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(anchor.address(), __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrDestroySpatialAnchorMSFT(XrSpatialAnchorMSFT anchor) {
+ long __functionAddress = anchor.getCapabilities().xrDestroySpatialAnchorMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(anchor.address(), __functionAddress);
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialAnchorPersistence.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialAnchorPersistence.java
index a4398659c2..de28cf784f 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialAnchorPersistence.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialAnchorPersistence.java
@@ -4,35 +4,35 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_MSFT_spatial_anchor_persistence extension.
*
* This extension allows persistence and retrieval of spatial anchors sharing and localization across application sessions on a device. Spatial anchors persisted during an application session on a device will only be able to be retrieved during sessions of that same application on the same device. This extension requires {@link MSFTSpatialAnchor XR_MSFT_spatial_anchor} to also be enabled.
- */
-public class MSFTSpatialAnchorPersistence {
-
- /** The extension specification version. */
- public static final int XR_MSFT_spatial_anchor_persistence_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_MSFT_SPATIAL_ANCHOR_PERSISTENCE_EXTENSION_NAME = "XR_MSFT_spatial_anchor_persistence";
-
- /** Extends {@code XrObjectType}. */
- public static final int XR_OBJECT_TYPE_SPATIAL_ANCHOR_STORE_CONNECTION_MSFT = 1000142000;
-
+ */
+public class MSFTSpatialAnchorPersistence {
+
+ /** The extension specification version. */
+ public static final int XR_MSFT_spatial_anchor_persistence_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_MSFT_SPATIAL_ANCHOR_PERSISTENCE_EXTENSION_NAME = "XR_MSFT_spatial_anchor_persistence";
+
+ /** Extends {@code XrObjectType}. */
+ public static final int XR_OBJECT_TYPE_SPATIAL_ANCHOR_STORE_CONNECTION_MSFT = 1000142000;
+
/**
* Extends {@code XrStructureType}.
*
@@ -42,11 +42,11 @@ public class MSFTSpatialAnchorPersistence {
* {@link #XR_TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT}
* {@link #XR_TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT}
*
- */
+ */
public static final int
- XR_TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT = 1000142000,
- XR_TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT = 1000142001;
-
+ XR_TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT = 1000142000,
+ XR_TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT = 1000142001;
+
/**
* Extends {@code XrResult}.
*
@@ -56,29 +56,29 @@ public class MSFTSpatialAnchorPersistence {
* {@link #XR_ERROR_SPATIAL_ANCHOR_NAME_NOT_FOUND_MSFT ERROR_SPATIAL_ANCHOR_NAME_NOT_FOUND_MSFT}
* {@link #XR_ERROR_SPATIAL_ANCHOR_NAME_INVALID_MSFT ERROR_SPATIAL_ANCHOR_NAME_INVALID_MSFT}
*
- */
+ */
public static final int
- XR_ERROR_SPATIAL_ANCHOR_NAME_NOT_FOUND_MSFT = -1000142001,
- XR_ERROR_SPATIAL_ANCHOR_NAME_INVALID_MSFT = -1000142002;
-
- /** XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT */
- public static final int XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT = 256;
+ XR_ERROR_SPATIAL_ANCHOR_NAME_NOT_FOUND_MSFT = -1000142001,
+ XR_ERROR_SPATIAL_ANCHOR_NAME_INVALID_MSFT = -1000142002;
+
+ /** XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT */
+ public static final int XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT = 256;
protected MSFTSpatialAnchorPersistence() {
throw new UnsupportedOperationException();
- }
-
- // --- [ xrCreateSpatialAnchorStoreConnectionMSFT ] ---
-
- /** Unsafe version of: {@link #xrCreateSpatialAnchorStoreConnectionMSFT CreateSpatialAnchorStoreConnectionMSFT} */
- public static int nxrCreateSpatialAnchorStoreConnectionMSFT(XrSession session, long spatialAnchorStore) {
- long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorStoreConnectionMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(session.address(), spatialAnchorStore, __functionAddress);
- }
-
+ }
+
+ // --- [ xrCreateSpatialAnchorStoreConnectionMSFT ] ---
+
+ /** Unsafe version of: {@link #xrCreateSpatialAnchorStoreConnectionMSFT CreateSpatialAnchorStoreConnectionMSFT} */
+ public static int nxrCreateSpatialAnchorStoreConnectionMSFT(XrSession session, long spatialAnchorStore) {
+ long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorStoreConnectionMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(session.address(), spatialAnchorStore, __functionAddress);
+ }
+
/**
* Create a handle to track a connection to the spatial anchor store.
*
@@ -123,17 +123,17 @@ public static int nxrCreateSpatialAnchorStoreConnectionMSFT(XrSession session, l
*
* @param session the {@code XrSession} the anchor was created with.
* @param spatialAnchorStore a pointer to the {@code XrSpatialAnchorStoreConnectionMSFT} handle.
- */
- @NativeType("XrResult")
- public static int xrCreateSpatialAnchorStoreConnectionMSFT(XrSession session, @NativeType("XrSpatialAnchorStoreConnectionMSFT *") PointerBuffer spatialAnchorStore) {
- if (CHECKS) {
- check(spatialAnchorStore, 1);
- }
- return nxrCreateSpatialAnchorStoreConnectionMSFT(session, memAddress(spatialAnchorStore));
- }
-
- // --- [ xrDestroySpatialAnchorStoreConnectionMSFT ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrCreateSpatialAnchorStoreConnectionMSFT(XrSession session, @NativeType("XrSpatialAnchorStoreConnectionMSFT *") PointerBuffer spatialAnchorStore) {
+ if (CHECKS) {
+ check(spatialAnchorStore, 1);
+ }
+ return nxrCreateSpatialAnchorStoreConnectionMSFT(session, memAddress(spatialAnchorStore));
+ }
+
+ // --- [ xrDestroySpatialAnchorStoreConnectionMSFT ] ---
+
/**
* Destroys the anchor store handle.
*
@@ -174,28 +174,28 @@ public static int xrCreateSpatialAnchorStoreConnectionMSFT(XrSession session, @N
*
*
* @param spatialAnchorStore the {@code XrSpatialAnchorStoreConnectionMSFT} to be destroyed.
- */
- @NativeType("XrResult")
- public static int xrDestroySpatialAnchorStoreConnectionMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore) {
- long __functionAddress = spatialAnchorStore.getCapabilities().xrDestroySpatialAnchorStoreConnectionMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(spatialAnchorStore.address(), __functionAddress);
- }
-
- // --- [ xrPersistSpatialAnchorMSFT ] ---
-
- /** Unsafe version of: {@link #xrPersistSpatialAnchorMSFT PersistSpatialAnchorMSFT} */
- public static int nxrPersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, long spatialAnchorPersistenceInfo) {
- long __functionAddress = spatialAnchorStore.getCapabilities().xrPersistSpatialAnchorMSFT;
- if (CHECKS) {
- check(__functionAddress);
- XrSpatialAnchorPersistenceInfoMSFT.validate(spatialAnchorPersistenceInfo);
- }
- return callPPI(spatialAnchorStore.address(), spatialAnchorPersistenceInfo, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrDestroySpatialAnchorStoreConnectionMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore) {
+ long __functionAddress = spatialAnchorStore.getCapabilities().xrDestroySpatialAnchorStoreConnectionMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(spatialAnchorStore.address(), __functionAddress);
+ }
+
+ // --- [ xrPersistSpatialAnchorMSFT ] ---
+
+ /** Unsafe version of: {@link #xrPersistSpatialAnchorMSFT PersistSpatialAnchorMSFT} */
+ public static int nxrPersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, long spatialAnchorPersistenceInfo) {
+ long __functionAddress = spatialAnchorStore.getCapabilities().xrPersistSpatialAnchorMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrSpatialAnchorPersistenceInfoMSFT.validate(spatialAnchorPersistenceInfo);
+ }
+ return callPPI(spatialAnchorStore.address(), spatialAnchorPersistenceInfo, __functionAddress);
+ }
+
/**
* Persist the spatial anchor in the spatial anchor store.
*
@@ -242,27 +242,27 @@ public static int nxrPersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT
*
* @param spatialAnchorStore the {@code XrSpatialAnchorStoreConnectionMSFT} with which to persist the {@code spatialAnchor}.
* @param spatialAnchorPersistenceInfo a pointer to {@link XrSpatialAnchorPersistenceInfoMSFT} structure to specify the anchor and its name to persist.
- */
- @NativeType("XrResult")
- public static int xrPersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, @NativeType("XrSpatialAnchorPersistenceInfoMSFT const *") XrSpatialAnchorPersistenceInfoMSFT spatialAnchorPersistenceInfo) {
- return nxrPersistSpatialAnchorMSFT(spatialAnchorStore, spatialAnchorPersistenceInfo.address());
- }
-
- // --- [ xrEnumeratePersistedSpatialAnchorNamesMSFT ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrPersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, @NativeType("XrSpatialAnchorPersistenceInfoMSFT const *") XrSpatialAnchorPersistenceInfoMSFT spatialAnchorPersistenceInfo) {
+ return nxrPersistSpatialAnchorMSFT(spatialAnchorStore, spatialAnchorPersistenceInfo.address());
+ }
+
+ // --- [ xrEnumeratePersistedSpatialAnchorNamesMSFT ] ---
+
/**
* Unsafe version of: {@link #xrEnumeratePersistedSpatialAnchorNamesMSFT EnumeratePersistedSpatialAnchorNamesMSFT}
*
* @param spatialAnchorNamesCapacityInput the capacity of the {@code spatialAnchorNames} array, or 0 to indicate a request to retrieve the required capacity.
- */
- public static int nxrEnumeratePersistedSpatialAnchorNamesMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, int spatialAnchorNamesCapacityInput, long spatialAnchorNamesCountOutput, long persistedAnchorNames) {
- long __functionAddress = spatialAnchorStore.getCapabilities().xrEnumeratePersistedSpatialAnchorNamesMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(spatialAnchorStore.address(), spatialAnchorNamesCapacityInput, spatialAnchorNamesCountOutput, persistedAnchorNames, __functionAddress);
- }
-
+ */
+ public static int nxrEnumeratePersistedSpatialAnchorNamesMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, int spatialAnchorNamesCapacityInput, long spatialAnchorNamesCountOutput, long persistedAnchorNames) {
+ long __functionAddress = spatialAnchorStore.getCapabilities().xrEnumeratePersistedSpatialAnchorNamesMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(spatialAnchorStore.address(), spatialAnchorNamesCapacityInput, spatialAnchorNamesCountOutput, persistedAnchorNames, __functionAddress);
+ }
+
/**
* Enumerate the names of currently persisted spatial anchors in the spatial anchor store.
*
@@ -313,27 +313,27 @@ public static int nxrEnumeratePersistedSpatialAnchorNamesMSFT(XrSpatialAnchorSto
* @param spatialAnchorStore the {@code XrSpatialAnchorStoreConnectionMSFT} anchor store to perform the enumeration operation on.
* @param spatialAnchorNamesCountOutput filled in by the runtime with the count of anchor names written or the required capacity in the case that {@code spatialAnchorNamesCapacityInput} is insufficient.
* @param persistedAnchorNames a pointer to an array of {@link XrSpatialAnchorPersistenceNameMSFT} structures, but can be {@code NULL} if propertyCapacityInput is 0.
- */
- @NativeType("XrResult")
- public static int xrEnumeratePersistedSpatialAnchorNamesMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, @Nullable @NativeType("uint32_t *") IntBuffer spatialAnchorNamesCountOutput, @Nullable @NativeType("XrSpatialAnchorPersistenceNameMSFT *") XrSpatialAnchorPersistenceNameMSFT.Buffer persistedAnchorNames) {
- if (CHECKS) {
- checkSafe(spatialAnchorNamesCountOutput, 1);
- }
- return nxrEnumeratePersistedSpatialAnchorNamesMSFT(spatialAnchorStore, remainingSafe(persistedAnchorNames), memAddressSafe(spatialAnchorNamesCountOutput), memAddressSafe(persistedAnchorNames));
- }
-
- // --- [ xrCreateSpatialAnchorFromPersistedNameMSFT ] ---
-
- /** Unsafe version of: {@link #xrCreateSpatialAnchorFromPersistedNameMSFT CreateSpatialAnchorFromPersistedNameMSFT} */
- public static int nxrCreateSpatialAnchorFromPersistedNameMSFT(XrSession session, long spatialAnchorCreateInfo, long spatialAnchor) {
- long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorFromPersistedNameMSFT;
- if (CHECKS) {
- check(__functionAddress);
- XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.validate(spatialAnchorCreateInfo);
- }
- return callPPPI(session.address(), spatialAnchorCreateInfo, spatialAnchor, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrEnumeratePersistedSpatialAnchorNamesMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, @Nullable @NativeType("uint32_t *") IntBuffer spatialAnchorNamesCountOutput, @Nullable @NativeType("XrSpatialAnchorPersistenceNameMSFT *") XrSpatialAnchorPersistenceNameMSFT.Buffer persistedAnchorNames) {
+ if (CHECKS) {
+ checkSafe(spatialAnchorNamesCountOutput, 1);
+ }
+ return nxrEnumeratePersistedSpatialAnchorNamesMSFT(spatialAnchorStore, remainingSafe(persistedAnchorNames), memAddressSafe(spatialAnchorNamesCountOutput), memAddressSafe(persistedAnchorNames));
+ }
+
+ // --- [ xrCreateSpatialAnchorFromPersistedNameMSFT ] ---
+
+ /** Unsafe version of: {@link #xrCreateSpatialAnchorFromPersistedNameMSFT CreateSpatialAnchorFromPersistedNameMSFT} */
+ public static int nxrCreateSpatialAnchorFromPersistedNameMSFT(XrSession session, long spatialAnchorCreateInfo, long spatialAnchor) {
+ long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorFromPersistedNameMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.validate(spatialAnchorCreateInfo);
+ }
+ return callPPPI(session.address(), spatialAnchorCreateInfo, spatialAnchor, __functionAddress);
+ }
+
/**
* Create a spatial anchor from the spatial anchor store by name.
*
@@ -385,26 +385,26 @@ public static int nxrCreateSpatialAnchorFromPersistedNameMSFT(XrSession session,
* @param session a handle to an {@code XrSession} previously created with {@link XR10#xrCreateSession CreateSession}.
* @param spatialAnchorCreateInfo a pointer to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT}.
* @param spatialAnchor a pointer to an {@code XrSpatialAnchorMSFT} handle that will be set by the runtime on successful load.
- */
- @NativeType("XrResult")
- public static int xrCreateSpatialAnchorFromPersistedNameMSFT(XrSession session, @NativeType("XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT const *") XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT spatialAnchorCreateInfo, @NativeType("XrSpatialAnchorMSFT *") PointerBuffer spatialAnchor) {
- if (CHECKS) {
- check(spatialAnchor, 1);
- }
- return nxrCreateSpatialAnchorFromPersistedNameMSFT(session, spatialAnchorCreateInfo.address(), memAddress(spatialAnchor));
- }
-
- // --- [ xrUnpersistSpatialAnchorMSFT ] ---
-
- /** Unsafe version of: {@link #xrUnpersistSpatialAnchorMSFT UnpersistSpatialAnchorMSFT} */
- public static int nxrUnpersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, long spatialAnchorPersistenceName) {
- long __functionAddress = spatialAnchorStore.getCapabilities().xrUnpersistSpatialAnchorMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(spatialAnchorStore.address(), spatialAnchorPersistenceName, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrCreateSpatialAnchorFromPersistedNameMSFT(XrSession session, @NativeType("XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT const *") XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT spatialAnchorCreateInfo, @NativeType("XrSpatialAnchorMSFT *") PointerBuffer spatialAnchor) {
+ if (CHECKS) {
+ check(spatialAnchor, 1);
+ }
+ return nxrCreateSpatialAnchorFromPersistedNameMSFT(session, spatialAnchorCreateInfo.address(), memAddress(spatialAnchor));
+ }
+
+ // --- [ xrUnpersistSpatialAnchorMSFT ] ---
+
+ /** Unsafe version of: {@link #xrUnpersistSpatialAnchorMSFT UnpersistSpatialAnchorMSFT} */
+ public static int nxrUnpersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, long spatialAnchorPersistenceName) {
+ long __functionAddress = spatialAnchorStore.getCapabilities().xrUnpersistSpatialAnchorMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(spatialAnchorStore.address(), spatialAnchorPersistenceName, __functionAddress);
+ }
+
/**
* Removes an anchor from the store.
*
@@ -452,14 +452,14 @@ public static int nxrUnpersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMS
*
* @param spatialAnchorStore an {@code XrSpatialAnchorStoreConnectionMSFT} anchor store to perform the unpersist operation on.
* @param spatialAnchorPersistenceName a pointer to the {@link XrSpatialAnchorPersistenceNameMSFT}.
- */
- @NativeType("XrResult")
- public static int xrUnpersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, @NativeType("XrSpatialAnchorPersistenceNameMSFT const *") XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName) {
- return nxrUnpersistSpatialAnchorMSFT(spatialAnchorStore, spatialAnchorPersistenceName.address());
- }
-
- // --- [ xrClearSpatialAnchorStoreMSFT ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrUnpersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, @NativeType("XrSpatialAnchorPersistenceNameMSFT const *") XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName) {
+ return nxrUnpersistSpatialAnchorMSFT(spatialAnchorStore, spatialAnchorPersistenceName.address());
+ }
+
+ // --- [ xrClearSpatialAnchorStoreMSFT ] ---
+
/**
* Clear all spatial anchors from the spatial anchor store.
*
@@ -498,14 +498,14 @@ public static int xrUnpersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSF
*
*
* @param spatialAnchorStore {@code XrSpatialAnchorStoreConnectionMSFT} to perform the clear operation on.
- */
- @NativeType("XrResult")
- public static int xrClearSpatialAnchorStoreMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore) {
- long __functionAddress = spatialAnchorStore.getCapabilities().xrClearSpatialAnchorStoreMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(spatialAnchorStore.address(), __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrClearSpatialAnchorStoreMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore) {
+ long __functionAddress = spatialAnchorStore.getCapabilities().xrClearSpatialAnchorStoreMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(spatialAnchorStore.address(), __functionAddress);
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialGraphBridge.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialGraphBridge.java
index 1bcb200fbe..074b83d650 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialGraphBridge.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialGraphBridge.java
@@ -4,36 +4,36 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_MSFT_spatial_graph_bridge extension.
*
* This extension enables applications to interop between {@code XrSpace} handles and other Windows Mixed Reality device platform libraries or APIs. These libraries represent a spatially tracked point, also known as a "spatial graph node", with a GUID value. This extension enables applications to create {@code XrSpace} handles from spatial graph nodes. Applications can also try to get a spatial graph node from an {@code XrSpace} handle.
- */
-public class MSFTSpatialGraphBridge {
-
- /** The extension specification version. */
- public static final int XR_MSFT_spatial_graph_bridge_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_MSFT_SPATIAL_GRAPH_BRIDGE_EXTENSION_NAME = "XR_MSFT_spatial_graph_bridge";
-
- /** XR_GUID_SIZE_MSFT */
- public static final int XR_GUID_SIZE_MSFT = 16;
-
- /** Extends {@code XrObjectType}. */
- public static final int XR_OBJECT_TYPE_SPATIAL_GRAPH_NODE_BINDING_MSFT = 1000049000;
-
+ */
+public class MSFTSpatialGraphBridge {
+
+ /** The extension specification version. */
+ public static final int XR_MSFT_spatial_graph_bridge_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_MSFT_SPATIAL_GRAPH_BRIDGE_EXTENSION_NAME = "XR_MSFT_spatial_graph_bridge";
+
+ /** XR_GUID_SIZE_MSFT */
+ public static final int XR_GUID_SIZE_MSFT = 16;
+
+ /** Extends {@code XrObjectType}. */
+ public static final int XR_OBJECT_TYPE_SPATIAL_GRAPH_NODE_BINDING_MSFT = 1000049000;
+
/**
* Extends {@code XrStructureType}.
*
@@ -45,13 +45,13 @@ public class MSFTSpatialGraphBridge {
* {@link #XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT}
* {@link #XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT}
*
- */
+ */
public static final int
- XR_TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT = 1000049000,
- XR_TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT = 1000049001,
- XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT = 1000049002,
- XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT = 1000049003;
-
+ XR_TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT = 1000049000,
+ XR_TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT = 1000049001,
+ XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT = 1000049002,
+ XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT = 1000049003;
+
/**
* XrSpatialGraphNodeTypeMSFT - The type of spatial graph node.
*
@@ -66,26 +66,26 @@ public class MSFTSpatialGraphBridge {
* See Also
*
* {@link XrSpatialGraphNodeSpaceCreateInfoMSFT}, {@link #xrCreateSpatialGraphNodeSpaceMSFT CreateSpatialGraphNodeSpaceMSFT}
- */
+ */
public static final int
- XR_SPATIAL_GRAPH_NODE_TYPE_STATIC_MSFT = 1,
- XR_SPATIAL_GRAPH_NODE_TYPE_DYNAMIC_MSFT = 2;
+ XR_SPATIAL_GRAPH_NODE_TYPE_STATIC_MSFT = 1,
+ XR_SPATIAL_GRAPH_NODE_TYPE_DYNAMIC_MSFT = 2;
protected MSFTSpatialGraphBridge() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrCreateSpatialGraphNodeSpaceMSFT ] ---
+
+ /** Unsafe version of: {@link #xrCreateSpatialGraphNodeSpaceMSFT CreateSpatialGraphNodeSpaceMSFT} */
+ public static int nxrCreateSpatialGraphNodeSpaceMSFT(XrSession session, long createInfo, long space) {
+ long __functionAddress = session.getCapabilities().xrCreateSpatialGraphNodeSpaceMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), createInfo, space, __functionAddress);
+ }
- // --- [ xrCreateSpatialGraphNodeSpaceMSFT ] ---
-
- /** Unsafe version of: {@link #xrCreateSpatialGraphNodeSpaceMSFT CreateSpatialGraphNodeSpaceMSFT} */
- public static int nxrCreateSpatialGraphNodeSpaceMSFT(XrSession session, long createInfo, long space) {
- long __functionAddress = session.getCapabilities().xrCreateSpatialGraphNodeSpaceMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), createInfo, space, __functionAddress);
- }
-
/**
* Create an {@code XrSpace} from a spatial graph node.
*
@@ -136,27 +136,27 @@ public static int nxrCreateSpatialGraphNodeSpaceMSFT(XrSession session, long cre
* @param session the {@code XrSession} which will use the created space.
* @param createInfo an {@link XrSpatialGraphNodeSpaceCreateInfoMSFT} specifying the space to be created.
* @param space the returned {@code XrSpace} handle for the given spatial node ID.
- */
- @NativeType("XrResult")
- public static int xrCreateSpatialGraphNodeSpaceMSFT(XrSession session, @NativeType("XrSpatialGraphNodeSpaceCreateInfoMSFT const *") XrSpatialGraphNodeSpaceCreateInfoMSFT createInfo, @NativeType("XrSpace *") PointerBuffer space) {
- if (CHECKS) {
- check(space, 1);
- }
- return nxrCreateSpatialGraphNodeSpaceMSFT(session, createInfo.address(), memAddress(space));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrCreateSpatialGraphNodeSpaceMSFT(XrSession session, @NativeType("XrSpatialGraphNodeSpaceCreateInfoMSFT const *") XrSpatialGraphNodeSpaceCreateInfoMSFT createInfo, @NativeType("XrSpace *") PointerBuffer space) {
+ if (CHECKS) {
+ check(space, 1);
+ }
+ return nxrCreateSpatialGraphNodeSpaceMSFT(session, createInfo.address(), memAddress(space));
+ }
+
+ // --- [ xrTryCreateSpatialGraphStaticNodeBindingMSFT ] ---
+
+ /** Unsafe version of: {@link #xrTryCreateSpatialGraphStaticNodeBindingMSFT TryCreateSpatialGraphStaticNodeBindingMSFT} */
+ public static int nxrTryCreateSpatialGraphStaticNodeBindingMSFT(XrSession session, long createInfo, long nodeBinding) {
+ long __functionAddress = session.getCapabilities().xrTryCreateSpatialGraphStaticNodeBindingMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ XrSpatialGraphStaticNodeBindingCreateInfoMSFT.validate(createInfo);
+ }
+ return callPPPI(session.address(), createInfo, nodeBinding, __functionAddress);
+ }
- // --- [ xrTryCreateSpatialGraphStaticNodeBindingMSFT ] ---
-
- /** Unsafe version of: {@link #xrTryCreateSpatialGraphStaticNodeBindingMSFT TryCreateSpatialGraphStaticNodeBindingMSFT} */
- public static int nxrTryCreateSpatialGraphStaticNodeBindingMSFT(XrSession session, long createInfo, long nodeBinding) {
- long __functionAddress = session.getCapabilities().xrTryCreateSpatialGraphStaticNodeBindingMSFT;
- if (CHECKS) {
- check(__functionAddress);
- XrSpatialGraphStaticNodeBindingCreateInfoMSFT.validate(createInfo);
- }
- return callPPPI(session.address(), createInfo, nodeBinding, __functionAddress);
- }
-
/**
* Try create spatial graph static node binding.
*
@@ -213,17 +213,17 @@ public static int nxrTryCreateSpatialGraphStaticNodeBindingMSFT(XrSession sessio
* @param session the specified {@code XrSession}.
* @param createInfo the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT} input structure.
* @param nodeBinding the {@code XrSpatialGraphNodeBindingMSFT} output structure.
- */
- @NativeType("XrResult")
- public static int xrTryCreateSpatialGraphStaticNodeBindingMSFT(XrSession session, @NativeType("XrSpatialGraphStaticNodeBindingCreateInfoMSFT const *") XrSpatialGraphStaticNodeBindingCreateInfoMSFT createInfo, @NativeType("XrSpatialGraphNodeBindingMSFT *") PointerBuffer nodeBinding) {
- if (CHECKS) {
- check(nodeBinding, 1);
- }
- return nxrTryCreateSpatialGraphStaticNodeBindingMSFT(session, createInfo.address(), memAddress(nodeBinding));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrTryCreateSpatialGraphStaticNodeBindingMSFT(XrSession session, @NativeType("XrSpatialGraphStaticNodeBindingCreateInfoMSFT const *") XrSpatialGraphStaticNodeBindingCreateInfoMSFT createInfo, @NativeType("XrSpatialGraphNodeBindingMSFT *") PointerBuffer nodeBinding) {
+ if (CHECKS) {
+ check(nodeBinding, 1);
+ }
+ return nxrTryCreateSpatialGraphStaticNodeBindingMSFT(session, createInfo.address(), memAddress(nodeBinding));
+ }
+
+ // --- [ xrDestroySpatialGraphNodeBindingMSFT ] ---
- // --- [ xrDestroySpatialGraphNodeBindingMSFT ] ---
-
/**
* Destroy a spatial graph node handle.
*
@@ -267,27 +267,27 @@ public static int xrTryCreateSpatialGraphStaticNodeBindingMSFT(XrSession session
* {@link #xrTryCreateSpatialGraphStaticNodeBindingMSFT TryCreateSpatialGraphStaticNodeBindingMSFT}
*
* @param nodeBinding an {@code XrSpatialGraphNodeBindingMSFT} previously created by {@link #xrTryCreateSpatialGraphStaticNodeBindingMSFT TryCreateSpatialGraphStaticNodeBindingMSFT}.
- */
- @NativeType("XrResult")
- public static int xrDestroySpatialGraphNodeBindingMSFT(XrSpatialGraphNodeBindingMSFT nodeBinding) {
- long __functionAddress = nodeBinding.getCapabilities().xrDestroySpatialGraphNodeBindingMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(nodeBinding.address(), __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrDestroySpatialGraphNodeBindingMSFT(XrSpatialGraphNodeBindingMSFT nodeBinding) {
+ long __functionAddress = nodeBinding.getCapabilities().xrDestroySpatialGraphNodeBindingMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(nodeBinding.address(), __functionAddress);
+ }
+
+ // --- [ xrGetSpatialGraphNodeBindingPropertiesMSFT ] ---
+
+ /** Unsafe version of: {@link #xrGetSpatialGraphNodeBindingPropertiesMSFT GetSpatialGraphNodeBindingPropertiesMSFT} */
+ public static int nxrGetSpatialGraphNodeBindingPropertiesMSFT(XrSpatialGraphNodeBindingMSFT nodeBinding, long getInfo, long properties) {
+ long __functionAddress = nodeBinding.getCapabilities().xrGetSpatialGraphNodeBindingPropertiesMSFT;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(nodeBinding.address(), getInfo, properties, __functionAddress);
+ }
- // --- [ xrGetSpatialGraphNodeBindingPropertiesMSFT ] ---
-
- /** Unsafe version of: {@link #xrGetSpatialGraphNodeBindingPropertiesMSFT GetSpatialGraphNodeBindingPropertiesMSFT} */
- public static int nxrGetSpatialGraphNodeBindingPropertiesMSFT(XrSpatialGraphNodeBindingMSFT nodeBinding, long getInfo, long properties) {
- long __functionAddress = nodeBinding.getCapabilities().xrGetSpatialGraphNodeBindingPropertiesMSFT;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(nodeBinding.address(), getInfo, properties, __functionAddress);
- }
-
/**
* Destroy a spatial graph node handle.
*
@@ -337,10 +337,10 @@ public static int nxrGetSpatialGraphNodeBindingPropertiesMSFT(XrSpatialGraphNode
* @param nodeBinding an {@code XrSpatialGraphNodeBindingMSFT} previously created by {@link #xrTryCreateSpatialGraphStaticNodeBindingMSFT TryCreateSpatialGraphStaticNodeBindingMSFT}.
* @param getInfo a pointer to an {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT} input structure.
* @param properties a pointer to an {@link XrSpatialGraphNodeBindingPropertiesMSFT} output structure.
- */
- @NativeType("XrResult")
- public static int xrGetSpatialGraphNodeBindingPropertiesMSFT(XrSpatialGraphNodeBindingMSFT nodeBinding, @Nullable @NativeType("XrSpatialGraphNodeBindingPropertiesGetInfoMSFT const *") XrSpatialGraphNodeBindingPropertiesGetInfoMSFT getInfo, @NativeType("XrSpatialGraphNodeBindingPropertiesMSFT *") XrSpatialGraphNodeBindingPropertiesMSFT properties) {
- return nxrGetSpatialGraphNodeBindingPropertiesMSFT(nodeBinding, memAddressSafe(getInfo), properties.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetSpatialGraphNodeBindingPropertiesMSFT(XrSpatialGraphNodeBindingMSFT nodeBinding, @Nullable @NativeType("XrSpatialGraphNodeBindingPropertiesGetInfoMSFT const *") XrSpatialGraphNodeBindingPropertiesGetInfoMSFT getInfo, @NativeType("XrSpatialGraphNodeBindingPropertiesMSFT *") XrSpatialGraphNodeBindingPropertiesMSFT properties) {
+ return nxrGetSpatialGraphNodeBindingPropertiesMSFT(nodeBinding, memAddressSafe(getInfo), properties.address());
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTUnboundedReferenceSpace.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTUnboundedReferenceSpace.java
index 53d97f2f6f..d80cdee65e 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTUnboundedReferenceSpace.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTUnboundedReferenceSpace.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_MSFT_unbounded_reference_space extension.
*
@@ -25,18 +25,18 @@
* If the viewer moves far enough away from the origin of an {@code UNBOUNDED_MSFT} reference space that floating point error would introduce noticeable error when locating the viewer within that space, the runtime may recenter the space’s origin to a new location closer to the viewer. If such recentering occurs, the runtime must queue the {@link XrEventDataReferenceSpaceChangePending} event with {@code poseValid} set to true.
*
* Runtimes must support the {@code UNBOUNDED_MSFT} reference space when this extension is enabled.
- */
-public final class MSFTUnboundedReferenceSpace {
-
- /** The extension specification version. */
- public static final int XR_MSFT_unbounded_reference_space_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_MSFT_UNBOUNDED_REFERENCE_SPACE_EXTENSION_NAME = "XR_MSFT_unbounded_reference_space";
-
- /** Extends {@code XrReferenceSpaceType}. */
- public static final int XR_REFERENCE_SPACE_TYPE_UNBOUNDED_MSFT = 1000038000;
+ */
+public final class MSFTUnboundedReferenceSpace {
+
+ /** The extension specification version. */
+ public static final int XR_MSFT_unbounded_reference_space_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_MSFT_UNBOUNDED_REFERENCE_SPACE_EXTENSION_NAME = "XR_MSFT_unbounded_reference_space";
+
+ /** Extends {@code XrReferenceSpaceType}. */
+ public static final int XR_REFERENCE_SPACE_TYPE_UNBOUNDED_MSFT = 1000038000;
- private MSFTUnboundedReferenceSpace() {}
+ private MSFTUnboundedReferenceSpace() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OCULUSAudioDeviceGuid.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OCULUSAudioDeviceGuid.java
index 1077f79bc8..1e74b0ad91 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OCULUSAudioDeviceGuid.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OCULUSAudioDeviceGuid.java
@@ -4,48 +4,48 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import java.nio.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_OCULUS_audio_device_guid extension.
*
* This extension enables the querying of audio device information associated with an OpenXR instance.
*
* On Windows, there may be multiple audio devices available on the system. This extensions allows applications to query the runtime for the appropriate audio devices for the active HMD.
- */
-public class OCULUSAudioDeviceGuid {
-
- /** The extension specification version. */
- public static final int XR_OCULUS_audio_device_guid_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_OCULUS_AUDIO_DEVICE_GUID_EXTENSION_NAME = "XR_OCULUS_audio_device_guid";
-
- /** XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS */
- public static final int XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS = 128;
+ */
+public class OCULUSAudioDeviceGuid {
+
+ /** The extension specification version. */
+ public static final int XR_OCULUS_audio_device_guid_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_OCULUS_AUDIO_DEVICE_GUID_EXTENSION_NAME = "XR_OCULUS_audio_device_guid";
+
+ /** XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS */
+ public static final int XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS = 128;
protected OCULUSAudioDeviceGuid() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrGetAudioOutputDeviceGuidOculus ] ---
+
+ /** Unsafe version of: {@link #xrGetAudioOutputDeviceGuidOculus GetAudioOutputDeviceGuidOculus} */
+ public static int nxrGetAudioOutputDeviceGuidOculus(XrInstance instance, long buffer) {
+ long __functionAddress = instance.getCapabilities().xrGetAudioOutputDeviceGuidOculus;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(instance.address(), buffer, __functionAddress);
+ }
- // --- [ xrGetAudioOutputDeviceGuidOculus ] ---
-
- /** Unsafe version of: {@link #xrGetAudioOutputDeviceGuidOculus GetAudioOutputDeviceGuidOculus} */
- public static int nxrGetAudioOutputDeviceGuidOculus(XrInstance instance, long buffer) {
- long __functionAddress = instance.getCapabilities().xrGetAudioOutputDeviceGuidOculus;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(instance.address(), buffer, __functionAddress);
- }
-
/**
* Query the GUID for the active audio output device.
*
@@ -88,26 +88,26 @@ public static int nxrGetAudioOutputDeviceGuidOculus(XrInstance instance, long bu
*
* @param instance the {@code XrInstance} to query the audio device state in.
* @param buffer a fixed size buffer which will contain the audio device GUID. The format of this data matches the IMMDevice::GetId API.
- */
- @NativeType("XrResult")
- public static int xrGetAudioOutputDeviceGuidOculus(XrInstance instance, @NativeType("wchar_t *") ByteBuffer buffer) {
- if (CHECKS) {
- check(buffer, XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS);
- }
- return nxrGetAudioOutputDeviceGuidOculus(instance, memAddress(buffer));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetAudioOutputDeviceGuidOculus(XrInstance instance, @NativeType("wchar_t *") ByteBuffer buffer) {
+ if (CHECKS) {
+ check(buffer, XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS);
+ }
+ return nxrGetAudioOutputDeviceGuidOculus(instance, memAddress(buffer));
+ }
+
+ // --- [ xrGetAudioInputDeviceGuidOculus ] ---
+
+ /** Unsafe version of: {@link #xrGetAudioInputDeviceGuidOculus GetAudioInputDeviceGuidOculus} */
+ public static int nxrGetAudioInputDeviceGuidOculus(XrInstance instance, long buffer) {
+ long __functionAddress = instance.getCapabilities().xrGetAudioInputDeviceGuidOculus;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPI(instance.address(), buffer, __functionAddress);
+ }
- // --- [ xrGetAudioInputDeviceGuidOculus ] ---
-
- /** Unsafe version of: {@link #xrGetAudioInputDeviceGuidOculus GetAudioInputDeviceGuidOculus} */
- public static int nxrGetAudioInputDeviceGuidOculus(XrInstance instance, long buffer) {
- long __functionAddress = instance.getCapabilities().xrGetAudioInputDeviceGuidOculus;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPI(instance.address(), buffer, __functionAddress);
- }
-
/**
* Query the GUID for the active audio input device.
*
@@ -150,13 +150,13 @@ public static int nxrGetAudioInputDeviceGuidOculus(XrInstance instance, long buf
*
* @param instance the {@code XrInstance} to query the audio device state in.
* @param buffer a fixed size buffer which will contain the audio device GUID. The format of this data matches the IMMDevice::GetId API.
- */
- @NativeType("XrResult")
- public static int xrGetAudioInputDeviceGuidOculus(XrInstance instance, @NativeType("wchar_t *") ByteBuffer buffer) {
- if (CHECKS) {
- check(buffer, XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS);
- }
- return nxrGetAudioInputDeviceGuidOculus(instance, memAddress(buffer));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetAudioInputDeviceGuidOculus(XrInstance instance, @NativeType("wchar_t *") ByteBuffer buffer) {
+ if (CHECKS) {
+ check(buffer, XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS);
+ }
+ return nxrGetAudioInputDeviceGuidOculus(instance, memAddress(buffer));
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OCULUSExternalCamera.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OCULUSExternalCamera.java
index 92b34f3bac..1f09a3b90c 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OCULUSExternalCamera.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OCULUSExternalCamera.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_OCULUS_external_camera extension.
*
@@ -29,21 +29,21 @@
* Camera extrinsics are everything external to the camera: relative pose, attached to, etc.
* We do not expect the camera intrinsics to change frequently. We expect the camera extrinsics to change frequently.
*
- */
-public class OCULUSExternalCamera {
-
- /** The extension specification version. */
- public static final int XR_OCULUS_external_camera_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_OCULUS_EXTERNAL_CAMERA_EXTENSION_NAME = "XR_OCULUS_external_camera";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_EXTERNAL_CAMERA_OCULUS = 1000226000;
-
- /** XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS */
- public static final int XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS = 32;
-
+ */
+public class OCULUSExternalCamera {
+
+ /** The extension specification version. */
+ public static final int XR_OCULUS_external_camera_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_OCULUS_EXTERNAL_CAMERA_EXTENSION_NAME = "XR_OCULUS_external_camera";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_EXTERNAL_CAMERA_OCULUS = 1000226000;
+
+ /** XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS */
+ public static final int XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS = 32;
+
/**
* XrExternalCameraAttachedToDeviceOCULUS - XrExternalCameraAttachedToDeviceOCULUS
*
@@ -62,13 +62,13 @@ public class OCULUSExternalCamera {
* See Also
*
* {@link XrExternalCameraExtrinsicsOCULUS}
- */
+ */
public static final int
- XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_NONE_OCULUS = 0,
- XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_HMD_OCULUS = 1,
- XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_LTOUCH_OCULUS = 2,
- XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_RTOUCH_OCULUS = 3;
-
+ XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_NONE_OCULUS = 0,
+ XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_HMD_OCULUS = 1,
+ XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_LTOUCH_OCULUS = 2,
+ XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_RTOUCH_OCULUS = 3;
+
/**
* XrExternalCameraStatusFlagBitsOCULUS - XrExternalCameraStatusFlagBitsOCULUS
*
@@ -81,33 +81,33 @@ public class OCULUSExternalCamera {
* {@link #XR_EXTERNAL_CAMERA_STATUS_CALIBRATED_BIT_OCULUS EXTERNAL_CAMERA_STATUS_CALIBRATED_BIT_OCULUS} — External camera has tried and passed calibration
* {@link #XR_EXTERNAL_CAMERA_STATUS_CAPTURING_BIT_OCULUS EXTERNAL_CAMERA_STATUS_CAPTURING_BIT_OCULUS} — External camera is capturing
*
- */
+ */
public static final int
- XR_EXTERNAL_CAMERA_STATUS_CONNECTED_BIT_OCULUS = 0x1,
- XR_EXTERNAL_CAMERA_STATUS_CALIBRATING_BIT_OCULUS = 0x2,
- XR_EXTERNAL_CAMERA_STATUS_CALIBRATION_FAILED_BIT_OCULUS = 0x4,
- XR_EXTERNAL_CAMERA_STATUS_CALIBRATED_BIT_OCULUS = 0x8,
- XR_EXTERNAL_CAMERA_STATUS_CAPTURING_BIT_OCULUS = 0x10;
+ XR_EXTERNAL_CAMERA_STATUS_CONNECTED_BIT_OCULUS = 0x1,
+ XR_EXTERNAL_CAMERA_STATUS_CALIBRATING_BIT_OCULUS = 0x2,
+ XR_EXTERNAL_CAMERA_STATUS_CALIBRATION_FAILED_BIT_OCULUS = 0x4,
+ XR_EXTERNAL_CAMERA_STATUS_CALIBRATED_BIT_OCULUS = 0x8,
+ XR_EXTERNAL_CAMERA_STATUS_CAPTURING_BIT_OCULUS = 0x10;
protected OCULUSExternalCamera() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrEnumerateExternalCamerasOCULUS ] ---
- // --- [ xrEnumerateExternalCamerasOCULUS ] ---
-
/**
* Unsafe version of: {@link #xrEnumerateExternalCamerasOCULUS EnumerateExternalCamerasOCULUS}
*
* @param cameraCapacityInput the capacity of the {@code cameras} array, or 0 to indicate a request to retrieve the required capacity.
- */
- public static int nxrEnumerateExternalCamerasOCULUS(XrSession session, int cameraCapacityInput, long cameraCountOutput, long cameras) {
- long __functionAddress = session.getCapabilities().xrEnumerateExternalCamerasOCULUS;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), cameraCapacityInput, cameraCountOutput, cameras, __functionAddress);
- }
-
+ */
+ public static int nxrEnumerateExternalCamerasOCULUS(XrSession session, int cameraCapacityInput, long cameraCountOutput, long cameras) {
+ long __functionAddress = session.getCapabilities().xrEnumerateExternalCamerasOCULUS;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), cameraCapacityInput, cameraCountOutput, cameras, __functionAddress);
+ }
+
/**
* Enumerates all the external cameras that are supported by the runtime.
*
@@ -159,13 +159,13 @@ public static int nxrEnumerateExternalCamerasOCULUS(XrSession session, int camer
* @param session the {@code XrSession} to query the external cameras in
* @param cameraCountOutput filled in by the runtime with the count of {@code cameras} written or the required capacity in the case that {@code cameraCapacityInput} is insufficient.
* @param cameras an array of {@link XrExternalCameraOCULUS} filled in by the runtime which contains all the available external cameras, but can be {@code NULL} if {@code cameraCapacityInput} is 0.
- */
- @NativeType("XrResult")
- public static int xrEnumerateExternalCamerasOCULUS(XrSession session, @NativeType("uint32_t *") IntBuffer cameraCountOutput, @Nullable @NativeType("XrExternalCameraOCULUS *") XrExternalCameraOCULUS.Buffer cameras) {
- if (CHECKS) {
- check(cameraCountOutput, 1);
- }
- return nxrEnumerateExternalCamerasOCULUS(session, remainingSafe(cameras), memAddress(cameraCountOutput), memAddressSafe(cameras));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrEnumerateExternalCamerasOCULUS(XrSession session, @NativeType("uint32_t *") IntBuffer cameraCountOutput, @Nullable @NativeType("XrExternalCameraOCULUS *") XrExternalCameraOCULUS.Buffer cameras) {
+ if (CHECKS) {
+ check(cameraCountOutput, 1);
+ }
+ return nxrEnumerateExternalCamerasOCULUS(session, remainingSafe(cameras), memAddress(cameraCountOutput), memAddressSafe(cameras));
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/QCOMTrackingOptimizationSettings.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/QCOMTrackingOptimizationSettings.java
index a91ba0e4ab..e9be581ca3 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/QCOMTrackingOptimizationSettings.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/QCOMTrackingOptimizationSettings.java
@@ -4,12 +4,12 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+
/**
* The XR_QCOM_tracking_optimization_settings extension.
*
@@ -20,18 +20,18 @@
* This allows the application to tailor the tracking algorithms to specific use-cases and scene-scales in order to provide the best experience possible.
*
* Summary: provide domain hints to the run-time about which parameters to optimize tracking for.
- */
-public class QCOMTrackingOptimizationSettings {
-
- /** The extension specification version. */
- public static final int XR_QCOM_tracking_optimization_settings_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_QCOM_TRACKING_OPTIMIZATION_SETTINGS_EXTENSION_NAME = "XR_QCOM_tracking_optimization_settings";
-
- /** Extends {@code XrResult}. */
- public static final int XR_ERROR_HINT_ALREADY_SET_QCOM = -1000306000;
-
+ */
+public class QCOMTrackingOptimizationSettings {
+
+ /** The extension specification version. */
+ public static final int XR_QCOM_tracking_optimization_settings_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_QCOM_TRACKING_OPTIMIZATION_SETTINGS_EXTENSION_NAME = "XR_QCOM_tracking_optimization_settings";
+
+ /** Extends {@code XrResult}. */
+ public static final int XR_ERROR_HINT_ALREADY_SET_QCOM = -1000306000;
+
/**
* XrTrackingOptimizationSettingsDomainQCOM - Domains to apply tracking optimization hints
*
@@ -44,9 +44,9 @@ public class QCOMTrackingOptimizationSettings {
* See Also
*
* {@link #xrSetTrackingOptimizationSettingsHintQCOM SetTrackingOptimizationSettingsHintQCOM}
- */
- public static final int XR_TRACKING_OPTIMIZATION_SETTINGS_DOMAIN_ALL_QCOM = 1;
-
+ */
+ public static final int XR_TRACKING_OPTIMIZATION_SETTINGS_DOMAIN_ALL_QCOM = 1;
+
/**
* XrTrackingOptimizationSettingsHintQCOM - Hints for prioritizing different tracking goals
*
@@ -63,20 +63,20 @@ public class QCOMTrackingOptimizationSettings {
* See Also
*
* {@link #xrSetTrackingOptimizationSettingsHintQCOM SetTrackingOptimizationSettingsHintQCOM}
- */
+ */
public static final int
- XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_NONE_QCOM = 0,
- XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_LONG_RANGE_PRIORIZATION_QCOM = 1,
- XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_CLOSE_RANGE_PRIORIZATION_QCOM = 2,
- XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_LOW_POWER_PRIORIZATION_QCOM = 3,
- XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_HIGH_POWER_PRIORIZATION_QCOM = 4;
+ XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_NONE_QCOM = 0,
+ XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_LONG_RANGE_PRIORIZATION_QCOM = 1,
+ XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_CLOSE_RANGE_PRIORIZATION_QCOM = 2,
+ XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_LOW_POWER_PRIORIZATION_QCOM = 3,
+ XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_HIGH_POWER_PRIORIZATION_QCOM = 4;
protected QCOMTrackingOptimizationSettings() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrSetTrackingOptimizationSettingsHintQCOM ] ---
- // --- [ xrSetTrackingOptimizationSettingsHintQCOM ] ---
-
/**
* Submit a tracking optimization hint.
*
@@ -132,14 +132,14 @@ protected QCOMTrackingOptimizationSettings() {
* @param session a valid {@code XrSession} handle.
* @param domain the tracking domain for which the hint is applied
* @param hint the hint to be applied
- */
- @NativeType("XrResult")
- public static int xrSetTrackingOptimizationSettingsHintQCOM(XrSession session, @NativeType("XrTrackingOptimizationSettingsDomainQCOM") int domain, @NativeType("XrTrackingOptimizationSettingsHintQCOM") int hint) {
- long __functionAddress = session.getCapabilities().xrSetTrackingOptimizationSettingsHintQCOM;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(session.address(), domain, hint, __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSetTrackingOptimizationSettingsHintQCOM(XrSession session, @NativeType("XrTrackingOptimizationSettingsDomainQCOM") int domain, @NativeType("XrTrackingOptimizationSettingsHintQCOM") int hint) {
+ long __functionAddress = session.getCapabilities().xrSetTrackingOptimizationSettingsHintQCOM;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(session.address(), domain, hint, __functionAddress);
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/ULTRALEAPHandTrackingForearm.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/ULTRALEAPHandTrackingForearm.java
index d3a3971f8b..4c4a2a0963 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/ULTRALEAPHandTrackingForearm.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/ULTRALEAPHandTrackingForearm.java
@@ -4,25 +4,25 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_ULTRALEAP_hand_tracking_forearm extension.
*
* This extension augments the {@link EXTHandTracking XR_EXT_hand_tracking} extension to enable applications to request the default set of 26 hand joints, with the addition a joint representing the user’s elbow.
*
* The application must also enable the {@link EXTHandTracking XR_EXT_hand_tracking} extension in order to use this extension.
- */
-public final class ULTRALEAPHandTrackingForearm {
-
- /** The extension specification version. */
- public static final int XR_ULTRALEAP_hand_tracking_forearm_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_ULTRALEAP_HAND_TRACKING_FOREARM_EXTENSION_NAME = "XR_ULTRALEAP_hand_tracking_forearm";
-
- /** Extends {@code XrHandJointSetEXT}. */
- public static final int XR_HAND_JOINT_SET_HAND_WITH_FOREARM_ULTRALEAP = 1000149000;
-
+ */
+public final class ULTRALEAPHandTrackingForearm {
+
+ /** The extension specification version. */
+ public static final int XR_ULTRALEAP_hand_tracking_forearm_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_ULTRALEAP_HAND_TRACKING_FOREARM_EXTENSION_NAME = "XR_ULTRALEAP_hand_tracking_forearm";
+
+ /** Extends {@code XrHandJointSetEXT}. */
+ public static final int XR_HAND_JOINT_SET_HAND_WITH_FOREARM_ULTRALEAP = 1000149000;
+
/**
* XrHandForearmJointULTRALEAP - The name of hand joints that can be tracked including the elbow
*
@@ -64,36 +64,36 @@ public final class ULTRALEAPHandTrackingForearm {
* {@link #XR_HAND_FOREARM_JOINT_LITTLE_TIP_ULTRALEAP HAND_FOREARM_JOINT_LITTLE_TIP_ULTRALEAP}
* {@link #XR_HAND_FOREARM_JOINT_ELBOW_ULTRALEAP HAND_FOREARM_JOINT_ELBOW_ULTRALEAP}
*
- */
+ */
public static final int
- XR_HAND_FOREARM_JOINT_PALM_ULTRALEAP = 0,
- XR_HAND_FOREARM_JOINT_WRIST_ULTRALEAP = 1,
- XR_HAND_FOREARM_JOINT_THUMB_METACARPAL_ULTRALEAP = 2,
- XR_HAND_FOREARM_JOINT_THUMB_PROXIMAL_ULTRALEAP = 3,
- XR_HAND_FOREARM_JOINT_THUMB_DISTAL_ULTRALEAP = 4,
- XR_HAND_FOREARM_JOINT_THUMB_TIP_ULTRALEAP = 5,
- XR_HAND_FOREARM_JOINT_INDEX_METACARPAL_ULTRALEAP = 6,
- XR_HAND_FOREARM_JOINT_INDEX_PROXIMAL_ULTRALEAP = 7,
- XR_HAND_FOREARM_JOINT_INDEX_INTERMEDIATE_ULTRALEAP = 8,
- XR_HAND_FOREARM_JOINT_INDEX_DISTAL_ULTRALEAP = 9,
- XR_HAND_FOREARM_JOINT_INDEX_TIP_ULTRALEAP = 10,
- XR_HAND_FOREARM_JOINT_MIDDLE_METACARPAL_ULTRALEAP = 11,
- XR_HAND_FOREARM_JOINT_MIDDLE_PROXIMAL_ULTRALEAP = 12,
- XR_HAND_FOREARM_JOINT_MIDDLE_INTERMEDIATE_ULTRALEAP = 13,
- XR_HAND_FOREARM_JOINT_MIDDLE_DISTAL_ULTRALEAP = 14,
- XR_HAND_FOREARM_JOINT_MIDDLE_TIP_ULTRALEAP = 15,
- XR_HAND_FOREARM_JOINT_RING_METACARPAL_ULTRALEAP = 16,
- XR_HAND_FOREARM_JOINT_RING_PROXIMAL_ULTRALEAP = 17,
- XR_HAND_FOREARM_JOINT_RING_INTERMEDIATE_ULTRALEAP = 18,
- XR_HAND_FOREARM_JOINT_RING_DISTAL_ULTRALEAP = 19,
- XR_HAND_FOREARM_JOINT_RING_TIP_ULTRALEAP = 20,
- XR_HAND_FOREARM_JOINT_LITTLE_METACARPAL_ULTRALEAP = 21,
- XR_HAND_FOREARM_JOINT_LITTLE_PROXIMAL_ULTRALEAP = 22,
- XR_HAND_FOREARM_JOINT_LITTLE_INTERMEDIATE_ULTRALEAP = 23,
- XR_HAND_FOREARM_JOINT_LITTLE_DISTAL_ULTRALEAP = 24,
- XR_HAND_FOREARM_JOINT_LITTLE_TIP_ULTRALEAP = 25,
- XR_HAND_FOREARM_JOINT_ELBOW_ULTRALEAP = 26;
+ XR_HAND_FOREARM_JOINT_PALM_ULTRALEAP = 0,
+ XR_HAND_FOREARM_JOINT_WRIST_ULTRALEAP = 1,
+ XR_HAND_FOREARM_JOINT_THUMB_METACARPAL_ULTRALEAP = 2,
+ XR_HAND_FOREARM_JOINT_THUMB_PROXIMAL_ULTRALEAP = 3,
+ XR_HAND_FOREARM_JOINT_THUMB_DISTAL_ULTRALEAP = 4,
+ XR_HAND_FOREARM_JOINT_THUMB_TIP_ULTRALEAP = 5,
+ XR_HAND_FOREARM_JOINT_INDEX_METACARPAL_ULTRALEAP = 6,
+ XR_HAND_FOREARM_JOINT_INDEX_PROXIMAL_ULTRALEAP = 7,
+ XR_HAND_FOREARM_JOINT_INDEX_INTERMEDIATE_ULTRALEAP = 8,
+ XR_HAND_FOREARM_JOINT_INDEX_DISTAL_ULTRALEAP = 9,
+ XR_HAND_FOREARM_JOINT_INDEX_TIP_ULTRALEAP = 10,
+ XR_HAND_FOREARM_JOINT_MIDDLE_METACARPAL_ULTRALEAP = 11,
+ XR_HAND_FOREARM_JOINT_MIDDLE_PROXIMAL_ULTRALEAP = 12,
+ XR_HAND_FOREARM_JOINT_MIDDLE_INTERMEDIATE_ULTRALEAP = 13,
+ XR_HAND_FOREARM_JOINT_MIDDLE_DISTAL_ULTRALEAP = 14,
+ XR_HAND_FOREARM_JOINT_MIDDLE_TIP_ULTRALEAP = 15,
+ XR_HAND_FOREARM_JOINT_RING_METACARPAL_ULTRALEAP = 16,
+ XR_HAND_FOREARM_JOINT_RING_PROXIMAL_ULTRALEAP = 17,
+ XR_HAND_FOREARM_JOINT_RING_INTERMEDIATE_ULTRALEAP = 18,
+ XR_HAND_FOREARM_JOINT_RING_DISTAL_ULTRALEAP = 19,
+ XR_HAND_FOREARM_JOINT_RING_TIP_ULTRALEAP = 20,
+ XR_HAND_FOREARM_JOINT_LITTLE_METACARPAL_ULTRALEAP = 21,
+ XR_HAND_FOREARM_JOINT_LITTLE_PROXIMAL_ULTRALEAP = 22,
+ XR_HAND_FOREARM_JOINT_LITTLE_INTERMEDIATE_ULTRALEAP = 23,
+ XR_HAND_FOREARM_JOINT_LITTLE_DISTAL_ULTRALEAP = 24,
+ XR_HAND_FOREARM_JOINT_LITTLE_TIP_ULTRALEAP = 25,
+ XR_HAND_FOREARM_JOINT_ELBOW_ULTRALEAP = 26;
- private ULTRALEAPHandTrackingForearm() {}
+ private ULTRALEAPHandTrackingForearm() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VALVEAnalogThreshold.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VALVEAnalogThreshold.java
index 01ddd6b274..547896b235 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VALVEAnalogThreshold.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VALVEAnalogThreshold.java
@@ -4,25 +4,25 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_VALVE_analog_threshold extension.
*
* This extension allows the application to control the threshold and haptic feedback applied to an analog to digital conversion. See {@link XrInteractionProfileAnalogThresholdVALVE} for more information.
*
* Applications should also enable the {@link KHRBindingModification XR_KHR_binding_modification} extension to be able to define multiple thresholds.
- */
-public final class VALVEAnalogThreshold {
-
- /** The extension specification version. */
- public static final int XR_VALVE_analog_threshold_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_VALVE_ANALOG_THRESHOLD_EXTENSION_NAME = "XR_VALVE_analog_threshold";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE = 1000079000;
+ */
+public final class VALVEAnalogThreshold {
+
+ /** The extension specification version. */
+ public static final int XR_VALVE_analog_threshold_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_VALVE_ANALOG_THRESHOLD_EXTENSION_NAME = "XR_VALVE_analog_threshold";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE = 1000079000;
- private VALVEAnalogThreshold() {}
+ private VALVEAnalogThreshold() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOCompositionLayerDepthTest.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOCompositionLayerDepthTest.java
index 4d34160615..f1679c2d00 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOCompositionLayerDepthTest.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOCompositionLayerDepthTest.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_VARJO_composition_layer_depth_test extension.
*
@@ -13,18 +13,18 @@
* Core OpenXR specifies that layer compositing must happen in the layer submission order (as described in Compositing). However, an application may want to composite the final image against the other layers based on depth information for proper occlusion. Layers can now provide depth information that will be used to calculate occlusion between those layers, as well as with the environment depth estimator ({@link VARJOEnvironmentDepthEstimation XR_VARJO_environment_depth_estimation}) when enabled.
*
* This extension defines a new type, {@link XrCompositionLayerDepthTestVARJO}, which can be chained to {@link XrCompositionLayerProjection} in order to activate this functionality. An application must also specify a range where depth testing will happen, potentially covering only a subset of the full depth range.
- */
-public final class VARJOCompositionLayerDepthTest {
-
- /** The extension specification version. */
- public static final int XR_VARJO_composition_layer_depth_test_SPEC_VERSION = 2;
-
- /** The extension name. */
- public static final String XR_VARJO_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME = "XR_VARJO_composition_layer_depth_test";
-
- /** Extends {@code XrStructureType}. */
- public static final int XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO = 1000122000;
+ */
+public final class VARJOCompositionLayerDepthTest {
+
+ /** The extension specification version. */
+ public static final int XR_VARJO_composition_layer_depth_test_SPEC_VERSION = 2;
+
+ /** The extension name. */
+ public static final String XR_VARJO_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME = "XR_VARJO_composition_layer_depth_test";
+
+ /** Extends {@code XrStructureType}. */
+ public static final int XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO = 1000122000;
- private VARJOCompositionLayerDepthTest() {}
+ private VARJOCompositionLayerDepthTest() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOEnvironmentDepthEstimation.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOEnvironmentDepthEstimation.java
index b99e632f20..c0e55b86c2 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOEnvironmentDepthEstimation.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOEnvironmentDepthEstimation.java
@@ -4,12 +4,12 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+
/**
* The XR_VARJO_environment_depth_estimation extension.
*
@@ -18,21 +18,21 @@
* Mixed reality applications might want to mix real and virtual content based on the depth information for proper occlusion. XR hardware and runtime may offer various ways to estimate the depth of the environment inside the compositor. When this estimation is enabled, the compositor can generate properly occluded final image when layers are submitted with depth information (both {@link KHRCompositionLayerDepth XR_KHR_composition_layer_depth} and {@link VARJOCompositionLayerDepthTest XR_VARJO_composition_layer_depth_test}).
*
* This extension defines a new function, {@link #xrSetEnvironmentDepthEstimationVARJO SetEnvironmentDepthEstimationVARJO}, which can be used to toggle environment depth estimation in the compositor. Toggling depth estimation is an asynchronous operation and the feature may not be activated immediately. Function can be called immediately after the session is created. Composition of the environment layer follows the rules as described in {@link VARJOCompositionLayerDepthTest XR_VARJO_composition_layer_depth_test}.
- */
-public class VARJOEnvironmentDepthEstimation {
-
- /** The extension specification version. */
- public static final int XR_VARJO_environment_depth_estimation_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_VARJO_ENVIRONMENT_DEPTH_ESTIMATION_EXTENSION_NAME = "XR_VARJO_environment_depth_estimation";
+ */
+public class VARJOEnvironmentDepthEstimation {
+
+ /** The extension specification version. */
+ public static final int XR_VARJO_environment_depth_estimation_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_VARJO_ENVIRONMENT_DEPTH_ESTIMATION_EXTENSION_NAME = "XR_VARJO_environment_depth_estimation";
protected VARJOEnvironmentDepthEstimation() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrSetEnvironmentDepthEstimationVARJO ] ---
- // --- [ xrSetEnvironmentDepthEstimationVARJO ] ---
-
/**
* Enable or disable environment depth estimation functionality.
*
@@ -73,14 +73,14 @@ protected VARJOEnvironmentDepthEstimation() {
*
* @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}.
* @param enabled a boolean that specifies whether depth estimation functionality should be activated. Compositor will disable depth estimation functionality if environment blend mode is not {@link XR10#XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND ENVIRONMENT_BLEND_MODE_ALPHA_BLEND} and will enable the functionality when environment blend mode is set to {@link XR10#XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND ENVIRONMENT_BLEND_MODE_ALPHA_BLEND}.
- */
- @NativeType("XrResult")
- public static int xrSetEnvironmentDepthEstimationVARJO(XrSession session, @NativeType("XrBool32") boolean enabled) {
- long __functionAddress = session.getCapabilities().xrSetEnvironmentDepthEstimationVARJO;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(session.address(), enabled ? 1 : 0, __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSetEnvironmentDepthEstimationVARJO(XrSession session, @NativeType("XrBool32") boolean enabled) {
+ long __functionAddress = session.getCapabilities().xrSetEnvironmentDepthEstimationVARJO;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(session.address(), enabled ? 1 : 0, __functionAddress);
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOFoveatedRendering.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOFoveatedRendering.java
index 3f3516a2af..3c0415ed14 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOFoveatedRendering.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOFoveatedRendering.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_VARJO_foveated_rendering extension.
*
@@ -28,15 +28,15 @@
* Check if rendering gaze is available using {@link XR10#xrLocateSpace LocateSpace}.
* Enable foveated rendering when {@link XR10#xrLocateViews LocateViews} is called.
*
- */
-public final class VARJOFoveatedRendering {
-
- /** The extension specification version. */
- public static final int XR_VARJO_foveated_rendering_SPEC_VERSION = 3;
-
- /** The extension name. */
- public static final String XR_VARJO_FOVEATED_RENDERING_EXTENSION_NAME = "XR_VARJO_foveated_rendering";
-
+ */
+public final class VARJOFoveatedRendering {
+
+ /** The extension specification version. */
+ public static final int XR_VARJO_foveated_rendering_SPEC_VERSION = 3;
+
+ /** The extension name. */
+ public static final String XR_VARJO_FOVEATED_RENDERING_EXTENSION_NAME = "XR_VARJO_foveated_rendering";
+
/**
* Extends {@code XrStructureType}.
*
@@ -47,15 +47,15 @@ public final class VARJOFoveatedRendering {
* {@link #XR_TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO}
* {@link #XR_TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO}
*
- */
+ */
public static final int
- XR_TYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJO = 1000121000,
- XR_TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO = 1000121001,
- XR_TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO = 1000121002;
-
- /** Extends {@code XrReferenceSpaceType}. */
- public static final int XR_REFERENCE_SPACE_TYPE_COMBINED_EYE_VARJO = 1000121000;
+ XR_TYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJO = 1000121000,
+ XR_TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO = 1000121001,
+ XR_TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO = 1000121002;
+
+ /** Extends {@code XrReferenceSpaceType}. */
+ public static final int XR_REFERENCE_SPACE_TYPE_COMBINED_EYE_VARJO = 1000121000;
- private VARJOFoveatedRendering() {}
+ private VARJOFoveatedRendering() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOMarkerTracking.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOMarkerTracking.java
index 601b64fa8e..24b0cadf63 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOMarkerTracking.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOMarkerTracking.java
@@ -4,15 +4,15 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
/**
* The XR_VARJO_marker_tracking extension.
*
@@ -23,15 +23,15 @@
* Object markers are used to track static or dynamic objects in the user environment. You may use object markers in both XR and VR applications. Each marker has a unique ID, and you must not use the same physical marker more than once in any given environment. For added precision, an application may use multiple markers to track a single object. For example, you could track a monitor by placing a marker in each corner.
*
* There is a set of marker IDs recognized by runtime and if the application uses ID which is not in the set then runtime must return {@link #XR_ERROR_MARKER_ID_INVALID_VARJO ERROR_MARKER_ID_INVALID_VARJO}.
- */
-public class VARJOMarkerTracking {
-
- /** The extension specification version. */
- public static final int XR_VARJO_marker_tracking_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_VARJO_MARKER_TRACKING_EXTENSION_NAME = "XR_VARJO_marker_tracking";
-
+ */
+public class VARJOMarkerTracking {
+
+ /** The extension specification version. */
+ public static final int XR_VARJO_marker_tracking_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_VARJO_MARKER_TRACKING_EXTENSION_NAME = "XR_VARJO_marker_tracking";
+
/**
* Extends {@code XrStructureType}.
*
@@ -42,12 +42,12 @@ public class VARJOMarkerTracking {
* {@link #XR_TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO}
* {@link #XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO TYPE_MARKER_SPACE_CREATE_INFO_VARJO}
*
- */
+ */
public static final int
- XR_TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJO = 1000124000,
- XR_TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO = 1000124001,
- XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO = 1000124002;
-
+ XR_TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJO = 1000124000,
+ XR_TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO = 1000124001,
+ XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO = 1000124002;
+
/**
* Extends {@code XrResult}.
*
@@ -57,17 +57,17 @@ public class VARJOMarkerTracking {
* {@link #XR_ERROR_MARKER_NOT_TRACKED_VARJO ERROR_MARKER_NOT_TRACKED_VARJO}
* {@link #XR_ERROR_MARKER_ID_INVALID_VARJO ERROR_MARKER_ID_INVALID_VARJO}
*
- */
+ */
public static final int
- XR_ERROR_MARKER_NOT_TRACKED_VARJO = -1000124000,
- XR_ERROR_MARKER_ID_INVALID_VARJO = -1000124001;
+ XR_ERROR_MARKER_NOT_TRACKED_VARJO = -1000124000,
+ XR_ERROR_MARKER_ID_INVALID_VARJO = -1000124001;
protected VARJOMarkerTracking() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrSetMarkerTrackingVARJO ] ---
- // --- [ xrSetMarkerTrackingVARJO ] ---
-
/**
* Enables marker tracking.
*
@@ -112,18 +112,18 @@ protected VARJOMarkerTracking() {
*
* @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}.
* @param enabled the flag to enable or disable marker tracking.
- */
- @NativeType("XrResult")
- public static int xrSetMarkerTrackingVARJO(XrSession session, @NativeType("XrBool32") boolean enabled) {
- long __functionAddress = session.getCapabilities().xrSetMarkerTrackingVARJO;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(session.address(), enabled ? 1 : 0, __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSetMarkerTrackingVARJO(XrSession session, @NativeType("XrBool32") boolean enabled) {
+ long __functionAddress = session.getCapabilities().xrSetMarkerTrackingVARJO;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(session.address(), enabled ? 1 : 0, __functionAddress);
+ }
+
+ // --- [ xrSetMarkerTrackingTimeoutVARJO ] ---
- // --- [ xrSetMarkerTrackingTimeoutVARJO ] ---
-
/**
* Sets marker lifetime duration.
*
@@ -171,18 +171,18 @@ public static int xrSetMarkerTrackingVARJO(XrSession session, @NativeType("XrBoo
* @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}.
* @param markerId the unique identifier of the marker for which the timeout will be updated.
* @param timeout the desired lifetime duration for a specified marker.
- */
- @NativeType("XrResult")
- public static int xrSetMarkerTrackingTimeoutVARJO(XrSession session, @NativeType("uint64_t") long markerId, @NativeType("XrDuration") long timeout) {
- long __functionAddress = session.getCapabilities().xrSetMarkerTrackingTimeoutVARJO;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJJI(session.address(), markerId, timeout, __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSetMarkerTrackingTimeoutVARJO(XrSession session, @NativeType("uint64_t") long markerId, @NativeType("XrDuration") long timeout) {
+ long __functionAddress = session.getCapabilities().xrSetMarkerTrackingTimeoutVARJO;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJJI(session.address(), markerId, timeout, __functionAddress);
+ }
+
+ // --- [ xrSetMarkerTrackingPredictionVARJO ] ---
- // --- [ xrSetMarkerTrackingPredictionVARJO ] ---
-
/**
* Sets marker tracking with prediction.
*
@@ -229,27 +229,27 @@ public static int xrSetMarkerTrackingTimeoutVARJO(XrSession session, @NativeType
*
* @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}.
* @param markerId the unique identifier of the marker which should be tracked with prediction.
- */
- @NativeType("XrResult")
- public static int xrSetMarkerTrackingPredictionVARJO(XrSession session, @NativeType("uint64_t") long markerId, @NativeType("XrBool32") boolean enabled) {
- long __functionAddress = session.getCapabilities().xrSetMarkerTrackingPredictionVARJO;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJI(session.address(), markerId, enabled ? 1 : 0, __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSetMarkerTrackingPredictionVARJO(XrSession session, @NativeType("uint64_t") long markerId, @NativeType("XrBool32") boolean enabled) {
+ long __functionAddress = session.getCapabilities().xrSetMarkerTrackingPredictionVARJO;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJI(session.address(), markerId, enabled ? 1 : 0, __functionAddress);
+ }
+
+ // --- [ xrGetMarkerSizeVARJO ] ---
+
+ /** Unsafe version of: {@link #xrGetMarkerSizeVARJO GetMarkerSizeVARJO} */
+ public static int nxrGetMarkerSizeVARJO(XrSession session, long markerId, long size) {
+ long __functionAddress = session.getCapabilities().xrGetMarkerSizeVARJO;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPJPI(session.address(), markerId, size, __functionAddress);
+ }
- // --- [ xrGetMarkerSizeVARJO ] ---
-
- /** Unsafe version of: {@link #xrGetMarkerSizeVARJO GetMarkerSizeVARJO} */
- public static int nxrGetMarkerSizeVARJO(XrSession session, long markerId, long size) {
- long __functionAddress = session.getCapabilities().xrGetMarkerSizeVARJO;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPJPI(session.address(), markerId, size, __functionAddress);
- }
-
/**
* Gets physical size of marker.
*
@@ -303,23 +303,23 @@ public static int nxrGetMarkerSizeVARJO(XrSession session, long markerId, long s
* @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}.
* @param markerId the unique identifier of the marker for which size is requested.
* @param size pointer to the size to populate by the runtime with the physical size of plane marker in meters.
- */
- @NativeType("XrResult")
- public static int xrGetMarkerSizeVARJO(XrSession session, @NativeType("uint64_t") long markerId, @NativeType("XrExtent2Df *") XrExtent2Df size) {
- return nxrGetMarkerSizeVARJO(session, markerId, size.address());
- }
+ */
+ @NativeType("XrResult")
+ public static int xrGetMarkerSizeVARJO(XrSession session, @NativeType("uint64_t") long markerId, @NativeType("XrExtent2Df *") XrExtent2Df size) {
+ return nxrGetMarkerSizeVARJO(session, markerId, size.address());
+ }
+
+ // --- [ xrCreateMarkerSpaceVARJO ] ---
+
+ /** Unsafe version of: {@link #xrCreateMarkerSpaceVARJO CreateMarkerSpaceVARJO} */
+ public static int nxrCreateMarkerSpaceVARJO(XrSession session, long createInfo, long space) {
+ long __functionAddress = session.getCapabilities().xrCreateMarkerSpaceVARJO;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPPPI(session.address(), createInfo, space, __functionAddress);
+ }
- // --- [ xrCreateMarkerSpaceVARJO ] ---
-
- /** Unsafe version of: {@link #xrCreateMarkerSpaceVARJO CreateMarkerSpaceVARJO} */
- public static int nxrCreateMarkerSpaceVARJO(XrSession session, long createInfo, long space) {
- long __functionAddress = session.getCapabilities().xrCreateMarkerSpaceVARJO;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPPPI(session.address(), createInfo, space, __functionAddress);
- }
-
/**
* Creates marker space.
*
@@ -376,13 +376,13 @@ public static int nxrCreateMarkerSpaceVARJO(XrSession session, long createInfo,
* @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}.
* @param createInfo the structure containing information about how to create the space based on marker.
* @param space a pointer to a handle in which the created {@code XrSpace} is returned.
- */
- @NativeType("XrResult")
- public static int xrCreateMarkerSpaceVARJO(XrSession session, @NativeType("XrMarkerSpaceCreateInfoVARJO const *") XrMarkerSpaceCreateInfoVARJO createInfo, @NativeType("XrSpace *") PointerBuffer space) {
- if (CHECKS) {
- check(space, 1);
- }
- return nxrCreateMarkerSpaceVARJO(session, createInfo.address(), memAddress(space));
- }
+ */
+ @NativeType("XrResult")
+ public static int xrCreateMarkerSpaceVARJO(XrSession session, @NativeType("XrMarkerSpaceCreateInfoVARJO const *") XrMarkerSpaceCreateInfoVARJO createInfo, @NativeType("XrSpace *") PointerBuffer space) {
+ if (CHECKS) {
+ check(space, 1);
+ }
+ return nxrCreateMarkerSpaceVARJO(session, createInfo.address(), memAddress(space));
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOQuadViews.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOQuadViews.java
index de03dc945f..5428031523 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOQuadViews.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOQuadViews.java
@@ -4,7 +4,7 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
/**
* The XR_VARJO_quad_views extension.
*
@@ -19,18 +19,18 @@
* The relative position of the inner views relative to the outer views can change at run-time.
*
* The runtime might blend between the views at the edges, so the application should not omit the inner field of view from being generated in the outer view.
- */
-public final class VARJOQuadViews {
-
- /** The extension specification version. */
- public static final int XR_VARJO_quad_views_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_VARJO_QUAD_VIEWS_EXTENSION_NAME = "XR_VARJO_quad_views";
-
- /** Extends {@code XrViewConfigurationType}. */
- public static final int XR_VIEW_CONFIGURATION_TYPE_PRIMARY_QUAD_VARJO = 1000037000;
+ */
+public final class VARJOQuadViews {
+
+ /** The extension specification version. */
+ public static final int XR_VARJO_quad_views_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_VARJO_QUAD_VIEWS_EXTENSION_NAME = "XR_VARJO_quad_views";
+
+ /** Extends {@code XrViewConfigurationType}. */
+ public static final int XR_VIEW_CONFIGURATION_TYPE_PRIMARY_QUAD_VARJO = 1000037000;
- private VARJOQuadViews() {}
+ private VARJOQuadViews() {}
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOViewOffset.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOViewOffset.java
index d223871f89..8b7a919978 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOViewOffset.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOViewOffset.java
@@ -4,12 +4,12 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+
/**
* The XR_VARJO_view_offset extension.
*
@@ -20,21 +20,21 @@
* When blending the video pass-through image with virtual content, it is important that their relative geometries – position, size, and disparity – match one another. To achieve this, Varjo’s runtime automatically places the virtual reality cameras in the same position as the physical cameras when the video pass-through feature is enabled (see {@link XR10#XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND ENVIRONMENT_BLEND_MODE_ALPHA_BLEND}). This allows virtual and real-world content to appear at the same distance and on the same plane when viewed together. While this can be observed as an apparent jump in the location of virtual objects compared to VR-only content, this does not cause any distortion in the object geometry or location; it is only the viewer’s location that changes.
*
* In some cases, moving the VR content to match the real-world position may not be desirable. This extension enable the application to control where the VR content is rendered from the location of the user’s eyes while the video pass-through image uses the camera locations. For example, if the virtual object is close the user, or if the application is switching between VR and MR modes. Offset values between 0.0 and 1.0 are supported. You can use this to create a smooth, animated transition between the two rendering positions in case you need to change from one to the other during a session.
- */
-public class VARJOViewOffset {
-
- /** The extension specification version. */
- public static final int XR_VARJO_view_offset_SPEC_VERSION = 1;
-
- /** The extension name. */
- public static final String XR_VARJO_VIEW_OFFSET_EXTENSION_NAME = "XR_VARJO_view_offset";
+ */
+public class VARJOViewOffset {
+
+ /** The extension specification version. */
+ public static final int XR_VARJO_view_offset_SPEC_VERSION = 1;
+
+ /** The extension name. */
+ public static final String XR_VARJO_VIEW_OFFSET_EXTENSION_NAME = "XR_VARJO_view_offset";
protected VARJOViewOffset() {
throw new UnsupportedOperationException();
- }
+ }
+
+ // --- [ xrSetViewOffsetVARJO ] ---
- // --- [ xrSetViewOffsetVARJO ] ---
-
/**
* Set view offest.
*
@@ -93,14 +93,14 @@ protected VARJOViewOffset() {
*
* @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}.
* @param offset the view offset to be applied. Must be between 0 and 1.
- */
- @NativeType("XrResult")
- public static int xrSetViewOffsetVARJO(XrSession session, float offset) {
- long __functionAddress = session.getCapabilities().xrSetViewOffsetVARJO;
- if (CHECKS) {
- check(__functionAddress);
- }
- return callPI(session.address(), offset, __functionAddress);
- }
+ */
+ @NativeType("XrResult")
+ public static int xrSetViewOffsetVARJO(XrSession session, float offset) {
+ long __functionAddress = session.getCapabilities().xrSetViewOffsetVARJO;
+ if (CHECKS) {
+ check(__functionAddress);
+ }
+ return callPI(session.address(), offset, __functionAddress);
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XR10.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XR10.java
index 46ba3c4c45..ee74a1c00e 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XR10.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XR10.java
@@ -4,23 +4,23 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
+
import org.lwjgl.*;
-
-import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.JNI.*;
-import static org.lwjgl.system.MemoryStack.*;
-import static org.lwjgl.system.MemoryUtil.*;
-
-/** The core OpenXR 1.0 functionality. */
-public class XR10 {
-
+
+import org.lwjgl.system.*;
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.JNI.*;
+import static org.lwjgl.system.MemoryStack.*;
+import static org.lwjgl.system.MemoryUtil.*;
+
+/** The core OpenXR 1.0 functionality. */
+public class XR10 {
+
/**
* XrResult - Result codes
*
@@ -144,64 +144,64 @@ public class XR10 {
* See Also
*
* {@link XrEventDataSceneCaptureCompleteFB}, {@link XrEventDataSpaceEraseCompleteFB}, {@link XrEventDataSpaceListSaveCompleteFB}, {@link XrEventDataSpaceQueryCompleteFB}, {@link XrEventDataSpaceSaveCompleteFB}, {@link XrEventDataSpaceSetStatusCompleteFB}, {@link XrEventDataSpaceShareCompleteFB}, {@link XrEventDataSpatialAnchorCreateCompleteFB}, {@link #xrResultToString ResultToString}
- */
+ */
public static final int
- XR_SUCCESS = 0,
- XR_TIMEOUT_EXPIRED = 1,
- XR_SESSION_LOSS_PENDING = 3,
- XR_EVENT_UNAVAILABLE = 4,
- XR_SPACE_BOUNDS_UNAVAILABLE = 7,
- XR_SESSION_NOT_FOCUSED = 8,
- XR_FRAME_DISCARDED = 9,
- XR_ERROR_VALIDATION_FAILURE = -1,
- XR_ERROR_RUNTIME_FAILURE = -2,
- XR_ERROR_OUT_OF_MEMORY = -3,
- XR_ERROR_API_VERSION_UNSUPPORTED = -4,
- XR_ERROR_INITIALIZATION_FAILED = -6,
- XR_ERROR_FUNCTION_UNSUPPORTED = -7,
- XR_ERROR_FEATURE_UNSUPPORTED = -8,
- XR_ERROR_EXTENSION_NOT_PRESENT = -9,
- XR_ERROR_LIMIT_REACHED = -10,
- XR_ERROR_SIZE_INSUFFICIENT = -11,
- XR_ERROR_HANDLE_INVALID = -12,
- XR_ERROR_INSTANCE_LOST = -13,
- XR_ERROR_SESSION_RUNNING = -14,
- XR_ERROR_SESSION_NOT_RUNNING = -16,
- XR_ERROR_SESSION_LOST = -17,
- XR_ERROR_SYSTEM_INVALID = -18,
- XR_ERROR_PATH_INVALID = -19,
- XR_ERROR_PATH_COUNT_EXCEEDED = -20,
- XR_ERROR_PATH_FORMAT_INVALID = -21,
- XR_ERROR_PATH_UNSUPPORTED = -22,
- XR_ERROR_LAYER_INVALID = -23,
- XR_ERROR_LAYER_LIMIT_EXCEEDED = -24,
- XR_ERROR_SWAPCHAIN_RECT_INVALID = -25,
- XR_ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED = -26,
- XR_ERROR_ACTION_TYPE_MISMATCH = -27,
- XR_ERROR_SESSION_NOT_READY = -28,
- XR_ERROR_SESSION_NOT_STOPPING = -29,
- XR_ERROR_TIME_INVALID = -30,
- XR_ERROR_REFERENCE_SPACE_UNSUPPORTED = -31,
- XR_ERROR_FILE_ACCESS_ERROR = -32,
- XR_ERROR_FILE_CONTENTS_INVALID = -33,
- XR_ERROR_FORM_FACTOR_UNSUPPORTED = -34,
- XR_ERROR_FORM_FACTOR_UNAVAILABLE = -35,
- XR_ERROR_API_LAYER_NOT_PRESENT = -36,
- XR_ERROR_CALL_ORDER_INVALID = -37,
- XR_ERROR_GRAPHICS_DEVICE_INVALID = -38,
- XR_ERROR_POSE_INVALID = -39,
- XR_ERROR_INDEX_OUT_OF_RANGE = -40,
- XR_ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED = -41,
- XR_ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED = -42,
- XR_ERROR_NAME_DUPLICATED = -44,
- XR_ERROR_NAME_INVALID = -45,
- XR_ERROR_ACTIONSET_NOT_ATTACHED = -46,
- XR_ERROR_ACTIONSETS_ALREADY_ATTACHED = -47,
- XR_ERROR_LOCALIZED_NAME_DUPLICATED = -48,
- XR_ERROR_LOCALIZED_NAME_INVALID = -49,
- XR_ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING = -50,
- XR_ERROR_RUNTIME_UNAVAILABLE = -51;
-
+ XR_SUCCESS = 0,
+ XR_TIMEOUT_EXPIRED = 1,
+ XR_SESSION_LOSS_PENDING = 3,
+ XR_EVENT_UNAVAILABLE = 4,
+ XR_SPACE_BOUNDS_UNAVAILABLE = 7,
+ XR_SESSION_NOT_FOCUSED = 8,
+ XR_FRAME_DISCARDED = 9,
+ XR_ERROR_VALIDATION_FAILURE = -1,
+ XR_ERROR_RUNTIME_FAILURE = -2,
+ XR_ERROR_OUT_OF_MEMORY = -3,
+ XR_ERROR_API_VERSION_UNSUPPORTED = -4,
+ XR_ERROR_INITIALIZATION_FAILED = -6,
+ XR_ERROR_FUNCTION_UNSUPPORTED = -7,
+ XR_ERROR_FEATURE_UNSUPPORTED = -8,
+ XR_ERROR_EXTENSION_NOT_PRESENT = -9,
+ XR_ERROR_LIMIT_REACHED = -10,
+ XR_ERROR_SIZE_INSUFFICIENT = -11,
+ XR_ERROR_HANDLE_INVALID = -12,
+ XR_ERROR_INSTANCE_LOST = -13,
+ XR_ERROR_SESSION_RUNNING = -14,
+ XR_ERROR_SESSION_NOT_RUNNING = -16,
+ XR_ERROR_SESSION_LOST = -17,
+ XR_ERROR_SYSTEM_INVALID = -18,
+ XR_ERROR_PATH_INVALID = -19,
+ XR_ERROR_PATH_COUNT_EXCEEDED = -20,
+ XR_ERROR_PATH_FORMAT_INVALID = -21,
+ XR_ERROR_PATH_UNSUPPORTED = -22,
+ XR_ERROR_LAYER_INVALID = -23,
+ XR_ERROR_LAYER_LIMIT_EXCEEDED = -24,
+ XR_ERROR_SWAPCHAIN_RECT_INVALID = -25,
+ XR_ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED = -26,
+ XR_ERROR_ACTION_TYPE_MISMATCH = -27,
+ XR_ERROR_SESSION_NOT_READY = -28,
+ XR_ERROR_SESSION_NOT_STOPPING = -29,
+ XR_ERROR_TIME_INVALID = -30,
+ XR_ERROR_REFERENCE_SPACE_UNSUPPORTED = -31,
+ XR_ERROR_FILE_ACCESS_ERROR = -32,
+ XR_ERROR_FILE_CONTENTS_INVALID = -33,
+ XR_ERROR_FORM_FACTOR_UNSUPPORTED = -34,
+ XR_ERROR_FORM_FACTOR_UNAVAILABLE = -35,
+ XR_ERROR_API_LAYER_NOT_PRESENT = -36,
+ XR_ERROR_CALL_ORDER_INVALID = -37,
+ XR_ERROR_GRAPHICS_DEVICE_INVALID = -38,
+ XR_ERROR_POSE_INVALID = -39,
+ XR_ERROR_INDEX_OUT_OF_RANGE = -40,
+ XR_ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED = -41,
+ XR_ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED = -42,
+ XR_ERROR_NAME_DUPLICATED = -44,
+ XR_ERROR_NAME_INVALID = -45,
+ XR_ERROR_ACTIONSET_NOT_ATTACHED = -46,
+ XR_ERROR_ACTIONSETS_ALREADY_ATTACHED = -47,
+ XR_ERROR_LOCALIZED_NAME_DUPLICATED = -48,
+ XR_ERROR_LOCALIZED_NAME_INVALID = -49,
+ XR_ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING = -50,
+ XR_ERROR_RUNTIME_UNAVAILABLE = -51;
+
/**
* XrStructureType - Values for type members of structs
*
@@ -269,59 +269,59 @@ public class XR10 {
* {@link #XR_TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO}
* {@link #XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO}
*
- */
+ */
public static final int
- XR_TYPE_UNKNOWN = 0,
- XR_TYPE_API_LAYER_PROPERTIES = 1,
- XR_TYPE_EXTENSION_PROPERTIES = 2,
- XR_TYPE_INSTANCE_CREATE_INFO = 3,
- XR_TYPE_SYSTEM_GET_INFO = 4,
- XR_TYPE_SYSTEM_PROPERTIES = 5,
- XR_TYPE_VIEW_LOCATE_INFO = 6,
- XR_TYPE_VIEW = 7,
- XR_TYPE_SESSION_CREATE_INFO = 8,
- XR_TYPE_SWAPCHAIN_CREATE_INFO = 9,
- XR_TYPE_SESSION_BEGIN_INFO = 10,
- XR_TYPE_VIEW_STATE = 11,
- XR_TYPE_FRAME_END_INFO = 12,
- XR_TYPE_HAPTIC_VIBRATION = 13,
- XR_TYPE_EVENT_DATA_BUFFER = 16,
- XR_TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING = 17,
- XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED = 18,
- XR_TYPE_ACTION_STATE_BOOLEAN = 23,
- XR_TYPE_ACTION_STATE_FLOAT = 24,
- XR_TYPE_ACTION_STATE_VECTOR2F = 25,
- XR_TYPE_ACTION_STATE_POSE = 27,
- XR_TYPE_ACTION_SET_CREATE_INFO = 28,
- XR_TYPE_ACTION_CREATE_INFO = 29,
- XR_TYPE_INSTANCE_PROPERTIES = 32,
- XR_TYPE_FRAME_WAIT_INFO = 33,
- XR_TYPE_COMPOSITION_LAYER_PROJECTION = 35,
- XR_TYPE_COMPOSITION_LAYER_QUAD = 36,
- XR_TYPE_REFERENCE_SPACE_CREATE_INFO = 37,
- XR_TYPE_ACTION_SPACE_CREATE_INFO = 38,
- XR_TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING = 40,
- XR_TYPE_VIEW_CONFIGURATION_VIEW = 41,
- XR_TYPE_SPACE_LOCATION = 42,
- XR_TYPE_SPACE_VELOCITY = 43,
- XR_TYPE_FRAME_STATE = 44,
- XR_TYPE_VIEW_CONFIGURATION_PROPERTIES = 45,
- XR_TYPE_FRAME_BEGIN_INFO = 46,
- XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW = 48,
- XR_TYPE_EVENT_DATA_EVENTS_LOST = 49,
- XR_TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING = 51,
- XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED = 52,
- XR_TYPE_INTERACTION_PROFILE_STATE = 53,
- XR_TYPE_SWAPCHAIN_IMAGE_ACQUIRE_INFO = 55,
- XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO = 56,
- XR_TYPE_SWAPCHAIN_IMAGE_RELEASE_INFO = 57,
- XR_TYPE_ACTION_STATE_GET_INFO = 58,
- XR_TYPE_HAPTIC_ACTION_INFO = 59,
- XR_TYPE_SESSION_ACTION_SETS_ATTACH_INFO = 60,
- XR_TYPE_ACTIONS_SYNC_INFO = 61,
- XR_TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO = 62,
- XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO = 63;
-
+ XR_TYPE_UNKNOWN = 0,
+ XR_TYPE_API_LAYER_PROPERTIES = 1,
+ XR_TYPE_EXTENSION_PROPERTIES = 2,
+ XR_TYPE_INSTANCE_CREATE_INFO = 3,
+ XR_TYPE_SYSTEM_GET_INFO = 4,
+ XR_TYPE_SYSTEM_PROPERTIES = 5,
+ XR_TYPE_VIEW_LOCATE_INFO = 6,
+ XR_TYPE_VIEW = 7,
+ XR_TYPE_SESSION_CREATE_INFO = 8,
+ XR_TYPE_SWAPCHAIN_CREATE_INFO = 9,
+ XR_TYPE_SESSION_BEGIN_INFO = 10,
+ XR_TYPE_VIEW_STATE = 11,
+ XR_TYPE_FRAME_END_INFO = 12,
+ XR_TYPE_HAPTIC_VIBRATION = 13,
+ XR_TYPE_EVENT_DATA_BUFFER = 16,
+ XR_TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING = 17,
+ XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED = 18,
+ XR_TYPE_ACTION_STATE_BOOLEAN = 23,
+ XR_TYPE_ACTION_STATE_FLOAT = 24,
+ XR_TYPE_ACTION_STATE_VECTOR2F = 25,
+ XR_TYPE_ACTION_STATE_POSE = 27,
+ XR_TYPE_ACTION_SET_CREATE_INFO = 28,
+ XR_TYPE_ACTION_CREATE_INFO = 29,
+ XR_TYPE_INSTANCE_PROPERTIES = 32,
+ XR_TYPE_FRAME_WAIT_INFO = 33,
+ XR_TYPE_COMPOSITION_LAYER_PROJECTION = 35,
+ XR_TYPE_COMPOSITION_LAYER_QUAD = 36,
+ XR_TYPE_REFERENCE_SPACE_CREATE_INFO = 37,
+ XR_TYPE_ACTION_SPACE_CREATE_INFO = 38,
+ XR_TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING = 40,
+ XR_TYPE_VIEW_CONFIGURATION_VIEW = 41,
+ XR_TYPE_SPACE_LOCATION = 42,
+ XR_TYPE_SPACE_VELOCITY = 43,
+ XR_TYPE_FRAME_STATE = 44,
+ XR_TYPE_VIEW_CONFIGURATION_PROPERTIES = 45,
+ XR_TYPE_FRAME_BEGIN_INFO = 46,
+ XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW = 48,
+ XR_TYPE_EVENT_DATA_EVENTS_LOST = 49,
+ XR_TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING = 51,
+ XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED = 52,
+ XR_TYPE_INTERACTION_PROFILE_STATE = 53,
+ XR_TYPE_SWAPCHAIN_IMAGE_ACQUIRE_INFO = 55,
+ XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO = 56,
+ XR_TYPE_SWAPCHAIN_IMAGE_RELEASE_INFO = 57,
+ XR_TYPE_ACTION_STATE_GET_INFO = 58,
+ XR_TYPE_HAPTIC_ACTION_INFO = 59,
+ XR_TYPE_SESSION_ACTION_SETS_ATTACH_INFO = 60,
+ XR_TYPE_ACTIONS_SYNC_INFO = 61,
+ XR_TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO = 62,
+ XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO = 63;
+
/**
* XrFormFactor - Supported form factors
*
@@ -339,11 +339,11 @@ public class XR10 {
* See Also
*
* {@link #XR_NULL_SYSTEM_ID NULL_SYSTEM_ID}, {@link XrSystemGetInfo}, {@link #xrGetSystem GetSystem}
- */
+ */
public static final int
- XR_FORM_FACTOR_HEAD_MOUNTED_DISPLAY = 1,
- XR_FORM_FACTOR_HANDHELD_DISPLAY = 2;
-
+ XR_FORM_FACTOR_HEAD_MOUNTED_DISPLAY = 1,
+ XR_FORM_FACTOR_HANDHELD_DISPLAY = 2;
+
/**
* XrViewConfigurationType - Supported view configuration type
*
@@ -363,11 +363,11 @@ public class XR10 {
* See Also
*
* {@link XrEventDataVisibilityMaskChangedKHR}, {@link XrSecondaryViewConfigurationLayerInfoMSFT}, {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT}, {@link XrSecondaryViewConfigurationStateMSFT}, {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT}, {@link XrSessionBeginInfo}, {@link XrViewConfigurationProperties}, {@link XrViewLocateInfo}, {@link #xrEnumerateEnvironmentBlendModes EnumerateEnvironmentBlendModes}, {@link MSFTCompositionLayerReprojection#xrEnumerateReprojectionModesMSFT EnumerateReprojectionModesMSFT}, {@link #xrEnumerateViewConfigurationViews EnumerateViewConfigurationViews}, {@link #xrEnumerateViewConfigurations EnumerateViewConfigurations}, {@link #xrGetViewConfigurationProperties GetViewConfigurationProperties}, {@link KHRVisibilityMask#xrGetVisibilityMaskKHR GetVisibilityMaskKHR}
- */
+ */
public static final int
- XR_VIEW_CONFIGURATION_TYPE_PRIMARY_MONO = 1,
- XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO = 2;
-
+ XR_VIEW_CONFIGURATION_TYPE_PRIMARY_MONO = 1,
+ XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO = 2;
+
/**
* XrEnvironmentBlendMode - Environment blend modes
*
@@ -382,12 +382,12 @@ public class XR10 {
* See Also
*
* {@link XrFrameEndInfo}, {@link XrSecondaryViewConfigurationLayerInfoMSFT}, {@link #xrEnumerateEnvironmentBlendModes EnumerateEnvironmentBlendModes}
- */
+ */
public static final int
- XR_ENVIRONMENT_BLEND_MODE_OPAQUE = 1,
- XR_ENVIRONMENT_BLEND_MODE_ADDITIVE = 2,
- XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND = 3;
-
+ XR_ENVIRONMENT_BLEND_MODE_OPAQUE = 1,
+ XR_ENVIRONMENT_BLEND_MODE_ADDITIVE = 2,
+ XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND = 3;
+
/**
* XrSpaceVelocityFlagBits - Space velocity flags
*
@@ -405,11 +405,11 @@ public class XR10 {
* See Also
*
* {@link XrSpaceVelocity}
- */
+ */
public static final int
- XR_SPACE_VELOCITY_LINEAR_VALID_BIT = 0x1,
- XR_SPACE_VELOCITY_ANGULAR_VALID_BIT = 0x2;
-
+ XR_SPACE_VELOCITY_LINEAR_VALID_BIT = 0x1,
+ XR_SPACE_VELOCITY_ANGULAR_VALID_BIT = 0x2;
+
/**
* XrReferenceSpaceType - Reference space types
*
@@ -450,12 +450,12 @@ public class XR10 {
* See Also
*
* {@link XrEventDataReferenceSpaceChangePending}, {@link XrReferenceSpaceCreateInfo}, {@link #xrEnumerateReferenceSpaces EnumerateReferenceSpaces}, {@link #xrGetReferenceSpaceBoundsRect GetReferenceSpaceBoundsRect}
- */
+ */
public static final int
- XR_REFERENCE_SPACE_TYPE_VIEW = 1,
- XR_REFERENCE_SPACE_TYPE_LOCAL = 2,
- XR_REFERENCE_SPACE_TYPE_STAGE = 3;
-
+ XR_REFERENCE_SPACE_TYPE_VIEW = 1,
+ XR_REFERENCE_SPACE_TYPE_LOCAL = 2,
+ XR_REFERENCE_SPACE_TYPE_STAGE = 3;
+
/**
* XrSpaceLocationFlagBits - Space location flags
*
@@ -475,13 +475,13 @@ public class XR10 {
* See Also
*
* {@link XrSpaceLocation}, {@link #xrLocateSpace LocateSpace}
- */
+ */
public static final int
- XR_SPACE_LOCATION_ORIENTATION_VALID_BIT = 0x1,
- XR_SPACE_LOCATION_POSITION_VALID_BIT = 0x2,
- XR_SPACE_LOCATION_ORIENTATION_TRACKED_BIT = 0x4,
- XR_SPACE_LOCATION_POSITION_TRACKED_BIT = 0x8;
-
+ XR_SPACE_LOCATION_ORIENTATION_VALID_BIT = 0x1,
+ XR_SPACE_LOCATION_POSITION_VALID_BIT = 0x2,
+ XR_SPACE_LOCATION_ORIENTATION_TRACKED_BIT = 0x4,
+ XR_SPACE_LOCATION_POSITION_TRACKED_BIT = 0x8;
+
/**
* XrSwapchainCreateFlagBits - Swapchain creation flags
*
@@ -501,11 +501,11 @@ public class XR10 {
* See Also
*
* {@link XrSwapchainCreateInfo}
- */
+ */
public static final int
- XR_SWAPCHAIN_CREATE_PROTECTED_CONTENT_BIT = 0x1,
- XR_SWAPCHAIN_CREATE_STATIC_IMAGE_BIT = 0x2;
-
+ XR_SWAPCHAIN_CREATE_PROTECTED_CONTENT_BIT = 0x1,
+ XR_SWAPCHAIN_CREATE_STATIC_IMAGE_BIT = 0x2;
+
/**
* XrSwapchainUsageFlagBits - Swapchain usage flags
*
@@ -530,16 +530,16 @@ public class XR10 {
* See Also
*
* {@link XrSwapchainCreateInfo}, {@link #xrCreateSwapchain CreateSwapchain}
- */
+ */
public static final int
- XR_SWAPCHAIN_USAGE_COLOR_ATTACHMENT_BIT = 0x1,
- XR_SWAPCHAIN_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x2,
- XR_SWAPCHAIN_USAGE_UNORDERED_ACCESS_BIT = 0x4,
- XR_SWAPCHAIN_USAGE_TRANSFER_SRC_BIT = 0x8,
- XR_SWAPCHAIN_USAGE_TRANSFER_DST_BIT = 0x10,
- XR_SWAPCHAIN_USAGE_SAMPLED_BIT = 0x20,
- XR_SWAPCHAIN_USAGE_MUTABLE_FORMAT_BIT = 0x40;
-
+ XR_SWAPCHAIN_USAGE_COLOR_ATTACHMENT_BIT = 0x1,
+ XR_SWAPCHAIN_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x2,
+ XR_SWAPCHAIN_USAGE_UNORDERED_ACCESS_BIT = 0x4,
+ XR_SWAPCHAIN_USAGE_TRANSFER_SRC_BIT = 0x8,
+ XR_SWAPCHAIN_USAGE_TRANSFER_DST_BIT = 0x10,
+ XR_SWAPCHAIN_USAGE_SAMPLED_BIT = 0x20,
+ XR_SWAPCHAIN_USAGE_MUTABLE_FORMAT_BIT = 0x40;
+
/**
* XrCompositionLayerFlagBits - Composition layer flags
*
@@ -558,12 +558,12 @@ public class XR10 {
* See Also
*
* {@link XrCompositionLayerProjection}, {@link XrCompositionLayerQuad}
- */
+ */
public static final int
- XR_COMPOSITION_LAYER_CORRECT_CHROMATIC_ABERRATION_BIT = 0x1,
- XR_COMPOSITION_LAYER_BLEND_TEXTURE_SOURCE_ALPHA_BIT = 0x2,
- XR_COMPOSITION_LAYER_UNPREMULTIPLIED_ALPHA_BIT = 0x4;
-
+ XR_COMPOSITION_LAYER_CORRECT_CHROMATIC_ABERRATION_BIT = 0x1,
+ XR_COMPOSITION_LAYER_BLEND_TEXTURE_SOURCE_ALPHA_BIT = 0x2,
+ XR_COMPOSITION_LAYER_UNPREMULTIPLIED_ALPHA_BIT = 0x4;
+
/**
* XrViewStateFlagBits - View state flags
*
@@ -583,13 +583,13 @@ public class XR10 {
* See Also
*
* {@link XrView}, {@link XrViewState}, {@link #xrLocateViews LocateViews}
- */
+ */
public static final int
- XR_VIEW_STATE_ORIENTATION_VALID_BIT = 0x1,
- XR_VIEW_STATE_POSITION_VALID_BIT = 0x2,
- XR_VIEW_STATE_ORIENTATION_TRACKED_BIT = 0x4,
- XR_VIEW_STATE_POSITION_TRACKED_BIT = 0x8;
-
+ XR_VIEW_STATE_ORIENTATION_VALID_BIT = 0x1,
+ XR_VIEW_STATE_POSITION_VALID_BIT = 0x2,
+ XR_VIEW_STATE_ORIENTATION_TRACKED_BIT = 0x4,
+ XR_VIEW_STATE_POSITION_TRACKED_BIT = 0x8;
+
/**
* XrActionType - XrAction type
*
@@ -606,14 +606,14 @@ public class XR10 {
* See Also
*
* {@link XrActionCreateInfo}, {@link #xrCreateActionSet CreateActionSet}
- */
+ */
public static final int
- XR_ACTION_TYPE_BOOLEAN_INPUT = 1,
- XR_ACTION_TYPE_FLOAT_INPUT = 2,
- XR_ACTION_TYPE_VECTOR2F_INPUT = 3,
- XR_ACTION_TYPE_POSE_INPUT = 4,
- XR_ACTION_TYPE_VIBRATION_OUTPUT = 100;
-
+ XR_ACTION_TYPE_BOOLEAN_INPUT = 1,
+ XR_ACTION_TYPE_FLOAT_INPUT = 2,
+ XR_ACTION_TYPE_VECTOR2F_INPUT = 3,
+ XR_ACTION_TYPE_POSE_INPUT = 4,
+ XR_ACTION_TYPE_VIBRATION_OUTPUT = 100;
+
/**
* XrInputSourceLocalizedNameFlagBits - Input source localized name flags
*
@@ -632,12 +632,12 @@ public class XR10 {
* See Also
*
* {@link #xrGetInputSourceLocalizedName GetInputSourceLocalizedName}
- */
+ */
public static final int
- XR_INPUT_SOURCE_LOCALIZED_NAME_USER_PATH_BIT = 0x1,
- XR_INPUT_SOURCE_LOCALIZED_NAME_INTERACTION_PROFILE_BIT = 0x2,
- XR_INPUT_SOURCE_LOCALIZED_NAME_COMPONENT_BIT = 0x4;
-
+ XR_INPUT_SOURCE_LOCALIZED_NAME_USER_PATH_BIT = 0x1,
+ XR_INPUT_SOURCE_LOCALIZED_NAME_INTERACTION_PROFILE_BIT = 0x2,
+ XR_INPUT_SOURCE_LOCALIZED_NAME_COMPONENT_BIT = 0x4;
+
/**
* XrEyeVisibility - Eye visibility selector
*
@@ -652,12 +652,12 @@ public class XR10 {
* See Also
*
* {@link XrCompositionLayerCubeKHR}, {@link XrCompositionLayerCylinderKHR}, {@link XrCompositionLayerEquirect2KHR}, {@link XrCompositionLayerEquirectKHR}, {@link XrCompositionLayerQuad}
- */
+ */
public static final int
- XR_EYE_VISIBILITY_BOTH = 0,
- XR_EYE_VISIBILITY_LEFT = 1,
- XR_EYE_VISIBILITY_RIGHT = 2;
-
+ XR_EYE_VISIBILITY_BOTH = 0,
+ XR_EYE_VISIBILITY_LEFT = 1,
+ XR_EYE_VISIBILITY_RIGHT = 2;
+
/**
* XrSessionState - Session lifecycle state
*
@@ -696,18 +696,18 @@ public class XR10 {
* See Also
*
* {@link XrEventDataSessionStateChanged}, {@link #xrPollEvent PollEvent}
- */
+ */
public static final int
- XR_SESSION_STATE_UNKNOWN = 0,
- XR_SESSION_STATE_IDLE = 1,
- XR_SESSION_STATE_READY = 2,
- XR_SESSION_STATE_SYNCHRONIZED = 3,
- XR_SESSION_STATE_VISIBLE = 4,
- XR_SESSION_STATE_FOCUSED = 5,
- XR_SESSION_STATE_STOPPING = 6,
- XR_SESSION_STATE_LOSS_PENDING = 7,
- XR_SESSION_STATE_EXITING = 8;
-
+ XR_SESSION_STATE_UNKNOWN = 0,
+ XR_SESSION_STATE_IDLE = 1,
+ XR_SESSION_STATE_READY = 2,
+ XR_SESSION_STATE_SYNCHRONIZED = 3,
+ XR_SESSION_STATE_VISIBLE = 4,
+ XR_SESSION_STATE_FOCUSED = 5,
+ XR_SESSION_STATE_STOPPING = 6,
+ XR_SESSION_STATE_LOSS_PENDING = 7,
+ XR_SESSION_STATE_EXITING = 8;
+
/**
* XrObjectType - Specify an enumeration to track object handle types
*
@@ -733,76 +733,76 @@ public class XR10 {
* See Also
*
* {@link XrDebugUtilsObjectNameInfoEXT}
- */
+ */
public static final int
- XR_OBJECT_TYPE_UNKNOWN = 0,
- XR_OBJECT_TYPE_INSTANCE = 1,
- XR_OBJECT_TYPE_SESSION = 2,
- XR_OBJECT_TYPE_SWAPCHAIN = 3,
- XR_OBJECT_TYPE_SPACE = 4,
- XR_OBJECT_TYPE_ACTION_SET = 5,
- XR_OBJECT_TYPE_ACTION = 6;
-
- /** OpenXR current version number. */
- public static final long XR_CURRENT_API_VERSION = XR_MAKE_VERSION(1, 0, 29);
-
- /** Compile-time symbols, ignore. */
+ XR_OBJECT_TYPE_UNKNOWN = 0,
+ XR_OBJECT_TYPE_INSTANCE = 1,
+ XR_OBJECT_TYPE_SESSION = 2,
+ XR_OBJECT_TYPE_SWAPCHAIN = 3,
+ XR_OBJECT_TYPE_SPACE = 4,
+ XR_OBJECT_TYPE_ACTION_SET = 5,
+ XR_OBJECT_TYPE_ACTION = 6;
+
+ /** OpenXR current version number. */
+ public static final long XR_CURRENT_API_VERSION = XR_MAKE_VERSION(1, 0, 27);
+
+ /** Compile-time symbols, ignore. */
public static final int
- XR_USE_GRAPHICS_API_OPENGL = 0,
- XR_USE_GRAPHICS_API_OPENGL_ES = 0,
- XR_USE_GRAPHICS_API_VULKAN = 0,
- XR_USE_PLATFORM_EGL = 0,
- XR_USE_PLATFORM_WIN32 = 0,
- XR_USE_PLATFORM_XLIB = 0,
- XR_USE_PLATFORM_XCB = 0,
- XR_USE_PLATFORM_WAYLAND = 0;
-
- /** API Constants */
+ XR_USE_GRAPHICS_API_OPENGL = 0,
+ XR_USE_GRAPHICS_API_OPENGL_ES = 0,
+ XR_USE_GRAPHICS_API_VULKAN = 0,
+ XR_USE_PLATFORM_EGL = 0,
+ XR_USE_PLATFORM_WIN32 = 0,
+ XR_USE_PLATFORM_XLIB = 0,
+ XR_USE_PLATFORM_XCB = 0,
+ XR_USE_PLATFORM_WAYLAND = 0;
+
+ /** API Constants */
public static final long
- XR_NULL_HANDLE = 0x0L,
- XR_NULL_PATH = 0x0L,
- XR_NULL_SYSTEM_ID = 0x0L,
- XR_NO_DURATION = 0x0L,
- XR_INFINITE_DURATION = 0x7FFF_FFFF_FFFF_FFFFL,
- XR_MIN_HAPTIC_DURATION = 0xFFFFFFFFFFFFFFFFL,
- XR_MAX_EVENT_DATA_SIZE = XrEventDataBuffer.SIZEOF;
-
- /** API Constants */
- public static final float XR_FREQUENCY_UNSPECIFIED = 0f;
-
- /** API Constants */
+ XR_NULL_HANDLE = 0x0L,
+ XR_NULL_PATH = 0x0L,
+ XR_NULL_SYSTEM_ID = 0x0L,
+ XR_NO_DURATION = 0x0L,
+ XR_INFINITE_DURATION = 0x7FFF_FFFF_FFFF_FFFFL,
+ XR_MIN_HAPTIC_DURATION = 0xFFFFFFFFFFFFFFFFL,
+ XR_MAX_EVENT_DATA_SIZE = XrEventDataBuffer.SIZEOF;
+
+ /** API Constants */
+ public static final float XR_FREQUENCY_UNSPECIFIED = 0f;
+
+ /** API Constants */
public static final int
- XR_TRUE = 1,
- XR_FALSE = 0,
- XR_MAX_EXTENSION_NAME_SIZE = 128,
- XR_MAX_API_LAYER_NAME_SIZE = 256,
- XR_MAX_API_LAYER_DESCRIPTION_SIZE = 256,
- XR_MAX_SYSTEM_NAME_SIZE = 256,
- XR_MAX_APPLICATION_NAME_SIZE = 128,
- XR_MAX_ENGINE_NAME_SIZE = 128,
- XR_MAX_RUNTIME_NAME_SIZE = 128,
- XR_MAX_PATH_LENGTH = 256,
- XR_MAX_STRUCTURE_NAME_SIZE = 64,
- XR_MAX_RESULT_STRING_SIZE = 64,
- XR_MAX_GRAPHICS_APIS_SUPPORTED = 32,
- XR_MAX_ACTION_SET_NAME_SIZE = 64,
- XR_MAX_ACTION_NAME_SIZE = 64,
- XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE = 128,
- XR_MAX_LOCALIZED_ACTION_NAME_SIZE = 128,
- XR_MIN_COMPOSITION_LAYERS_SUPPORTED = 16;
+ XR_TRUE = 1,
+ XR_FALSE = 0,
+ XR_MAX_EXTENSION_NAME_SIZE = 128,
+ XR_MAX_API_LAYER_NAME_SIZE = 256,
+ XR_MAX_API_LAYER_DESCRIPTION_SIZE = 256,
+ XR_MAX_SYSTEM_NAME_SIZE = 256,
+ XR_MAX_APPLICATION_NAME_SIZE = 128,
+ XR_MAX_ENGINE_NAME_SIZE = 128,
+ XR_MAX_RUNTIME_NAME_SIZE = 128,
+ XR_MAX_PATH_LENGTH = 256,
+ XR_MAX_STRUCTURE_NAME_SIZE = 64,
+ XR_MAX_RESULT_STRING_SIZE = 64,
+ XR_MAX_GRAPHICS_APIS_SUPPORTED = 32,
+ XR_MAX_ACTION_SET_NAME_SIZE = 64,
+ XR_MAX_ACTION_NAME_SIZE = 64,
+ XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE = 128,
+ XR_MAX_LOCALIZED_ACTION_NAME_SIZE = 128,
+ XR_MIN_COMPOSITION_LAYERS_SUPPORTED = 16;
protected XR10() {
throw new UnsupportedOperationException();
- }
-
- // --- [ xrGetInstanceProcAddr ] ---
-
- /** Unsafe version of: {@link #xrGetInstanceProcAddr GetInstanceProcAddr} */
- public static int nxrGetInstanceProcAddr(long instance, long name, long function) {
- long __functionAddress = XR.getGlobalCommands().xrGetInstanceProcAddr;
- return callPPPI(instance, name, function, __functionAddress);
- }
-
+ }
+
+ // --- [ xrGetInstanceProcAddr ] ---
+
+ /** Unsafe version of: {@link #xrGetInstanceProcAddr GetInstanceProcAddr} */
+ public static int nxrGetInstanceProcAddr(long instance, long name, long function) {
+ long __functionAddress = XR.getGlobalCommands().xrGetInstanceProcAddr;
+ return callPPPI(instance, name, function, __functionAddress);
+ }
+
/**
* Gets a function pointer for an OpenXR function.
*
@@ -891,16 +891,16 @@ public static int nxrGetInstanceProcAddr(long instance, long name, long function
* @param instance the instance that the function pointer will be compatible with, or {@code NULL} for functions not dependent on any instance.
* @param name the name of the function to obtain.
* @param function the address of the function pointer to get.
- */
- @NativeType("XrResult")
- public static int xrGetInstanceProcAddr(@Nullable XrInstance instance, @NativeType("char const *") ByteBuffer name, @NativeType("PFN_xrVoidFunction *") PointerBuffer function) {
- if (CHECKS) {
- checkNT1(name);
- check(function, 1);
- }
- return nxrGetInstanceProcAddr(memAddressSafe(instance), memAddress(name), memAddress(function));
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrGetInstanceProcAddr(@Nullable XrInstance instance, @NativeType("char const *") ByteBuffer name, @NativeType("PFN_xrVoidFunction *") PointerBuffer function) {
+ if (CHECKS) {
+ checkNT1(name);
+ check(function, 1);
+ }
+ return nxrGetInstanceProcAddr(memAddressSafe(instance), memAddress(name), memAddress(function));
+ }
+
/**
* Gets a function pointer for an OpenXR function.
*
@@ -989,34 +989,34 @@ public static int xrGetInstanceProcAddr(@Nullable XrInstance instance, @NativeTy
* @param instance the instance that the function pointer will be compatible with, or {@code NULL} for functions not dependent on any instance.
* @param name the name of the function to obtain.
* @param function the address of the function pointer to get.
- */
- @NativeType("XrResult")
- public static int xrGetInstanceProcAddr(@Nullable XrInstance instance, @NativeType("char const *") CharSequence name, @NativeType("PFN_xrVoidFunction *") PointerBuffer function) {
- if (CHECKS) {
- check(function, 1);
- }
- MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
- try {
- stack.nUTF8(name, true);
- long nameEncoded = stack.getPointerAddress();
- return nxrGetInstanceProcAddr(memAddressSafe(instance), nameEncoded, memAddress(function));
- } finally {
- stack.setPointer(stackPointer);
- }
- }
-
- // --- [ xrEnumerateApiLayerProperties ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrGetInstanceProcAddr(@Nullable XrInstance instance, @NativeType("char const *") CharSequence name, @NativeType("PFN_xrVoidFunction *") PointerBuffer function) {
+ if (CHECKS) {
+ check(function, 1);
+ }
+ MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
+ try {
+ stack.nUTF8(name, true);
+ long nameEncoded = stack.getPointerAddress();
+ return nxrGetInstanceProcAddr(memAddressSafe(instance), nameEncoded, memAddress(function));
+ } finally {
+ stack.setPointer(stackPointer);
+ }
+ }
+
+ // --- [ xrEnumerateApiLayerProperties ] ---
+
/**
* Unsafe version of: {@link #xrEnumerateApiLayerProperties EnumerateApiLayerProperties}
*
* @param propertyCapacityInput the capacity of the {@code properties} array, or 0 to indicate a request to retrieve the required capacity.
- */
- public static int nxrEnumerateApiLayerProperties(int propertyCapacityInput, long propertyCountOutput, long properties) {
- long __functionAddress = XR.getGlobalCommands().xrEnumerateApiLayerProperties;
- return callPPI(propertyCapacityInput, propertyCountOutput, properties, __functionAddress);
- }
-
+ */
+ public static int nxrEnumerateApiLayerProperties(int propertyCapacityInput, long propertyCountOutput, long properties) {
+ long __functionAddress = XR.getGlobalCommands().xrEnumerateApiLayerProperties;
+ return callPPI(propertyCapacityInput, propertyCountOutput, properties, __functionAddress);
+ }
+
/**
* Returns up to requested number of global layer properties.
*
@@ -1065,27 +1065,27 @@ public static int nxrEnumerateApiLayerProperties(int propertyCapacityInput, long
*
* @param propertyCountOutput a pointer to the count of {@code properties} written, or a pointer to the required capacity in the case that {@code propertyCapacityInput} is insufficient.
* @param properties a pointer to an array of {@link XrApiLayerProperties} structures, but can be {@code NULL} if {@code propertyCapacityInput} is 0.
- */
- @NativeType("XrResult")
- public static int xrEnumerateApiLayerProperties(@NativeType("uint32_t *") IntBuffer propertyCountOutput, @Nullable @NativeType("XrApiLayerProperties *") XrApiLayerProperties.Buffer properties) {
- if (CHECKS) {
- check(propertyCountOutput, 1);
- }
- return nxrEnumerateApiLayerProperties(remainingSafe(properties), memAddress(propertyCountOutput), memAddressSafe(properties));
- }
-
- // --- [ xrEnumerateInstanceExtensionProperties ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrEnumerateApiLayerProperties(@NativeType("uint32_t *") IntBuffer propertyCountOutput, @Nullable @NativeType("XrApiLayerProperties *") XrApiLayerProperties.Buffer properties) {
+ if (CHECKS) {
+ check(propertyCountOutput, 1);
+ }
+ return nxrEnumerateApiLayerProperties(remainingSafe(properties), memAddress(propertyCountOutput), memAddressSafe(properties));
+ }
+
+ // --- [ xrEnumerateInstanceExtensionProperties ] ---
+
/**
* Unsafe version of: {@link #xrEnumerateInstanceExtensionProperties EnumerateInstanceExtensionProperties}
*
* @param propertyCapacityInput the capacity of the {@code properties} array, or 0 to indicate a request to retrieve the required capacity.
- */
- public static int nxrEnumerateInstanceExtensionProperties(long layerName, int propertyCapacityInput, long propertyCountOutput, long properties) {
- long __functionAddress = XR.getGlobalCommands().xrEnumerateInstanceExtensionProperties;
- return callPPPI(layerName, propertyCapacityInput, propertyCountOutput, properties, __functionAddress);
- }
-
+ */
+ public static int nxrEnumerateInstanceExtensionProperties(long layerName, int propertyCapacityInput, long propertyCountOutput, long properties) {
+ long __functionAddress = XR.getGlobalCommands().xrEnumerateInstanceExtensionProperties;
+ return callPPPI(layerName, propertyCapacityInput, propertyCountOutput, properties, __functionAddress);
+ }
+
/**
* Returns properties of available instance extensions.
*
@@ -1137,16 +1137,16 @@ public static int nxrEnumerateInstanceExtensionProperties(long layerName, int pr
* @param layerName either {@code NULL} or a pointer to a string naming the API layer to retrieve extensions from, as returned by {@link #xrEnumerateApiLayerProperties EnumerateApiLayerProperties}.
* @param propertyCountOutput a pointer to the count of {@code properties} written, or a pointer to the required capacity in the case that {@code propertyCapacityInput} is insufficient.
* @param properties a pointer to an array of {@link XrExtensionProperties} structures, but can be {@code NULL} if {@code propertyCapacityInput} is 0.
- */
- @NativeType("XrResult")
- public static int xrEnumerateInstanceExtensionProperties(@Nullable @NativeType("char const *") ByteBuffer layerName, @NativeType("uint32_t *") IntBuffer propertyCountOutput, @Nullable @NativeType("XrExtensionProperties *") XrExtensionProperties.Buffer properties) {
- if (CHECKS) {
- checkNT1Safe(layerName);
- check(propertyCountOutput, 1);
- }
- return nxrEnumerateInstanceExtensionProperties(memAddressSafe(layerName), remainingSafe(properties), memAddress(propertyCountOutput), memAddressSafe(properties));
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrEnumerateInstanceExtensionProperties(@Nullable @NativeType("char const *") ByteBuffer layerName, @NativeType("uint32_t *") IntBuffer propertyCountOutput, @Nullable @NativeType("XrExtensionProperties *") XrExtensionProperties.Buffer properties) {
+ if (CHECKS) {
+ checkNT1Safe(layerName);
+ check(propertyCountOutput, 1);
+ }
+ return nxrEnumerateInstanceExtensionProperties(memAddressSafe(layerName), remainingSafe(properties), memAddress(propertyCountOutput), memAddressSafe(properties));
+ }
+
/**
* Returns properties of available instance extensions.
*
@@ -1198,33 +1198,33 @@ public static int xrEnumerateInstanceExtensionProperties(@Nullable @NativeType("
* @param layerName either {@code NULL} or a pointer to a string naming the API layer to retrieve extensions from, as returned by {@link #xrEnumerateApiLayerProperties EnumerateApiLayerProperties}.
* @param propertyCountOutput a pointer to the count of {@code properties} written, or a pointer to the required capacity in the case that {@code propertyCapacityInput} is insufficient.
* @param properties a pointer to an array of {@link XrExtensionProperties} structures, but can be {@code NULL} if {@code propertyCapacityInput} is 0.
- */
- @NativeType("XrResult")
- public static int xrEnumerateInstanceExtensionProperties(@Nullable @NativeType("char const *") CharSequence layerName, @NativeType("uint32_t *") IntBuffer propertyCountOutput, @Nullable @NativeType("XrExtensionProperties *") XrExtensionProperties.Buffer properties) {
- if (CHECKS) {
- check(propertyCountOutput, 1);
- }
- MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
- try {
- stack.nUTF8Safe(layerName, true);
- long layerNameEncoded = layerName == null ? NULL : stack.getPointerAddress();
- return nxrEnumerateInstanceExtensionProperties(layerNameEncoded, remainingSafe(properties), memAddress(propertyCountOutput), memAddressSafe(properties));
- } finally {
- stack.setPointer(stackPointer);
- }
- }
-
- // --- [ xrCreateInstance ] ---
-
- /** Unsafe version of: {@link #xrCreateInstance CreateInstance} */
- public static int nxrCreateInstance(long createInfo, long instance) {
- long __functionAddress = XR.getGlobalCommands().xrCreateInstance;
- if (CHECKS) {
- XrInstanceCreateInfo.validate(createInfo);
- }
- return callPPI(createInfo, instance, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrEnumerateInstanceExtensionProperties(@Nullable @NativeType("char const *") CharSequence layerName, @NativeType("uint32_t *") IntBuffer propertyCountOutput, @Nullable @NativeType("XrExtensionProperties *") XrExtensionProperties.Buffer properties) {
+ if (CHECKS) {
+ check(propertyCountOutput, 1);
+ }
+ MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
+ try {
+ stack.nUTF8Safe(layerName, true);
+ long layerNameEncoded = layerName == null ? NULL : stack.getPointerAddress();
+ return nxrEnumerateInstanceExtensionProperties(layerNameEncoded, remainingSafe(properties), memAddress(propertyCountOutput), memAddressSafe(properties));
+ } finally {
+ stack.setPointer(stackPointer);
+ }
+ }
+
+ // --- [ xrCreateInstance ] ---
+
+ /** Unsafe version of: {@link #xrCreateInstance CreateInstance} */
+ public static int nxrCreateInstance(long createInfo, long instance) {
+ long __functionAddress = XR.getGlobalCommands().xrCreateInstance;
+ if (CHECKS) {
+ XrInstanceCreateInfo.validate(createInfo);
+ }
+ return callPPI(createInfo, instance, __functionAddress);
+ }
+
/**
* Creates an OpenXR Instance.
*
@@ -1280,17 +1280,17 @@ public static int nxrCreateInstance(long createInfo, long instance) {
*
* @param createInfo points to an instance of {@link XrInstanceCreateInfo} controlling creation of the instance.
* @param instance points to an {@code XrInstance} handle in which the resulting instance is returned.
- */
- @NativeType("XrResult")
- public static int xrCreateInstance(@NativeType("XrInstanceCreateInfo const *") XrInstanceCreateInfo createInfo, @NativeType("XrInstance *") PointerBuffer instance) {
- if (CHECKS) {
- check(instance, 1);
- }
- return nxrCreateInstance(createInfo.address(), memAddress(instance));
- }
-
- // --- [ xrDestroyInstance ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrCreateInstance(@NativeType("XrInstanceCreateInfo const *") XrInstanceCreateInfo createInfo, @NativeType("XrInstance *") PointerBuffer instance) {
+ if (CHECKS) {
+ check(instance, 1);
+ }
+ return nxrCreateInstance(createInfo.address(), memAddress(instance));
+ }
+
+ // --- [ xrDestroyInstance ] ---
+
/**
* Destroy an instance of OpenXR.
*
@@ -1334,21 +1334,21 @@ public static int xrCreateInstance(@NativeType("XrInstanceCreateInfo const *") X
* {@link #XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
*
*
- */
- @NativeType("XrResult")
- public static int xrDestroyInstance(XrInstance instance) {
- long __functionAddress = instance.getCapabilities().xrDestroyInstance;
- return callPI(instance.address(), __functionAddress);
- }
-
- // --- [ xrGetInstanceProperties ] ---
-
- /** Unsafe version of: {@link #xrGetInstanceProperties GetInstanceProperties} */
- public static int nxrGetInstanceProperties(XrInstance instance, long instanceProperties) {
- long __functionAddress = instance.getCapabilities().xrGetInstanceProperties;
- return callPPI(instance.address(), instanceProperties, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrDestroyInstance(XrInstance instance) {
+ long __functionAddress = instance.getCapabilities().xrDestroyInstance;
+ return callPI(instance.address(), __functionAddress);
+ }
+
+ // --- [ xrGetInstanceProperties ] ---
+
+ /** Unsafe version of: {@link #xrGetInstanceProperties GetInstanceProperties} */
+ public static int nxrGetInstanceProperties(XrInstance instance, long instanceProperties) {
+ long __functionAddress = instance.getCapabilities().xrGetInstanceProperties;
+ return callPPI(instance.address(), instanceProperties, __functionAddress);
+ }
+
/**
* Gets information about the instance.
*
@@ -1394,20 +1394,20 @@ public static int nxrGetInstanceProperties(XrInstance instance, long instancePro
*
* @param instance a handle to an {@code XrInstance} previously created with {@link #xrCreateInstance CreateInstance}.
* @param instanceProperties points to an {@link XrInstanceProperties} which describes the {@code instance}.
- */
- @NativeType("XrResult")
- public static int xrGetInstanceProperties(XrInstance instance, @NativeType("XrInstanceProperties *") XrInstanceProperties instanceProperties) {
- return nxrGetInstanceProperties(instance, instanceProperties.address());
- }
-
- // --- [ xrPollEvent ] ---
-
- /** Unsafe version of: {@link #xrPollEvent PollEvent} */
- public static int nxrPollEvent(XrInstance instance, long eventData) {
- long __functionAddress = instance.getCapabilities().xrPollEvent;
- return callPPI(instance.address(), eventData, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrGetInstanceProperties(XrInstance instance, @NativeType("XrInstanceProperties *") XrInstanceProperties instanceProperties) {
+ return nxrGetInstanceProperties(instance, instanceProperties.address());
+ }
+
+ // --- [ xrPollEvent ] ---
+
+ /** Unsafe version of: {@link #xrPollEvent PollEvent} */
+ public static int nxrPollEvent(XrInstance instance, long eventData) {
+ long __functionAddress = instance.getCapabilities().xrPollEvent;
+ return callPPI(instance.address(), eventData, __functionAddress);
+ }
+
/**
* Polls for events.
*
@@ -1467,20 +1467,20 @@ public static int nxrPollEvent(XrInstance instance, long eventData) {
* See Also
*
* {@link XrEventDataBuffer}
- */
- @NativeType("XrResult")
- public static int xrPollEvent(XrInstance instance, @NativeType("XrEventDataBuffer *") XrEventDataBuffer eventData) {
- return nxrPollEvent(instance, eventData.address());
- }
-
- // --- [ xrResultToString ] ---
-
- /** Unsafe version of: {@link #xrResultToString ResultToString} */
- public static int nxrResultToString(XrInstance instance, int value, long buffer) {
- long __functionAddress = instance.getCapabilities().xrResultToString;
- return callPPI(instance.address(), value, buffer, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrPollEvent(XrInstance instance, @NativeType("XrEventDataBuffer *") XrEventDataBuffer eventData) {
+ return nxrPollEvent(instance, eventData.address());
+ }
+
+ // --- [ xrResultToString ] ---
+
+ /** Unsafe version of: {@link #xrResultToString ResultToString} */
+ public static int nxrResultToString(XrInstance instance, int value, long buffer) {
+ long __functionAddress = instance.getCapabilities().xrResultToString;
+ return callPPI(instance.address(), value, buffer, __functionAddress);
+ }
+
/**
* Converts an XrResult to a UTF-8 string.
*
@@ -1537,23 +1537,23 @@ public static int nxrResultToString(XrInstance instance, int value, long buffer)
* @param instance the handle of the instance to ask for the string.
* @param value the {@code XrResult} value to turn into a string.
* @param buffer the buffer that will be used to return the string in.
- */
- @NativeType("XrResult")
- public static int xrResultToString(XrInstance instance, @NativeType("XrResult") int value, @NativeType("char *") ByteBuffer buffer) {
- if (CHECKS) {
- check(buffer, XR_MAX_RESULT_STRING_SIZE);
- }
- return nxrResultToString(instance, value, memAddress(buffer));
- }
-
- // --- [ xrStructureTypeToString ] ---
-
- /** Unsafe version of: {@link #xrStructureTypeToString StructureTypeToString} */
- public static int nxrStructureTypeToString(XrInstance instance, int value, long buffer) {
- long __functionAddress = instance.getCapabilities().xrStructureTypeToString;
- return callPPI(instance.address(), value, buffer, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrResultToString(XrInstance instance, @NativeType("XrResult") int value, @NativeType("char *") ByteBuffer buffer) {
+ if (CHECKS) {
+ check(buffer, XR_MAX_RESULT_STRING_SIZE);
+ }
+ return nxrResultToString(instance, value, memAddress(buffer));
+ }
+
+ // --- [ xrStructureTypeToString ] ---
+
+ /** Unsafe version of: {@link #xrStructureTypeToString StructureTypeToString} */
+ public static int nxrStructureTypeToString(XrInstance instance, int value, long buffer) {
+ long __functionAddress = instance.getCapabilities().xrStructureTypeToString;
+ return callPPI(instance.address(), value, buffer, __functionAddress);
+ }
+
/**
* Converts an XrStructureType to a UTF-8 string.
*
@@ -1611,23 +1611,23 @@ public static int nxrStructureTypeToString(XrInstance instance, int value, long
* @param instance the handle of the instance to ask for the string.
* @param value the {@code XrStructureType} value to turn into a string.
* @param buffer the buffer that will be used to return the string in.
- */
- @NativeType("XrResult")
- public static int xrStructureTypeToString(XrInstance instance, @NativeType("XrStructureType") int value, @NativeType("char *") ByteBuffer buffer) {
- if (CHECKS) {
- check(buffer, XR_MAX_STRUCTURE_NAME_SIZE);
- }
- return nxrStructureTypeToString(instance, value, memAddress(buffer));
- }
-
- // --- [ xrGetSystem ] ---
-
- /** Unsafe version of: {@link #xrGetSystem GetSystem} */
- public static int nxrGetSystem(XrInstance instance, long getInfo, long systemId) {
- long __functionAddress = instance.getCapabilities().xrGetSystem;
- return callPPPI(instance.address(), getInfo, systemId, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrStructureTypeToString(XrInstance instance, @NativeType("XrStructureType") int value, @NativeType("char *") ByteBuffer buffer) {
+ if (CHECKS) {
+ check(buffer, XR_MAX_STRUCTURE_NAME_SIZE);
+ }
+ return nxrStructureTypeToString(instance, value, memAddress(buffer));
+ }
+
+ // --- [ xrGetSystem ] ---
+
+ /** Unsafe version of: {@link #xrGetSystem GetSystem} */
+ public static int nxrGetSystem(XrInstance instance, long getInfo, long systemId) {
+ long __functionAddress = instance.getCapabilities().xrGetSystem;
+ return callPPPI(instance.address(), getInfo, systemId, __functionAddress);
+ }
+
/**
* Gets a system identifier.
*
@@ -1680,23 +1680,23 @@ public static int nxrGetSystem(XrInstance instance, long getInfo, long systemId)
* @param instance the handle of the instance from which to get the information.
* @param getInfo a pointer to an {@link XrSystemGetInfo} structure containing the application’s requests for a system.
* @param systemId the returned {@code XrSystemId}.
- */
- @NativeType("XrResult")
- public static int xrGetSystem(XrInstance instance, @NativeType("XrSystemGetInfo const *") XrSystemGetInfo getInfo, @NativeType("XrSystemId *") LongBuffer systemId) {
- if (CHECKS) {
- check(systemId, 1);
- }
- return nxrGetSystem(instance, getInfo.address(), memAddress(systemId));
- }
-
- // --- [ xrGetSystemProperties ] ---
-
- /** Unsafe version of: {@link #xrGetSystemProperties GetSystemProperties} */
- public static int nxrGetSystemProperties(XrInstance instance, long systemId, long properties) {
- long __functionAddress = instance.getCapabilities().xrGetSystemProperties;
- return callPJPI(instance.address(), systemId, properties, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrGetSystem(XrInstance instance, @NativeType("XrSystemGetInfo const *") XrSystemGetInfo getInfo, @NativeType("XrSystemId *") LongBuffer systemId) {
+ if (CHECKS) {
+ check(systemId, 1);
+ }
+ return nxrGetSystem(instance, getInfo.address(), memAddress(systemId));
+ }
+
+ // --- [ xrGetSystemProperties ] ---
+
+ /** Unsafe version of: {@link #xrGetSystemProperties GetSystemProperties} */
+ public static int nxrGetSystemProperties(XrInstance instance, long systemId, long properties) {
+ long __functionAddress = instance.getCapabilities().xrGetSystemProperties;
+ return callPJPI(instance.address(), systemId, properties, __functionAddress);
+ }
+
/**
* Gets the properties of a particular system.
*
@@ -1746,24 +1746,24 @@ public static int nxrGetSystemProperties(XrInstance instance, long systemId, lon
* @param instance the instance from which {@code systemId} was retrieved.
* @param systemId the {@code XrSystemId} whose properties will be queried.
* @param properties points to an instance of the {@link XrSystemProperties} structure, that will be filled with returned information.
- */
- @NativeType("XrResult")
- public static int xrGetSystemProperties(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrSystemProperties *") XrSystemProperties properties) {
- return nxrGetSystemProperties(instance, systemId, properties.address());
- }
-
- // --- [ xrEnumerateEnvironmentBlendModes ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrGetSystemProperties(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrSystemProperties *") XrSystemProperties properties) {
+ return nxrGetSystemProperties(instance, systemId, properties.address());
+ }
+
+ // --- [ xrEnumerateEnvironmentBlendModes ] ---
+
/**
* Unsafe version of: {@link #xrEnumerateEnvironmentBlendModes EnumerateEnvironmentBlendModes}
*
* @param environmentBlendModeCapacityInput the capacity of the {@code environmentBlendModes} array, or 0 to indicate a request to retrieve the required capacity.
- */
- public static int nxrEnumerateEnvironmentBlendModes(XrInstance instance, long systemId, int viewConfigurationType, int environmentBlendModeCapacityInput, long environmentBlendModeCountOutput, long environmentBlendModes) {
- long __functionAddress = instance.getCapabilities().xrEnumerateEnvironmentBlendModes;
- return callPJPPI(instance.address(), systemId, viewConfigurationType, environmentBlendModeCapacityInput, environmentBlendModeCountOutput, environmentBlendModes, __functionAddress);
- }
-
+ */
+ public static int nxrEnumerateEnvironmentBlendModes(XrInstance instance, long systemId, int viewConfigurationType, int environmentBlendModeCapacityInput, long environmentBlendModeCountOutput, long environmentBlendModes) {
+ long __functionAddress = instance.getCapabilities().xrEnumerateEnvironmentBlendModes;
+ return callPJPPI(instance.address(), systemId, viewConfigurationType, environmentBlendModeCapacityInput, environmentBlendModeCountOutput, environmentBlendModes, __functionAddress);
+ }
+
/**
* Lists environment blend modes.
*
@@ -1819,23 +1819,23 @@ public static int nxrEnumerateEnvironmentBlendModes(XrInstance instance, long sy
* @param viewConfigurationType the {@code XrViewConfigurationType} to enumerate.
* @param environmentBlendModeCountOutput a pointer to the count of {@code environmentBlendModes} written, or a pointer to the required capacity in the case that {@code environmentBlendModeCapacityInput} is insufficient.
* @param environmentBlendModes a pointer to an array of {@code XrEnvironmentBlendMode} values, but can be {@code NULL} if {@code environmentBlendModeCapacityInput} is 0.
- */
- @NativeType("XrResult")
- public static int xrEnumerateEnvironmentBlendModes(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("uint32_t *") IntBuffer environmentBlendModeCountOutput, @Nullable @NativeType("XrEnvironmentBlendMode *") IntBuffer environmentBlendModes) {
- if (CHECKS) {
- check(environmentBlendModeCountOutput, 1);
- }
- return nxrEnumerateEnvironmentBlendModes(instance, systemId, viewConfigurationType, remainingSafe(environmentBlendModes), memAddress(environmentBlendModeCountOutput), memAddressSafe(environmentBlendModes));
- }
-
- // --- [ xrCreateSession ] ---
-
- /** Unsafe version of: {@link #xrCreateSession CreateSession} */
- public static int nxrCreateSession(XrInstance instance, long createInfo, long session) {
- long __functionAddress = instance.getCapabilities().xrCreateSession;
- return callPPPI(instance.address(), createInfo, session, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrEnumerateEnvironmentBlendModes(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("uint32_t *") IntBuffer environmentBlendModeCountOutput, @Nullable @NativeType("XrEnvironmentBlendMode *") IntBuffer environmentBlendModes) {
+ if (CHECKS) {
+ check(environmentBlendModeCountOutput, 1);
+ }
+ return nxrEnumerateEnvironmentBlendModes(instance, systemId, viewConfigurationType, remainingSafe(environmentBlendModes), memAddress(environmentBlendModeCountOutput), memAddressSafe(environmentBlendModes));
+ }
+
+ // --- [ xrCreateSession ] ---
+
+ /** Unsafe version of: {@link #xrCreateSession CreateSession} */
+ public static int nxrCreateSession(XrInstance instance, long createInfo, long session) {
+ long __functionAddress = instance.getCapabilities().xrCreateSession;
+ return callPPPI(instance.address(), createInfo, session, __functionAddress);
+ }
+
/**
* Creates an XrSession.
*
@@ -1892,17 +1892,17 @@ public static int nxrCreateSession(XrInstance instance, long createInfo, long se
* @param instance the instance from which {@code systemId} was retrieved.
* @param createInfo a pointer to an {@link XrSessionCreateInfo} structure containing information about how to create the session.
* @param session a pointer to a handle in which the created {@code XrSession} is returned.
- */
- @NativeType("XrResult")
- public static int xrCreateSession(XrInstance instance, @NativeType("XrSessionCreateInfo const *") XrSessionCreateInfo createInfo, @NativeType("XrSession *") PointerBuffer session) {
- if (CHECKS) {
- check(session, 1);
- }
- return nxrCreateSession(instance, createInfo.address(), memAddress(session));
- }
-
- // --- [ xrDestroySession ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrCreateSession(XrInstance instance, @NativeType("XrSessionCreateInfo const *") XrSessionCreateInfo createInfo, @NativeType("XrSession *") PointerBuffer session) {
+ if (CHECKS) {
+ check(session, 1);
+ }
+ return nxrCreateSession(instance, createInfo.address(), memAddress(session));
+ }
+
+ // --- [ xrDestroySession ] ---
+
/**
* Destroys an XrSession.
*
@@ -1952,25 +1952,25 @@ public static int xrCreateSession(XrInstance instance, @NativeType("XrSessionCre
* {@link #xrBeginSession BeginSession}, {@link #xrCreateSession CreateSession}, {@link #xrEndSession EndSession}
*
* @param session the session to destroy.
- */
- @NativeType("XrResult")
- public static int xrDestroySession(XrSession session) {
- long __functionAddress = session.getCapabilities().xrDestroySession;
- return callPI(session.address(), __functionAddress);
- }
-
- // --- [ xrEnumerateReferenceSpaces ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrDestroySession(XrSession session) {
+ long __functionAddress = session.getCapabilities().xrDestroySession;
+ return callPI(session.address(), __functionAddress);
+ }
+
+ // --- [ xrEnumerateReferenceSpaces ] ---
+
/**
* Unsafe version of: {@link #xrEnumerateReferenceSpaces EnumerateReferenceSpaces}
*
* @param spaceCapacityInput the capacity of the {@code spaces} array, or 0 to indicate a request to retrieve the required capacity.
- */
- public static int nxrEnumerateReferenceSpaces(XrSession session, int spaceCapacityInput, long spaceCountOutput, long spaces) {
- long __functionAddress = session.getCapabilities().xrEnumerateReferenceSpaces;
- return callPPPI(session.address(), spaceCapacityInput, spaceCountOutput, spaces, __functionAddress);
- }
-
+ */
+ public static int nxrEnumerateReferenceSpaces(XrSession session, int spaceCapacityInput, long spaceCountOutput, long spaces) {
+ long __functionAddress = session.getCapabilities().xrEnumerateReferenceSpaces;
+ return callPPPI(session.address(), spaceCapacityInput, spaceCountOutput, spaces, __functionAddress);
+ }
+
/**
* Enumerate available reference spaces.
*
@@ -2021,23 +2021,23 @@ public static int nxrEnumerateReferenceSpaces(XrSession session, int spaceCapaci
* @param session a handle to an {@code XrSession} previously created with {@link #xrCreateSession CreateSession}.
* @param spaceCountOutput a pointer to the count of {@code spaces} written, or a pointer to the required capacity in the case that {@code spaceCapacityInput} is insufficient.
* @param spaces a pointer to an application-allocated array that will be filled with the enumerant of each supported reference space. It can be {@code NULL} if {@code spaceCapacityInput} is 0.
- */
- @NativeType("XrResult")
- public static int xrEnumerateReferenceSpaces(XrSession session, @NativeType("uint32_t *") IntBuffer spaceCountOutput, @Nullable @NativeType("XrReferenceSpaceType *") IntBuffer spaces) {
- if (CHECKS) {
- check(spaceCountOutput, 1);
- }
- return nxrEnumerateReferenceSpaces(session, remainingSafe(spaces), memAddress(spaceCountOutput), memAddressSafe(spaces));
- }
-
- // --- [ xrCreateReferenceSpace ] ---
-
- /** Unsafe version of: {@link #xrCreateReferenceSpace CreateReferenceSpace} */
- public static int nxrCreateReferenceSpace(XrSession session, long createInfo, long space) {
- long __functionAddress = session.getCapabilities().xrCreateReferenceSpace;
- return callPPPI(session.address(), createInfo, space, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrEnumerateReferenceSpaces(XrSession session, @NativeType("uint32_t *") IntBuffer spaceCountOutput, @Nullable @NativeType("XrReferenceSpaceType *") IntBuffer spaces) {
+ if (CHECKS) {
+ check(spaceCountOutput, 1);
+ }
+ return nxrEnumerateReferenceSpaces(session, remainingSafe(spaces), memAddress(spaceCountOutput), memAddressSafe(spaces));
+ }
+
+ // --- [ xrCreateReferenceSpace ] ---
+
+ /** Unsafe version of: {@link #xrCreateReferenceSpace CreateReferenceSpace} */
+ public static int nxrCreateReferenceSpace(XrSession session, long createInfo, long space) {
+ long __functionAddress = session.getCapabilities().xrCreateReferenceSpace;
+ return callPPPI(session.address(), createInfo, space, __functionAddress);
+ }
+
/**
* Creates a reference space.
*
@@ -2096,23 +2096,23 @@ public static int nxrCreateReferenceSpace(XrSession session, long createInfo, lo
* @param session a handle to an {@code XrSession} previously created with {@link #xrCreateSession CreateSession}.
* @param createInfo the {@link XrReferenceSpaceCreateInfo} used to specify the space.
* @param space the returned space handle.
- */
- @NativeType("XrResult")
- public static int xrCreateReferenceSpace(XrSession session, @NativeType("XrReferenceSpaceCreateInfo const *") XrReferenceSpaceCreateInfo createInfo, @NativeType("XrSpace *") PointerBuffer space) {
- if (CHECKS) {
- check(space, 1);
- }
- return nxrCreateReferenceSpace(session, createInfo.address(), memAddress(space));
- }
-
- // --- [ xrGetReferenceSpaceBoundsRect ] ---
-
- /** Unsafe version of: {@link #xrGetReferenceSpaceBoundsRect GetReferenceSpaceBoundsRect} */
- public static int nxrGetReferenceSpaceBoundsRect(XrSession session, int referenceSpaceType, long bounds) {
- long __functionAddress = session.getCapabilities().xrGetReferenceSpaceBoundsRect;
- return callPPI(session.address(), referenceSpaceType, bounds, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrCreateReferenceSpace(XrSession session, @NativeType("XrReferenceSpaceCreateInfo const *") XrReferenceSpaceCreateInfo createInfo, @NativeType("XrSpace *") PointerBuffer space) {
+ if (CHECKS) {
+ check(space, 1);
+ }
+ return nxrCreateReferenceSpace(session, createInfo.address(), memAddress(space));
+ }
+
+ // --- [ xrGetReferenceSpaceBoundsRect ] ---
+
+ /** Unsafe version of: {@link #xrGetReferenceSpaceBoundsRect GetReferenceSpaceBoundsRect} */
+ public static int nxrGetReferenceSpaceBoundsRect(XrSession session, int referenceSpaceType, long bounds) {
+ long __functionAddress = session.getCapabilities().xrGetReferenceSpaceBoundsRect;
+ return callPPI(session.address(), referenceSpaceType, bounds, __functionAddress);
+ }
+
/**
* Gets the bounds rectangle of a reference space.
*
@@ -2170,23 +2170,23 @@ public static int nxrGetReferenceSpaceBoundsRect(XrSession session, int referenc
* @param session a handle to an {@code XrSession} previously created with {@link #xrCreateSession CreateSession}.
* @param referenceSpaceType the reference space type whose bounds should be retrieved.
* @param bounds the returned space extents.
- */
- @NativeType("XrResult")
- public static int xrGetReferenceSpaceBoundsRect(XrSession session, @NativeType("XrReferenceSpaceType") int referenceSpaceType, @NativeType("XrExtent2Df *") XrExtent2Df bounds) {
- return nxrGetReferenceSpaceBoundsRect(session, referenceSpaceType, bounds.address());
- }
-
- // --- [ xrCreateActionSpace ] ---
-
- /** Unsafe version of: {@link #xrCreateActionSpace CreateActionSpace} */
- public static int nxrCreateActionSpace(XrSession session, long createInfo, long space) {
- long __functionAddress = session.getCapabilities().xrCreateActionSpace;
- if (CHECKS) {
- XrActionSpaceCreateInfo.validate(createInfo);
- }
- return callPPPI(session.address(), createInfo, space, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrGetReferenceSpaceBoundsRect(XrSession session, @NativeType("XrReferenceSpaceType") int referenceSpaceType, @NativeType("XrExtent2Df *") XrExtent2Df bounds) {
+ return nxrGetReferenceSpaceBoundsRect(session, referenceSpaceType, bounds.address());
+ }
+
+ // --- [ xrCreateActionSpace ] ---
+
+ /** Unsafe version of: {@link #xrCreateActionSpace CreateActionSpace} */
+ public static int nxrCreateActionSpace(XrSession session, long createInfo, long space) {
+ long __functionAddress = session.getCapabilities().xrCreateActionSpace;
+ if (CHECKS) {
+ XrActionSpaceCreateInfo.validate(createInfo);
+ }
+ return callPPPI(session.address(), createInfo, space, __functionAddress);
+ }
+
/**
* Creates a space based on a pose action.
*
@@ -2247,23 +2247,23 @@ public static int nxrCreateActionSpace(XrSession session, long createInfo, long
* @param session the {@code XrSession} to create the action space in.
* @param createInfo the {@link XrActionSpaceCreateInfo} used to specify the space.
* @param space the returned space handle.
- */
- @NativeType("XrResult")
- public static int xrCreateActionSpace(XrSession session, @NativeType("XrActionSpaceCreateInfo const *") XrActionSpaceCreateInfo createInfo, @NativeType("XrSpace *") PointerBuffer space) {
- if (CHECKS) {
- check(space, 1);
- }
- return nxrCreateActionSpace(session, createInfo.address(), memAddress(space));
- }
-
- // --- [ xrLocateSpace ] ---
-
- /** Unsafe version of: {@link #xrLocateSpace LocateSpace} */
- public static int nxrLocateSpace(XrSpace space, XrSpace baseSpace, long time, long location) {
- long __functionAddress = space.getCapabilities().xrLocateSpace;
- return callPPJPI(space.address(), baseSpace.address(), time, location, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrCreateActionSpace(XrSession session, @NativeType("XrActionSpaceCreateInfo const *") XrActionSpaceCreateInfo createInfo, @NativeType("XrSpace *") PointerBuffer space) {
+ if (CHECKS) {
+ check(space, 1);
+ }
+ return nxrCreateActionSpace(session, createInfo.address(), memAddress(space));
+ }
+
+ // --- [ xrLocateSpace ] ---
+
+ /** Unsafe version of: {@link #xrLocateSpace LocateSpace} */
+ public static int nxrLocateSpace(XrSpace space, XrSpace baseSpace, long time, long location) {
+ long __functionAddress = space.getCapabilities().xrLocateSpace;
+ return callPPJPI(space.address(), baseSpace.address(), time, location, __functionAddress);
+ }
+
/**
* Locates a space with reference to another space.
*
@@ -2345,14 +2345,14 @@ public static int nxrLocateSpace(XrSpace space, XrSpace baseSpace, long time, lo
* @param baseSpace identifies the underlying space in which to locate {@code space}.
* @param time the time for which the location should be provided.
* @param location provides the location of {@code space} in {@code baseSpace}.
- */
- @NativeType("XrResult")
- public static int xrLocateSpace(XrSpace space, XrSpace baseSpace, @NativeType("XrTime") long time, @NativeType("XrSpaceLocation *") XrSpaceLocation location) {
- return nxrLocateSpace(space, baseSpace, time, location.address());
- }
-
- // --- [ xrDestroySpace ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrLocateSpace(XrSpace space, XrSpace baseSpace, @NativeType("XrTime") long time, @NativeType("XrSpaceLocation *") XrSpaceLocation location) {
+ return nxrLocateSpace(space, baseSpace, time, location.address());
+ }
+
+ // --- [ xrDestroySpace ] ---
+
/**
* Destroys an XrSpace.
*
@@ -2398,25 +2398,25 @@ public static int xrLocateSpace(XrSpace space, XrSpace baseSpace, @NativeType("X
* {@link #xrCreateActionSpace CreateActionSpace}, {@link #xrCreateReferenceSpace CreateReferenceSpace}
*
* @param space a handle to an {@code XrSpace} previously created by a function such as {@link #xrCreateReferenceSpace CreateReferenceSpace}.
- */
- @NativeType("XrResult")
- public static int xrDestroySpace(XrSpace space) {
- long __functionAddress = space.getCapabilities().xrDestroySpace;
- return callPI(space.address(), __functionAddress);
- }
-
- // --- [ xrEnumerateViewConfigurations ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrDestroySpace(XrSpace space) {
+ long __functionAddress = space.getCapabilities().xrDestroySpace;
+ return callPI(space.address(), __functionAddress);
+ }
+
+ // --- [ xrEnumerateViewConfigurations ] ---
+
/**
* Unsafe version of: {@link #xrEnumerateViewConfigurations EnumerateViewConfigurations}
*
* @param viewConfigurationsTypeCapacityInput the capacity of the {@code viewConfigurations} array, or 0 to indicate a request to retrieve the required capacity.
- */
- public static int nxrEnumerateViewConfigurations(XrInstance instance, long systemId, int viewConfigurationsTypeCapacityInput, long viewConfigurationsTypeCountOutput, long viewConfigurationsTypes) {
- long __functionAddress = instance.getCapabilities().xrEnumerateViewConfigurations;
- return callPJPPI(instance.address(), systemId, viewConfigurationsTypeCapacityInput, viewConfigurationsTypeCountOutput, viewConfigurationsTypes, __functionAddress);
- }
-
+ */
+ public static int nxrEnumerateViewConfigurations(XrInstance instance, long systemId, int viewConfigurationsTypeCapacityInput, long viewConfigurationsTypeCountOutput, long viewConfigurationsTypes) {
+ long __functionAddress = instance.getCapabilities().xrEnumerateViewConfigurations;
+ return callPJPPI(instance.address(), systemId, viewConfigurationsTypeCapacityInput, viewConfigurationsTypeCountOutput, viewConfigurationsTypes, __functionAddress);
+ }
+
/**
* Enumerates supported view configurations.
*
@@ -2468,23 +2468,23 @@ public static int nxrEnumerateViewConfigurations(XrInstance instance, long syste
* @param systemId the {@code XrSystemId} whose view configurations will be enumerated.
* @param viewConfigurationsTypeCountOutput a pointer to the count of {@code viewConfigurations} written, or a pointer to the required capacity in the case that {@code viewConfigurationsTypeCapacityInput} is insufficient.
* @param viewConfigurationsTypes a pointer to an array of {@code XrViewConfigurationType} values, but can be {@code NULL} if {@code viewConfigurationsTypeCapacityInput} is 0.
- */
- @NativeType("XrResult")
- public static int xrEnumerateViewConfigurations(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("uint32_t *") IntBuffer viewConfigurationsTypeCountOutput, @Nullable @NativeType("XrViewConfigurationType *") IntBuffer viewConfigurationsTypes) {
- if (CHECKS) {
- check(viewConfigurationsTypeCountOutput, 1);
- }
- return nxrEnumerateViewConfigurations(instance, systemId, remainingSafe(viewConfigurationsTypes), memAddress(viewConfigurationsTypeCountOutput), memAddressSafe(viewConfigurationsTypes));
- }
-
- // --- [ xrGetViewConfigurationProperties ] ---
-
- /** Unsafe version of: {@link #xrGetViewConfigurationProperties GetViewConfigurationProperties} */
- public static int nxrGetViewConfigurationProperties(XrInstance instance, long systemId, int viewConfigurationType, long configurationProperties) {
- long __functionAddress = instance.getCapabilities().xrGetViewConfigurationProperties;
- return callPJPI(instance.address(), systemId, viewConfigurationType, configurationProperties, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrEnumerateViewConfigurations(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("uint32_t *") IntBuffer viewConfigurationsTypeCountOutput, @Nullable @NativeType("XrViewConfigurationType *") IntBuffer viewConfigurationsTypes) {
+ if (CHECKS) {
+ check(viewConfigurationsTypeCountOutput, 1);
+ }
+ return nxrEnumerateViewConfigurations(instance, systemId, remainingSafe(viewConfigurationsTypes), memAddress(viewConfigurationsTypeCountOutput), memAddressSafe(viewConfigurationsTypes));
+ }
+
+ // --- [ xrGetViewConfigurationProperties ] ---
+
+ /** Unsafe version of: {@link #xrGetViewConfigurationProperties GetViewConfigurationProperties} */
+ public static int nxrGetViewConfigurationProperties(XrInstance instance, long systemId, int viewConfigurationType, long configurationProperties) {
+ long __functionAddress = instance.getCapabilities().xrGetViewConfigurationProperties;
+ return callPJPI(instance.address(), systemId, viewConfigurationType, configurationProperties, __functionAddress);
+ }
+
/**
* Gets information for a view configuration.
*
@@ -2537,24 +2537,24 @@ public static int nxrGetViewConfigurationProperties(XrInstance instance, long sy
* @param systemId the {@code XrSystemId} whose view configuration is being queried.
* @param viewConfigurationType the {@code XrViewConfigurationType} of the configuration to get.
* @param configurationProperties a pointer to view configuration properties to return.
- */
- @NativeType("XrResult")
- public static int xrGetViewConfigurationProperties(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("XrViewConfigurationProperties *") XrViewConfigurationProperties configurationProperties) {
- return nxrGetViewConfigurationProperties(instance, systemId, viewConfigurationType, configurationProperties.address());
- }
-
- // --- [ xrEnumerateViewConfigurationViews ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrGetViewConfigurationProperties(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("XrViewConfigurationProperties *") XrViewConfigurationProperties configurationProperties) {
+ return nxrGetViewConfigurationProperties(instance, systemId, viewConfigurationType, configurationProperties.address());
+ }
+
+ // --- [ xrEnumerateViewConfigurationViews ] ---
+
/**
* Unsafe version of: {@link #xrEnumerateViewConfigurationViews EnumerateViewConfigurationViews}
*
* @param viewCapacityInput the capacity of the {@code views} array, or 0 to indicate a request to retrieve the required capacity.
- */
- public static int nxrEnumerateViewConfigurationViews(XrInstance instance, long systemId, int viewConfigurationType, int viewCapacityInput, long viewCountOutput, long views) {
- long __functionAddress = instance.getCapabilities().xrEnumerateViewConfigurationViews;
- return callPJPPI(instance.address(), systemId, viewConfigurationType, viewCapacityInput, viewCountOutput, views, __functionAddress);
- }
-
+ */
+ public static int nxrEnumerateViewConfigurationViews(XrInstance instance, long systemId, int viewConfigurationType, int viewCapacityInput, long viewCountOutput, long views) {
+ long __functionAddress = instance.getCapabilities().xrEnumerateViewConfigurationViews;
+ return callPJPPI(instance.address(), systemId, viewConfigurationType, viewCapacityInput, viewCountOutput, views, __functionAddress);
+ }
+
/**
* Gets view configuration views.
*
@@ -2614,27 +2614,27 @@ public static int nxrEnumerateViewConfigurationViews(XrInstance instance, long s
* @param viewConfigurationType the {@code XrViewConfigurationType} of the configuration to get.
* @param viewCountOutput a pointer to the count of {@code views} written, or a pointer to the required capacity in the case that {@code viewCapacityInput} is 0.
* @param views a pointer to an array of {@link XrViewConfigurationView} values, but can be {@code NULL} if {@code viewCapacityInput} is 0.
- */
- @NativeType("XrResult")
- public static int xrEnumerateViewConfigurationViews(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("uint32_t *") IntBuffer viewCountOutput, @Nullable @NativeType("XrViewConfigurationView *") XrViewConfigurationView.Buffer views) {
- if (CHECKS) {
- check(viewCountOutput, 1);
- }
- return nxrEnumerateViewConfigurationViews(instance, systemId, viewConfigurationType, remainingSafe(views), memAddress(viewCountOutput), memAddressSafe(views));
- }
-
- // --- [ xrEnumerateSwapchainFormats ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrEnumerateViewConfigurationViews(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("uint32_t *") IntBuffer viewCountOutput, @Nullable @NativeType("XrViewConfigurationView *") XrViewConfigurationView.Buffer views) {
+ if (CHECKS) {
+ check(viewCountOutput, 1);
+ }
+ return nxrEnumerateViewConfigurationViews(instance, systemId, viewConfigurationType, remainingSafe(views), memAddress(viewCountOutput), memAddressSafe(views));
+ }
+
+ // --- [ xrEnumerateSwapchainFormats ] ---
+
/**
* Unsafe version of: {@link #xrEnumerateSwapchainFormats EnumerateSwapchainFormats}
*
* @param formatCapacityInput the capacity of the {@code formats}, or 0 to retrieve the required capacity.
- */
- public static int nxrEnumerateSwapchainFormats(XrSession session, int formatCapacityInput, long formatCountOutput, long formats) {
- long __functionAddress = session.getCapabilities().xrEnumerateSwapchainFormats;
- return callPPPI(session.address(), formatCapacityInput, formatCountOutput, formats, __functionAddress);
- }
-
+ */
+ public static int nxrEnumerateSwapchainFormats(XrSession session, int formatCapacityInput, long formatCountOutput, long formats) {
+ long __functionAddress = session.getCapabilities().xrEnumerateSwapchainFormats;
+ return callPPPI(session.address(), formatCapacityInput, formatCountOutput, formats, __functionAddress);
+ }
+
/**
* Enumerates swapchain formats.
*
@@ -2691,23 +2691,23 @@ public static int nxrEnumerateSwapchainFormats(XrSession session, int formatCapa
* @param session the session that enumerates the supported formats.
* @param formatCountOutput a pointer to the count of {@code uint64_t} formats written, or a pointer to the required capacity in the case that {@code formatCapacityInput} is insufficient.
* @param formats a pointer to an array of {@code int64_t} format ids, but can be {@code NULL} if {@code formatCapacityInput} is 0. The format ids are specific to the specified graphics API.
- */
- @NativeType("XrResult")
- public static int xrEnumerateSwapchainFormats(XrSession session, @NativeType("uint32_t *") IntBuffer formatCountOutput, @Nullable @NativeType("int64_t *") LongBuffer formats) {
- if (CHECKS) {
- check(formatCountOutput, 1);
- }
- return nxrEnumerateSwapchainFormats(session, remainingSafe(formats), memAddress(formatCountOutput), memAddressSafe(formats));
- }
-
- // --- [ xrCreateSwapchain ] ---
-
- /** Unsafe version of: {@link #xrCreateSwapchain CreateSwapchain} */
- public static int nxrCreateSwapchain(XrSession session, long createInfo, long swapchain) {
- long __functionAddress = session.getCapabilities().xrCreateSwapchain;
- return callPPPI(session.address(), createInfo, swapchain, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrEnumerateSwapchainFormats(XrSession session, @NativeType("uint32_t *") IntBuffer formatCountOutput, @Nullable @NativeType("int64_t *") LongBuffer formats) {
+ if (CHECKS) {
+ check(formatCountOutput, 1);
+ }
+ return nxrEnumerateSwapchainFormats(session, remainingSafe(formats), memAddress(formatCountOutput), memAddressSafe(formats));
+ }
+
+ // --- [ xrCreateSwapchain ] ---
+
+ /** Unsafe version of: {@link #xrCreateSwapchain CreateSwapchain} */
+ public static int nxrCreateSwapchain(XrSession session, long createInfo, long swapchain) {
+ long __functionAddress = session.getCapabilities().xrCreateSwapchain;
+ return callPPPI(session.address(), createInfo, swapchain, __functionAddress);
+ }
+
/**
* Creates an XrSwapchain.
*
@@ -2762,17 +2762,17 @@ public static int nxrCreateSwapchain(XrSession session, long createInfo, long sw
* @param session the session that creates the image.
* @param createInfo a pointer to an {@link XrSwapchainCreateInfo} structure containing parameters to be used to create the image.
* @param swapchain a pointer to a handle in which the created {@code XrSwapchain} is returned.
- */
- @NativeType("XrResult")
- public static int xrCreateSwapchain(XrSession session, @NativeType("XrSwapchainCreateInfo const *") XrSwapchainCreateInfo createInfo, @NativeType("XrSwapchain *") PointerBuffer swapchain) {
- if (CHECKS) {
- check(swapchain, 1);
- }
- return nxrCreateSwapchain(session, createInfo.address(), memAddress(swapchain));
- }
-
- // --- [ xrDestroySwapchain ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrCreateSwapchain(XrSession session, @NativeType("XrSwapchainCreateInfo const *") XrSwapchainCreateInfo createInfo, @NativeType("XrSwapchain *") PointerBuffer swapchain) {
+ if (CHECKS) {
+ check(swapchain, 1);
+ }
+ return nxrCreateSwapchain(session, createInfo.address(), memAddress(swapchain));
+ }
+
+ // --- [ xrDestroySwapchain ] ---
+
/**
* Destroys an XrSwapchain.
*
@@ -2818,25 +2818,25 @@ public static int xrCreateSwapchain(XrSession session, @NativeType("XrSwapchainC
* {@link #xrCreateSwapchain CreateSwapchain}
*
* @param swapchain the swapchain to destroy.
- */
- @NativeType("XrResult")
- public static int xrDestroySwapchain(XrSwapchain swapchain) {
- long __functionAddress = swapchain.getCapabilities().xrDestroySwapchain;
- return callPI(swapchain.address(), __functionAddress);
- }
-
- // --- [ xrEnumerateSwapchainImages ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrDestroySwapchain(XrSwapchain swapchain) {
+ long __functionAddress = swapchain.getCapabilities().xrDestroySwapchain;
+ return callPI(swapchain.address(), __functionAddress);
+ }
+
+ // --- [ xrEnumerateSwapchainImages ] ---
+
/**
* Unsafe version of: {@link #xrEnumerateSwapchainImages EnumerateSwapchainImages}
*
* @param imageCapacityInput the capacity of the {@code images} array, or 0 to indicate a request to retrieve the required capacity.
- */
- public static int nxrEnumerateSwapchainImages(XrSwapchain swapchain, int imageCapacityInput, long imageCountOutput, long images) {
- long __functionAddress = swapchain.getCapabilities().xrEnumerateSwapchainImages;
- return callPPPI(swapchain.address(), imageCapacityInput, imageCountOutput, images, __functionAddress);
- }
-
+ */
+ public static int nxrEnumerateSwapchainImages(XrSwapchain swapchain, int imageCapacityInput, long imageCountOutput, long images) {
+ long __functionAddress = swapchain.getCapabilities().xrEnumerateSwapchainImages;
+ return callPPPI(swapchain.address(), imageCapacityInput, imageCountOutput, images, __functionAddress);
+ }
+
/**
* Gets images from an XrSwapchain.
*
@@ -2900,23 +2900,23 @@ public static int nxrEnumerateSwapchainImages(XrSwapchain swapchain, int imageCa
* @param swapchain the {@code XrSwapchain} to get images from.
* @param imageCountOutput a pointer to the count of {@code images} written, or a pointer to the required capacity in the case that {@code imageCapacityInput} is insufficient.
* @param images a pointer to an array of graphics API-specific {@code XrSwapchainImage} structures, all of the same type, based on {@link XrSwapchainImageBaseHeader}. It can be {@code NULL} if {@code imageCapacityInput} is 0.
- */
- @NativeType("XrResult")
- public static int xrEnumerateSwapchainImages(XrSwapchain swapchain, @NativeType("uint32_t *") IntBuffer imageCountOutput, @Nullable @NativeType("XrSwapchainImageBaseHeader *") XrSwapchainImageBaseHeader.Buffer images) {
- if (CHECKS) {
- check(imageCountOutput, 1);
- }
- return nxrEnumerateSwapchainImages(swapchain, remainingSafe(images), memAddress(imageCountOutput), memAddressSafe(images));
- }
-
- // --- [ xrAcquireSwapchainImage ] ---
-
- /** Unsafe version of: {@link #xrAcquireSwapchainImage AcquireSwapchainImage} */
- public static int nxrAcquireSwapchainImage(XrSwapchain swapchain, long acquireInfo, long index) {
- long __functionAddress = swapchain.getCapabilities().xrAcquireSwapchainImage;
- return callPPPI(swapchain.address(), acquireInfo, index, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrEnumerateSwapchainImages(XrSwapchain swapchain, @NativeType("uint32_t *") IntBuffer imageCountOutput, @Nullable @NativeType("XrSwapchainImageBaseHeader *") XrSwapchainImageBaseHeader.Buffer images) {
+ if (CHECKS) {
+ check(imageCountOutput, 1);
+ }
+ return nxrEnumerateSwapchainImages(swapchain, remainingSafe(images), memAddress(imageCountOutput), memAddressSafe(images));
+ }
+
+ // --- [ xrAcquireSwapchainImage ] ---
+
+ /** Unsafe version of: {@link #xrAcquireSwapchainImage AcquireSwapchainImage} */
+ public static int nxrAcquireSwapchainImage(XrSwapchain swapchain, long acquireInfo, long index) {
+ long __functionAddress = swapchain.getCapabilities().xrAcquireSwapchainImage;
+ return callPPPI(swapchain.address(), acquireInfo, index, __functionAddress);
+ }
+
/**
* Acquire a swapchain image.
*
@@ -2968,23 +2968,23 @@ public static int nxrAcquireSwapchainImage(XrSwapchain swapchain, long acquireIn
* @param swapchain the swapchain from which to acquire an image.
* @param acquireInfo exists for extensibility purposes, it is {@code NULL} or a pointer to a valid {@link XrSwapchainImageAcquireInfo}.
* @param index the returned image index that has been acquired.
- */
- @NativeType("XrResult")
- public static int xrAcquireSwapchainImage(XrSwapchain swapchain, @Nullable @NativeType("XrSwapchainImageAcquireInfo const *") XrSwapchainImageAcquireInfo acquireInfo, @NativeType("uint32_t *") IntBuffer index) {
- if (CHECKS) {
- check(index, 1);
- }
- return nxrAcquireSwapchainImage(swapchain, memAddressSafe(acquireInfo), memAddress(index));
- }
-
- // --- [ xrWaitSwapchainImage ] ---
-
- /** Unsafe version of: {@link #xrWaitSwapchainImage WaitSwapchainImage} */
- public static int nxrWaitSwapchainImage(XrSwapchain swapchain, long waitInfo) {
- long __functionAddress = swapchain.getCapabilities().xrWaitSwapchainImage;
- return callPPI(swapchain.address(), waitInfo, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrAcquireSwapchainImage(XrSwapchain swapchain, @Nullable @NativeType("XrSwapchainImageAcquireInfo const *") XrSwapchainImageAcquireInfo acquireInfo, @NativeType("uint32_t *") IntBuffer index) {
+ if (CHECKS) {
+ check(index, 1);
+ }
+ return nxrAcquireSwapchainImage(swapchain, memAddressSafe(acquireInfo), memAddress(index));
+ }
+
+ // --- [ xrWaitSwapchainImage ] ---
+
+ /** Unsafe version of: {@link #xrWaitSwapchainImage WaitSwapchainImage} */
+ public static int nxrWaitSwapchainImage(XrSwapchain swapchain, long waitInfo) {
+ long __functionAddress = swapchain.getCapabilities().xrWaitSwapchainImage;
+ return callPPI(swapchain.address(), waitInfo, __functionAddress);
+ }
+
/**
* Wait for a swapchain image to be available.
*
@@ -3042,20 +3042,20 @@ public static int nxrWaitSwapchainImage(XrSwapchain swapchain, long waitInfo) {
*
* @param swapchain the swapchain from which to wait for an image.
* @param waitInfo a pointer to an {@link XrSwapchainImageWaitInfo} structure.
- */
- @NativeType("XrResult")
- public static int xrWaitSwapchainImage(XrSwapchain swapchain, @NativeType("XrSwapchainImageWaitInfo const *") XrSwapchainImageWaitInfo waitInfo) {
- return nxrWaitSwapchainImage(swapchain, waitInfo.address());
- }
-
- // --- [ xrReleaseSwapchainImage ] ---
-
- /** Unsafe version of: {@link #xrReleaseSwapchainImage ReleaseSwapchainImage} */
- public static int nxrReleaseSwapchainImage(XrSwapchain swapchain, long releaseInfo) {
- long __functionAddress = swapchain.getCapabilities().xrReleaseSwapchainImage;
- return callPPI(swapchain.address(), releaseInfo, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrWaitSwapchainImage(XrSwapchain swapchain, @NativeType("XrSwapchainImageWaitInfo const *") XrSwapchainImageWaitInfo waitInfo) {
+ return nxrWaitSwapchainImage(swapchain, waitInfo.address());
+ }
+
+ // --- [ xrReleaseSwapchainImage ] ---
+
+ /** Unsafe version of: {@link #xrReleaseSwapchainImage ReleaseSwapchainImage} */
+ public static int nxrReleaseSwapchainImage(XrSwapchain swapchain, long releaseInfo) {
+ long __functionAddress = swapchain.getCapabilities().xrReleaseSwapchainImage;
+ return callPPI(swapchain.address(), releaseInfo, __functionAddress);
+ }
+
/**
* Release a swapchain image.
*
@@ -3106,20 +3106,20 @@ public static int nxrReleaseSwapchainImage(XrSwapchain swapchain, long releaseIn
*
* @param swapchain the {@code XrSwapchain} from which to release an image.
* @param releaseInfo exists for extensibility purposes, it is {@code NULL} or a pointer to a valid {@link XrSwapchainImageReleaseInfo}.
- */
- @NativeType("XrResult")
- public static int xrReleaseSwapchainImage(XrSwapchain swapchain, @Nullable @NativeType("XrSwapchainImageReleaseInfo const *") XrSwapchainImageReleaseInfo releaseInfo) {
- return nxrReleaseSwapchainImage(swapchain, memAddressSafe(releaseInfo));
- }
-
- // --- [ xrBeginSession ] ---
-
- /** Unsafe version of: {@link #xrBeginSession BeginSession} */
- public static int nxrBeginSession(XrSession session, long beginInfo) {
- long __functionAddress = session.getCapabilities().xrBeginSession;
- return callPPI(session.address(), beginInfo, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrReleaseSwapchainImage(XrSwapchain swapchain, @Nullable @NativeType("XrSwapchainImageReleaseInfo const *") XrSwapchainImageReleaseInfo releaseInfo) {
+ return nxrReleaseSwapchainImage(swapchain, memAddressSafe(releaseInfo));
+ }
+
+ // --- [ xrBeginSession ] ---
+
+ /** Unsafe version of: {@link #xrBeginSession BeginSession} */
+ public static int nxrBeginSession(XrSession session, long beginInfo) {
+ long __functionAddress = session.getCapabilities().xrBeginSession;
+ return callPPI(session.address(), beginInfo, __functionAddress);
+ }
+
/**
* Begins an XrSession.
*
@@ -3180,14 +3180,14 @@ public static int nxrBeginSession(XrSession session, long beginInfo) {
*
* @param session a valid {@code XrSession} handle.
* @param beginInfo a pointer to an {@link XrSessionBeginInfo} structure.
- */
- @NativeType("XrResult")
- public static int xrBeginSession(XrSession session, @NativeType("XrSessionBeginInfo const *") XrSessionBeginInfo beginInfo) {
- return nxrBeginSession(session, beginInfo.address());
- }
-
- // --- [ xrEndSession ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrBeginSession(XrSession session, @NativeType("XrSessionBeginInfo const *") XrSessionBeginInfo beginInfo) {
+ return nxrBeginSession(session, beginInfo.address());
+ }
+
+ // --- [ xrEndSession ] ---
+
/**
* Ends an XrSession.
*
@@ -3238,15 +3238,15 @@ public static int xrBeginSession(XrSession session, @NativeType("XrSessionBeginI
* {@link #xrBeginSession BeginSession}, {@link #xrCreateSession CreateSession}, {@link #xrDestroySession DestroySession}
*
* @param session a handle to a running {@code XrSession}.
- */
- @NativeType("XrResult")
- public static int xrEndSession(XrSession session) {
- long __functionAddress = session.getCapabilities().xrEndSession;
- return callPI(session.address(), __functionAddress);
- }
-
- // --- [ xrRequestExitSession ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrEndSession(XrSession session) {
+ long __functionAddress = session.getCapabilities().xrEndSession;
+ return callPI(session.address(), __functionAddress);
+ }
+
+ // --- [ xrRequestExitSession ] ---
+
/**
* Request to exit a running session.
*
@@ -3296,21 +3296,21 @@ public static int xrEndSession(XrSession session) {
* {@link #xrDestroySession DestroySession}, {@link #xrEndSession EndSession}
*
* @param session a handle to a running {@code XrSession}.
- */
- @NativeType("XrResult")
- public static int xrRequestExitSession(XrSession session) {
- long __functionAddress = session.getCapabilities().xrRequestExitSession;
- return callPI(session.address(), __functionAddress);
- }
-
- // --- [ xrWaitFrame ] ---
-
- /** Unsafe version of: {@link #xrWaitFrame WaitFrame} */
- public static int nxrWaitFrame(XrSession session, long frameWaitInfo, long frameState) {
- long __functionAddress = session.getCapabilities().xrWaitFrame;
- return callPPPI(session.address(), frameWaitInfo, frameState, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrRequestExitSession(XrSession session) {
+ long __functionAddress = session.getCapabilities().xrRequestExitSession;
+ return callPI(session.address(), __functionAddress);
+ }
+
+ // --- [ xrWaitFrame ] ---
+
+ /** Unsafe version of: {@link #xrWaitFrame WaitFrame} */
+ public static int nxrWaitFrame(XrSession session, long frameWaitInfo, long frameState) {
+ long __functionAddress = session.getCapabilities().xrWaitFrame;
+ return callPPPI(session.address(), frameWaitInfo, frameState, __functionAddress);
+ }
+
/**
* Frame timing function.
*
@@ -3385,20 +3385,20 @@ public static int nxrWaitFrame(XrSession session, long frameWaitInfo, long frame
* @param session a valid {@code XrSession} handle.
* @param frameWaitInfo exists for extensibility purposes, it is {@code NULL} or a pointer to a valid {@link XrFrameWaitInfo}.
* @param frameState a pointer to a valid {@link XrFrameState}, an output parameter.
- */
- @NativeType("XrResult")
- public static int xrWaitFrame(XrSession session, @Nullable @NativeType("XrFrameWaitInfo const *") XrFrameWaitInfo frameWaitInfo, @NativeType("XrFrameState *") XrFrameState frameState) {
- return nxrWaitFrame(session, memAddressSafe(frameWaitInfo), frameState.address());
- }
-
- // --- [ xrBeginFrame ] ---
-
- /** Unsafe version of: {@link #xrBeginFrame BeginFrame} */
- public static int nxrBeginFrame(XrSession session, long frameBeginInfo) {
- long __functionAddress = session.getCapabilities().xrBeginFrame;
- return callPPI(session.address(), frameBeginInfo, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrWaitFrame(XrSession session, @Nullable @NativeType("XrFrameWaitInfo const *") XrFrameWaitInfo frameWaitInfo, @NativeType("XrFrameState *") XrFrameState frameState) {
+ return nxrWaitFrame(session, memAddressSafe(frameWaitInfo), frameState.address());
+ }
+
+ // --- [ xrBeginFrame ] ---
+
+ /** Unsafe version of: {@link #xrBeginFrame BeginFrame} */
+ public static int nxrBeginFrame(XrSession session, long frameBeginInfo) {
+ long __functionAddress = session.getCapabilities().xrBeginFrame;
+ return callPPI(session.address(), frameBeginInfo, __functionAddress);
+ }
+
/**
* Marks a frame.
*
@@ -3463,20 +3463,20 @@ public static int nxrBeginFrame(XrSession session, long frameBeginInfo) {
*
* @param session a valid {@code XrSession} handle.
* @param frameBeginInfo exists for extensibility purposes, it is {@code NULL} or a pointer to a valid {@link XrFrameBeginInfo}.
- */
- @NativeType("XrResult")
- public static int xrBeginFrame(XrSession session, @Nullable @NativeType("XrFrameBeginInfo const *") XrFrameBeginInfo frameBeginInfo) {
- return nxrBeginFrame(session, memAddressSafe(frameBeginInfo));
- }
-
- // --- [ xrEndFrame ] ---
-
- /** Unsafe version of: {@link #xrEndFrame EndFrame} */
- public static int nxrEndFrame(XrSession session, long frameEndInfo) {
- long __functionAddress = session.getCapabilities().xrEndFrame;
- return callPPI(session.address(), frameEndInfo, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrBeginFrame(XrSession session, @Nullable @NativeType("XrFrameBeginInfo const *") XrFrameBeginInfo frameBeginInfo) {
+ return nxrBeginFrame(session, memAddressSafe(frameBeginInfo));
+ }
+
+ // --- [ xrEndFrame ] ---
+
+ /** Unsafe version of: {@link #xrEndFrame EndFrame} */
+ public static int nxrEndFrame(XrSession session, long frameEndInfo) {
+ long __functionAddress = session.getCapabilities().xrEndFrame;
+ return callPPI(session.address(), frameEndInfo, __functionAddress);
+ }
+
/**
* Marks a frame.
*
@@ -3564,27 +3564,27 @@ public static int nxrEndFrame(XrSession session, long frameEndInfo) {
*
* @param session a valid {@code XrSession} handle.
* @param frameEndInfo a pointer to a valid {@link XrFrameEndInfo}.
- */
- @NativeType("XrResult")
- public static int xrEndFrame(XrSession session, @NativeType("XrFrameEndInfo const *") XrFrameEndInfo frameEndInfo) {
- return nxrEndFrame(session, frameEndInfo.address());
- }
-
- // --- [ xrLocateViews ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrEndFrame(XrSession session, @NativeType("XrFrameEndInfo const *") XrFrameEndInfo frameEndInfo) {
+ return nxrEndFrame(session, frameEndInfo.address());
+ }
+
+ // --- [ xrLocateViews ] ---
+
/**
* Unsafe version of: {@link #xrLocateViews LocateViews}
*
* @param viewCapacityInput an input parameter which specifies the capacity of the {@code views} array. The required capacity must be same as defined by the corresponding {@code XrViewConfigurationType}.
- */
- public static int nxrLocateViews(XrSession session, long viewLocateInfo, long viewState, int viewCapacityInput, long viewCountOutput, long views) {
- long __functionAddress = session.getCapabilities().xrLocateViews;
- if (CHECKS) {
- XrViewLocateInfo.validate(viewLocateInfo);
- }
- return callPPPPPI(session.address(), viewLocateInfo, viewState, viewCapacityInput, viewCountOutput, views, __functionAddress);
- }
-
+ */
+ public static int nxrLocateViews(XrSession session, long viewLocateInfo, long viewState, int viewCapacityInput, long viewCountOutput, long views) {
+ long __functionAddress = session.getCapabilities().xrLocateViews;
+ if (CHECKS) {
+ XrViewLocateInfo.validate(viewLocateInfo);
+ }
+ return callPPPPPI(session.address(), viewLocateInfo, viewState, viewCapacityInput, viewCountOutput, views, __functionAddress);
+ }
+
/**
* Gets view and projection info.
*
@@ -3647,23 +3647,23 @@ public static int nxrLocateViews(XrSession session, long viewLocateInfo, long vi
* @param viewState the output structure with the viewer state information.
* @param viewCountOutput an output parameter which identifies the valid count of {@code views}.
* @param views an array of {@link XrView}.
- */
- @NativeType("XrResult")
- public static int xrLocateViews(XrSession session, @NativeType("XrViewLocateInfo const *") XrViewLocateInfo viewLocateInfo, @NativeType("XrViewState *") XrViewState viewState, @NativeType("uint32_t *") IntBuffer viewCountOutput, @Nullable @NativeType("XrView *") XrView.Buffer views) {
- if (CHECKS) {
- check(viewCountOutput, 1);
- }
- return nxrLocateViews(session, viewLocateInfo.address(), viewState.address(), remainingSafe(views), memAddress(viewCountOutput), memAddressSafe(views));
- }
-
- // --- [ xrStringToPath ] ---
-
- /** Unsafe version of: {@link #xrStringToPath StringToPath} */
- public static int nxrStringToPath(XrInstance instance, long pathString, long path) {
- long __functionAddress = instance.getCapabilities().xrStringToPath;
- return callPPPI(instance.address(), pathString, path, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrLocateViews(XrSession session, @NativeType("XrViewLocateInfo const *") XrViewLocateInfo viewLocateInfo, @NativeType("XrViewState *") XrViewState viewState, @NativeType("uint32_t *") IntBuffer viewCountOutput, @Nullable @NativeType("XrView *") XrView.Buffer views) {
+ if (CHECKS) {
+ check(viewCountOutput, 1);
+ }
+ return nxrLocateViews(session, viewLocateInfo.address(), viewState.address(), remainingSafe(views), memAddress(viewCountOutput), memAddressSafe(views));
+ }
+
+ // --- [ xrStringToPath ] ---
+
+ /** Unsafe version of: {@link #xrStringToPath StringToPath} */
+ public static int nxrStringToPath(XrInstance instance, long pathString, long path) {
+ long __functionAddress = instance.getCapabilities().xrStringToPath;
+ return callPPPI(instance.address(), pathString, path, __functionAddress);
+ }
+
/**
* Converts a string to a semantic path.
*
@@ -3718,16 +3718,16 @@ public static int nxrStringToPath(XrInstance instance, long pathString, long pat
* @param instance an instance previously created.
* @param pathString the path name string to retrieve the associated {@code XrPath} for.
* @param path the output parameter, which must point to an {@code XrPath}. Given a well-formed path name string, this will be populated with an opaque value that is constant for that path string during the lifetime of that instance.
- */
- @NativeType("XrResult")
- public static int xrStringToPath(XrInstance instance, @NativeType("char const *") ByteBuffer pathString, @NativeType("XrPath *") LongBuffer path) {
- if (CHECKS) {
- checkNT1(pathString);
- check(path, 1);
- }
- return nxrStringToPath(instance, memAddress(pathString), memAddress(path));
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrStringToPath(XrInstance instance, @NativeType("char const *") ByteBuffer pathString, @NativeType("XrPath *") LongBuffer path) {
+ if (CHECKS) {
+ checkNT1(pathString);
+ check(path, 1);
+ }
+ return nxrStringToPath(instance, memAddress(pathString), memAddress(path));
+ }
+
/**
* Converts a string to a semantic path.
*
@@ -3782,34 +3782,34 @@ public static int xrStringToPath(XrInstance instance, @NativeType("char const *"
* @param instance an instance previously created.
* @param pathString the path name string to retrieve the associated {@code XrPath} for.
* @param path the output parameter, which must point to an {@code XrPath}. Given a well-formed path name string, this will be populated with an opaque value that is constant for that path string during the lifetime of that instance.
- */
- @NativeType("XrResult")
- public static int xrStringToPath(XrInstance instance, @NativeType("char const *") CharSequence pathString, @NativeType("XrPath *") LongBuffer path) {
- if (CHECKS) {
- check(path, 1);
- }
- MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
- try {
- stack.nUTF8(pathString, true);
- long pathStringEncoded = stack.getPointerAddress();
- return nxrStringToPath(instance, pathStringEncoded, memAddress(path));
- } finally {
- stack.setPointer(stackPointer);
- }
- }
-
- // --- [ xrPathToString ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrStringToPath(XrInstance instance, @NativeType("char const *") CharSequence pathString, @NativeType("XrPath *") LongBuffer path) {
+ if (CHECKS) {
+ check(path, 1);
+ }
+ MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
+ try {
+ stack.nUTF8(pathString, true);
+ long pathStringEncoded = stack.getPointerAddress();
+ return nxrStringToPath(instance, pathStringEncoded, memAddress(path));
+ } finally {
+ stack.setPointer(stackPointer);
+ }
+ }
+
+ // --- [ xrPathToString ] ---
+
/**
* Unsafe version of: {@link #xrPathToString PathToString}
*
* @param bufferCapacityInput the capacity of the buffer, or 0 to indicate a request to retrieve the required capacity.
- */
- public static int nxrPathToString(XrInstance instance, long path, int bufferCapacityInput, long bufferCountOutput, long buffer) {
- long __functionAddress = instance.getCapabilities().xrPathToString;
- return callPJPPI(instance.address(), path, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress);
- }
-
+ */
+ public static int nxrPathToString(XrInstance instance, long path, int bufferCapacityInput, long bufferCountOutput, long buffer) {
+ long __functionAddress = instance.getCapabilities().xrPathToString;
+ return callPJPPI(instance.address(), path, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress);
+ }
+
/**
* Converts a semantic path to a string.
*
@@ -3861,23 +3861,23 @@ public static int nxrPathToString(XrInstance instance, long path, int bufferCapa
* @param path the valid {@code XrPath} value to retrieve the path string for.
* @param bufferCountOutput a pointer to the count of characters written to {@code buffer} (including the terminating '\0'), or a pointer to the required capacity in the case that {@code bufferCapacityInput} is insufficient.
* @param buffer a pointer to an application-allocated buffer that will be filled with the semantic path string. It can be {@code NULL} if {@code bufferCapacityInput} is 0.
- */
- @NativeType("XrResult")
- public static int xrPathToString(XrInstance instance, @NativeType("XrPath") long path, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("char *") ByteBuffer buffer) {
- if (CHECKS) {
- check(bufferCountOutput, 1);
- }
- return nxrPathToString(instance, path, remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer));
- }
-
- // --- [ xrCreateActionSet ] ---
-
- /** Unsafe version of: {@link #xrCreateActionSet CreateActionSet} */
- public static int nxrCreateActionSet(XrInstance instance, long createInfo, long actionSet) {
- long __functionAddress = instance.getCapabilities().xrCreateActionSet;
- return callPPPI(instance.address(), createInfo, actionSet, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrPathToString(XrInstance instance, @NativeType("XrPath") long path, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("char *") ByteBuffer buffer) {
+ if (CHECKS) {
+ check(bufferCountOutput, 1);
+ }
+ return nxrPathToString(instance, path, remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer));
+ }
+
+ // --- [ xrCreateActionSet ] ---
+
+ /** Unsafe version of: {@link #xrCreateActionSet CreateActionSet} */
+ public static int nxrCreateActionSet(XrInstance instance, long createInfo, long actionSet) {
+ long __functionAddress = instance.getCapabilities().xrCreateActionSet;
+ return callPPPI(instance.address(), createInfo, actionSet, __functionAddress);
+ }
+
/**
* Creates an XrActionSet.
*
@@ -3933,17 +3933,17 @@ public static int nxrCreateActionSet(XrInstance instance, long createInfo, long
* @param instance a handle to an {@code XrInstance}.
* @param createInfo a pointer to a valid {@link XrActionSetCreateInfo} structure that defines the action set being created.
* @param actionSet a pointer to an {@code XrActionSet} where the created action set is returned.
- */
- @NativeType("XrResult")
- public static int xrCreateActionSet(XrInstance instance, @NativeType("XrActionSetCreateInfo const *") XrActionSetCreateInfo createInfo, @NativeType("XrActionSet *") PointerBuffer actionSet) {
- if (CHECKS) {
- check(actionSet, 1);
- }
- return nxrCreateActionSet(instance, createInfo.address(), memAddress(actionSet));
- }
-
- // --- [ xrDestroyActionSet ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrCreateActionSet(XrInstance instance, @NativeType("XrActionSetCreateInfo const *") XrActionSetCreateInfo createInfo, @NativeType("XrActionSet *") PointerBuffer actionSet) {
+ if (CHECKS) {
+ check(actionSet, 1);
+ }
+ return nxrCreateActionSet(instance, createInfo.address(), memAddress(actionSet));
+ }
+
+ // --- [ xrDestroyActionSet ] ---
+
/**
* Destroys an XrActionSet.
*
@@ -3993,21 +3993,21 @@ public static int xrCreateActionSet(XrInstance instance, @NativeType("XrActionSe
* {@link #xrCreateActionSet CreateActionSet}
*
* @param actionSet the action set to destroy.
- */
- @NativeType("XrResult")
- public static int xrDestroyActionSet(XrActionSet actionSet) {
- long __functionAddress = actionSet.getCapabilities().xrDestroyActionSet;
- return callPI(actionSet.address(), __functionAddress);
- }
-
- // --- [ xrCreateAction ] ---
-
- /** Unsafe version of: {@link #xrCreateAction CreateAction} */
- public static int nxrCreateAction(XrActionSet actionSet, long createInfo, long action) {
- long __functionAddress = actionSet.getCapabilities().xrCreateAction;
- return callPPPI(actionSet.address(), createInfo, action, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrDestroyActionSet(XrActionSet actionSet) {
+ long __functionAddress = actionSet.getCapabilities().xrDestroyActionSet;
+ return callPI(actionSet.address(), __functionAddress);
+ }
+
+ // --- [ xrCreateAction ] ---
+
+ /** Unsafe version of: {@link #xrCreateAction CreateAction} */
+ public static int nxrCreateAction(XrActionSet actionSet, long createInfo, long action) {
+ long __functionAddress = actionSet.getCapabilities().xrCreateAction;
+ return callPPPI(actionSet.address(), createInfo, action, __functionAddress);
+ }
+
/**
* Creates an XrAction.
*
@@ -4068,17 +4068,17 @@ public static int nxrCreateAction(XrActionSet actionSet, long createInfo, long a
* @param actionSet a handle to an {@code XrActionSet}.
* @param createInfo a pointer to a valid {@link XrActionCreateInfo} structure that defines the action being created.
* @param action a pointer to an {@code XrAction} where the created action is returned.
- */
- @NativeType("XrResult")
- public static int xrCreateAction(XrActionSet actionSet, @NativeType("XrActionCreateInfo const *") XrActionCreateInfo createInfo, @NativeType("XrAction *") PointerBuffer action) {
- if (CHECKS) {
- check(action, 1);
- }
- return nxrCreateAction(actionSet, createInfo.address(), memAddress(action));
- }
-
- // --- [ xrDestroyAction ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrCreateAction(XrActionSet actionSet, @NativeType("XrActionCreateInfo const *") XrActionCreateInfo createInfo, @NativeType("XrAction *") PointerBuffer action) {
+ if (CHECKS) {
+ check(action, 1);
+ }
+ return nxrCreateAction(actionSet, createInfo.address(), memAddress(action));
+ }
+
+ // --- [ xrDestroyAction ] ---
+
/**
* Destroys an XrAction.
*
@@ -4128,24 +4128,24 @@ public static int xrCreateAction(XrActionSet actionSet, @NativeType("XrActionCre
* {@link #xrCreateAction CreateAction}
*
* @param action the action to destroy.
- */
- @NativeType("XrResult")
- public static int xrDestroyAction(XrAction action) {
- long __functionAddress = action.getCapabilities().xrDestroyAction;
- return callPI(action.address(), __functionAddress);
- }
-
- // --- [ xrSuggestInteractionProfileBindings ] ---
-
- /** Unsafe version of: {@link #xrSuggestInteractionProfileBindings SuggestInteractionProfileBindings} */
- public static int nxrSuggestInteractionProfileBindings(XrInstance instance, long suggestedBindings) {
- long __functionAddress = instance.getCapabilities().xrSuggestInteractionProfileBindings;
- if (CHECKS) {
- XrInteractionProfileSuggestedBinding.validate(suggestedBindings);
- }
- return callPPI(instance.address(), suggestedBindings, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrDestroyAction(XrAction action) {
+ long __functionAddress = action.getCapabilities().xrDestroyAction;
+ return callPI(action.address(), __functionAddress);
+ }
+
+ // --- [ xrSuggestInteractionProfileBindings ] ---
+
+ /** Unsafe version of: {@link #xrSuggestInteractionProfileBindings SuggestInteractionProfileBindings} */
+ public static int nxrSuggestInteractionProfileBindings(XrInstance instance, long suggestedBindings) {
+ long __functionAddress = instance.getCapabilities().xrSuggestInteractionProfileBindings;
+ if (CHECKS) {
+ XrInteractionProfileSuggestedBinding.validate(suggestedBindings);
+ }
+ return callPPI(instance.address(), suggestedBindings, __functionAddress);
+ }
+
/**
* Sets the application-suggested bindings for the interaction profile.
*
@@ -4202,23 +4202,23 @@ public static int nxrSuggestInteractionProfileBindings(XrInstance instance, long
*
* @param instance the {@code XrInstance} for which the application would like to set suggested bindings
* @param suggestedBindings the {@link XrInteractionProfileSuggestedBinding} that the application would like to set
- */
- @NativeType("XrResult")
- public static int xrSuggestInteractionProfileBindings(XrInstance instance, @NativeType("XrInteractionProfileSuggestedBinding const *") XrInteractionProfileSuggestedBinding suggestedBindings) {
- return nxrSuggestInteractionProfileBindings(instance, suggestedBindings.address());
- }
-
- // --- [ xrAttachSessionActionSets ] ---
-
- /** Unsafe version of: {@link #xrAttachSessionActionSets AttachSessionActionSets} */
- public static int nxrAttachSessionActionSets(XrSession session, long attachInfo) {
- long __functionAddress = session.getCapabilities().xrAttachSessionActionSets;
- if (CHECKS) {
- XrSessionActionSetsAttachInfo.validate(attachInfo);
- }
- return callPPI(session.address(), attachInfo, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrSuggestInteractionProfileBindings(XrInstance instance, @NativeType("XrInteractionProfileSuggestedBinding const *") XrInteractionProfileSuggestedBinding suggestedBindings) {
+ return nxrSuggestInteractionProfileBindings(instance, suggestedBindings.address());
+ }
+
+ // --- [ xrAttachSessionActionSets ] ---
+
+ /** Unsafe version of: {@link #xrAttachSessionActionSets AttachSessionActionSets} */
+ public static int nxrAttachSessionActionSets(XrSession session, long attachInfo) {
+ long __functionAddress = session.getCapabilities().xrAttachSessionActionSets;
+ if (CHECKS) {
+ XrSessionActionSetsAttachInfo.validate(attachInfo);
+ }
+ return callPPI(session.address(), attachInfo, __functionAddress);
+ }
+
/**
* Attaches action sets to a given session.
*
@@ -4273,20 +4273,20 @@ public static int nxrAttachSessionActionSets(XrSession session, long attachInfo)
*
* @param session the {@code XrSession} to attach the action sets to.
* @param attachInfo the {@link XrSessionActionSetsAttachInfo} to provide information to attach action sets to the session.
- */
- @NativeType("XrResult")
- public static int xrAttachSessionActionSets(XrSession session, @NativeType("XrSessionActionSetsAttachInfo const *") XrSessionActionSetsAttachInfo attachInfo) {
- return nxrAttachSessionActionSets(session, attachInfo.address());
- }
-
- // --- [ xrGetCurrentInteractionProfile ] ---
-
- /** Unsafe version of: {@link #xrGetCurrentInteractionProfile GetCurrentInteractionProfile} */
- public static int nxrGetCurrentInteractionProfile(XrSession session, long topLevelUserPath, long interactionProfile) {
- long __functionAddress = session.getCapabilities().xrGetCurrentInteractionProfile;
- return callPJPI(session.address(), topLevelUserPath, interactionProfile, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrAttachSessionActionSets(XrSession session, @NativeType("XrSessionActionSetsAttachInfo const *") XrSessionActionSetsAttachInfo attachInfo) {
+ return nxrAttachSessionActionSets(session, attachInfo.address());
+ }
+
+ // --- [ xrGetCurrentInteractionProfile ] ---
+
+ /** Unsafe version of: {@link #xrGetCurrentInteractionProfile GetCurrentInteractionProfile} */
+ public static int nxrGetCurrentInteractionProfile(XrSession session, long topLevelUserPath, long interactionProfile) {
+ long __functionAddress = session.getCapabilities().xrGetCurrentInteractionProfile;
+ return callPJPI(session.address(), topLevelUserPath, interactionProfile, __functionAddress);
+ }
+
/**
* Gets the current interaction profile for a top level user paths.
*
@@ -4343,23 +4343,23 @@ public static int nxrGetCurrentInteractionProfile(XrSession session, long topLev
* @param session the {@code XrSession} for which the application would like to retrieve the current interaction profile.
* @param topLevelUserPath the top level user path the application would like to retrieve the interaction profile for.
* @param interactionProfile a pointer to an {@link XrInteractionProfileState} structure to receive the current interaction profile.
- */
- @NativeType("XrResult")
- public static int xrGetCurrentInteractionProfile(XrSession session, @NativeType("XrPath") long topLevelUserPath, @NativeType("XrInteractionProfileState *") XrInteractionProfileState interactionProfile) {
- return nxrGetCurrentInteractionProfile(session, topLevelUserPath, interactionProfile.address());
- }
-
- // --- [ xrGetActionStateBoolean ] ---
-
- /** Unsafe version of: {@link #xrGetActionStateBoolean GetActionStateBoolean} */
- public static int nxrGetActionStateBoolean(XrSession session, long getInfo, long state) {
- long __functionAddress = session.getCapabilities().xrGetActionStateBoolean;
- if (CHECKS) {
- XrActionStateGetInfo.validate(getInfo);
- }
- return callPPPI(session.address(), getInfo, state, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrGetCurrentInteractionProfile(XrSession session, @NativeType("XrPath") long topLevelUserPath, @NativeType("XrInteractionProfileState *") XrInteractionProfileState interactionProfile) {
+ return nxrGetCurrentInteractionProfile(session, topLevelUserPath, interactionProfile.address());
+ }
+
+ // --- [ xrGetActionStateBoolean ] ---
+
+ /** Unsafe version of: {@link #xrGetActionStateBoolean GetActionStateBoolean} */
+ public static int nxrGetActionStateBoolean(XrSession session, long getInfo, long state) {
+ long __functionAddress = session.getCapabilities().xrGetActionStateBoolean;
+ if (CHECKS) {
+ XrActionStateGetInfo.validate(getInfo);
+ }
+ return callPPPI(session.address(), getInfo, state, __functionAddress);
+ }
+
/**
* Gets boolean action state.
*
@@ -4410,23 +4410,23 @@ public static int nxrGetActionStateBoolean(XrSession session, long getInfo, long
* @param session the {@code XrSession} to query.
* @param getInfo a pointer to {@link XrActionStateGetInfo} to provide action and subaction paths information.
* @param state a pointer to a valid {@link XrActionStateBoolean} into which the state will be placed.
- */
- @NativeType("XrResult")
- public static int xrGetActionStateBoolean(XrSession session, @NativeType("XrActionStateGetInfo const *") XrActionStateGetInfo getInfo, @NativeType("XrActionStateBoolean *") XrActionStateBoolean state) {
- return nxrGetActionStateBoolean(session, getInfo.address(), state.address());
- }
-
- // --- [ xrGetActionStateFloat ] ---
-
- /** Unsafe version of: {@link #xrGetActionStateFloat GetActionStateFloat} */
- public static int nxrGetActionStateFloat(XrSession session, long getInfo, long state) {
- long __functionAddress = session.getCapabilities().xrGetActionStateFloat;
- if (CHECKS) {
- XrActionStateGetInfo.validate(getInfo);
- }
- return callPPPI(session.address(), getInfo, state, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrGetActionStateBoolean(XrSession session, @NativeType("XrActionStateGetInfo const *") XrActionStateGetInfo getInfo, @NativeType("XrActionStateBoolean *") XrActionStateBoolean state) {
+ return nxrGetActionStateBoolean(session, getInfo.address(), state.address());
+ }
+
+ // --- [ xrGetActionStateFloat ] ---
+
+ /** Unsafe version of: {@link #xrGetActionStateFloat GetActionStateFloat} */
+ public static int nxrGetActionStateFloat(XrSession session, long getInfo, long state) {
+ long __functionAddress = session.getCapabilities().xrGetActionStateFloat;
+ if (CHECKS) {
+ XrActionStateGetInfo.validate(getInfo);
+ }
+ return callPPPI(session.address(), getInfo, state, __functionAddress);
+ }
+
/**
* Gets a floating point action state.
*
@@ -4477,23 +4477,23 @@ public static int nxrGetActionStateFloat(XrSession session, long getInfo, long s
* @param session the {@code XrSession} to query.
* @param getInfo a pointer to {@link XrActionStateGetInfo} to provide action and subaction paths information.
* @param state a pointer to a valid {@link XrActionStateFloat} into which the state will be placed.
- */
- @NativeType("XrResult")
- public static int xrGetActionStateFloat(XrSession session, @NativeType("XrActionStateGetInfo const *") XrActionStateGetInfo getInfo, @NativeType("XrActionStateFloat *") XrActionStateFloat state) {
- return nxrGetActionStateFloat(session, getInfo.address(), state.address());
- }
-
- // --- [ xrGetActionStateVector2f ] ---
-
- /** Unsafe version of: {@link #xrGetActionStateVector2f GetActionStateVector2f} */
- public static int nxrGetActionStateVector2f(XrSession session, long getInfo, long state) {
- long __functionAddress = session.getCapabilities().xrGetActionStateVector2f;
- if (CHECKS) {
- XrActionStateGetInfo.validate(getInfo);
- }
- return callPPPI(session.address(), getInfo, state, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrGetActionStateFloat(XrSession session, @NativeType("XrActionStateGetInfo const *") XrActionStateGetInfo getInfo, @NativeType("XrActionStateFloat *") XrActionStateFloat state) {
+ return nxrGetActionStateFloat(session, getInfo.address(), state.address());
+ }
+
+ // --- [ xrGetActionStateVector2f ] ---
+
+ /** Unsafe version of: {@link #xrGetActionStateVector2f GetActionStateVector2f} */
+ public static int nxrGetActionStateVector2f(XrSession session, long getInfo, long state) {
+ long __functionAddress = session.getCapabilities().xrGetActionStateVector2f;
+ if (CHECKS) {
+ XrActionStateGetInfo.validate(getInfo);
+ }
+ return callPPPI(session.address(), getInfo, state, __functionAddress);
+ }
+
/**
* Gets 2D float vector action state.
*
@@ -4544,23 +4544,23 @@ public static int nxrGetActionStateVector2f(XrSession session, long getInfo, lon
* @param session the {@code XrSession} to query.
* @param getInfo a pointer to {@link XrActionStateGetInfo} to provide action and subaction paths information.
* @param state a pointer to a valid {@link XrActionStateVector2f} into which the state will be placed.
- */
- @NativeType("XrResult")
- public static int xrGetActionStateVector2f(XrSession session, @NativeType("XrActionStateGetInfo const *") XrActionStateGetInfo getInfo, @NativeType("XrActionStateVector2f *") XrActionStateVector2f state) {
- return nxrGetActionStateVector2f(session, getInfo.address(), state.address());
- }
-
- // --- [ xrGetActionStatePose ] ---
-
- /** Unsafe version of: {@link #xrGetActionStatePose GetActionStatePose} */
- public static int nxrGetActionStatePose(XrSession session, long getInfo, long state) {
- long __functionAddress = session.getCapabilities().xrGetActionStatePose;
- if (CHECKS) {
- XrActionStateGetInfo.validate(getInfo);
- }
- return callPPPI(session.address(), getInfo, state, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrGetActionStateVector2f(XrSession session, @NativeType("XrActionStateGetInfo const *") XrActionStateGetInfo getInfo, @NativeType("XrActionStateVector2f *") XrActionStateVector2f state) {
+ return nxrGetActionStateVector2f(session, getInfo.address(), state.address());
+ }
+
+ // --- [ xrGetActionStatePose ] ---
+
+ /** Unsafe version of: {@link #xrGetActionStatePose GetActionStatePose} */
+ public static int nxrGetActionStatePose(XrSession session, long getInfo, long state) {
+ long __functionAddress = session.getCapabilities().xrGetActionStatePose;
+ if (CHECKS) {
+ XrActionStateGetInfo.validate(getInfo);
+ }
+ return callPPPI(session.address(), getInfo, state, __functionAddress);
+ }
+
/**
* Gets metadata from a pose action.
*
@@ -4615,20 +4615,20 @@ public static int nxrGetActionStatePose(XrSession session, long getInfo, long st
* @param session the {@code XrSession} to query.
* @param getInfo a pointer to {@link XrActionStateGetInfo} to provide action and subaction paths information.
* @param state a pointer to a valid {@link XrActionStatePose} into which the state will be placed.
- */
- @NativeType("XrResult")
- public static int xrGetActionStatePose(XrSession session, @NativeType("XrActionStateGetInfo const *") XrActionStateGetInfo getInfo, @NativeType("XrActionStatePose *") XrActionStatePose state) {
- return nxrGetActionStatePose(session, getInfo.address(), state.address());
- }
-
- // --- [ xrSyncActions ] ---
-
- /** Unsafe version of: {@link #xrSyncActions SyncActions} */
- public static int nxrSyncActions(XrSession session, long syncInfo) {
- long __functionAddress = session.getCapabilities().xrSyncActions;
- return callPPI(session.address(), syncInfo, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrGetActionStatePose(XrSession session, @NativeType("XrActionStateGetInfo const *") XrActionStateGetInfo getInfo, @NativeType("XrActionStatePose *") XrActionStatePose state) {
+ return nxrGetActionStatePose(session, getInfo.address(), state.address());
+ }
+
+ // --- [ xrSyncActions ] ---
+
+ /** Unsafe version of: {@link #xrSyncActions SyncActions} */
+ public static int nxrSyncActions(XrSession session, long syncInfo) {
+ long __functionAddress = session.getCapabilities().xrSyncActions;
+ return callPPI(session.address(), syncInfo, __functionAddress);
+ }
+
/**
* Updates the current state of input actions.
*
@@ -4682,27 +4682,27 @@ public static int nxrSyncActions(XrSession session, long syncInfo) {
*
* @param session a handle to the {@code XrSession} that all provided action set handles belong to.
* @param syncInfo an {@link XrActionsSyncInfo} providing information to synchronize action states.
- */
- @NativeType("XrResult")
- public static int xrSyncActions(XrSession session, @NativeType("XrActionsSyncInfo const *") XrActionsSyncInfo syncInfo) {
- return nxrSyncActions(session, syncInfo.address());
- }
-
- // --- [ xrEnumerateBoundSourcesForAction ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrSyncActions(XrSession session, @NativeType("XrActionsSyncInfo const *") XrActionsSyncInfo syncInfo) {
+ return nxrSyncActions(session, syncInfo.address());
+ }
+
+ // --- [ xrEnumerateBoundSourcesForAction ] ---
+
/**
* Unsafe version of: {@link #xrEnumerateBoundSourcesForAction EnumerateBoundSourcesForAction}
*
* @param sourceCapacityInput the capacity of the array, or 0 to indicate a request to retrieve the required capacity.
- */
- public static int nxrEnumerateBoundSourcesForAction(XrSession session, long enumerateInfo, int sourceCapacityInput, long sourceCountOutput, long sources) {
- long __functionAddress = session.getCapabilities().xrEnumerateBoundSourcesForAction;
- if (CHECKS) {
- XrBoundSourcesForActionEnumerateInfo.validate(enumerateInfo);
- }
- return callPPPPI(session.address(), enumerateInfo, sourceCapacityInput, sourceCountOutput, sources, __functionAddress);
- }
-
+ */
+ public static int nxrEnumerateBoundSourcesForAction(XrSession session, long enumerateInfo, int sourceCapacityInput, long sourceCountOutput, long sources) {
+ long __functionAddress = session.getCapabilities().xrEnumerateBoundSourcesForAction;
+ if (CHECKS) {
+ XrBoundSourcesForActionEnumerateInfo.validate(enumerateInfo);
+ }
+ return callPPPPI(session.address(), enumerateInfo, sourceCapacityInput, sourceCountOutput, sources, __functionAddress);
+ }
+
/**
* Queries the bound input sources for an action.
*
@@ -4769,27 +4769,27 @@ public static int nxrEnumerateBoundSourcesForAction(XrSession session, long enum
* @param enumerateInfo an {@link XrBoundSourcesForActionEnumerateInfo} providing the query information.
* @param sourceCountOutput a pointer to the count of {@code sources}, or a pointer to the required capacity in the case that {@code sourceCapacityInput} is insufficient.
* @param sources a pointer to an application-allocated array that will be filled with the {@code XrPath} values for all bound sources. It can be {@code NULL} if {@code sourceCapacityInput} is 0.
- */
- @NativeType("XrResult")
- public static int xrEnumerateBoundSourcesForAction(XrSession session, @NativeType("XrBoundSourcesForActionEnumerateInfo const *") XrBoundSourcesForActionEnumerateInfo enumerateInfo, @NativeType("uint32_t *") IntBuffer sourceCountOutput, @Nullable @NativeType("XrPath *") LongBuffer sources) {
- if (CHECKS) {
- check(sourceCountOutput, 1);
- }
- return nxrEnumerateBoundSourcesForAction(session, enumerateInfo.address(), remainingSafe(sources), memAddress(sourceCountOutput), memAddressSafe(sources));
- }
-
- // --- [ xrGetInputSourceLocalizedName ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrEnumerateBoundSourcesForAction(XrSession session, @NativeType("XrBoundSourcesForActionEnumerateInfo const *") XrBoundSourcesForActionEnumerateInfo enumerateInfo, @NativeType("uint32_t *") IntBuffer sourceCountOutput, @Nullable @NativeType("XrPath *") LongBuffer sources) {
+ if (CHECKS) {
+ check(sourceCountOutput, 1);
+ }
+ return nxrEnumerateBoundSourcesForAction(session, enumerateInfo.address(), remainingSafe(sources), memAddress(sourceCountOutput), memAddressSafe(sources));
+ }
+
+ // --- [ xrGetInputSourceLocalizedName ] ---
+
/**
* Unsafe version of: {@link #xrGetInputSourceLocalizedName GetInputSourceLocalizedName}
*
* @param bufferCapacityInput the capacity of the {@code buffer}, or 0 to indicate a request to retrieve the required capacity.
- */
- public static int nxrGetInputSourceLocalizedName(XrSession session, long getInfo, int bufferCapacityInput, long bufferCountOutput, long buffer) {
- long __functionAddress = session.getCapabilities().xrGetInputSourceLocalizedName;
- return callPPPPI(session.address(), getInfo, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress);
- }
-
+ */
+ public static int nxrGetInputSourceLocalizedName(XrSession session, long getInfo, int bufferCapacityInput, long bufferCountOutput, long buffer) {
+ long __functionAddress = session.getCapabilities().xrGetInputSourceLocalizedName;
+ return callPPPPI(session.address(), getInfo, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress);
+ }
+
/**
* Gets a localized source name.
*
@@ -4850,26 +4850,26 @@ public static int nxrGetInputSourceLocalizedName(XrSession session, long getInfo
* @param getInfo an {@link XrInputSourceLocalizedNameGetInfo} providing the query information.
* @param bufferCountOutput a pointer to the count of name characters written to {@code buffer} (including the terminating {@code \0}), or a pointer to the required capacity in the case that {@code bufferCapacityInput} is insufficient.
* @param buffer a pointer to an application-allocated buffer that will be filled with the bound source name. It can be {@code NULL} if {@code bufferCapacityInput} is 0.
- */
- @NativeType("XrResult")
- public static int xrGetInputSourceLocalizedName(XrSession session, @NativeType("XrInputSourceLocalizedNameGetInfo const *") XrInputSourceLocalizedNameGetInfo getInfo, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("char *") ByteBuffer buffer) {
- if (CHECKS) {
- check(bufferCountOutput, 1);
- }
- return nxrGetInputSourceLocalizedName(session, getInfo.address(), remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer));
- }
-
- // --- [ xrApplyHapticFeedback ] ---
-
- /** Unsafe version of: {@link #xrApplyHapticFeedback ApplyHapticFeedback} */
- public static int nxrApplyHapticFeedback(XrSession session, long hapticActionInfo, long hapticFeedback) {
- long __functionAddress = session.getCapabilities().xrApplyHapticFeedback;
- if (CHECKS) {
- XrHapticActionInfo.validate(hapticActionInfo);
- }
- return callPPPI(session.address(), hapticActionInfo, hapticFeedback, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrGetInputSourceLocalizedName(XrSession session, @NativeType("XrInputSourceLocalizedNameGetInfo const *") XrInputSourceLocalizedNameGetInfo getInfo, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("char *") ByteBuffer buffer) {
+ if (CHECKS) {
+ check(bufferCountOutput, 1);
+ }
+ return nxrGetInputSourceLocalizedName(session, getInfo.address(), remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer));
+ }
+
+ // --- [ xrApplyHapticFeedback ] ---
+
+ /** Unsafe version of: {@link #xrApplyHapticFeedback ApplyHapticFeedback} */
+ public static int nxrApplyHapticFeedback(XrSession session, long hapticActionInfo, long hapticFeedback) {
+ long __functionAddress = session.getCapabilities().xrApplyHapticFeedback;
+ if (CHECKS) {
+ XrHapticActionInfo.validate(hapticActionInfo);
+ }
+ return callPPPI(session.address(), hapticActionInfo, hapticFeedback, __functionAddress);
+ }
+
/**
* Apply haptic feedback.
*
@@ -4929,23 +4929,23 @@ public static int nxrApplyHapticFeedback(XrSession session, long hapticActionInf
* @param session the {@code XrSession} to start outputting to.
* @param hapticActionInfo a pointer to {@link XrHapticActionInfo} to provide action and subaction paths information.
* @param hapticFeedback a pointer to a haptic event structure which starts with an {@link XrHapticBaseHeader}.
- */
- @NativeType("XrResult")
- public static int xrApplyHapticFeedback(XrSession session, @NativeType("XrHapticActionInfo const *") XrHapticActionInfo hapticActionInfo, @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader hapticFeedback) {
- return nxrApplyHapticFeedback(session, hapticActionInfo.address(), hapticFeedback.address());
- }
-
- // --- [ xrStopHapticFeedback ] ---
-
- /** Unsafe version of: {@link #xrStopHapticFeedback StopHapticFeedback} */
- public static int nxrStopHapticFeedback(XrSession session, long hapticActionInfo) {
- long __functionAddress = session.getCapabilities().xrStopHapticFeedback;
- if (CHECKS) {
- XrHapticActionInfo.validate(hapticActionInfo);
- }
- return callPPI(session.address(), hapticActionInfo, __functionAddress);
- }
-
+ */
+ @NativeType("XrResult")
+ public static int xrApplyHapticFeedback(XrSession session, @NativeType("XrHapticActionInfo const *") XrHapticActionInfo hapticActionInfo, @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader hapticFeedback) {
+ return nxrApplyHapticFeedback(session, hapticActionInfo.address(), hapticFeedback.address());
+ }
+
+ // --- [ xrStopHapticFeedback ] ---
+
+ /** Unsafe version of: {@link #xrStopHapticFeedback StopHapticFeedback} */
+ public static int nxrStopHapticFeedback(XrSession session, long hapticActionInfo) {
+ long __functionAddress = session.getCapabilities().xrStopHapticFeedback;
+ if (CHECKS) {
+ XrHapticActionInfo.validate(hapticActionInfo);
+ }
+ return callPPI(session.address(), hapticActionInfo, __functionAddress);
+ }
+
/**
* Stop haptic feedback.
*
@@ -5000,14 +5000,14 @@ public static int nxrStopHapticFeedback(XrSession session, long hapticActionInfo
*
* @param session the {@code XrSession} to stop outputting to.
* @param hapticActionInfo a pointer to an {@link XrHapticActionInfo} to provide action and subaction path information.
- */
- @NativeType("XrResult")
- public static int xrStopHapticFeedback(XrSession session, @NativeType("XrHapticActionInfo const *") XrHapticActionInfo hapticActionInfo) {
- return nxrStopHapticFeedback(session, hapticActionInfo.address());
- }
-
- // --- [ XR_MAKE_VERSION ] ---
-
+ */
+ @NativeType("XrResult")
+ public static int xrStopHapticFeedback(XrSession session, @NativeType("XrHapticActionInfo const *") XrHapticActionInfo hapticActionInfo) {
+ return nxrStopHapticFeedback(session, hapticActionInfo.address());
+ }
+
+ // --- [ XR_MAKE_VERSION ] ---
+
/**
* Packs a three-component version number into a packed version number integer.
*
@@ -5016,67 +5016,67 @@ public static int xrStopHapticFeedback(XrSession session, @NativeType("XrHapticA
* @param major the major version number, packed into the most-significant 16 bits
* @param minor the minor version number, packed into the second-most-significant group of 16 bits
* @param patch the patch version number, in the least-significant 32 bits
- */
- @NativeType("uint64_t")
- public static long XR_MAKE_VERSION(@NativeType("uint16_t") int major, @NativeType("uint16_t") int minor, @NativeType("uint32_t") int patch) {
- return ((major & 0xFFFFL) << 48) | ((minor & 0xFFFFL) << 32) | (patch & 0xFFFF_FFFFL);
- }
-
- // --- [ XR_VERSION_MAJOR ] ---
-
+ */
+ @NativeType("uint64_t")
+ public static long XR_MAKE_VERSION(@NativeType("uint16_t") int major, @NativeType("uint16_t") int minor, @NativeType("uint32_t") int patch) {
+ return ((major & 0xFFFFL) << 48) | ((minor & 0xFFFFL) << 32) | (patch & 0xFFFF_FFFFL);
+ }
+
+ // --- [ XR_VERSION_MAJOR ] ---
+
/**
* Extracts the major version number from a packed version number.
*
* @param version a packed version number
- */
- @NativeType("uint16_t")
- public static short XR_VERSION_MAJOR(@NativeType("uint64_t") long version) {
- return (short)((version >> 48) & 0xFFFFL);
- }
-
- // --- [ XR_VERSION_MINOR ] ---
-
+ */
+ @NativeType("uint16_t")
+ public static short XR_VERSION_MAJOR(@NativeType("uint64_t") long version) {
+ return (short)((version >> 48) & 0xFFFFL);
+ }
+
+ // --- [ XR_VERSION_MINOR ] ---
+
/**
* Extracts the minor version number from a packed version number.
*
* @param version a packed version number
- */
- @NativeType("uint16_t")
- public static short XR_VERSION_MINOR(@NativeType("uint64_t") long version) {
- return (short)((version >> 32) & 0xFFFFL);
- }
-
- // --- [ XR_VERSION_PATCH ] ---
-
+ */
+ @NativeType("uint16_t")
+ public static short XR_VERSION_MINOR(@NativeType("uint64_t") long version) {
+ return (short)((version >> 32) & 0xFFFFL);
+ }
+
+ // --- [ XR_VERSION_PATCH ] ---
+
/**
* Extracts the patch version number from a packed version number.
*
* @param version a packed version number
- */
- @NativeType("uint32_t")
- public static int XR_VERSION_PATCH(@NativeType("uint64_t") long version) {
- return (int)(version & 0xFFFF_FFFFL);
- }
-
- // --- [ XR_SUCCEEDED ] ---
-
- @NativeType("bool")
- public static boolean XR_SUCCEEDED(int result) {
- return result >= 0;
- }
-
- // --- [ XR_UNQUALIFIED_SUCCESS ] ---
-
- @NativeType("bool")
- public static boolean XR_UNQUALIFIED_SUCCESS(int result) {
- return result == 0;
- }
-
- // --- [ XR_FAILED ] ---
-
- @NativeType("bool")
- public static boolean XR_FAILED(int result) {
- return result < 0;
- }
+ */
+ @NativeType("uint32_t")
+ public static int XR_VERSION_PATCH(@NativeType("uint64_t") long version) {
+ return (int)(version & 0xFFFF_FFFFL);
+ }
+
+ // --- [ XR_SUCCEEDED ] ---
+
+ @NativeType("bool")
+ public static boolean XR_SUCCEEDED(int result) {
+ return result >= 0;
+ }
+
+ // --- [ XR_UNQUALIFIED_SUCCESS ] ---
+
+ @NativeType("bool")
+ public static boolean XR_UNQUALIFIED_SUCCESS(int result) {
+ return result == 0;
+ }
+
+ // --- [ XR_FAILED ] ---
+
+ @NativeType("bool")
+ public static boolean XR_FAILED(int result) {
+ return result < 0;
+ }
}
\ No newline at end of file
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XRCapabilities.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XRCapabilities.java
index 60c17e1a1a..ae5386df0b 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XRCapabilities.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XRCapabilities.java
@@ -4,18 +4,18 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-import org.lwjgl.system.*;
-import java.util.Set;
-
-import static org.lwjgl.system.Checks.*;
-
-/** Defines the capabilities of an OpenXR {@code XrInstance}. */
-@SuppressWarnings("SimplifiableIfStatement")
-public class XRCapabilities {
-
- // XR10
- public final long
+
+import org.lwjgl.system.*;
+import java.util.Set;
+
+import static org.lwjgl.system.Checks.*;
+
+/** Defines the capabilities of an OpenXR {@code XrInstance}. */
+@SuppressWarnings("SimplifiableIfStatement")
+public class XRCapabilities {
+
+ // XR10
+ public final long
xrDestroyInstance,
xrGetInstanceProperties,
xrPollEvent,
@@ -66,94 +66,94 @@ public class XRCapabilities {
xrEnumerateBoundSourcesForAction,
xrGetInputSourceLocalizedName,
xrApplyHapticFeedback,
- xrStopHapticFeedback;
+ xrStopHapticFeedback;
- // ALMALENCE_digital_lens_control
- public final long
- xrSetDigitalLensControlALMALENCE;
+ // ALMALENCE_digital_lens_control
+ public final long
+ xrSetDigitalLensControlALMALENCE;
- // EXT_conformance_automation
- public final long
+ // EXT_conformance_automation
+ public final long
xrSetInputDeviceActiveEXT,
xrSetInputDeviceStateBoolEXT,
xrSetInputDeviceStateFloatEXT,
xrSetInputDeviceStateVector2fEXT,
- xrSetInputDeviceLocationEXT;
+ xrSetInputDeviceLocationEXT;
- // EXT_debug_utils
- public final long
+ // EXT_debug_utils
+ public final long
xrSetDebugUtilsObjectNameEXT,
xrCreateDebugUtilsMessengerEXT,
xrDestroyDebugUtilsMessengerEXT,
xrSubmitDebugUtilsMessageEXT,
xrSessionBeginDebugUtilsLabelRegionEXT,
xrSessionEndDebugUtilsLabelRegionEXT,
- xrSessionInsertDebugUtilsLabelEXT;
+ xrSessionInsertDebugUtilsLabelEXT;
- // EXT_hand_tracking
- public final long
+ // EXT_hand_tracking
+ public final long
xrCreateHandTrackerEXT,
xrDestroyHandTrackerEXT,
- xrLocateHandJointsEXT;
+ xrLocateHandJointsEXT;
- // EXT_performance_settings
- public final long
- xrPerfSettingsSetPerformanceLevelEXT;
+ // EXT_performance_settings
+ public final long
+ xrPerfSettingsSetPerformanceLevelEXT;
- // EXT_thermal_query
- public final long
- xrThermalGetTemperatureTrendEXT;
+ // EXT_thermal_query
+ public final long
+ xrThermalGetTemperatureTrendEXT;
- // FB_body_tracking
- public final long
+ // FB_body_tracking
+ public final long
xrCreateBodyTrackerFB,
xrDestroyBodyTrackerFB,
xrLocateBodyJointsFB,
- xrGetBodySkeletonFB;
+ xrGetBodySkeletonFB;
- // FB_color_space
- public final long
+ // FB_color_space
+ public final long
xrEnumerateColorSpacesFB,
- xrSetColorSpaceFB;
+ xrSetColorSpaceFB;
- // FB_display_refresh_rate
- public final long
+ // FB_display_refresh_rate
+ public final long
xrEnumerateDisplayRefreshRatesFB,
xrGetDisplayRefreshRateFB,
- xrRequestDisplayRefreshRateFB;
+ xrRequestDisplayRefreshRateFB;
- // FB_eye_tracking_social
- public final long
+ // FB_eye_tracking_social
+ public final long
xrCreateEyeTrackerFB,
xrDestroyEyeTrackerFB,
- xrGetEyeGazesFB;
+ xrGetEyeGazesFB;
- // FB_face_tracking
- public final long
+ // FB_face_tracking
+ public final long
xrCreateFaceTrackerFB,
xrDestroyFaceTrackerFB,
- xrGetFaceExpressionWeightsFB;
+ xrGetFaceExpressionWeightsFB;
- // FB_foveation
- public final long
+ // FB_foveation
+ public final long
xrCreateFoveationProfileFB,
- xrDestroyFoveationProfileFB;
+ xrDestroyFoveationProfileFB;
- // FB_hand_tracking_mesh
- public final long
- xrGetHandMeshFB;
+ // FB_hand_tracking_mesh
+ public final long
+ xrGetHandMeshFB;
- // FB_haptic_pcm
- public final long
- xrGetDeviceSampleRateFB;
+ // FB_haptic_pcm
+ public final long
+ xrGetDeviceSampleRateFB;
- // FB_keyboard_tracking
- public final long
+ // FB_keyboard_tracking
+ public final long
xrQuerySystemTrackedKeyboardFB,
- xrCreateKeyboardSpaceFB;
+ xrCreateKeyboardSpaceFB;
- // FB_passthrough
- public final long
+ // FB_passthrough
+ public final long
xrCreatePassthroughFB,
xrDestroyPassthroughFB,
xrPassthroughStartFB,
@@ -165,73 +165,73 @@ public class XRCapabilities {
xrPassthroughLayerSetStyleFB,
xrCreateGeometryInstanceFB,
xrDestroyGeometryInstanceFB,
- xrGeometryInstanceSetTransformFB;
+ xrGeometryInstanceSetTransformFB;
- // FB_passthrough_keyboard_hands
- public final long
- xrPassthroughLayerSetKeyboardHandsIntensityFB;
+ // FB_passthrough_keyboard_hands
+ public final long
+ xrPassthroughLayerSetKeyboardHandsIntensityFB;
- // FB_render_model
- public final long
+ // FB_render_model
+ public final long
xrEnumerateRenderModelPathsFB,
xrGetRenderModelPropertiesFB,
- xrLoadRenderModelFB;
+ xrLoadRenderModelFB;
- // FB_scene
- public final long
+ // FB_scene
+ public final long
xrGetSpaceBoundingBox2DFB,
xrGetSpaceBoundingBox3DFB,
xrGetSpaceSemanticLabelsFB,
xrGetSpaceBoundary2DFB,
- xrGetSpaceRoomLayoutFB;
+ xrGetSpaceRoomLayoutFB;
- // FB_scene_capture
- public final long
- xrRequestSceneCaptureFB;
+ // FB_scene_capture
+ public final long
+ xrRequestSceneCaptureFB;
- // FB_spatial_entity
- public final long
+ // FB_spatial_entity
+ public final long
xrCreateSpatialAnchorFB,
xrGetSpaceUuidFB,
xrEnumerateSpaceSupportedComponentsFB,
xrSetSpaceComponentStatusFB,
- xrGetSpaceComponentStatusFB;
+ xrGetSpaceComponentStatusFB;
- // FB_spatial_entity_container
- public final long
- xrGetSpaceContainerFB;
+ // FB_spatial_entity_container
+ public final long
+ xrGetSpaceContainerFB;
- // FB_spatial_entity_query
- public final long
+ // FB_spatial_entity_query
+ public final long
xrQuerySpacesFB,
- xrRetrieveSpaceQueryResultsFB;
+ xrRetrieveSpaceQueryResultsFB;
- // FB_spatial_entity_sharing
- public final long
- xrShareSpacesFB;
+ // FB_spatial_entity_sharing
+ public final long
+ xrShareSpacesFB;
- // FB_spatial_entity_storage
- public final long
+ // FB_spatial_entity_storage
+ public final long
xrSaveSpaceFB,
- xrEraseSpaceFB;
+ xrEraseSpaceFB;
- // FB_spatial_entity_storage_batch
- public final long
- xrSaveSpaceListFB;
+ // FB_spatial_entity_storage_batch
+ public final long
+ xrSaveSpaceListFB;
- // FB_spatial_entity_user
- public final long
+ // FB_spatial_entity_user
+ public final long
xrCreateSpaceUserFB,
xrGetSpaceUserIdFB,
- xrDestroySpaceUserFB;
+ xrDestroySpaceUserFB;
- // FB_swapchain_update_state
- public final long
+ // FB_swapchain_update_state
+ public final long
xrUpdateSwapchainFB,
- xrGetSwapchainStateFB;
+ xrGetSwapchainStateFB;
- // FB_triangle_mesh
- public final long
+ // FB_triangle_mesh
+ public final long
xrCreateTriangleMeshFB,
xrDestroyTriangleMeshFB,
xrTriangleMeshGetVertexBufferFB,
@@ -239,105 +239,105 @@ public class XRCapabilities {
xrTriangleMeshBeginUpdateFB,
xrTriangleMeshEndUpdateFB,
xrTriangleMeshBeginVertexBufferUpdateFB,
- xrTriangleMeshEndVertexBufferUpdateFB;
+ xrTriangleMeshEndVertexBufferUpdateFB;
- // HTC_facial_tracking
- public final long
+ // HTC_facial_tracking
+ public final long
xrCreateFacialTrackerHTC,
xrDestroyFacialTrackerHTC,
- xrGetFacialExpressionsHTC;
+ xrGetFacialExpressionsHTC;
- // HTC_foveation
- public final long
- xrApplyFoveationHTC;
+ // HTC_foveation
+ public final long
+ xrApplyFoveationHTC;
- // HTC_passthrough
- public final long
+ // HTC_passthrough
+ public final long
xrCreatePassthroughHTC,
- xrDestroyPassthroughHTC;
+ xrDestroyPassthroughHTC;
- // HTCX_vive_tracker_interaction
- public final long
- xrEnumerateViveTrackerPathsHTCX;
+ // HTCX_vive_tracker_interaction
+ public final long
+ xrEnumerateViveTrackerPathsHTCX;
- // KHR_convert_timespec_time
- public final long
+ // KHR_convert_timespec_time
+ public final long
xrConvertTimespecTimeToTimeKHR,
- xrConvertTimeToTimespecTimeKHR;
+ xrConvertTimeToTimespecTimeKHR;
- // KHR_opengl_enable
- public final long
- xrGetOpenGLGraphicsRequirementsKHR;
+ // KHR_opengl_enable
+ public final long
+ xrGetOpenGLGraphicsRequirementsKHR;
- // KHR_opengl_es_enable
- public final long
- xrGetOpenGLESGraphicsRequirementsKHR;
+ // KHR_opengl_es_enable
+ public final long
+ xrGetOpenGLESGraphicsRequirementsKHR;
- // KHR_visibility_mask
- public final long
- xrGetVisibilityMaskKHR;
+ // KHR_visibility_mask
+ public final long
+ xrGetVisibilityMaskKHR;
- // KHR_vulkan_enable
- public final long
+ // KHR_vulkan_enable
+ public final long
xrGetVulkanInstanceExtensionsKHR,
xrGetVulkanDeviceExtensionsKHR,
xrGetVulkanGraphicsDeviceKHR,
- xrGetVulkanGraphicsRequirementsKHR;
+ xrGetVulkanGraphicsRequirementsKHR;
- // KHR_vulkan_enable2
- public final long
+ // KHR_vulkan_enable2
+ public final long
xrCreateVulkanInstanceKHR,
xrCreateVulkanDeviceKHR,
xrGetVulkanGraphicsDevice2KHR,
- xrGetVulkanGraphicsRequirements2KHR;
+ xrGetVulkanGraphicsRequirements2KHR;
- // KHR_win32_convert_performance_counter_time
- public final long
+ // KHR_win32_convert_performance_counter_time
+ public final long
xrConvertWin32PerformanceCounterToTimeKHR,
- xrConvertTimeToWin32PerformanceCounterKHR;
+ xrConvertTimeToWin32PerformanceCounterKHR;
- // META_foveation_eye_tracked
- public final long
- xrGetFoveationEyeTrackedStateMETA;
+ // META_foveation_eye_tracked
+ public final long
+ xrGetFoveationEyeTrackedStateMETA;
- // META_performance_metrics
- public final long
+ // META_performance_metrics
+ public final long
xrEnumeratePerformanceMetricsCounterPathsMETA,
xrSetPerformanceMetricsStateMETA,
xrGetPerformanceMetricsStateMETA,
- xrQueryPerformanceMetricsCounterMETA;
+ xrQueryPerformanceMetricsCounterMETA;
- // ML_compat
- public final long
- xrCreateSpaceFromCoordinateFrameUIDML;
+ // ML_compat
+ public final long
+ xrCreateSpaceFromCoordinateFrameUIDML;
- // MNDX_force_feedback_curl
- public final long
- xrApplyForceFeedbackCurlMNDX;
+ // MNDX_force_feedback_curl
+ public final long
+ xrApplyForceFeedbackCurlMNDX;
- // MSFT_composition_layer_reprojection
- public final long
- xrEnumerateReprojectionModesMSFT;
+ // MSFT_composition_layer_reprojection
+ public final long
+ xrEnumerateReprojectionModesMSFT;
- // MSFT_controller_model
- public final long
+ // MSFT_controller_model
+ public final long
xrGetControllerModelKeyMSFT,
xrLoadControllerModelMSFT,
xrGetControllerModelPropertiesMSFT,
- xrGetControllerModelStateMSFT;
+ xrGetControllerModelStateMSFT;
- // MSFT_hand_tracking_mesh
- public final long
+ // MSFT_hand_tracking_mesh
+ public final long
xrCreateHandMeshSpaceMSFT,
- xrUpdateHandMeshMSFT;
+ xrUpdateHandMeshMSFT;
- // MSFT_perception_anchor_interop
- public final long
+ // MSFT_perception_anchor_interop
+ public final long
xrCreateSpatialAnchorFromPerceptionAnchorMSFT,
- xrTryGetPerceptionAnchorFromSpatialAnchorMSFT;
+ xrTryGetPerceptionAnchorFromSpatialAnchorMSFT;
- // MSFT_scene_understanding
- public final long
+ // MSFT_scene_understanding
+ public final long
xrEnumerateSceneComputeFeaturesMSFT,
xrCreateSceneObserverMSFT,
xrDestroySceneObserverMSFT,
@@ -347,324 +347,314 @@ public class XRCapabilities {
xrGetSceneComputeStateMSFT,
xrGetSceneComponentsMSFT,
xrLocateSceneComponentsMSFT,
- xrGetSceneMeshBuffersMSFT;
+ xrGetSceneMeshBuffersMSFT;
- // MSFT_scene_understanding_serialization
- public final long
+ // MSFT_scene_understanding_serialization
+ public final long
xrDeserializeSceneMSFT,
- xrGetSerializedSceneFragmentDataMSFT;
+ xrGetSerializedSceneFragmentDataMSFT;
- // MSFT_spatial_anchor
- public final long
+ // MSFT_spatial_anchor
+ public final long
xrCreateSpatialAnchorMSFT,
xrCreateSpatialAnchorSpaceMSFT,
- xrDestroySpatialAnchorMSFT;
+ xrDestroySpatialAnchorMSFT;
- // MSFT_spatial_anchor_persistence
- public final long
+ // MSFT_spatial_anchor_persistence
+ public final long
xrCreateSpatialAnchorStoreConnectionMSFT,
xrDestroySpatialAnchorStoreConnectionMSFT,
xrPersistSpatialAnchorMSFT,
xrEnumeratePersistedSpatialAnchorNamesMSFT,
xrCreateSpatialAnchorFromPersistedNameMSFT,
xrUnpersistSpatialAnchorMSFT,
- xrClearSpatialAnchorStoreMSFT;
+ xrClearSpatialAnchorStoreMSFT;
- // MSFT_spatial_graph_bridge
- public final long
+ // MSFT_spatial_graph_bridge
+ public final long
xrCreateSpatialGraphNodeSpaceMSFT,
xrTryCreateSpatialGraphStaticNodeBindingMSFT,
xrDestroySpatialGraphNodeBindingMSFT,
- xrGetSpatialGraphNodeBindingPropertiesMSFT;
+ xrGetSpatialGraphNodeBindingPropertiesMSFT;
- // OCULUS_audio_device_guid
- public final long
+ // OCULUS_audio_device_guid
+ public final long
xrGetAudioOutputDeviceGuidOculus,
- xrGetAudioInputDeviceGuidOculus;
+ xrGetAudioInputDeviceGuidOculus;
- // OCULUS_external_camera
- public final long
- xrEnumerateExternalCamerasOCULUS;
+ // OCULUS_external_camera
+ public final long
+ xrEnumerateExternalCamerasOCULUS;
- // QCOM_tracking_optimization_settings
- public final long
- xrSetTrackingOptimizationSettingsHintQCOM;
+ // QCOM_tracking_optimization_settings
+ public final long
+ xrSetTrackingOptimizationSettingsHintQCOM;
- // VARJO_environment_depth_estimation
- public final long
- xrSetEnvironmentDepthEstimationVARJO;
+ // VARJO_environment_depth_estimation
+ public final long
+ xrSetEnvironmentDepthEstimationVARJO;
- // VARJO_marker_tracking
- public final long
+ // VARJO_marker_tracking
+ public final long
xrSetMarkerTrackingVARJO,
xrSetMarkerTrackingTimeoutVARJO,
xrSetMarkerTrackingPredictionVARJO,
xrGetMarkerSizeVARJO,
- xrCreateMarkerSpaceVARJO;
+ xrCreateMarkerSpaceVARJO;
- // VARJO_view_offset
- public final long
- xrSetViewOffsetVARJO;
+ // VARJO_view_offset
+ public final long
+ xrSetViewOffsetVARJO;
/** The OpenXR API version number. */
public final long apiVersion;
-
- /** When true, {@link XR10} is supported. */
- public final boolean OpenXR10;
- /** When true, {@link ALMALENCEDigitalLensControl} is supported. */
- public final boolean XR_ALMALENCE_digital_lens_control;
- /** When true, {@link BDControllerInteraction} is supported. */
- public final boolean XR_BD_controller_interaction;
- /** When true, {@link EPICViewConfigurationFov} is supported. */
- public final boolean XR_EPIC_view_configuration_fov;
- /** When true, {@link EXTActiveActionSetPriority} is supported. */
- public final boolean XR_EXT_active_action_set_priority;
- /** When true, {@link EXTConformanceAutomation} is supported. */
- public final boolean XR_EXT_conformance_automation;
- /** When true, {@link EXTDebugUtils} is supported. */
- public final boolean XR_EXT_debug_utils;
- /** When true, {@link EXTDpadBinding} is supported. */
- public final boolean XR_EXT_dpad_binding;
- /** When true, {@link EXTEyeGazeInteraction} is supported. */
- public final boolean XR_EXT_eye_gaze_interaction;
- /** When true, {@link EXTHandInteraction} is supported. */
- public final boolean XR_EXT_hand_interaction;
- /** When true, {@link EXTHandJointsMotionRange} is supported. */
- public final boolean XR_EXT_hand_joints_motion_range;
- /** When true, {@link EXTHandTracking} is supported. */
- public final boolean XR_EXT_hand_tracking;
- /** When true, {@link EXTHandTrackingDataSource} is supported. */
- public final boolean XR_EXT_hand_tracking_data_source;
- /** When true, {@link EXTHPMixedRealityController} is supported. */
- public final boolean XR_EXT_hp_mixed_reality_controller;
- /** When true, {@link EXTLocalFloor} is supported. */
- public final boolean XR_EXT_local_floor;
- /** When true, {@link EXTPalmPose} is supported. */
- public final boolean XR_EXT_palm_pose;
- /** When true, {@link EXTPerformanceSettings} is supported. */
- public final boolean XR_EXT_performance_settings;
- /** When true, {@link EXTSamsungOdysseyController} is supported. */
- public final boolean XR_EXT_samsung_odyssey_controller;
- /** When true, {@link EXTThermalQuery} is supported. */
- public final boolean XR_EXT_thermal_query;
- /** When true, {@link EXTUUIUD} is supported. */
- public final boolean XR_EXT_uuid;
- /** When true, {@link EXTViewConfigurationDepthRange} is supported. */
- public final boolean XR_EXT_view_configuration_depth_range;
- /** When true, {@link EXTWin32AppcontainerCompatible} is supported. */
- public final boolean XR_EXT_win32_appcontainer_compatible;
- /** When true, {@link EXTXOverlay} is supported. */
- public final boolean XR_EXTX_overlay;
- /** When true, {@link FBBodyTracking} is supported. */
- public final boolean XR_FB_body_tracking;
- /** When true, {@link FBColorSpace} is supported. */
- public final boolean XR_FB_color_space;
- /** When true, {@link FBCompositionLayerAlphaBlend} is supported. */
- public final boolean XR_FB_composition_layer_alpha_blend;
- /** When true, {@link FBCompositionLayerDepthTest} is supported. */
- public final boolean XR_FB_composition_layer_depth_test;
- /** When true, {@link FBCompositionLayerImageLayout} is supported. */
- public final boolean XR_FB_composition_layer_image_layout;
- /** When true, {@link FBCompositionLayerSecureContent} is supported. */
- public final boolean XR_FB_composition_layer_secure_content;
- /** When true, {@link FBCompositionLayerSettings} is supported. */
- public final boolean XR_FB_composition_layer_settings;
- /** When true, {@link FBDisplayRefreshRate} is supported. */
- public final boolean XR_FB_display_refresh_rate;
- /** When true, {@link FBEyeTrackingSocial} is supported. */
- public final boolean XR_FB_eye_tracking_social;
- /** When true, {@link FBFaceTracking} is supported. */
- public final boolean XR_FB_face_tracking;
- /** When true, {@link FBFoveation} is supported. */
- public final boolean XR_FB_foveation;
- /** When true, {@link FBFoveationConfiguration} is supported. */
- public final boolean XR_FB_foveation_configuration;
- /** When true, {@link FBFoveationVulkan} is supported. */
- public final boolean XR_FB_foveation_vulkan;
- /** When true, {@link FBHandTrackingAim} is supported. */
- public final boolean XR_FB_hand_tracking_aim;
- /** When true, {@link FBHandTrackingCapsules} is supported. */
- public final boolean XR_FB_hand_tracking_capsules;
- /** When true, {@link FBHandTrackingMesh} is supported. */
- public final boolean XR_FB_hand_tracking_mesh;
- /** When true, {@link FBHapticAmplitudeEnvelope} is supported. */
- public final boolean XR_FB_haptic_amplitude_envelope;
- /** When true, {@link FBHapticPcm} is supported. */
- public final boolean XR_FB_haptic_pcm;
- /** When true, {@link FBKeyboardTracking} is supported. */
- public final boolean XR_FB_keyboard_tracking;
- /** When true, {@link FBPassthrough} is supported. */
- public final boolean XR_FB_passthrough;
- /** When true, {@link FBPassthroughKeyboardHands} is supported. */
- public final boolean XR_FB_passthrough_keyboard_hands;
- /** When true, {@link FBRenderModel} is supported. */
- public final boolean XR_FB_render_model;
- /** When true, {@link FBScene} is supported. */
- public final boolean XR_FB_scene;
- /** When true, {@link FBSceneCapture} is supported. */
- public final boolean XR_FB_scene_capture;
- /** When true, {@link FBSpaceWarp} is supported. */
- public final boolean XR_FB_space_warp;
- /** When true, {@link FBSpatialEntity} is supported. */
- public final boolean XR_FB_spatial_entity;
- /** When true, {@link FBSpatialEntityContainer} is supported. */
- public final boolean XR_FB_spatial_entity_container;
- /** When true, {@link FBSpatialEntityQuery} is supported. */
- public final boolean XR_FB_spatial_entity_query;
- /** When true, {@link FBSpatialEntitySharing} is supported. */
- public final boolean XR_FB_spatial_entity_sharing;
- /** When true, {@link FBSpatialEntityStorage} is supported. */
- public final boolean XR_FB_spatial_entity_storage;
- /** When true, {@link FBSpatialEntityStorageBatch} is supported. */
- public final boolean XR_FB_spatial_entity_storage_batch;
- /** When true, {@link FBSpatialEntityUser} is supported. */
- public final boolean XR_FB_spatial_entity_user;
- /** When true, {@link FBSwapchainUpdateState} is supported. */
- public final boolean XR_FB_swapchain_update_state;
- /** When true, {@link FBSwapchainUpdateStateOpenGLES} is supported. */
- public final boolean XR_FB_swapchain_update_state_opengl_es;
- /** When true, {@link FBSwapchainUpdateStateVulkan} is supported. */
- public final boolean XR_FB_swapchain_update_state_vulkan;
- /** When true, {@link FBTouchControllerPro} is supported. */
- public final boolean XR_FB_touch_controller_pro;
- /** When true, {@link FBTouchControllerProximity} is supported. */
- public final boolean XR_FB_touch_controller_proximity;
- /** When true, {@link FBTriangleMesh} is supported. */
- public final boolean XR_FB_triangle_mesh;
- /** When true, {@link HTCFacialTracking} is supported. */
- public final boolean XR_HTC_facial_tracking;
- /** When true, {@link HTCFoveation} is supported. */
- public final boolean XR_HTC_foveation;
- /** When true, {@link HTCHandInteraction} is supported. */
- public final boolean XR_HTC_hand_interaction;
- /** When true, {@link HTCPassthrough} is supported. */
- public final boolean XR_HTC_passthrough;
- /** When true, {@link HTCViveCosmosControllerInteraction} is supported. */
- public final boolean XR_HTC_vive_cosmos_controller_interaction;
- /** When true, {@link HTCViveFocus3ControllerInteraction} is supported. */
- public final boolean XR_HTC_vive_focus3_controller_interaction;
- /** When true, {@link HTCViveWristTrackerInteraction} is supported. */
- public final boolean XR_HTC_vive_wrist_tracker_interaction;
- /** When true, {@link HTCXViveTrackerInteraction} is supported. */
- public final boolean XR_HTCX_vive_tracker_interaction;
- /** When true, {@link HUAWEIControllerInteraction} is supported. */
- public final boolean XR_HUAWEI_controller_interaction;
- /** When true, {@link KHRAndroidCreateInstance} is supported. */
- public final boolean XR_KHR_android_create_instance;
- /** When true, {@link KHRBindingModification} is supported. */
- public final boolean XR_KHR_binding_modification;
- /** When true, {@link KHRCompositionLayerColorScaleBias} is supported. */
- public final boolean XR_KHR_composition_layer_color_scale_bias;
- /** When true, {@link KHRCompositionLayerCube} is supported. */
- public final boolean XR_KHR_composition_layer_cube;
- /** When true, {@link KHRCompositionLayerCylinder} is supported. */
- public final boolean XR_KHR_composition_layer_cylinder;
- /** When true, {@link KHRCompositionLayerDepth} is supported. */
- public final boolean XR_KHR_composition_layer_depth;
- /** When true, {@link KHRCompositionLayerEquirect} is supported. */
- public final boolean XR_KHR_composition_layer_equirect;
- /** When true, {@link KHRCompositionLayerEquirect2} is supported. */
- public final boolean XR_KHR_composition_layer_equirect2;
- /** When true, {@link KHRConvertTimespecTime} is supported. */
- public final boolean XR_KHR_convert_timespec_time;
- /** When true, {@link KHRLoaderInit} is supported. */
- public final boolean XR_KHR_loader_init;
- /** When true, {@link KHRLoaderInitAndroid} is supported. */
- public final boolean XR_KHR_loader_init_android;
- /** When true, {@link KHROpenGLEnable} is supported. */
- public final boolean XR_KHR_opengl_enable;
- /** When true, {@link KHROpenGLESEnable} is supported. */
- public final boolean XR_KHR_opengl_es_enable;
- /** When true, {@link KHRSwapchainUsageInputAttachmentBit} is supported. */
- public final boolean XR_KHR_swapchain_usage_input_attachment_bit;
- /** When true, {@link KHRVisibilityMask} is supported. */
- public final boolean XR_KHR_visibility_mask;
- /** When true, {@link KHRVulkanEnable} is supported. */
- public final boolean XR_KHR_vulkan_enable;
- /** When true, {@link KHRVulkanEnable2} is supported. */
- public final boolean XR_KHR_vulkan_enable2;
- /** When true, {@link KHRVulkanSwapchainFormatList} is supported. */
- public final boolean XR_KHR_vulkan_swapchain_format_list;
- /** When true, {@link KHRWin32ConvertPerformanceCounterTime} is supported. */
- public final boolean XR_KHR_win32_convert_performance_counter_time;
- /** When true, {@link METAFoveationEyeTracked} is supported. */
- public final boolean XR_META_foveation_eye_tracked;
- /** When true, {@link METAHeadsetId} is supported. */
- public final boolean XR_META_headset_id;
- /** When true, {@link METALocalDimming} is supported. */
- public final boolean XR_META_local_dimming;
- /** When true, {@link METAPerformanceMetrics} is supported. */
- public final boolean XR_META_performance_metrics;
- /** When true, {@link METAVulkanSwapchainCreateInfo} is supported. */
- public final boolean XR_META_vulkan_swapchain_create_info;
- /** When true, {@link MLCompat} is supported. */
- public final boolean XR_ML_compat;
- /** When true, {@link MLFrameEndInfo} is supported. */
- public final boolean XR_ML_frame_end_info;
- /** When true, {@link MLGlobalDimmer} is supported. */
- public final boolean XR_ML_global_dimmer;
- /** When true, {@link MLMl2ControllerInteraction} is supported. */
- public final boolean XR_ML_ml2_controller_interaction;
- /** When true, {@link MNDHeadless} is supported. */
- public final boolean XR_MND_headless;
- /** When true, {@link MNDSwapchainUsageInputAttachmentBit} is supported. */
- public final boolean XR_MND_swapchain_usage_input_attachment_bit;
- /** When true, {@link MNDXEGLEnable} is supported. */
- public final boolean XR_MNDX_egl_enable;
- /** When true, {@link MNDXForceFeedbackCurl} is supported. */
- public final boolean XR_MNDX_force_feedback_curl;
- /** When true, {@link MSFTCompositionLayerReprojection} is supported. */
- public final boolean XR_MSFT_composition_layer_reprojection;
- /** When true, {@link MSFTControllerModel} is supported. */
- public final boolean XR_MSFT_controller_model;
- /** When true, {@link MSFTFirstPersonObserver} is supported. */
- public final boolean XR_MSFT_first_person_observer;
- /** When true, {@link MSFTHandInteraction} is supported. */
- public final boolean XR_MSFT_hand_interaction;
- /** When true, {@link MSFTHandTrackingMesh} is supported. */
- public final boolean XR_MSFT_hand_tracking_mesh;
- /** When true, {@link MSFTHolographicWindowAttachment} is supported. */
- public final boolean XR_MSFT_holographic_window_attachment;
- /** When true, {@link MSFTPerceptionAnchorInterop} is supported. */
- public final boolean XR_MSFT_perception_anchor_interop;
- /** When true, {@link MSFTSceneUnderstanding} is supported. */
- public final boolean XR_MSFT_scene_understanding;
- /** When true, {@link MSFTSceneUnderstandingSerialization} is supported. */
- public final boolean XR_MSFT_scene_understanding_serialization;
- /** When true, {@link MSFTSecondaryViewConfiguration} is supported. */
- public final boolean XR_MSFT_secondary_view_configuration;
- /** When true, {@link MSFTSpatialAnchor} is supported. */
- public final boolean XR_MSFT_spatial_anchor;
- /** When true, {@link MSFTSpatialAnchorPersistence} is supported. */
- public final boolean XR_MSFT_spatial_anchor_persistence;
- /** When true, {@link MSFTSpatialGraphBridge} is supported. */
- public final boolean XR_MSFT_spatial_graph_bridge;
- /** When true, {@link MSFTUnboundedReferenceSpace} is supported. */
- public final boolean XR_MSFT_unbounded_reference_space;
- /** When true, {@link OCULUSAudioDeviceGuid} is supported. */
- public final boolean XR_OCULUS_audio_device_guid;
- /** When true, {@link OCULUSExternalCamera} is supported. */
- public final boolean XR_OCULUS_external_camera;
- /** When true, {@link OPPOControllerInteraction} is supported. */
- public final boolean XR_OPPO_controller_interaction;
- /** When true, {@link QCOMTrackingOptimizationSettings} is supported. */
- public final boolean XR_QCOM_tracking_optimization_settings;
- /** When true, {@link ULTRALEAPHandTrackingForearm} is supported. */
- public final boolean XR_ULTRALEAP_hand_tracking_forearm;
- /** When true, {@link VALVEAnalogThreshold} is supported. */
- public final boolean XR_VALVE_analog_threshold;
- /** When true, {@link VARJOCompositionLayerDepthTest} is supported. */
- public final boolean XR_VARJO_composition_layer_depth_test;
- /** When true, {@link VARJOEnvironmentDepthEstimation} is supported. */
- public final boolean XR_VARJO_environment_depth_estimation;
- /** When true, {@link VARJOFoveatedRendering} is supported. */
- public final boolean XR_VARJO_foveated_rendering;
- /** When true, {@link VARJOMarkerTracking} is supported. */
- public final boolean XR_VARJO_marker_tracking;
- /** When true, {@link VARJOQuadViews} is supported. */
- public final boolean XR_VARJO_quad_views;
- /** When true, {@link VARJOViewOffset} is supported. */
- public final boolean XR_VARJO_view_offset;
+
+ /** When true, {@link XR10} is supported. */
+ public final boolean OpenXR10;
+ /** When true, {@link ALMALENCEDigitalLensControl} is supported. */
+ public final boolean XR_ALMALENCE_digital_lens_control;
+ /** When true, {@link BDControllerInteraction} is supported. */
+ public final boolean XR_BD_controller_interaction;
+ /** When true, {@link EPICViewConfigurationFov} is supported. */
+ public final boolean XR_EPIC_view_configuration_fov;
+ /** When true, {@link EXTActiveActionSetPriority} is supported. */
+ public final boolean XR_EXT_active_action_set_priority;
+ /** When true, {@link EXTConformanceAutomation} is supported. */
+ public final boolean XR_EXT_conformance_automation;
+ /** When true, {@link EXTDebugUtils} is supported. */
+ public final boolean XR_EXT_debug_utils;
+ /** When true, {@link EXTDpadBinding} is supported. */
+ public final boolean XR_EXT_dpad_binding;
+ /** When true, {@link EXTEyeGazeInteraction} is supported. */
+ public final boolean XR_EXT_eye_gaze_interaction;
+ /** When true, {@link EXTHandJointsMotionRange} is supported. */
+ public final boolean XR_EXT_hand_joints_motion_range;
+ /** When true, {@link EXTHandTracking} is supported. */
+ public final boolean XR_EXT_hand_tracking;
+ /** When true, {@link EXTHPMixedRealityController} is supported. */
+ public final boolean XR_EXT_hp_mixed_reality_controller;
+ /** When true, {@link EXTLocalFloor} is supported. */
+ public final boolean XR_EXT_local_floor;
+ /** When true, {@link EXTPalmPose} is supported. */
+ public final boolean XR_EXT_palm_pose;
+ /** When true, {@link EXTPerformanceSettings} is supported. */
+ public final boolean XR_EXT_performance_settings;
+ /** When true, {@link EXTSamsungOdysseyController} is supported. */
+ public final boolean XR_EXT_samsung_odyssey_controller;
+ /** When true, {@link EXTThermalQuery} is supported. */
+ public final boolean XR_EXT_thermal_query;
+ /** When true, {@link EXTUUIUD} is supported. */
+ public final boolean XR_EXT_uuid;
+ /** When true, {@link EXTViewConfigurationDepthRange} is supported. */
+ public final boolean XR_EXT_view_configuration_depth_range;
+ /** When true, {@link EXTWin32AppcontainerCompatible} is supported. */
+ public final boolean XR_EXT_win32_appcontainer_compatible;
+ /** When true, {@link EXTXOverlay} is supported. */
+ public final boolean XR_EXTX_overlay;
+ /** When true, {@link FBBodyTracking} is supported. */
+ public final boolean XR_FB_body_tracking;
+ /** When true, {@link FBColorSpace} is supported. */
+ public final boolean XR_FB_color_space;
+ /** When true, {@link FBCompositionLayerAlphaBlend} is supported. */
+ public final boolean XR_FB_composition_layer_alpha_blend;
+ /** When true, {@link FBCompositionLayerDepthTest} is supported. */
+ public final boolean XR_FB_composition_layer_depth_test;
+ /** When true, {@link FBCompositionLayerImageLayout} is supported. */
+ public final boolean XR_FB_composition_layer_image_layout;
+ /** When true, {@link FBCompositionLayerSecureContent} is supported. */
+ public final boolean XR_FB_composition_layer_secure_content;
+ /** When true, {@link FBCompositionLayerSettings} is supported. */
+ public final boolean XR_FB_composition_layer_settings;
+ /** When true, {@link FBDisplayRefreshRate} is supported. */
+ public final boolean XR_FB_display_refresh_rate;
+ /** When true, {@link FBEyeTrackingSocial} is supported. */
+ public final boolean XR_FB_eye_tracking_social;
+ /** When true, {@link FBFaceTracking} is supported. */
+ public final boolean XR_FB_face_tracking;
+ /** When true, {@link FBFoveation} is supported. */
+ public final boolean XR_FB_foveation;
+ /** When true, {@link FBFoveationConfiguration} is supported. */
+ public final boolean XR_FB_foveation_configuration;
+ /** When true, {@link FBFoveationVulkan} is supported. */
+ public final boolean XR_FB_foveation_vulkan;
+ /** When true, {@link FBHandTrackingAim} is supported. */
+ public final boolean XR_FB_hand_tracking_aim;
+ /** When true, {@link FBHandTrackingCapsules} is supported. */
+ public final boolean XR_FB_hand_tracking_capsules;
+ /** When true, {@link FBHandTrackingMesh} is supported. */
+ public final boolean XR_FB_hand_tracking_mesh;
+ /** When true, {@link FBHapticAmplitudeEnvelope} is supported. */
+ public final boolean XR_FB_haptic_amplitude_envelope;
+ /** When true, {@link FBHapticPcm} is supported. */
+ public final boolean XR_FB_haptic_pcm;
+ /** When true, {@link FBKeyboardTracking} is supported. */
+ public final boolean XR_FB_keyboard_tracking;
+ /** When true, {@link FBPassthrough} is supported. */
+ public final boolean XR_FB_passthrough;
+ /** When true, {@link FBPassthroughKeyboardHands} is supported. */
+ public final boolean XR_FB_passthrough_keyboard_hands;
+ /** When true, {@link FBRenderModel} is supported. */
+ public final boolean XR_FB_render_model;
+ /** When true, {@link FBScene} is supported. */
+ public final boolean XR_FB_scene;
+ /** When true, {@link FBSceneCapture} is supported. */
+ public final boolean XR_FB_scene_capture;
+ /** When true, {@link FBSpaceWarp} is supported. */
+ public final boolean XR_FB_space_warp;
+ /** When true, {@link FBSpatialEntity} is supported. */
+ public final boolean XR_FB_spatial_entity;
+ /** When true, {@link FBSpatialEntityContainer} is supported. */
+ public final boolean XR_FB_spatial_entity_container;
+ /** When true, {@link FBSpatialEntityQuery} is supported. */
+ public final boolean XR_FB_spatial_entity_query;
+ /** When true, {@link FBSpatialEntitySharing} is supported. */
+ public final boolean XR_FB_spatial_entity_sharing;
+ /** When true, {@link FBSpatialEntityStorage} is supported. */
+ public final boolean XR_FB_spatial_entity_storage;
+ /** When true, {@link FBSpatialEntityStorageBatch} is supported. */
+ public final boolean XR_FB_spatial_entity_storage_batch;
+ /** When true, {@link FBSpatialEntityUser} is supported. */
+ public final boolean XR_FB_spatial_entity_user;
+ /** When true, {@link FBSwapchainUpdateState} is supported. */
+ public final boolean XR_FB_swapchain_update_state;
+ /** When true, {@link FBSwapchainUpdateStateOpenGLES} is supported. */
+ public final boolean XR_FB_swapchain_update_state_opengl_es;
+ /** When true, {@link FBSwapchainUpdateStateVulkan} is supported. */
+ public final boolean XR_FB_swapchain_update_state_vulkan;
+ /** When true, {@link FBTouchControllerPro} is supported. */
+ public final boolean XR_FB_touch_controller_pro;
+ /** When true, {@link FBTouchControllerProximity} is supported. */
+ public final boolean XR_FB_touch_controller_proximity;
+ /** When true, {@link FBTriangleMesh} is supported. */
+ public final boolean XR_FB_triangle_mesh;
+ /** When true, {@link HTCFacialTracking} is supported. */
+ public final boolean XR_HTC_facial_tracking;
+ /** When true, {@link HTCFoveation} is supported. */
+ public final boolean XR_HTC_foveation;
+ /** When true, {@link HTCHandInteraction} is supported. */
+ public final boolean XR_HTC_hand_interaction;
+ /** When true, {@link HTCPassthrough} is supported. */
+ public final boolean XR_HTC_passthrough;
+ /** When true, {@link HTCViveCosmosControllerInteraction} is supported. */
+ public final boolean XR_HTC_vive_cosmos_controller_interaction;
+ /** When true, {@link HTCViveFocus3ControllerInteraction} is supported. */
+ public final boolean XR_HTC_vive_focus3_controller_interaction;
+ /** When true, {@link HTCViveWristTrackerInteraction} is supported. */
+ public final boolean XR_HTC_vive_wrist_tracker_interaction;
+ /** When true, {@link HTCXViveTrackerInteraction} is supported. */
+ public final boolean XR_HTCX_vive_tracker_interaction;
+ /** When true, {@link HUAWEIControllerInteraction} is supported. */
+ public final boolean XR_HUAWEI_controller_interaction;
+ /** When true, {@link KHRBindingModification} is supported. */
+ public final boolean XR_KHR_binding_modification;
+ /** When true, {@link KHRCompositionLayerColorScaleBias} is supported. */
+ public final boolean XR_KHR_composition_layer_color_scale_bias;
+ /** When true, {@link KHRCompositionLayerCube} is supported. */
+ public final boolean XR_KHR_composition_layer_cube;
+ /** When true, {@link KHRCompositionLayerCylinder} is supported. */
+ public final boolean XR_KHR_composition_layer_cylinder;
+ /** When true, {@link KHRCompositionLayerDepth} is supported. */
+ public final boolean XR_KHR_composition_layer_depth;
+ /** When true, {@link KHRCompositionLayerEquirect} is supported. */
+ public final boolean XR_KHR_composition_layer_equirect;
+ /** When true, {@link KHRCompositionLayerEquirect2} is supported. */
+ public final boolean XR_KHR_composition_layer_equirect2;
+ /** When true, {@link KHRConvertTimespecTime} is supported. */
+ public final boolean XR_KHR_convert_timespec_time;
+ /** When true, {@link KHRLoaderInit} is supported. */
+ public final boolean XR_KHR_loader_init;
+ /** When true, {@link KHROpenGLEnable} is supported. */
+ public final boolean XR_KHR_opengl_enable;
+ /** When true, {@link KHROpenGLESEnable} is supported. */
+ public final boolean XR_KHR_opengl_es_enable;
+ /** When true, {@link KHRSwapchainUsageInputAttachmentBit} is supported. */
+ public final boolean XR_KHR_swapchain_usage_input_attachment_bit;
+ /** When true, {@link KHRVisibilityMask} is supported. */
+ public final boolean XR_KHR_visibility_mask;
+ /** When true, {@link KHRVulkanEnable} is supported. */
+ public final boolean XR_KHR_vulkan_enable;
+ /** When true, {@link KHRVulkanEnable2} is supported. */
+ public final boolean XR_KHR_vulkan_enable2;
+ /** When true, {@link KHRVulkanSwapchainFormatList} is supported. */
+ public final boolean XR_KHR_vulkan_swapchain_format_list;
+ /** When true, {@link KHRWin32ConvertPerformanceCounterTime} is supported. */
+ public final boolean XR_KHR_win32_convert_performance_counter_time;
+ /** When true, {@link METAFoveationEyeTracked} is supported. */
+ public final boolean XR_META_foveation_eye_tracked;
+ /** When true, {@link METAHeadsetId} is supported. */
+ public final boolean XR_META_headset_id;
+ /** When true, {@link METALocalDimming} is supported. */
+ public final boolean XR_META_local_dimming;
+ /** When true, {@link METAPerformanceMetrics} is supported. */
+ public final boolean XR_META_performance_metrics;
+ /** When true, {@link METAVulkanSwapchainCreateInfo} is supported. */
+ public final boolean XR_META_vulkan_swapchain_create_info;
+ /** When true, {@link MLCompat} is supported. */
+ public final boolean XR_ML_compat;
+ /** When true, {@link MLFrameEndInfo} is supported. */
+ public final boolean XR_ML_frame_end_info;
+ /** When true, {@link MLGlobalDimmer} is supported. */
+ public final boolean XR_ML_global_dimmer;
+ /** When true, {@link MLMl2ControllerInteraction} is supported. */
+ public final boolean XR_ML_ml2_controller_interaction;
+ /** When true, {@link MNDHeadless} is supported. */
+ public final boolean XR_MND_headless;
+ /** When true, {@link MNDSwapchainUsageInputAttachmentBit} is supported. */
+ public final boolean XR_MND_swapchain_usage_input_attachment_bit;
+ /** When true, {@link MNDXEGLEnable} is supported. */
+ public final boolean XR_MNDX_egl_enable;
+ /** When true, {@link MNDXForceFeedbackCurl} is supported. */
+ public final boolean XR_MNDX_force_feedback_curl;
+ /** When true, {@link MSFTCompositionLayerReprojection} is supported. */
+ public final boolean XR_MSFT_composition_layer_reprojection;
+ /** When true, {@link MSFTControllerModel} is supported. */
+ public final boolean XR_MSFT_controller_model;
+ /** When true, {@link MSFTFirstPersonObserver} is supported. */
+ public final boolean XR_MSFT_first_person_observer;
+ /** When true, {@link MSFTHandInteraction} is supported. */
+ public final boolean XR_MSFT_hand_interaction;
+ /** When true, {@link MSFTHandTrackingMesh} is supported. */
+ public final boolean XR_MSFT_hand_tracking_mesh;
+ /** When true, {@link MSFTHolographicWindowAttachment} is supported. */
+ public final boolean XR_MSFT_holographic_window_attachment;
+ /** When true, {@link MSFTPerceptionAnchorInterop} is supported. */
+ public final boolean XR_MSFT_perception_anchor_interop;
+ /** When true, {@link MSFTSceneUnderstanding} is supported. */
+ public final boolean XR_MSFT_scene_understanding;
+ /** When true, {@link MSFTSceneUnderstandingSerialization} is supported. */
+ public final boolean XR_MSFT_scene_understanding_serialization;
+ /** When true, {@link MSFTSecondaryViewConfiguration} is supported. */
+ public final boolean XR_MSFT_secondary_view_configuration;
+ /** When true, {@link MSFTSpatialAnchor} is supported. */
+ public final boolean XR_MSFT_spatial_anchor;
+ /** When true, {@link MSFTSpatialAnchorPersistence} is supported. */
+ public final boolean XR_MSFT_spatial_anchor_persistence;
+ /** When true, {@link MSFTSpatialGraphBridge} is supported. */
+ public final boolean XR_MSFT_spatial_graph_bridge;
+ /** When true, {@link MSFTUnboundedReferenceSpace} is supported. */
+ public final boolean XR_MSFT_unbounded_reference_space;
+ /** When true, {@link OCULUSAudioDeviceGuid} is supported. */
+ public final boolean XR_OCULUS_audio_device_guid;
+ /** When true, {@link OCULUSExternalCamera} is supported. */
+ public final boolean XR_OCULUS_external_camera;
+ /** When true, {@link QCOMTrackingOptimizationSettings} is supported. */
+ public final boolean XR_QCOM_tracking_optimization_settings;
+ /** When true, {@link ULTRALEAPHandTrackingForearm} is supported. */
+ public final boolean XR_ULTRALEAP_hand_tracking_forearm;
+ /** When true, {@link VALVEAnalogThreshold} is supported. */
+ public final boolean XR_VALVE_analog_threshold;
+ /** When true, {@link VARJOCompositionLayerDepthTest} is supported. */
+ public final boolean XR_VARJO_composition_layer_depth_test;
+ /** When true, {@link VARJOEnvironmentDepthEstimation} is supported. */
+ public final boolean XR_VARJO_environment_depth_estimation;
+ /** When true, {@link VARJOFoveatedRendering} is supported. */
+ public final boolean XR_VARJO_foveated_rendering;
+ /** When true, {@link VARJOMarkerTracking} is supported. */
+ public final boolean XR_VARJO_marker_tracking;
+ /** When true, {@link VARJOQuadViews} is supported. */
+ public final boolean XR_VARJO_quad_views;
+ /** When true, {@link VARJOViewOffset} is supported. */
+ public final boolean XR_VARJO_view_offset;
XRCapabilities(FunctionProvider provider, long apiVersion, Set ext) {
this.apiVersion = apiVersion;
@@ -680,10 +670,8 @@ public class XRCapabilities {
XR_EXT_debug_utils = check_EXT_debug_utils(provider, caps, ext);
XR_EXT_dpad_binding = ext.contains("XR_EXT_dpad_binding");
XR_EXT_eye_gaze_interaction = ext.contains("XR_EXT_eye_gaze_interaction");
- XR_EXT_hand_interaction = ext.contains("XR_EXT_hand_interaction");
XR_EXT_hand_joints_motion_range = ext.contains("XR_EXT_hand_joints_motion_range");
XR_EXT_hand_tracking = check_EXT_hand_tracking(provider, caps, ext);
- XR_EXT_hand_tracking_data_source = ext.contains("XR_EXT_hand_tracking_data_source");
XR_EXT_hp_mixed_reality_controller = ext.contains("XR_EXT_hp_mixed_reality_controller");
XR_EXT_local_floor = ext.contains("XR_EXT_local_floor");
XR_EXT_palm_pose = ext.contains("XR_EXT_palm_pose");
@@ -741,7 +729,6 @@ public class XRCapabilities {
XR_HTC_vive_wrist_tracker_interaction = ext.contains("XR_HTC_vive_wrist_tracker_interaction");
XR_HTCX_vive_tracker_interaction = check_HTCX_vive_tracker_interaction(provider, caps, ext);
XR_HUAWEI_controller_interaction = ext.contains("XR_HUAWEI_controller_interaction");
- XR_KHR_android_create_instance = ext.contains("XR_KHR_android_create_instance");
XR_KHR_binding_modification = ext.contains("XR_KHR_binding_modification");
XR_KHR_composition_layer_color_scale_bias = ext.contains("XR_KHR_composition_layer_color_scale_bias");
XR_KHR_composition_layer_cube = ext.contains("XR_KHR_composition_layer_cube");
@@ -751,7 +738,6 @@ public class XRCapabilities {
XR_KHR_composition_layer_equirect2 = ext.contains("XR_KHR_composition_layer_equirect2");
XR_KHR_convert_timespec_time = check_KHR_convert_timespec_time(provider, caps, ext);
XR_KHR_loader_init = ext.contains("XR_KHR_loader_init");
- XR_KHR_loader_init_android = ext.contains("XR_KHR_loader_init_android");
XR_KHR_opengl_enable = check_KHR_opengl_enable(provider, caps, ext);
XR_KHR_opengl_es_enable = check_KHR_opengl_es_enable(provider, caps, ext);
XR_KHR_swapchain_usage_input_attachment_bit = ext.contains("XR_KHR_swapchain_usage_input_attachment_bit");
@@ -789,7 +775,6 @@ public class XRCapabilities {
XR_MSFT_unbounded_reference_space = ext.contains("XR_MSFT_unbounded_reference_space");
XR_OCULUS_audio_device_guid = check_OCULUS_audio_device_guid(provider, caps, ext);
XR_OCULUS_external_camera = check_OCULUS_external_camera(provider, caps, ext);
- XR_OPPO_controller_interaction = ext.contains("XR_OPPO_controller_interaction");
XR_QCOM_tracking_optimization_settings = check_QCOM_tracking_optimization_settings(provider, caps, ext);
XR_ULTRALEAP_hand_tracking_forearm = ext.contains("XR_ULTRALEAP_hand_tracking_forearm");
XR_VALVE_analog_threshold = ext.contains("XR_VALVE_analog_threshold");
@@ -798,7 +783,7 @@ public class XRCapabilities {
XR_VARJO_foveated_rendering = ext.contains("XR_VARJO_foveated_rendering");
XR_VARJO_marker_tracking = check_VARJO_marker_tracking(provider, caps, ext);
XR_VARJO_quad_views = ext.contains("XR_VARJO_quad_views");
- XR_VARJO_view_offset = check_VARJO_view_offset(provider, caps, ext);
+ XR_VARJO_view_offset = check_VARJO_view_offset(provider, caps, ext);
xrDestroyInstance = caps[0];
xrGetInstanceProperties = caps[1];
@@ -1033,8 +1018,8 @@ private static boolean check_XR10(FunctionProvider provider, long[] caps, java.u
"xrSuggestInteractionProfileBindings", "xrAttachSessionActionSets", "xrGetCurrentInteractionProfile", "xrGetActionStateBoolean",
"xrGetActionStateFloat", "xrGetActionStateVector2f", "xrGetActionStatePose", "xrSyncActions", "xrEnumerateBoundSourcesForAction",
"xrGetInputSourceLocalizedName", "xrApplyHapticFeedback", "xrStopHapticFeedback"
- ) || reportMissing("XR", "OpenXR10");
- }
+ ) || reportMissing("XR", "OpenXR10");
+ }
private static boolean check_ALMALENCE_digital_lens_control(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_ALMALENCE_digital_lens_control")) {
@@ -1045,8 +1030,8 @@ private static boolean check_ALMALENCE_digital_lens_control(FunctionProvider pro
51
},
"xrSetDigitalLensControlALMALENCE"
- ) || reportMissing("XR", "XR_ALMALENCE_digital_lens_control");
- }
+ ) || reportMissing("XR", "XR_ALMALENCE_digital_lens_control");
+ }
private static boolean check_EXT_conformance_automation(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_EXT_conformance_automation")) {
@@ -1058,8 +1043,8 @@ private static boolean check_EXT_conformance_automation(FunctionProvider provide
},
"xrSetInputDeviceActiveEXT", "xrSetInputDeviceStateBoolEXT", "xrSetInputDeviceStateFloatEXT", "xrSetInputDeviceStateVector2fEXT",
"xrSetInputDeviceLocationEXT"
- ) || reportMissing("XR", "XR_EXT_conformance_automation");
- }
+ ) || reportMissing("XR", "XR_EXT_conformance_automation");
+ }
private static boolean check_EXT_debug_utils(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_EXT_debug_utils")) {
@@ -1071,8 +1056,8 @@ private static boolean check_EXT_debug_utils(FunctionProvider provider, long[] c
},
"xrSetDebugUtilsObjectNameEXT", "xrCreateDebugUtilsMessengerEXT", "xrDestroyDebugUtilsMessengerEXT", "xrSubmitDebugUtilsMessageEXT",
"xrSessionBeginDebugUtilsLabelRegionEXT", "xrSessionEndDebugUtilsLabelRegionEXT", "xrSessionInsertDebugUtilsLabelEXT"
- ) || reportMissing("XR", "XR_EXT_debug_utils");
- }
+ ) || reportMissing("XR", "XR_EXT_debug_utils");
+ }
private static boolean check_EXT_hand_tracking(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_EXT_hand_tracking")) {
@@ -1083,8 +1068,8 @@ private static boolean check_EXT_hand_tracking(FunctionProvider provider, long[]
64, 65, 66
},
"xrCreateHandTrackerEXT", "xrDestroyHandTrackerEXT", "xrLocateHandJointsEXT"
- ) || reportMissing("XR", "XR_EXT_hand_tracking");
- }
+ ) || reportMissing("XR", "XR_EXT_hand_tracking");
+ }
private static boolean check_EXT_performance_settings(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_EXT_performance_settings")) {
@@ -1095,8 +1080,8 @@ private static boolean check_EXT_performance_settings(FunctionProvider provider,
67
},
"xrPerfSettingsSetPerformanceLevelEXT"
- ) || reportMissing("XR", "XR_EXT_performance_settings");
- }
+ ) || reportMissing("XR", "XR_EXT_performance_settings");
+ }
private static boolean check_EXT_thermal_query(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_EXT_thermal_query")) {
@@ -1107,8 +1092,8 @@ private static boolean check_EXT_thermal_query(FunctionProvider provider, long[]
68
},
"xrThermalGetTemperatureTrendEXT"
- ) || reportMissing("XR", "XR_EXT_thermal_query");
- }
+ ) || reportMissing("XR", "XR_EXT_thermal_query");
+ }
private static boolean check_FB_body_tracking(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_body_tracking")) {
@@ -1119,8 +1104,8 @@ private static boolean check_FB_body_tracking(FunctionProvider provider, long[]
69, 70, 71, 72
},
"xrCreateBodyTrackerFB", "xrDestroyBodyTrackerFB", "xrLocateBodyJointsFB", "xrGetBodySkeletonFB"
- ) || reportMissing("XR", "XR_FB_body_tracking");
- }
+ ) || reportMissing("XR", "XR_FB_body_tracking");
+ }
private static boolean check_FB_color_space(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_color_space")) {
@@ -1131,8 +1116,8 @@ private static boolean check_FB_color_space(FunctionProvider provider, long[] ca
73, 74
},
"xrEnumerateColorSpacesFB", "xrSetColorSpaceFB"
- ) || reportMissing("XR", "XR_FB_color_space");
- }
+ ) || reportMissing("XR", "XR_FB_color_space");
+ }
private static boolean check_FB_display_refresh_rate(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_display_refresh_rate")) {
@@ -1143,8 +1128,8 @@ private static boolean check_FB_display_refresh_rate(FunctionProvider provider,
75, 76, 77
},
"xrEnumerateDisplayRefreshRatesFB", "xrGetDisplayRefreshRateFB", "xrRequestDisplayRefreshRateFB"
- ) || reportMissing("XR", "XR_FB_display_refresh_rate");
- }
+ ) || reportMissing("XR", "XR_FB_display_refresh_rate");
+ }
private static boolean check_FB_eye_tracking_social(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_eye_tracking_social")) {
@@ -1155,8 +1140,8 @@ private static boolean check_FB_eye_tracking_social(FunctionProvider provider, l
78, 79, 80
},
"xrCreateEyeTrackerFB", "xrDestroyEyeTrackerFB", "xrGetEyeGazesFB"
- ) || reportMissing("XR", "XR_FB_eye_tracking_social");
- }
+ ) || reportMissing("XR", "XR_FB_eye_tracking_social");
+ }
private static boolean check_FB_face_tracking(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_face_tracking")) {
@@ -1167,8 +1152,8 @@ private static boolean check_FB_face_tracking(FunctionProvider provider, long[]
81, 82, 83
},
"xrCreateFaceTrackerFB", "xrDestroyFaceTrackerFB", "xrGetFaceExpressionWeightsFB"
- ) || reportMissing("XR", "XR_FB_face_tracking");
- }
+ ) || reportMissing("XR", "XR_FB_face_tracking");
+ }
private static boolean check_FB_foveation(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_foveation")) {
@@ -1179,8 +1164,8 @@ private static boolean check_FB_foveation(FunctionProvider provider, long[] caps
84, 85
},
"xrCreateFoveationProfileFB", "xrDestroyFoveationProfileFB"
- ) || reportMissing("XR", "XR_FB_foveation");
- }
+ ) || reportMissing("XR", "XR_FB_foveation");
+ }
private static boolean check_FB_hand_tracking_mesh(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_hand_tracking_mesh")) {
@@ -1191,8 +1176,8 @@ private static boolean check_FB_hand_tracking_mesh(FunctionProvider provider, lo
86
},
"xrGetHandMeshFB"
- ) || reportMissing("XR", "XR_FB_hand_tracking_mesh");
- }
+ ) || reportMissing("XR", "XR_FB_hand_tracking_mesh");
+ }
private static boolean check_FB_haptic_pcm(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_haptic_pcm")) {
@@ -1203,8 +1188,8 @@ private static boolean check_FB_haptic_pcm(FunctionProvider provider, long[] cap
87
},
"xrGetDeviceSampleRateFB"
- ) || reportMissing("XR", "XR_FB_haptic_pcm");
- }
+ ) || reportMissing("XR", "XR_FB_haptic_pcm");
+ }
private static boolean check_FB_keyboard_tracking(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_keyboard_tracking")) {
@@ -1215,8 +1200,8 @@ private static boolean check_FB_keyboard_tracking(FunctionProvider provider, lon
88, 89
},
"xrQuerySystemTrackedKeyboardFB", "xrCreateKeyboardSpaceFB"
- ) || reportMissing("XR", "XR_FB_keyboard_tracking");
- }
+ ) || reportMissing("XR", "XR_FB_keyboard_tracking");
+ }
private static boolean check_FB_passthrough(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_passthrough")) {
@@ -1229,8 +1214,8 @@ private static boolean check_FB_passthrough(FunctionProvider provider, long[] ca
"xrCreatePassthroughFB", "xrDestroyPassthroughFB", "xrPassthroughStartFB", "xrPassthroughPauseFB", "xrCreatePassthroughLayerFB",
"xrDestroyPassthroughLayerFB", "xrPassthroughLayerPauseFB", "xrPassthroughLayerResumeFB", "xrPassthroughLayerSetStyleFB",
"xrCreateGeometryInstanceFB", "xrDestroyGeometryInstanceFB", "xrGeometryInstanceSetTransformFB"
- ) || reportMissing("XR", "XR_FB_passthrough");
- }
+ ) || reportMissing("XR", "XR_FB_passthrough");
+ }
private static boolean check_FB_passthrough_keyboard_hands(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_passthrough_keyboard_hands")) {
@@ -1241,8 +1226,8 @@ private static boolean check_FB_passthrough_keyboard_hands(FunctionProvider prov
102
},
"xrPassthroughLayerSetKeyboardHandsIntensityFB"
- ) || reportMissing("XR", "XR_FB_passthrough_keyboard_hands");
- }
+ ) || reportMissing("XR", "XR_FB_passthrough_keyboard_hands");
+ }
private static boolean check_FB_render_model(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_render_model")) {
@@ -1253,8 +1238,8 @@ private static boolean check_FB_render_model(FunctionProvider provider, long[] c
103, 104, 105
},
"xrEnumerateRenderModelPathsFB", "xrGetRenderModelPropertiesFB", "xrLoadRenderModelFB"
- ) || reportMissing("XR", "XR_FB_render_model");
- }
+ ) || reportMissing("XR", "XR_FB_render_model");
+ }
private static boolean check_FB_scene(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_scene")) {
@@ -1265,8 +1250,8 @@ private static boolean check_FB_scene(FunctionProvider provider, long[] caps, ja
106, 107, 108, 109, 110
},
"xrGetSpaceBoundingBox2DFB", "xrGetSpaceBoundingBox3DFB", "xrGetSpaceSemanticLabelsFB", "xrGetSpaceBoundary2DFB", "xrGetSpaceRoomLayoutFB"
- ) || reportMissing("XR", "XR_FB_scene");
- }
+ ) || reportMissing("XR", "XR_FB_scene");
+ }
private static boolean check_FB_scene_capture(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_scene_capture")) {
@@ -1277,8 +1262,8 @@ private static boolean check_FB_scene_capture(FunctionProvider provider, long[]
111
},
"xrRequestSceneCaptureFB"
- ) || reportMissing("XR", "XR_FB_scene_capture");
- }
+ ) || reportMissing("XR", "XR_FB_scene_capture");
+ }
private static boolean check_FB_spatial_entity(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_spatial_entity")) {
@@ -1290,8 +1275,8 @@ private static boolean check_FB_spatial_entity(FunctionProvider provider, long[]
},
"xrCreateSpatialAnchorFB", "xrGetSpaceUuidFB", "xrEnumerateSpaceSupportedComponentsFB", "xrSetSpaceComponentStatusFB",
"xrGetSpaceComponentStatusFB"
- ) || reportMissing("XR", "XR_FB_spatial_entity");
- }
+ ) || reportMissing("XR", "XR_FB_spatial_entity");
+ }
private static boolean check_FB_spatial_entity_container(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_spatial_entity_container")) {
@@ -1302,8 +1287,8 @@ private static boolean check_FB_spatial_entity_container(FunctionProvider provid
117
},
"xrGetSpaceContainerFB"
- ) || reportMissing("XR", "XR_FB_spatial_entity_container");
- }
+ ) || reportMissing("XR", "XR_FB_spatial_entity_container");
+ }
private static boolean check_FB_spatial_entity_query(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_spatial_entity_query")) {
@@ -1314,8 +1299,8 @@ private static boolean check_FB_spatial_entity_query(FunctionProvider provider,
118, 119
},
"xrQuerySpacesFB", "xrRetrieveSpaceQueryResultsFB"
- ) || reportMissing("XR", "XR_FB_spatial_entity_query");
- }
+ ) || reportMissing("XR", "XR_FB_spatial_entity_query");
+ }
private static boolean check_FB_spatial_entity_sharing(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_spatial_entity_sharing")) {
@@ -1326,8 +1311,8 @@ private static boolean check_FB_spatial_entity_sharing(FunctionProvider provider
120
},
"xrShareSpacesFB"
- ) || reportMissing("XR", "XR_FB_spatial_entity_sharing");
- }
+ ) || reportMissing("XR", "XR_FB_spatial_entity_sharing");
+ }
private static boolean check_FB_spatial_entity_storage(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_spatial_entity_storage")) {
@@ -1338,8 +1323,8 @@ private static boolean check_FB_spatial_entity_storage(FunctionProvider provider
121, 122
},
"xrSaveSpaceFB", "xrEraseSpaceFB"
- ) || reportMissing("XR", "XR_FB_spatial_entity_storage");
- }
+ ) || reportMissing("XR", "XR_FB_spatial_entity_storage");
+ }
private static boolean check_FB_spatial_entity_storage_batch(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_spatial_entity_storage_batch")) {
@@ -1350,8 +1335,8 @@ private static boolean check_FB_spatial_entity_storage_batch(FunctionProvider pr
123
},
"xrSaveSpaceListFB"
- ) || reportMissing("XR", "XR_FB_spatial_entity_storage_batch");
- }
+ ) || reportMissing("XR", "XR_FB_spatial_entity_storage_batch");
+ }
private static boolean check_FB_spatial_entity_user(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_spatial_entity_user")) {
@@ -1362,8 +1347,8 @@ private static boolean check_FB_spatial_entity_user(FunctionProvider provider, l
124, 125, 126
},
"xrCreateSpaceUserFB", "xrGetSpaceUserIdFB", "xrDestroySpaceUserFB"
- ) || reportMissing("XR", "XR_FB_spatial_entity_user");
- }
+ ) || reportMissing("XR", "XR_FB_spatial_entity_user");
+ }
private static boolean check_FB_swapchain_update_state(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_swapchain_update_state")) {
@@ -1374,8 +1359,8 @@ private static boolean check_FB_swapchain_update_state(FunctionProvider provider
127, 128
},
"xrUpdateSwapchainFB", "xrGetSwapchainStateFB"
- ) || reportMissing("XR", "XR_FB_swapchain_update_state");
- }
+ ) || reportMissing("XR", "XR_FB_swapchain_update_state");
+ }
private static boolean check_FB_triangle_mesh(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_FB_triangle_mesh")) {
@@ -1387,8 +1372,8 @@ private static boolean check_FB_triangle_mesh(FunctionProvider provider, long[]
},
"xrCreateTriangleMeshFB", "xrDestroyTriangleMeshFB", "xrTriangleMeshGetVertexBufferFB", "xrTriangleMeshGetIndexBufferFB",
"xrTriangleMeshBeginUpdateFB", "xrTriangleMeshEndUpdateFB", "xrTriangleMeshBeginVertexBufferUpdateFB", "xrTriangleMeshEndVertexBufferUpdateFB"
- ) || reportMissing("XR", "XR_FB_triangle_mesh");
- }
+ ) || reportMissing("XR", "XR_FB_triangle_mesh");
+ }
private static boolean check_HTC_facial_tracking(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_HTC_facial_tracking")) {
@@ -1399,8 +1384,8 @@ private static boolean check_HTC_facial_tracking(FunctionProvider provider, long
137, 138, 139
},
"xrCreateFacialTrackerHTC", "xrDestroyFacialTrackerHTC", "xrGetFacialExpressionsHTC"
- ) || reportMissing("XR", "XR_HTC_facial_tracking");
- }
+ ) || reportMissing("XR", "XR_HTC_facial_tracking");
+ }
private static boolean check_HTC_foveation(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_HTC_foveation")) {
@@ -1411,8 +1396,8 @@ private static boolean check_HTC_foveation(FunctionProvider provider, long[] cap
140
},
"xrApplyFoveationHTC"
- ) || reportMissing("XR", "XR_HTC_foveation");
- }
+ ) || reportMissing("XR", "XR_HTC_foveation");
+ }
private static boolean check_HTC_passthrough(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_HTC_passthrough")) {
@@ -1423,8 +1408,8 @@ private static boolean check_HTC_passthrough(FunctionProvider provider, long[] c
141, 142
},
"xrCreatePassthroughHTC", "xrDestroyPassthroughHTC"
- ) || reportMissing("XR", "XR_HTC_passthrough");
- }
+ ) || reportMissing("XR", "XR_HTC_passthrough");
+ }
private static boolean check_HTCX_vive_tracker_interaction(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_HTCX_vive_tracker_interaction")) {
@@ -1435,8 +1420,8 @@ private static boolean check_HTCX_vive_tracker_interaction(FunctionProvider prov
143
},
"xrEnumerateViveTrackerPathsHTCX"
- ) || reportMissing("XR", "XR_HTCX_vive_tracker_interaction");
- }
+ ) || reportMissing("XR", "XR_HTCX_vive_tracker_interaction");
+ }
private static boolean check_KHR_convert_timespec_time(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_KHR_convert_timespec_time")) {
@@ -1447,8 +1432,8 @@ private static boolean check_KHR_convert_timespec_time(FunctionProvider provider
144, 145
},
"xrConvertTimespecTimeToTimeKHR", "xrConvertTimeToTimespecTimeKHR"
- ) || reportMissing("XR", "XR_KHR_convert_timespec_time");
- }
+ ) || reportMissing("XR", "XR_KHR_convert_timespec_time");
+ }
private static boolean check_KHR_opengl_enable(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_KHR_opengl_enable")) {
@@ -1459,8 +1444,8 @@ private static boolean check_KHR_opengl_enable(FunctionProvider provider, long[]
146
},
"xrGetOpenGLGraphicsRequirementsKHR"
- ) || reportMissing("XR", "XR_KHR_opengl_enable");
- }
+ ) || reportMissing("XR", "XR_KHR_opengl_enable");
+ }
private static boolean check_KHR_opengl_es_enable(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_KHR_opengl_es_enable")) {
@@ -1471,8 +1456,8 @@ private static boolean check_KHR_opengl_es_enable(FunctionProvider provider, lon
147
},
"xrGetOpenGLESGraphicsRequirementsKHR"
- ) || reportMissing("XR", "XR_KHR_opengl_es_enable");
- }
+ ) || reportMissing("XR", "XR_KHR_opengl_es_enable");
+ }
private static boolean check_KHR_visibility_mask(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_KHR_visibility_mask")) {
@@ -1483,8 +1468,8 @@ private static boolean check_KHR_visibility_mask(FunctionProvider provider, long
148
},
"xrGetVisibilityMaskKHR"
- ) || reportMissing("XR", "XR_KHR_visibility_mask");
- }
+ ) || reportMissing("XR", "XR_KHR_visibility_mask");
+ }
private static boolean check_KHR_vulkan_enable(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_KHR_vulkan_enable")) {
@@ -1495,8 +1480,8 @@ private static boolean check_KHR_vulkan_enable(FunctionProvider provider, long[]
149, 150, 151, 152
},
"xrGetVulkanInstanceExtensionsKHR", "xrGetVulkanDeviceExtensionsKHR", "xrGetVulkanGraphicsDeviceKHR", "xrGetVulkanGraphicsRequirementsKHR"
- ) || reportMissing("XR", "XR_KHR_vulkan_enable");
- }
+ ) || reportMissing("XR", "XR_KHR_vulkan_enable");
+ }
private static boolean check_KHR_vulkan_enable2(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_KHR_vulkan_enable2")) {
@@ -1507,8 +1492,8 @@ private static boolean check_KHR_vulkan_enable2(FunctionProvider provider, long[
153, 154, 155, 156
},
"xrCreateVulkanInstanceKHR", "xrCreateVulkanDeviceKHR", "xrGetVulkanGraphicsDevice2KHR", "xrGetVulkanGraphicsRequirements2KHR"
- ) || reportMissing("XR", "XR_KHR_vulkan_enable2");
- }
+ ) || reportMissing("XR", "XR_KHR_vulkan_enable2");
+ }
private static boolean check_KHR_win32_convert_performance_counter_time(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_KHR_win32_convert_performance_counter_time")) {
@@ -1519,8 +1504,8 @@ private static boolean check_KHR_win32_convert_performance_counter_time(Function
157, 158
},
"xrConvertWin32PerformanceCounterToTimeKHR", "xrConvertTimeToWin32PerformanceCounterKHR"
- ) || reportMissing("XR", "XR_KHR_win32_convert_performance_counter_time");
- }
+ ) || reportMissing("XR", "XR_KHR_win32_convert_performance_counter_time");
+ }
private static boolean check_META_foveation_eye_tracked(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_META_foveation_eye_tracked")) {
@@ -1531,8 +1516,8 @@ private static boolean check_META_foveation_eye_tracked(FunctionProvider provide
159
},
"xrGetFoveationEyeTrackedStateMETA"
- ) || reportMissing("XR", "XR_META_foveation_eye_tracked");
- }
+ ) || reportMissing("XR", "XR_META_foveation_eye_tracked");
+ }
private static boolean check_META_performance_metrics(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_META_performance_metrics")) {
@@ -1544,8 +1529,8 @@ private static boolean check_META_performance_metrics(FunctionProvider provider,
},
"xrEnumeratePerformanceMetricsCounterPathsMETA", "xrSetPerformanceMetricsStateMETA", "xrGetPerformanceMetricsStateMETA",
"xrQueryPerformanceMetricsCounterMETA"
- ) || reportMissing("XR", "XR_META_performance_metrics");
- }
+ ) || reportMissing("XR", "XR_META_performance_metrics");
+ }
private static boolean check_ML_compat(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_ML_compat")) {
@@ -1556,8 +1541,8 @@ private static boolean check_ML_compat(FunctionProvider provider, long[] caps, j
164
},
"xrCreateSpaceFromCoordinateFrameUIDML"
- ) || reportMissing("XR", "XR_ML_compat");
- }
+ ) || reportMissing("XR", "XR_ML_compat");
+ }
private static boolean check_MNDX_force_feedback_curl(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_MNDX_force_feedback_curl")) {
@@ -1568,8 +1553,8 @@ private static boolean check_MNDX_force_feedback_curl(FunctionProvider provider,
165
},
"xrApplyForceFeedbackCurlMNDX"
- ) || reportMissing("XR", "XR_MNDX_force_feedback_curl");
- }
+ ) || reportMissing("XR", "XR_MNDX_force_feedback_curl");
+ }
private static boolean check_MSFT_composition_layer_reprojection(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_MSFT_composition_layer_reprojection")) {
@@ -1580,8 +1565,8 @@ private static boolean check_MSFT_composition_layer_reprojection(FunctionProvide
166
},
"xrEnumerateReprojectionModesMSFT"
- ) || reportMissing("XR", "XR_MSFT_composition_layer_reprojection");
- }
+ ) || reportMissing("XR", "XR_MSFT_composition_layer_reprojection");
+ }
private static boolean check_MSFT_controller_model(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_MSFT_controller_model")) {
@@ -1592,8 +1577,8 @@ private static boolean check_MSFT_controller_model(FunctionProvider provider, lo
167, 168, 169, 170
},
"xrGetControllerModelKeyMSFT", "xrLoadControllerModelMSFT", "xrGetControllerModelPropertiesMSFT", "xrGetControllerModelStateMSFT"
- ) || reportMissing("XR", "XR_MSFT_controller_model");
- }
+ ) || reportMissing("XR", "XR_MSFT_controller_model");
+ }
private static boolean check_MSFT_hand_tracking_mesh(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_MSFT_hand_tracking_mesh")) {
@@ -1604,8 +1589,8 @@ private static boolean check_MSFT_hand_tracking_mesh(FunctionProvider provider,
171, 172
},
"xrCreateHandMeshSpaceMSFT", "xrUpdateHandMeshMSFT"
- ) || reportMissing("XR", "XR_MSFT_hand_tracking_mesh");
- }
+ ) || reportMissing("XR", "XR_MSFT_hand_tracking_mesh");
+ }
private static boolean check_MSFT_perception_anchor_interop(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_MSFT_perception_anchor_interop")) {
@@ -1616,8 +1601,8 @@ private static boolean check_MSFT_perception_anchor_interop(FunctionProvider pro
173, 174
},
"xrCreateSpatialAnchorFromPerceptionAnchorMSFT", "xrTryGetPerceptionAnchorFromSpatialAnchorMSFT"
- ) || reportMissing("XR", "XR_MSFT_perception_anchor_interop");
- }
+ ) || reportMissing("XR", "XR_MSFT_perception_anchor_interop");
+ }
private static boolean check_MSFT_scene_understanding(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_MSFT_scene_understanding")) {
@@ -1629,8 +1614,8 @@ private static boolean check_MSFT_scene_understanding(FunctionProvider provider,
},
"xrEnumerateSceneComputeFeaturesMSFT", "xrCreateSceneObserverMSFT", "xrDestroySceneObserverMSFT", "xrCreateSceneMSFT", "xrDestroySceneMSFT",
"xrComputeNewSceneMSFT", "xrGetSceneComputeStateMSFT", "xrGetSceneComponentsMSFT", "xrLocateSceneComponentsMSFT", "xrGetSceneMeshBuffersMSFT"
- ) || reportMissing("XR", "XR_MSFT_scene_understanding");
- }
+ ) || reportMissing("XR", "XR_MSFT_scene_understanding");
+ }
private static boolean check_MSFT_scene_understanding_serialization(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_MSFT_scene_understanding_serialization")) {
@@ -1641,8 +1626,8 @@ private static boolean check_MSFT_scene_understanding_serialization(FunctionProv
185, 186
},
"xrDeserializeSceneMSFT", "xrGetSerializedSceneFragmentDataMSFT"
- ) || reportMissing("XR", "XR_MSFT_scene_understanding_serialization");
- }
+ ) || reportMissing("XR", "XR_MSFT_scene_understanding_serialization");
+ }
private static boolean check_MSFT_spatial_anchor(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_MSFT_spatial_anchor")) {
@@ -1653,8 +1638,8 @@ private static boolean check_MSFT_spatial_anchor(FunctionProvider provider, long
187, 188, 189
},
"xrCreateSpatialAnchorMSFT", "xrCreateSpatialAnchorSpaceMSFT", "xrDestroySpatialAnchorMSFT"
- ) || reportMissing("XR", "XR_MSFT_spatial_anchor");
- }
+ ) || reportMissing("XR", "XR_MSFT_spatial_anchor");
+ }
private static boolean check_MSFT_spatial_anchor_persistence(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_MSFT_spatial_anchor_persistence")) {
@@ -1667,8 +1652,8 @@ private static boolean check_MSFT_spatial_anchor_persistence(FunctionProvider pr
"xrCreateSpatialAnchorStoreConnectionMSFT", "xrDestroySpatialAnchorStoreConnectionMSFT", "xrPersistSpatialAnchorMSFT",
"xrEnumeratePersistedSpatialAnchorNamesMSFT", "xrCreateSpatialAnchorFromPersistedNameMSFT", "xrUnpersistSpatialAnchorMSFT",
"xrClearSpatialAnchorStoreMSFT"
- ) || reportMissing("XR", "XR_MSFT_spatial_anchor_persistence");
- }
+ ) || reportMissing("XR", "XR_MSFT_spatial_anchor_persistence");
+ }
private static boolean check_MSFT_spatial_graph_bridge(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_MSFT_spatial_graph_bridge")) {
@@ -1680,8 +1665,8 @@ private static boolean check_MSFT_spatial_graph_bridge(FunctionProvider provider
},
"xrCreateSpatialGraphNodeSpaceMSFT", "xrTryCreateSpatialGraphStaticNodeBindingMSFT", "xrDestroySpatialGraphNodeBindingMSFT",
"xrGetSpatialGraphNodeBindingPropertiesMSFT"
- ) || reportMissing("XR", "XR_MSFT_spatial_graph_bridge");
- }
+ ) || reportMissing("XR", "XR_MSFT_spatial_graph_bridge");
+ }
private static boolean check_OCULUS_audio_device_guid(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_OCULUS_audio_device_guid")) {
@@ -1692,8 +1677,8 @@ private static boolean check_OCULUS_audio_device_guid(FunctionProvider provider,
201, 202
},
"xrGetAudioOutputDeviceGuidOculus", "xrGetAudioInputDeviceGuidOculus"
- ) || reportMissing("XR", "XR_OCULUS_audio_device_guid");
- }
+ ) || reportMissing("XR", "XR_OCULUS_audio_device_guid");
+ }
private static boolean check_OCULUS_external_camera(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_OCULUS_external_camera")) {
@@ -1704,8 +1689,8 @@ private static boolean check_OCULUS_external_camera(FunctionProvider provider, l
203
},
"xrEnumerateExternalCamerasOCULUS"
- ) || reportMissing("XR", "XR_OCULUS_external_camera");
- }
+ ) || reportMissing("XR", "XR_OCULUS_external_camera");
+ }
private static boolean check_QCOM_tracking_optimization_settings(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_QCOM_tracking_optimization_settings")) {
@@ -1716,8 +1701,8 @@ private static boolean check_QCOM_tracking_optimization_settings(FunctionProvide
204
},
"xrSetTrackingOptimizationSettingsHintQCOM"
- ) || reportMissing("XR", "XR_QCOM_tracking_optimization_settings");
- }
+ ) || reportMissing("XR", "XR_QCOM_tracking_optimization_settings");
+ }
private static boolean check_VARJO_environment_depth_estimation(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_VARJO_environment_depth_estimation")) {
@@ -1728,8 +1713,8 @@ private static boolean check_VARJO_environment_depth_estimation(FunctionProvider
205
},
"xrSetEnvironmentDepthEstimationVARJO"
- ) || reportMissing("XR", "XR_VARJO_environment_depth_estimation");
- }
+ ) || reportMissing("XR", "XR_VARJO_environment_depth_estimation");
+ }
private static boolean check_VARJO_marker_tracking(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_VARJO_marker_tracking")) {
@@ -1741,8 +1726,8 @@ private static boolean check_VARJO_marker_tracking(FunctionProvider provider, lo
},
"xrSetMarkerTrackingVARJO", "xrSetMarkerTrackingTimeoutVARJO", "xrSetMarkerTrackingPredictionVARJO", "xrGetMarkerSizeVARJO",
"xrCreateMarkerSpaceVARJO"
- ) || reportMissing("XR", "XR_VARJO_marker_tracking");
- }
+ ) || reportMissing("XR", "XR_VARJO_marker_tracking");
+ }
private static boolean check_VARJO_view_offset(FunctionProvider provider, long[] caps, java.util.Set ext) {
if (!ext.contains("XR_VARJO_view_offset")) {
@@ -1753,7 +1738,7 @@ private static boolean check_VARJO_view_offset(FunctionProvider provider, long[]
211
},
"xrSetViewOffsetVARJO"
- ) || reportMissing("XR", "XR_VARJO_view_offset");
- }
+ ) || reportMissing("XR", "XR_VARJO_view_offset");
+ }
-}
+}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrAction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrAction.java
index 58bc23578a..be493217e1 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrAction.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrAction.java
@@ -4,8 +4,8 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-/** Wraps an {@code XrAction} handle. */
+
+/** Wraps an {@code XrAction} handle. */
public class XrAction extends DispatchableHandle {
private final XrActionSet actionSet;
@@ -26,4 +26,4 @@ public XrActionSet getActionSet() {
return actionSet;
}
-}
+}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionCreateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionCreateInfo.java
index 4c07091b75..0a447eb747 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionCreateInfo.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionCreateInfo.java
@@ -4,20 +4,20 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
-import static org.lwjgl.openxr.XR10.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
+import static org.lwjgl.openxr.XR10.*;
+
/**
* XrAction creation info.
*
@@ -85,8 +85,8 @@
* XrPath const * {@link #subactionPaths};
* char {@link #localizedActionName}[XR_MAX_LOCALIZED_ACTION_NAME_SIZE];
* }
- */
-public class XrActionCreateInfo extends Struct implements NativeResource {
+ */
+public class XrActionCreateInfo extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -96,44 +96,35 @@ public class XrActionCreateInfo extends Struct implements Na
/** The struct member offsets. */
public static final int
- TYPE,
- NEXT,
- ACTIONNAME,
- ACTIONTYPE,
- COUNTSUBACTIONPATHS,
- SUBACTIONPATHS,
- LOCALIZEDACTIONNAME;
+ TYPE,
+ NEXT,
+ ACTIONNAME,
+ ACTIONTYPE,
+ COUNTSUBACTIONPATHS,
+ SUBACTIONPATHS,
+ LOCALIZEDACTIONNAME;
static {
- Layout layout = __struct(
- __member(4),
- __member(POINTER_SIZE),
- __array(1, XR_MAX_ACTION_NAME_SIZE),
- __member(4),
- __member(4),
- __member(POINTER_SIZE),
+ Layout layout = __struct(
+ __member(4),
+ __member(POINTER_SIZE),
+ __array(1, XR_MAX_ACTION_NAME_SIZE),
+ __member(4),
+ __member(4),
+ __member(POINTER_SIZE),
__array(1, XR_MAX_LOCALIZED_ACTION_NAME_SIZE)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- TYPE = layout.offsetof(0);
- NEXT = layout.offsetof(1);
- ACTIONNAME = layout.offsetof(2);
- ACTIONTYPE = layout.offsetof(3);
- COUNTSUBACTIONPATHS = layout.offsetof(4);
- SUBACTIONPATHS = layout.offsetof(5);
- LOCALIZEDACTIONNAME = layout.offsetof(6);
- }
-
- protected XrActionCreateInfo(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrActionCreateInfo create(long address, @Nullable ByteBuffer container) {
- return new XrActionCreateInfo(address, container);
+ TYPE = layout.offsetof(0);
+ NEXT = layout.offsetof(1);
+ ACTIONNAME = layout.offsetof(2);
+ ACTIONTYPE = layout.offsetof(3);
+ COUNTSUBACTIONPATHS = layout.offsetof(4);
+ SUBACTIONPATHS = layout.offsetof(5);
+ LOCALIZEDACTIONNAME = layout.offsetof(6);
}
/**
@@ -148,70 +139,70 @@ public XrActionCreateInfo(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the {@code XrStructureType} of this structure. */
- @NativeType("XrStructureType")
- public int type() { return ntype(address()); }
- /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
- @NativeType("void const *")
- public long next() { return nnext(address()); }
- /** an array containing a {@code NULL} terminated string with the name of this action. */
- @NativeType("char[XR_MAX_ACTION_NAME_SIZE]")
- public ByteBuffer actionName() { return nactionName(address()); }
- /** an array containing a {@code NULL} terminated string with the name of this action. */
- @NativeType("char[XR_MAX_ACTION_NAME_SIZE]")
- public String actionNameString() { return nactionNameString(address()); }
- /** the {@code XrActionType} of the action to be created. */
- @NativeType("XrActionType")
- public int actionType() { return nactionType(address()); }
- /** the number of elements in the {@code subactionPaths} array. If {@code subactionPaths} is NULL, this parameter must be 0. */
- @NativeType("uint32_t")
- public int countSubactionPaths() { return ncountSubactionPaths(address()); }
- /** an array of {@code XrPath} or {@code NULL}. If this array is specified, it contains one or more subaction paths that the application intends to query action state for. */
- @Nullable
- @NativeType("XrPath const *")
- public LongBuffer subactionPaths() { return nsubactionPaths(address()); }
- /** an array containing a {@code NULL} terminated {@code UTF}-8 string that can be presented to the user as a description of the action. This string should be in the system’s current active locale. */
- @NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]")
- public ByteBuffer localizedActionName() { return nlocalizedActionName(address()); }
- /** an array containing a {@code NULL} terminated {@code UTF}-8 string that can be presented to the user as a description of the action. This string should be in the system’s current active locale. */
- @NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]")
- public String localizedActionNameString() { return nlocalizedActionNameString(address()); }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrActionCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_ACTION_CREATE_INFO TYPE_ACTION_CREATE_INFO} value to the {@link #type} field. */
- public XrActionCreateInfo type$Default() { return type(XR10.XR_TYPE_ACTION_CREATE_INFO); }
- /** Sets the specified value to the {@link #next} field. */
- public XrActionCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
- /** Copies the specified encoded string to the {@link #actionName} field. */
- public XrActionCreateInfo actionName(@NativeType("char[XR_MAX_ACTION_NAME_SIZE]") ByteBuffer value) { nactionName(address(), value); return this; }
- /** Sets the specified value to the {@link #actionType} field. */
- public XrActionCreateInfo actionType(@NativeType("XrActionType") int value) { nactionType(address(), value); return this; }
- /** Sets the specified value to the {@link #countSubactionPaths} field. */
- public XrActionCreateInfo countSubactionPaths(@NativeType("uint32_t") int value) { ncountSubactionPaths(address(), value); return this; }
- /** Sets the address of the specified {@link LongBuffer} to the {@link #subactionPaths} field. */
- public XrActionCreateInfo subactionPaths(@Nullable @NativeType("XrPath const *") LongBuffer value) { nsubactionPaths(address(), value); return this; }
- /** Copies the specified encoded string to the {@link #localizedActionName} field. */
- public XrActionCreateInfo localizedActionName(@NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]") ByteBuffer value) { nlocalizedActionName(address(), value); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
+ @NativeType("void const *")
+ public long next() { return nnext(address()); }
+ /** an array containing a {@code NULL} terminated string with the name of this action. */
+ @NativeType("char[XR_MAX_ACTION_NAME_SIZE]")
+ public ByteBuffer actionName() { return nactionName(address()); }
+ /** an array containing a {@code NULL} terminated string with the name of this action. */
+ @NativeType("char[XR_MAX_ACTION_NAME_SIZE]")
+ public String actionNameString() { return nactionNameString(address()); }
+ /** the {@code XrActionType} of the action to be created. */
+ @NativeType("XrActionType")
+ public int actionType() { return nactionType(address()); }
+ /** the number of elements in the {@code subactionPaths} array. If {@code subactionPaths} is NULL, this parameter must be 0. */
+ @NativeType("uint32_t")
+ public int countSubactionPaths() { return ncountSubactionPaths(address()); }
+ /** an array of {@code XrPath} or {@code NULL}. If this array is specified, it contains one or more subaction paths that the application intends to query action state for. */
+ @Nullable
+ @NativeType("XrPath const *")
+ public LongBuffer subactionPaths() { return nsubactionPaths(address()); }
+ /** an array containing a {@code NULL} terminated {@code UTF}-8 string that can be presented to the user as a description of the action. This string should be in the system’s current active locale. */
+ @NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]")
+ public ByteBuffer localizedActionName() { return nlocalizedActionName(address()); }
+ /** an array containing a {@code NULL} terminated {@code UTF}-8 string that can be presented to the user as a description of the action. This string should be in the system’s current active locale. */
+ @NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]")
+ public String localizedActionNameString() { return nlocalizedActionNameString(address()); }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrActionCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_ACTION_CREATE_INFO TYPE_ACTION_CREATE_INFO} value to the {@link #type} field. */
+ public XrActionCreateInfo type$Default() { return type(XR10.XR_TYPE_ACTION_CREATE_INFO); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrActionCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
+ /** Copies the specified encoded string to the {@link #actionName} field. */
+ public XrActionCreateInfo actionName(@NativeType("char[XR_MAX_ACTION_NAME_SIZE]") ByteBuffer value) { nactionName(address(), value); return this; }
+ /** Sets the specified value to the {@link #actionType} field. */
+ public XrActionCreateInfo actionType(@NativeType("XrActionType") int value) { nactionType(address(), value); return this; }
+ /** Sets the specified value to the {@link #countSubactionPaths} field. */
+ public XrActionCreateInfo countSubactionPaths(@NativeType("uint32_t") int value) { ncountSubactionPaths(address(), value); return this; }
+ /** Sets the address of the specified {@link LongBuffer} to the {@link #subactionPaths} field. */
+ public XrActionCreateInfo subactionPaths(@Nullable @NativeType("XrPath const *") LongBuffer value) { nsubactionPaths(address(), value); return this; }
+ /** Copies the specified encoded string to the {@link #localizedActionName} field. */
+ public XrActionCreateInfo localizedActionName(@NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]") ByteBuffer value) { nlocalizedActionName(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrActionCreateInfo set(
- int type,
- long next,
- ByteBuffer actionName,
- int actionType,
- int countSubactionPaths,
- @Nullable LongBuffer subactionPaths,
+ int type,
+ long next,
+ ByteBuffer actionName,
+ int actionType,
+ int countSubactionPaths,
+ @Nullable LongBuffer subactionPaths,
ByteBuffer localizedActionName
- ) {
- type(type);
- next(next);
- actionName(actionName);
- actionType(actionType);
- countSubactionPaths(countSubactionPaths);
- subactionPaths(subactionPaths);
- localizedActionName(localizedActionName);
+ ) {
+ type(type);
+ next(next);
+ actionName(actionName);
+ actionType(actionType);
+ countSubactionPaths(countSubactionPaths);
+ subactionPaths(subactionPaths);
+ localizedActionName(localizedActionName);
return this;
}
@@ -232,29 +223,29 @@ public XrActionCreateInfo set(XrActionCreateInfo src) {
/** Returns a new {@code XrActionCreateInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrActionCreateInfo malloc() {
- return new XrActionCreateInfo(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrActionCreateInfo.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrActionCreateInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrActionCreateInfo calloc() {
- return new XrActionCreateInfo(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrActionCreateInfo.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrActionCreateInfo} instance allocated with {@link BufferUtils}. */
public static XrActionCreateInfo create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrActionCreateInfo(memAddress(container), container);
+ return wrap(XrActionCreateInfo.class, memAddress(container), container);
}
/** Returns a new {@code XrActionCreateInfo} instance for the specified memory address. */
public static XrActionCreateInfo create(long address) {
- return new XrActionCreateInfo(address, null);
+ return wrap(XrActionCreateInfo.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionCreateInfo createSafe(long address) {
- return address == NULL ? null : new XrActionCreateInfo(address, null);
+ return address == NULL ? null : wrap(XrActionCreateInfo.class, address);
}
/**
@@ -263,7 +254,7 @@ public static XrActionCreateInfo createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrActionCreateInfo.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -272,7 +263,7 @@ public static XrActionCreateInfo.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionCreateInfo.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -282,7 +273,7 @@ public static XrActionCreateInfo.Buffer calloc(int capacity) {
*/
public static XrActionCreateInfo.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -292,13 +283,13 @@ public static XrActionCreateInfo.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionCreateInfo.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionCreateInfo.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -307,7 +298,7 @@ public static XrActionCreateInfo.Buffer createSafe(long address, int capacity) {
* @param stack the stack from which to allocate
*/
public static XrActionCreateInfo malloc(MemoryStack stack) {
- return new XrActionCreateInfo(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrActionCreateInfo.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -316,7 +307,7 @@ public static XrActionCreateInfo malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrActionCreateInfo calloc(MemoryStack stack) {
- return new XrActionCreateInfo(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrActionCreateInfo.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -326,7 +317,7 @@ public static XrActionCreateInfo calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrActionCreateInfo.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -336,58 +327,58 @@ public static XrActionCreateInfo.Buffer malloc(int capacity, MemoryStack stack)
* @param capacity the buffer capacity
*/
public static XrActionCreateInfo.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ }
+
+ // -----------------------------------
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionCreateInfo.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrActionCreateInfo.NEXT); }
+ /** Unsafe version of {@link #actionName}. */
+ public static ByteBuffer nactionName(long struct) { return memByteBuffer(struct + XrActionCreateInfo.ACTIONNAME, XR_MAX_ACTION_NAME_SIZE); }
+ /** Unsafe version of {@link #actionNameString}. */
+ public static String nactionNameString(long struct) { return memUTF8(struct + XrActionCreateInfo.ACTIONNAME); }
+ /** Unsafe version of {@link #actionType}. */
+ public static int nactionType(long struct) { return UNSAFE.getInt(null, struct + XrActionCreateInfo.ACTIONTYPE); }
+ /** Unsafe version of {@link #countSubactionPaths}. */
+ public static int ncountSubactionPaths(long struct) { return UNSAFE.getInt(null, struct + XrActionCreateInfo.COUNTSUBACTIONPATHS); }
+ /** Unsafe version of {@link #subactionPaths() subactionPaths}. */
+ @Nullable public static LongBuffer nsubactionPaths(long struct) { return memLongBufferSafe(memGetAddress(struct + XrActionCreateInfo.SUBACTIONPATHS), ncountSubactionPaths(struct)); }
+ /** Unsafe version of {@link #localizedActionName}. */
+ public static ByteBuffer nlocalizedActionName(long struct) { return memByteBuffer(struct + XrActionCreateInfo.LOCALIZEDACTIONNAME, XR_MAX_LOCALIZED_ACTION_NAME_SIZE); }
+ /** Unsafe version of {@link #localizedActionNameString}. */
+ public static String nlocalizedActionNameString(long struct) { return memUTF8(struct + XrActionCreateInfo.LOCALIZEDACTIONNAME); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionCreateInfo.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrActionCreateInfo.NEXT, value); }
+ /** Unsafe version of {@link #actionName(ByteBuffer) actionName}. */
+ public static void nactionName(long struct, ByteBuffer value) {
+ if (CHECKS) {
+ checkNT1(value);
+ checkGT(value, XR_MAX_ACTION_NAME_SIZE);
+ }
+ memCopy(memAddress(value), struct + XrActionCreateInfo.ACTIONNAME, value.remaining());
+ }
+ /** Unsafe version of {@link #actionType(int) actionType}. */
+ public static void nactionType(long struct, int value) { UNSAFE.putInt(null, struct + XrActionCreateInfo.ACTIONTYPE, value); }
+ /** Sets the specified value to the {@code countSubactionPaths} field of the specified {@code struct}. */
+ public static void ncountSubactionPaths(long struct, int value) { UNSAFE.putInt(null, struct + XrActionCreateInfo.COUNTSUBACTIONPATHS, value); }
+ /** Unsafe version of {@link #subactionPaths(LongBuffer) subactionPaths}. */
+ public static void nsubactionPaths(long struct, @Nullable LongBuffer value) { memPutAddress(struct + XrActionCreateInfo.SUBACTIONPATHS, memAddressSafe(value)); if (value != null) { ncountSubactionPaths(struct, value.remaining()); } }
+ /** Unsafe version of {@link #localizedActionName(ByteBuffer) localizedActionName}. */
+ public static void nlocalizedActionName(long struct, ByteBuffer value) {
+ if (CHECKS) {
+ checkNT1(value);
+ checkGT(value, XR_MAX_LOCALIZED_ACTION_NAME_SIZE);
+ }
+ memCopy(memAddress(value), struct + XrActionCreateInfo.LOCALIZEDACTIONNAME, value.remaining());
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionCreateInfo.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrActionCreateInfo.NEXT); }
- /** Unsafe version of {@link #actionName}. */
- public static ByteBuffer nactionName(long struct) { return memByteBuffer(struct + XrActionCreateInfo.ACTIONNAME, XR_MAX_ACTION_NAME_SIZE); }
- /** Unsafe version of {@link #actionNameString}. */
- public static String nactionNameString(long struct) { return memUTF8(struct + XrActionCreateInfo.ACTIONNAME); }
- /** Unsafe version of {@link #actionType}. */
- public static int nactionType(long struct) { return UNSAFE.getInt(null, struct + XrActionCreateInfo.ACTIONTYPE); }
- /** Unsafe version of {@link #countSubactionPaths}. */
- public static int ncountSubactionPaths(long struct) { return UNSAFE.getInt(null, struct + XrActionCreateInfo.COUNTSUBACTIONPATHS); }
- /** Unsafe version of {@link #subactionPaths() subactionPaths}. */
- @Nullable public static LongBuffer nsubactionPaths(long struct) { return memLongBufferSafe(memGetAddress(struct + XrActionCreateInfo.SUBACTIONPATHS), ncountSubactionPaths(struct)); }
- /** Unsafe version of {@link #localizedActionName}. */
- public static ByteBuffer nlocalizedActionName(long struct) { return memByteBuffer(struct + XrActionCreateInfo.LOCALIZEDACTIONNAME, XR_MAX_LOCALIZED_ACTION_NAME_SIZE); }
- /** Unsafe version of {@link #localizedActionNameString}. */
- public static String nlocalizedActionNameString(long struct) { return memUTF8(struct + XrActionCreateInfo.LOCALIZEDACTIONNAME); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionCreateInfo.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrActionCreateInfo.NEXT, value); }
- /** Unsafe version of {@link #actionName(ByteBuffer) actionName}. */
- public static void nactionName(long struct, ByteBuffer value) {
- if (CHECKS) {
- checkNT1(value);
- checkGT(value, XR_MAX_ACTION_NAME_SIZE);
- }
- memCopy(memAddress(value), struct + XrActionCreateInfo.ACTIONNAME, value.remaining());
- }
- /** Unsafe version of {@link #actionType(int) actionType}. */
- public static void nactionType(long struct, int value) { UNSAFE.putInt(null, struct + XrActionCreateInfo.ACTIONTYPE, value); }
- /** Sets the specified value to the {@code countSubactionPaths} field of the specified {@code struct}. */
- public static void ncountSubactionPaths(long struct, int value) { UNSAFE.putInt(null, struct + XrActionCreateInfo.COUNTSUBACTIONPATHS, value); }
- /** Unsafe version of {@link #subactionPaths(LongBuffer) subactionPaths}. */
- public static void nsubactionPaths(long struct, @Nullable LongBuffer value) { memPutAddress(struct + XrActionCreateInfo.SUBACTIONPATHS, memAddressSafe(value)); if (value != null) { ncountSubactionPaths(struct, value.remaining()); } }
- /** Unsafe version of {@link #localizedActionName(ByteBuffer) localizedActionName}. */
- public static void nlocalizedActionName(long struct, ByteBuffer value) {
- if (CHECKS) {
- checkNT1(value);
- checkGT(value, XR_MAX_LOCALIZED_ACTION_NAME_SIZE);
- }
- memCopy(memAddress(value), struct + XrActionCreateInfo.LOCALIZEDACTIONNAME, value.remaining());
- }
-
- // -----------------------------------
/** An array of {@link XrActionCreateInfo} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -397,9 +388,9 @@ public static class Buffer extends StructBuffer impl
/**
* Creates a new {@code XrActionCreateInfo.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrActionCreateInfo#SIZEOF}, and its mark will be undefined.
+ * by {@link XrActionCreateInfo#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -424,52 +415,52 @@ protected Buffer self() {
protected XrActionCreateInfo getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrActionCreateInfo#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrActionCreateInfo.ntype(address()); }
- /** @return the value of the {@link XrActionCreateInfo#next} field. */
- @NativeType("void const *")
- public long next() { return XrActionCreateInfo.nnext(address()); }
- /** @return a {@link ByteBuffer} view of the {@link XrActionCreateInfo#actionName} field. */
- @NativeType("char[XR_MAX_ACTION_NAME_SIZE]")
- public ByteBuffer actionName() { return XrActionCreateInfo.nactionName(address()); }
- /** @return the null-terminated string stored in the {@link XrActionCreateInfo#actionName} field. */
- @NativeType("char[XR_MAX_ACTION_NAME_SIZE]")
- public String actionNameString() { return XrActionCreateInfo.nactionNameString(address()); }
- /** @return the value of the {@link XrActionCreateInfo#actionType} field. */
- @NativeType("XrActionType")
- public int actionType() { return XrActionCreateInfo.nactionType(address()); }
- /** @return the value of the {@link XrActionCreateInfo#countSubactionPaths} field. */
- @NativeType("uint32_t")
- public int countSubactionPaths() { return XrActionCreateInfo.ncountSubactionPaths(address()); }
- /** @return a {@link LongBuffer} view of the data pointed to by the {@link XrActionCreateInfo#subactionPaths} field. */
- @Nullable
- @NativeType("XrPath const *")
- public LongBuffer subactionPaths() { return XrActionCreateInfo.nsubactionPaths(address()); }
- /** @return a {@link ByteBuffer} view of the {@link XrActionCreateInfo#localizedActionName} field. */
- @NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]")
- public ByteBuffer localizedActionName() { return XrActionCreateInfo.nlocalizedActionName(address()); }
- /** @return the null-terminated string stored in the {@link XrActionCreateInfo#localizedActionName} field. */
- @NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]")
- public String localizedActionNameString() { return XrActionCreateInfo.nlocalizedActionNameString(address()); }
-
- /** Sets the specified value to the {@link XrActionCreateInfo#type} field. */
- public XrActionCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionCreateInfo.ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_ACTION_CREATE_INFO TYPE_ACTION_CREATE_INFO} value to the {@link XrActionCreateInfo#type} field. */
- public XrActionCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_CREATE_INFO); }
- /** Sets the specified value to the {@link XrActionCreateInfo#next} field. */
- public XrActionCreateInfo.Buffer next(@NativeType("void const *") long value) { XrActionCreateInfo.nnext(address(), value); return this; }
- /** Copies the specified encoded string to the {@link XrActionCreateInfo#actionName} field. */
- public XrActionCreateInfo.Buffer actionName(@NativeType("char[XR_MAX_ACTION_NAME_SIZE]") ByteBuffer value) { XrActionCreateInfo.nactionName(address(), value); return this; }
- /** Sets the specified value to the {@link XrActionCreateInfo#actionType} field. */
- public XrActionCreateInfo.Buffer actionType(@NativeType("XrActionType") int value) { XrActionCreateInfo.nactionType(address(), value); return this; }
- /** Sets the specified value to the {@link XrActionCreateInfo#countSubactionPaths} field. */
- public XrActionCreateInfo.Buffer countSubactionPaths(@NativeType("uint32_t") int value) { XrActionCreateInfo.ncountSubactionPaths(address(), value); return this; }
- /** Sets the address of the specified {@link LongBuffer} to the {@link XrActionCreateInfo#subactionPaths} field. */
- public XrActionCreateInfo.Buffer subactionPaths(@Nullable @NativeType("XrPath const *") LongBuffer value) { XrActionCreateInfo.nsubactionPaths(address(), value); return this; }
- /** Copies the specified encoded string to the {@link XrActionCreateInfo#localizedActionName} field. */
- public XrActionCreateInfo.Buffer localizedActionName(@NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]") ByteBuffer value) { XrActionCreateInfo.nlocalizedActionName(address(), value); return this; }
+
+ /** @return the value of the {@link XrActionCreateInfo#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrActionCreateInfo.ntype(address()); }
+ /** @return the value of the {@link XrActionCreateInfo#next} field. */
+ @NativeType("void const *")
+ public long next() { return XrActionCreateInfo.nnext(address()); }
+ /** @return a {@link ByteBuffer} view of the {@link XrActionCreateInfo#actionName} field. */
+ @NativeType("char[XR_MAX_ACTION_NAME_SIZE]")
+ public ByteBuffer actionName() { return XrActionCreateInfo.nactionName(address()); }
+ /** @return the null-terminated string stored in the {@link XrActionCreateInfo#actionName} field. */
+ @NativeType("char[XR_MAX_ACTION_NAME_SIZE]")
+ public String actionNameString() { return XrActionCreateInfo.nactionNameString(address()); }
+ /** @return the value of the {@link XrActionCreateInfo#actionType} field. */
+ @NativeType("XrActionType")
+ public int actionType() { return XrActionCreateInfo.nactionType(address()); }
+ /** @return the value of the {@link XrActionCreateInfo#countSubactionPaths} field. */
+ @NativeType("uint32_t")
+ public int countSubactionPaths() { return XrActionCreateInfo.ncountSubactionPaths(address()); }
+ /** @return a {@link LongBuffer} view of the data pointed to by the {@link XrActionCreateInfo#subactionPaths} field. */
+ @Nullable
+ @NativeType("XrPath const *")
+ public LongBuffer subactionPaths() { return XrActionCreateInfo.nsubactionPaths(address()); }
+ /** @return a {@link ByteBuffer} view of the {@link XrActionCreateInfo#localizedActionName} field. */
+ @NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]")
+ public ByteBuffer localizedActionName() { return XrActionCreateInfo.nlocalizedActionName(address()); }
+ /** @return the null-terminated string stored in the {@link XrActionCreateInfo#localizedActionName} field. */
+ @NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]")
+ public String localizedActionNameString() { return XrActionCreateInfo.nlocalizedActionNameString(address()); }
+
+ /** Sets the specified value to the {@link XrActionCreateInfo#type} field. */
+ public XrActionCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionCreateInfo.ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_ACTION_CREATE_INFO TYPE_ACTION_CREATE_INFO} value to the {@link XrActionCreateInfo#type} field. */
+ public XrActionCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_CREATE_INFO); }
+ /** Sets the specified value to the {@link XrActionCreateInfo#next} field. */
+ public XrActionCreateInfo.Buffer next(@NativeType("void const *") long value) { XrActionCreateInfo.nnext(address(), value); return this; }
+ /** Copies the specified encoded string to the {@link XrActionCreateInfo#actionName} field. */
+ public XrActionCreateInfo.Buffer actionName(@NativeType("char[XR_MAX_ACTION_NAME_SIZE]") ByteBuffer value) { XrActionCreateInfo.nactionName(address(), value); return this; }
+ /** Sets the specified value to the {@link XrActionCreateInfo#actionType} field. */
+ public XrActionCreateInfo.Buffer actionType(@NativeType("XrActionType") int value) { XrActionCreateInfo.nactionType(address(), value); return this; }
+ /** Sets the specified value to the {@link XrActionCreateInfo#countSubactionPaths} field. */
+ public XrActionCreateInfo.Buffer countSubactionPaths(@NativeType("uint32_t") int value) { XrActionCreateInfo.ncountSubactionPaths(address(), value); return this; }
+ /** Sets the address of the specified {@link LongBuffer} to the {@link XrActionCreateInfo#subactionPaths} field. */
+ public XrActionCreateInfo.Buffer subactionPaths(@Nullable @NativeType("XrPath const *") LongBuffer value) { XrActionCreateInfo.nsubactionPaths(address(), value); return this; }
+ /** Copies the specified encoded string to the {@link XrActionCreateInfo#localizedActionName} field. */
+ public XrActionCreateInfo.Buffer localizedActionName(@NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]") ByteBuffer value) { XrActionCreateInfo.nlocalizedActionName(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSet.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSet.java
index 984552ff04..b230c5206e 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSet.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSet.java
@@ -4,8 +4,8 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-/** Wraps an {@code XrActionSet} handle. */
+
+/** Wraps an {@code XrActionSet} handle. */
public class XrActionSet extends DispatchableHandle {
private final XrInstance instance;
@@ -26,4 +26,4 @@ public XrInstance getInstance() {
return instance;
}
-}
+}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSetCreateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSetCreateInfo.java
index 33090e617a..68c7a69afb 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSetCreateInfo.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSetCreateInfo.java
@@ -4,20 +4,20 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
-import static org.lwjgl.openxr.XR10.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
+import static org.lwjgl.openxr.XR10.*;
+
/**
* XrActionSet creation info.
*
@@ -54,8 +54,8 @@
* char {@link #localizedActionSetName}[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE];
* uint32_t {@link #priority};
* }
- */
-public class XrActionSetCreateInfo extends Struct implements NativeResource {
+ */
+public class XrActionSetCreateInfo extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -65,38 +65,29 @@ public class XrActionSetCreateInfo extends Struct impleme
/** The struct member offsets. */
public static final int
- TYPE,
- NEXT,
- ACTIONSETNAME,
- LOCALIZEDACTIONSETNAME,
- PRIORITY;
+ TYPE,
+ NEXT,
+ ACTIONSETNAME,
+ LOCALIZEDACTIONSETNAME,
+ PRIORITY;
static {
- Layout layout = __struct(
- __member(4),
- __member(POINTER_SIZE),
- __array(1, XR_MAX_ACTION_SET_NAME_SIZE),
- __array(1, XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE),
+ Layout layout = __struct(
+ __member(4),
+ __member(POINTER_SIZE),
+ __array(1, XR_MAX_ACTION_SET_NAME_SIZE),
+ __array(1, XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE),
__member(4)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- TYPE = layout.offsetof(0);
- NEXT = layout.offsetof(1);
- ACTIONSETNAME = layout.offsetof(2);
- LOCALIZEDACTIONSETNAME = layout.offsetof(3);
- PRIORITY = layout.offsetof(4);
- }
-
- protected XrActionSetCreateInfo(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrActionSetCreateInfo create(long address, @Nullable ByteBuffer container) {
- return new XrActionSetCreateInfo(address, container);
+ TYPE = layout.offsetof(0);
+ NEXT = layout.offsetof(1);
+ ACTIONSETNAME = layout.offsetof(2);
+ LOCALIZEDACTIONSETNAME = layout.offsetof(3);
+ PRIORITY = layout.offsetof(4);
}
/**
@@ -111,55 +102,55 @@ public XrActionSetCreateInfo(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the {@code XrStructureType} of this structure. */
- @NativeType("XrStructureType")
- public int type() { return ntype(address()); }
- /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
- @NativeType("void const *")
- public long next() { return nnext(address()); }
- /** an array containing a {@code NULL} terminated non-empty string with the name of this action set. */
- @NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]")
- public ByteBuffer actionSetName() { return nactionSetName(address()); }
- /** an array containing a {@code NULL} terminated non-empty string with the name of this action set. */
- @NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]")
- public String actionSetNameString() { return nactionSetNameString(address()); }
- /** an array containing a {@code NULL} terminated {@code UTF}-8 string that can be presented to the user as a description of the action set. This string should be presented in the system’s current active locale. */
- @NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]")
- public ByteBuffer localizedActionSetName() { return nlocalizedActionSetName(address()); }
- /** an array containing a {@code NULL} terminated {@code UTF}-8 string that can be presented to the user as a description of the action set. This string should be presented in the system’s current active locale. */
- @NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]")
- public String localizedActionSetNameString() { return nlocalizedActionSetNameString(address()); }
- /** defines which action sets' actions are active on a given input source when actions on multiple active action sets are bound to the same input source. Larger priority numbers take precedence over smaller priority numbers. */
- @NativeType("uint32_t")
- public int priority() { return npriority(address()); }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrActionSetCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_ACTION_SET_CREATE_INFO TYPE_ACTION_SET_CREATE_INFO} value to the {@link #type} field. */
- public XrActionSetCreateInfo type$Default() { return type(XR10.XR_TYPE_ACTION_SET_CREATE_INFO); }
- /** Sets the specified value to the {@link #next} field. */
- public XrActionSetCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
- /** Copies the specified encoded string to the {@link #actionSetName} field. */
- public XrActionSetCreateInfo actionSetName(@NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]") ByteBuffer value) { nactionSetName(address(), value); return this; }
- /** Copies the specified encoded string to the {@link #localizedActionSetName} field. */
- public XrActionSetCreateInfo localizedActionSetName(@NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]") ByteBuffer value) { nlocalizedActionSetName(address(), value); return this; }
- /** Sets the specified value to the {@link #priority} field. */
- public XrActionSetCreateInfo priority(@NativeType("uint32_t") int value) { npriority(address(), value); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
+ @NativeType("void const *")
+ public long next() { return nnext(address()); }
+ /** an array containing a {@code NULL} terminated non-empty string with the name of this action set. */
+ @NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]")
+ public ByteBuffer actionSetName() { return nactionSetName(address()); }
+ /** an array containing a {@code NULL} terminated non-empty string with the name of this action set. */
+ @NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]")
+ public String actionSetNameString() { return nactionSetNameString(address()); }
+ /** an array containing a {@code NULL} terminated {@code UTF}-8 string that can be presented to the user as a description of the action set. This string should be presented in the system’s current active locale. */
+ @NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]")
+ public ByteBuffer localizedActionSetName() { return nlocalizedActionSetName(address()); }
+ /** an array containing a {@code NULL} terminated {@code UTF}-8 string that can be presented to the user as a description of the action set. This string should be presented in the system’s current active locale. */
+ @NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]")
+ public String localizedActionSetNameString() { return nlocalizedActionSetNameString(address()); }
+ /** defines which action sets' actions are active on a given input source when actions on multiple active action sets are bound to the same input source. Larger priority numbers take precedence over smaller priority numbers. */
+ @NativeType("uint32_t")
+ public int priority() { return npriority(address()); }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrActionSetCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_ACTION_SET_CREATE_INFO TYPE_ACTION_SET_CREATE_INFO} value to the {@link #type} field. */
+ public XrActionSetCreateInfo type$Default() { return type(XR10.XR_TYPE_ACTION_SET_CREATE_INFO); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrActionSetCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
+ /** Copies the specified encoded string to the {@link #actionSetName} field. */
+ public XrActionSetCreateInfo actionSetName(@NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]") ByteBuffer value) { nactionSetName(address(), value); return this; }
+ /** Copies the specified encoded string to the {@link #localizedActionSetName} field. */
+ public XrActionSetCreateInfo localizedActionSetName(@NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]") ByteBuffer value) { nlocalizedActionSetName(address(), value); return this; }
+ /** Sets the specified value to the {@link #priority} field. */
+ public XrActionSetCreateInfo priority(@NativeType("uint32_t") int value) { npriority(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrActionSetCreateInfo set(
- int type,
- long next,
- ByteBuffer actionSetName,
- ByteBuffer localizedActionSetName,
+ int type,
+ long next,
+ ByteBuffer actionSetName,
+ ByteBuffer localizedActionSetName,
int priority
- ) {
- type(type);
- next(next);
- actionSetName(actionSetName);
- localizedActionSetName(localizedActionSetName);
- priority(priority);
+ ) {
+ type(type);
+ next(next);
+ actionSetName(actionSetName);
+ localizedActionSetName(localizedActionSetName);
+ priority(priority);
return this;
}
@@ -180,29 +171,29 @@ public XrActionSetCreateInfo set(XrActionSetCreateInfo src) {
/** Returns a new {@code XrActionSetCreateInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrActionSetCreateInfo malloc() {
- return new XrActionSetCreateInfo(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrActionSetCreateInfo.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrActionSetCreateInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrActionSetCreateInfo calloc() {
- return new XrActionSetCreateInfo(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrActionSetCreateInfo.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrActionSetCreateInfo} instance allocated with {@link BufferUtils}. */
public static XrActionSetCreateInfo create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrActionSetCreateInfo(memAddress(container), container);
+ return wrap(XrActionSetCreateInfo.class, memAddress(container), container);
}
/** Returns a new {@code XrActionSetCreateInfo} instance for the specified memory address. */
public static XrActionSetCreateInfo create(long address) {
- return new XrActionSetCreateInfo(address, null);
+ return wrap(XrActionSetCreateInfo.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionSetCreateInfo createSafe(long address) {
- return address == NULL ? null : new XrActionSetCreateInfo(address, null);
+ return address == NULL ? null : wrap(XrActionSetCreateInfo.class, address);
}
/**
@@ -211,7 +202,7 @@ public static XrActionSetCreateInfo createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrActionSetCreateInfo.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -220,7 +211,7 @@ public static XrActionSetCreateInfo.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionSetCreateInfo.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -230,7 +221,7 @@ public static XrActionSetCreateInfo.Buffer calloc(int capacity) {
*/
public static XrActionSetCreateInfo.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -240,13 +231,13 @@ public static XrActionSetCreateInfo.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionSetCreateInfo.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionSetCreateInfo.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -255,7 +246,7 @@ public static XrActionSetCreateInfo.Buffer createSafe(long address, int capacity
* @param stack the stack from which to allocate
*/
public static XrActionSetCreateInfo malloc(MemoryStack stack) {
- return new XrActionSetCreateInfo(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrActionSetCreateInfo.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -264,7 +255,7 @@ public static XrActionSetCreateInfo malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrActionSetCreateInfo calloc(MemoryStack stack) {
- return new XrActionSetCreateInfo(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrActionSetCreateInfo.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -274,7 +265,7 @@ public static XrActionSetCreateInfo calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrActionSetCreateInfo.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -284,50 +275,50 @@ public static XrActionSetCreateInfo.Buffer malloc(int capacity, MemoryStack stac
* @param capacity the buffer capacity
*/
public static XrActionSetCreateInfo.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ }
+
+ // -----------------------------------
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionSetCreateInfo.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrActionSetCreateInfo.NEXT); }
+ /** Unsafe version of {@link #actionSetName}. */
+ public static ByteBuffer nactionSetName(long struct) { return memByteBuffer(struct + XrActionSetCreateInfo.ACTIONSETNAME, XR_MAX_ACTION_SET_NAME_SIZE); }
+ /** Unsafe version of {@link #actionSetNameString}. */
+ public static String nactionSetNameString(long struct) { return memUTF8(struct + XrActionSetCreateInfo.ACTIONSETNAME); }
+ /** Unsafe version of {@link #localizedActionSetName}. */
+ public static ByteBuffer nlocalizedActionSetName(long struct) { return memByteBuffer(struct + XrActionSetCreateInfo.LOCALIZEDACTIONSETNAME, XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE); }
+ /** Unsafe version of {@link #localizedActionSetNameString}. */
+ public static String nlocalizedActionSetNameString(long struct) { return memUTF8(struct + XrActionSetCreateInfo.LOCALIZEDACTIONSETNAME); }
+ /** Unsafe version of {@link #priority}. */
+ public static int npriority(long struct) { return UNSAFE.getInt(null, struct + XrActionSetCreateInfo.PRIORITY); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionSetCreateInfo.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrActionSetCreateInfo.NEXT, value); }
+ /** Unsafe version of {@link #actionSetName(ByteBuffer) actionSetName}. */
+ public static void nactionSetName(long struct, ByteBuffer value) {
+ if (CHECKS) {
+ checkNT1(value);
+ checkGT(value, XR_MAX_ACTION_SET_NAME_SIZE);
+ }
+ memCopy(memAddress(value), struct + XrActionSetCreateInfo.ACTIONSETNAME, value.remaining());
}
+ /** Unsafe version of {@link #localizedActionSetName(ByteBuffer) localizedActionSetName}. */
+ public static void nlocalizedActionSetName(long struct, ByteBuffer value) {
+ if (CHECKS) {
+ checkNT1(value);
+ checkGT(value, XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE);
+ }
+ memCopy(memAddress(value), struct + XrActionSetCreateInfo.LOCALIZEDACTIONSETNAME, value.remaining());
+ }
+ /** Unsafe version of {@link #priority(int) priority}. */
+ public static void npriority(long struct, int value) { UNSAFE.putInt(null, struct + XrActionSetCreateInfo.PRIORITY, value); }
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionSetCreateInfo.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrActionSetCreateInfo.NEXT); }
- /** Unsafe version of {@link #actionSetName}. */
- public static ByteBuffer nactionSetName(long struct) { return memByteBuffer(struct + XrActionSetCreateInfo.ACTIONSETNAME, XR_MAX_ACTION_SET_NAME_SIZE); }
- /** Unsafe version of {@link #actionSetNameString}. */
- public static String nactionSetNameString(long struct) { return memUTF8(struct + XrActionSetCreateInfo.ACTIONSETNAME); }
- /** Unsafe version of {@link #localizedActionSetName}. */
- public static ByteBuffer nlocalizedActionSetName(long struct) { return memByteBuffer(struct + XrActionSetCreateInfo.LOCALIZEDACTIONSETNAME, XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE); }
- /** Unsafe version of {@link #localizedActionSetNameString}. */
- public static String nlocalizedActionSetNameString(long struct) { return memUTF8(struct + XrActionSetCreateInfo.LOCALIZEDACTIONSETNAME); }
- /** Unsafe version of {@link #priority}. */
- public static int npriority(long struct) { return UNSAFE.getInt(null, struct + XrActionSetCreateInfo.PRIORITY); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionSetCreateInfo.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrActionSetCreateInfo.NEXT, value); }
- /** Unsafe version of {@link #actionSetName(ByteBuffer) actionSetName}. */
- public static void nactionSetName(long struct, ByteBuffer value) {
- if (CHECKS) {
- checkNT1(value);
- checkGT(value, XR_MAX_ACTION_SET_NAME_SIZE);
- }
- memCopy(memAddress(value), struct + XrActionSetCreateInfo.ACTIONSETNAME, value.remaining());
- }
- /** Unsafe version of {@link #localizedActionSetName(ByteBuffer) localizedActionSetName}. */
- public static void nlocalizedActionSetName(long struct, ByteBuffer value) {
- if (CHECKS) {
- checkNT1(value);
- checkGT(value, XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE);
- }
- memCopy(memAddress(value), struct + XrActionSetCreateInfo.LOCALIZEDACTIONSETNAME, value.remaining());
- }
- /** Unsafe version of {@link #priority(int) priority}. */
- public static void npriority(long struct, int value) { UNSAFE.putInt(null, struct + XrActionSetCreateInfo.PRIORITY, value); }
-
- // -----------------------------------
/** An array of {@link XrActionSetCreateInfo} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -337,9 +328,9 @@ public static class Buffer extends StructBuffer i
/**
* Creates a new {@code XrActionSetCreateInfo.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrActionSetCreateInfo#SIZEOF}, and its mark will be undefined.
+ * by {@link XrActionSetCreateInfo#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -364,41 +355,41 @@ protected Buffer self() {
protected XrActionSetCreateInfo getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrActionSetCreateInfo#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrActionSetCreateInfo.ntype(address()); }
- /** @return the value of the {@link XrActionSetCreateInfo#next} field. */
- @NativeType("void const *")
- public long next() { return XrActionSetCreateInfo.nnext(address()); }
- /** @return a {@link ByteBuffer} view of the {@link XrActionSetCreateInfo#actionSetName} field. */
- @NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]")
- public ByteBuffer actionSetName() { return XrActionSetCreateInfo.nactionSetName(address()); }
- /** @return the null-terminated string stored in the {@link XrActionSetCreateInfo#actionSetName} field. */
- @NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]")
- public String actionSetNameString() { return XrActionSetCreateInfo.nactionSetNameString(address()); }
- /** @return a {@link ByteBuffer} view of the {@link XrActionSetCreateInfo#localizedActionSetName} field. */
- @NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]")
- public ByteBuffer localizedActionSetName() { return XrActionSetCreateInfo.nlocalizedActionSetName(address()); }
- /** @return the null-terminated string stored in the {@link XrActionSetCreateInfo#localizedActionSetName} field. */
- @NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]")
- public String localizedActionSetNameString() { return XrActionSetCreateInfo.nlocalizedActionSetNameString(address()); }
- /** @return the value of the {@link XrActionSetCreateInfo#priority} field. */
- @NativeType("uint32_t")
- public int priority() { return XrActionSetCreateInfo.npriority(address()); }
-
- /** Sets the specified value to the {@link XrActionSetCreateInfo#type} field. */
- public XrActionSetCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionSetCreateInfo.ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_ACTION_SET_CREATE_INFO TYPE_ACTION_SET_CREATE_INFO} value to the {@link XrActionSetCreateInfo#type} field. */
- public XrActionSetCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_SET_CREATE_INFO); }
- /** Sets the specified value to the {@link XrActionSetCreateInfo#next} field. */
- public XrActionSetCreateInfo.Buffer next(@NativeType("void const *") long value) { XrActionSetCreateInfo.nnext(address(), value); return this; }
- /** Copies the specified encoded string to the {@link XrActionSetCreateInfo#actionSetName} field. */
- public XrActionSetCreateInfo.Buffer actionSetName(@NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]") ByteBuffer value) { XrActionSetCreateInfo.nactionSetName(address(), value); return this; }
- /** Copies the specified encoded string to the {@link XrActionSetCreateInfo#localizedActionSetName} field. */
- public XrActionSetCreateInfo.Buffer localizedActionSetName(@NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]") ByteBuffer value) { XrActionSetCreateInfo.nlocalizedActionSetName(address(), value); return this; }
- /** Sets the specified value to the {@link XrActionSetCreateInfo#priority} field. */
- public XrActionSetCreateInfo.Buffer priority(@NativeType("uint32_t") int value) { XrActionSetCreateInfo.npriority(address(), value); return this; }
+
+ /** @return the value of the {@link XrActionSetCreateInfo#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrActionSetCreateInfo.ntype(address()); }
+ /** @return the value of the {@link XrActionSetCreateInfo#next} field. */
+ @NativeType("void const *")
+ public long next() { return XrActionSetCreateInfo.nnext(address()); }
+ /** @return a {@link ByteBuffer} view of the {@link XrActionSetCreateInfo#actionSetName} field. */
+ @NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]")
+ public ByteBuffer actionSetName() { return XrActionSetCreateInfo.nactionSetName(address()); }
+ /** @return the null-terminated string stored in the {@link XrActionSetCreateInfo#actionSetName} field. */
+ @NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]")
+ public String actionSetNameString() { return XrActionSetCreateInfo.nactionSetNameString(address()); }
+ /** @return a {@link ByteBuffer} view of the {@link XrActionSetCreateInfo#localizedActionSetName} field. */
+ @NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]")
+ public ByteBuffer localizedActionSetName() { return XrActionSetCreateInfo.nlocalizedActionSetName(address()); }
+ /** @return the null-terminated string stored in the {@link XrActionSetCreateInfo#localizedActionSetName} field. */
+ @NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]")
+ public String localizedActionSetNameString() { return XrActionSetCreateInfo.nlocalizedActionSetNameString(address()); }
+ /** @return the value of the {@link XrActionSetCreateInfo#priority} field. */
+ @NativeType("uint32_t")
+ public int priority() { return XrActionSetCreateInfo.npriority(address()); }
+
+ /** Sets the specified value to the {@link XrActionSetCreateInfo#type} field. */
+ public XrActionSetCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionSetCreateInfo.ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_ACTION_SET_CREATE_INFO TYPE_ACTION_SET_CREATE_INFO} value to the {@link XrActionSetCreateInfo#type} field. */
+ public XrActionSetCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_SET_CREATE_INFO); }
+ /** Sets the specified value to the {@link XrActionSetCreateInfo#next} field. */
+ public XrActionSetCreateInfo.Buffer next(@NativeType("void const *") long value) { XrActionSetCreateInfo.nnext(address(), value); return this; }
+ /** Copies the specified encoded string to the {@link XrActionSetCreateInfo#actionSetName} field. */
+ public XrActionSetCreateInfo.Buffer actionSetName(@NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]") ByteBuffer value) { XrActionSetCreateInfo.nactionSetName(address(), value); return this; }
+ /** Copies the specified encoded string to the {@link XrActionSetCreateInfo#localizedActionSetName} field. */
+ public XrActionSetCreateInfo.Buffer localizedActionSetName(@NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]") ByteBuffer value) { XrActionSetCreateInfo.nlocalizedActionSetName(address(), value); return this; }
+ /** Sets the specified value to the {@link XrActionSetCreateInfo#priority} field. */
+ public XrActionSetCreateInfo.Buffer priority(@NativeType("uint32_t") int value) { XrActionSetCreateInfo.npriority(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSpaceCreateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSpaceCreateInfo.java
index bf221c18af..6095f3b2c4 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSpaceCreateInfo.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSpaceCreateInfo.java
@@ -4,18 +4,18 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Creation info for an action space.
*
@@ -41,8 +41,8 @@
* XrPath {@link #subactionPath};
* {@link XrPosef XrPosef} {@link #poseInActionSpace};
* }
- */
-public class XrActionSpaceCreateInfo extends Struct implements NativeResource {
+ */
+public class XrActionSpaceCreateInfo extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -52,38 +52,29 @@ public class XrActionSpaceCreateInfo extends Struct imp
/** The struct member offsets. */
public static final int
- TYPE,
- NEXT,
- ACTION,
- SUBACTIONPATH,
- POSEINACTIONSPACE;
+ TYPE,
+ NEXT,
+ ACTION,
+ SUBACTIONPATH,
+ POSEINACTIONSPACE;
static {
- Layout layout = __struct(
- __member(4),
- __member(POINTER_SIZE),
- __member(POINTER_SIZE),
- __member(8),
+ Layout layout = __struct(
+ __member(4),
+ __member(POINTER_SIZE),
+ __member(POINTER_SIZE),
+ __member(8),
__member(XrPosef.SIZEOF, XrPosef.ALIGNOF)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- TYPE = layout.offsetof(0);
- NEXT = layout.offsetof(1);
- ACTION = layout.offsetof(2);
- SUBACTIONPATH = layout.offsetof(3);
- POSEINACTIONSPACE = layout.offsetof(4);
- }
-
- protected XrActionSpaceCreateInfo(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrActionSpaceCreateInfo create(long address, @Nullable ByteBuffer container) {
- return new XrActionSpaceCreateInfo(address, container);
+ TYPE = layout.offsetof(0);
+ NEXT = layout.offsetof(1);
+ ACTION = layout.offsetof(2);
+ SUBACTIONPATH = layout.offsetof(3);
+ POSEINACTIONSPACE = layout.offsetof(4);
}
/**
@@ -98,50 +89,50 @@ public XrActionSpaceCreateInfo(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the {@code XrStructureType} of this structure. */
- @NativeType("XrStructureType")
- public int type() { return ntype(address()); }
- /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
- @NativeType("void const *")
- public long next() { return nnext(address()); }
- /** a handle to a pose {@code XrAction} previously created with {@link XR10#xrCreateAction CreateAction}. */
- @NativeType("XrAction")
- public long action() { return naction(address()); }
- /** {@link XR10#XR_NULL_PATH NULL_PATH} or an {@code XrPath} that was specified when the action was created. If {@code subactionPath} is a valid path not specified when the action was created the runtime must return {@link XR10#XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}. If this parameter is set, the runtime must create a space that is relative to only that subaction’s pose binding. */
- @NativeType("XrPath")
- public long subactionPath() { return nsubactionPath(address()); }
- /** an {@link XrPosef} defining the position and orientation of the new space’s origin within the natural reference frame of the pose action. */
- public XrPosef poseInActionSpace() { return nposeInActionSpace(address()); }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrActionSpaceCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_ACTION_SPACE_CREATE_INFO TYPE_ACTION_SPACE_CREATE_INFO} value to the {@link #type} field. */
- public XrActionSpaceCreateInfo type$Default() { return type(XR10.XR_TYPE_ACTION_SPACE_CREATE_INFO); }
- /** Sets the specified value to the {@link #next} field. */
- public XrActionSpaceCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
- /** Sets the specified value to the {@link #action} field. */
- public XrActionSpaceCreateInfo action(XrAction value) { naction(address(), value); return this; }
- /** Sets the specified value to the {@link #subactionPath} field. */
- public XrActionSpaceCreateInfo subactionPath(@NativeType("XrPath") long value) { nsubactionPath(address(), value); return this; }
- /** Copies the specified {@link XrPosef} to the {@link #poseInActionSpace} field. */
- public XrActionSpaceCreateInfo poseInActionSpace(XrPosef value) { nposeInActionSpace(address(), value); return this; }
- /** Passes the {@link #poseInActionSpace} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrActionSpaceCreateInfo poseInActionSpace(java.util.function.Consumer consumer) { consumer.accept(poseInActionSpace()); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
+ @NativeType("void const *")
+ public long next() { return nnext(address()); }
+ /** a handle to a pose {@code XrAction} previously created with {@link XR10#xrCreateAction CreateAction}. */
+ @NativeType("XrAction")
+ public long action() { return naction(address()); }
+ /** {@link XR10#XR_NULL_PATH NULL_PATH} or an {@code XrPath} that was specified when the action was created. If {@code subactionPath} is a valid path not specified when the action was created the runtime must return {@link XR10#XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}. If this parameter is set, the runtime must create a space that is relative to only that subaction’s pose binding. */
+ @NativeType("XrPath")
+ public long subactionPath() { return nsubactionPath(address()); }
+ /** an {@link XrPosef} defining the position and orientation of the new space’s origin within the natural reference frame of the pose action. */
+ public XrPosef poseInActionSpace() { return nposeInActionSpace(address()); }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrActionSpaceCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_ACTION_SPACE_CREATE_INFO TYPE_ACTION_SPACE_CREATE_INFO} value to the {@link #type} field. */
+ public XrActionSpaceCreateInfo type$Default() { return type(XR10.XR_TYPE_ACTION_SPACE_CREATE_INFO); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrActionSpaceCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link #action} field. */
+ public XrActionSpaceCreateInfo action(XrAction value) { naction(address(), value); return this; }
+ /** Sets the specified value to the {@link #subactionPath} field. */
+ public XrActionSpaceCreateInfo subactionPath(@NativeType("XrPath") long value) { nsubactionPath(address(), value); return this; }
+ /** Copies the specified {@link XrPosef} to the {@link #poseInActionSpace} field. */
+ public XrActionSpaceCreateInfo poseInActionSpace(XrPosef value) { nposeInActionSpace(address(), value); return this; }
+ /** Passes the {@link #poseInActionSpace} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrActionSpaceCreateInfo poseInActionSpace(java.util.function.Consumer consumer) { consumer.accept(poseInActionSpace()); return this; }
/** Initializes this struct with the specified values. */
public XrActionSpaceCreateInfo set(
- int type,
- long next,
- XrAction action,
- long subactionPath,
+ int type,
+ long next,
+ XrAction action,
+ long subactionPath,
XrPosef poseInActionSpace
- ) {
- type(type);
- next(next);
- action(action);
- subactionPath(subactionPath);
- poseInActionSpace(poseInActionSpace);
+ ) {
+ type(type);
+ next(next);
+ action(action);
+ subactionPath(subactionPath);
+ poseInActionSpace(poseInActionSpace);
return this;
}
@@ -162,29 +153,29 @@ public XrActionSpaceCreateInfo set(XrActionSpaceCreateInfo src) {
/** Returns a new {@code XrActionSpaceCreateInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrActionSpaceCreateInfo malloc() {
- return new XrActionSpaceCreateInfo(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrActionSpaceCreateInfo.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrActionSpaceCreateInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrActionSpaceCreateInfo calloc() {
- return new XrActionSpaceCreateInfo(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrActionSpaceCreateInfo.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrActionSpaceCreateInfo} instance allocated with {@link BufferUtils}. */
public static XrActionSpaceCreateInfo create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrActionSpaceCreateInfo(memAddress(container), container);
+ return wrap(XrActionSpaceCreateInfo.class, memAddress(container), container);
}
/** Returns a new {@code XrActionSpaceCreateInfo} instance for the specified memory address. */
public static XrActionSpaceCreateInfo create(long address) {
- return new XrActionSpaceCreateInfo(address, null);
+ return wrap(XrActionSpaceCreateInfo.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionSpaceCreateInfo createSafe(long address) {
- return address == NULL ? null : new XrActionSpaceCreateInfo(address, null);
+ return address == NULL ? null : wrap(XrActionSpaceCreateInfo.class, address);
}
/**
@@ -193,7 +184,7 @@ public static XrActionSpaceCreateInfo createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrActionSpaceCreateInfo.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -202,7 +193,7 @@ public static XrActionSpaceCreateInfo.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionSpaceCreateInfo.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -212,7 +203,7 @@ public static XrActionSpaceCreateInfo.Buffer calloc(int capacity) {
*/
public static XrActionSpaceCreateInfo.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -222,13 +213,13 @@ public static XrActionSpaceCreateInfo.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionSpaceCreateInfo.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionSpaceCreateInfo.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -237,7 +228,7 @@ public static XrActionSpaceCreateInfo.Buffer createSafe(long address, int capaci
* @param stack the stack from which to allocate
*/
public static XrActionSpaceCreateInfo malloc(MemoryStack stack) {
- return new XrActionSpaceCreateInfo(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrActionSpaceCreateInfo.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -246,7 +237,7 @@ public static XrActionSpaceCreateInfo malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrActionSpaceCreateInfo calloc(MemoryStack stack) {
- return new XrActionSpaceCreateInfo(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrActionSpaceCreateInfo.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -256,7 +247,7 @@ public static XrActionSpaceCreateInfo calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrActionSpaceCreateInfo.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -266,32 +257,32 @@ public static XrActionSpaceCreateInfo.Buffer malloc(int capacity, MemoryStack st
* @param capacity the buffer capacity
*/
public static XrActionSpaceCreateInfo.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionSpaceCreateInfo.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrActionSpaceCreateInfo.NEXT); }
- /** Unsafe version of {@link #action}. */
- public static long naction(long struct) { return memGetAddress(struct + XrActionSpaceCreateInfo.ACTION); }
- /** Unsafe version of {@link #subactionPath}. */
- public static long nsubactionPath(long struct) { return UNSAFE.getLong(null, struct + XrActionSpaceCreateInfo.SUBACTIONPATH); }
- /** Unsafe version of {@link #poseInActionSpace}. */
- public static XrPosef nposeInActionSpace(long struct) { return XrPosef.create(struct + XrActionSpaceCreateInfo.POSEINACTIONSPACE); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionSpaceCreateInfo.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrActionSpaceCreateInfo.NEXT, value); }
- /** Unsafe version of {@link #action(XrAction) action}. */
- public static void naction(long struct, XrAction value) { memPutAddress(struct + XrActionSpaceCreateInfo.ACTION, value.address()); }
- /** Unsafe version of {@link #subactionPath(long) subactionPath}. */
- public static void nsubactionPath(long struct, long value) { UNSAFE.putLong(null, struct + XrActionSpaceCreateInfo.SUBACTIONPATH, value); }
- /** Unsafe version of {@link #poseInActionSpace(XrPosef) poseInActionSpace}. */
- public static void nposeInActionSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrActionSpaceCreateInfo.POSEINACTIONSPACE, XrPosef.SIZEOF); }
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionSpaceCreateInfo.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrActionSpaceCreateInfo.NEXT); }
+ /** Unsafe version of {@link #action}. */
+ public static long naction(long struct) { return memGetAddress(struct + XrActionSpaceCreateInfo.ACTION); }
+ /** Unsafe version of {@link #subactionPath}. */
+ public static long nsubactionPath(long struct) { return UNSAFE.getLong(null, struct + XrActionSpaceCreateInfo.SUBACTIONPATH); }
+ /** Unsafe version of {@link #poseInActionSpace}. */
+ public static XrPosef nposeInActionSpace(long struct) { return XrPosef.create(struct + XrActionSpaceCreateInfo.POSEINACTIONSPACE); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionSpaceCreateInfo.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrActionSpaceCreateInfo.NEXT, value); }
+ /** Unsafe version of {@link #action(XrAction) action}. */
+ public static void naction(long struct, XrAction value) { memPutAddress(struct + XrActionSpaceCreateInfo.ACTION, value.address()); }
+ /** Unsafe version of {@link #subactionPath(long) subactionPath}. */
+ public static void nsubactionPath(long struct, long value) { UNSAFE.putLong(null, struct + XrActionSpaceCreateInfo.SUBACTIONPATH, value); }
+ /** Unsafe version of {@link #poseInActionSpace(XrPosef) poseInActionSpace}. */
+ public static void nposeInActionSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrActionSpaceCreateInfo.POSEINACTIONSPACE, XrPosef.SIZEOF); }
/**
* Validates pointer members that should not be {@code NULL}.
@@ -300,9 +291,9 @@ public static XrActionSpaceCreateInfo.Buffer calloc(int capacity, MemoryStack st
*/
public static void validate(long struct) {
check(memGetAddress(struct + XrActionSpaceCreateInfo.ACTION));
- }
+ }
- // -----------------------------------
+ // -----------------------------------
/** An array of {@link XrActionSpaceCreateInfo} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -312,9 +303,9 @@ public static class Buffer extends StructBuffer
/**
* Creates a new {@code XrActionSpaceCreateInfo.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrActionSpaceCreateInfo#SIZEOF}, and its mark will be undefined.
+ * by {@link XrActionSpaceCreateInfo#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -339,36 +330,36 @@ protected Buffer self() {
protected XrActionSpaceCreateInfo getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrActionSpaceCreateInfo#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrActionSpaceCreateInfo.ntype(address()); }
- /** @return the value of the {@link XrActionSpaceCreateInfo#next} field. */
- @NativeType("void const *")
- public long next() { return XrActionSpaceCreateInfo.nnext(address()); }
- /** @return the value of the {@link XrActionSpaceCreateInfo#action} field. */
- @NativeType("XrAction")
- public long action() { return XrActionSpaceCreateInfo.naction(address()); }
- /** @return the value of the {@link XrActionSpaceCreateInfo#subactionPath} field. */
- @NativeType("XrPath")
- public long subactionPath() { return XrActionSpaceCreateInfo.nsubactionPath(address()); }
- /** @return a {@link XrPosef} view of the {@link XrActionSpaceCreateInfo#poseInActionSpace} field. */
- public XrPosef poseInActionSpace() { return XrActionSpaceCreateInfo.nposeInActionSpace(address()); }
-
- /** Sets the specified value to the {@link XrActionSpaceCreateInfo#type} field. */
- public XrActionSpaceCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionSpaceCreateInfo.ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_ACTION_SPACE_CREATE_INFO TYPE_ACTION_SPACE_CREATE_INFO} value to the {@link XrActionSpaceCreateInfo#type} field. */
- public XrActionSpaceCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_SPACE_CREATE_INFO); }
- /** Sets the specified value to the {@link XrActionSpaceCreateInfo#next} field. */
- public XrActionSpaceCreateInfo.Buffer next(@NativeType("void const *") long value) { XrActionSpaceCreateInfo.nnext(address(), value); return this; }
- /** Sets the specified value to the {@link XrActionSpaceCreateInfo#action} field. */
- public XrActionSpaceCreateInfo.Buffer action(XrAction value) { XrActionSpaceCreateInfo.naction(address(), value); return this; }
- /** Sets the specified value to the {@link XrActionSpaceCreateInfo#subactionPath} field. */
- public XrActionSpaceCreateInfo.Buffer subactionPath(@NativeType("XrPath") long value) { XrActionSpaceCreateInfo.nsubactionPath(address(), value); return this; }
- /** Copies the specified {@link XrPosef} to the {@link XrActionSpaceCreateInfo#poseInActionSpace} field. */
- public XrActionSpaceCreateInfo.Buffer poseInActionSpace(XrPosef value) { XrActionSpaceCreateInfo.nposeInActionSpace(address(), value); return this; }
- /** Passes the {@link XrActionSpaceCreateInfo#poseInActionSpace} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrActionSpaceCreateInfo.Buffer poseInActionSpace(java.util.function.Consumer consumer) { consumer.accept(poseInActionSpace()); return this; }
+
+ /** @return the value of the {@link XrActionSpaceCreateInfo#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrActionSpaceCreateInfo.ntype(address()); }
+ /** @return the value of the {@link XrActionSpaceCreateInfo#next} field. */
+ @NativeType("void const *")
+ public long next() { return XrActionSpaceCreateInfo.nnext(address()); }
+ /** @return the value of the {@link XrActionSpaceCreateInfo#action} field. */
+ @NativeType("XrAction")
+ public long action() { return XrActionSpaceCreateInfo.naction(address()); }
+ /** @return the value of the {@link XrActionSpaceCreateInfo#subactionPath} field. */
+ @NativeType("XrPath")
+ public long subactionPath() { return XrActionSpaceCreateInfo.nsubactionPath(address()); }
+ /** @return a {@link XrPosef} view of the {@link XrActionSpaceCreateInfo#poseInActionSpace} field. */
+ public XrPosef poseInActionSpace() { return XrActionSpaceCreateInfo.nposeInActionSpace(address()); }
+
+ /** Sets the specified value to the {@link XrActionSpaceCreateInfo#type} field. */
+ public XrActionSpaceCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionSpaceCreateInfo.ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_ACTION_SPACE_CREATE_INFO TYPE_ACTION_SPACE_CREATE_INFO} value to the {@link XrActionSpaceCreateInfo#type} field. */
+ public XrActionSpaceCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_SPACE_CREATE_INFO); }
+ /** Sets the specified value to the {@link XrActionSpaceCreateInfo#next} field. */
+ public XrActionSpaceCreateInfo.Buffer next(@NativeType("void const *") long value) { XrActionSpaceCreateInfo.nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link XrActionSpaceCreateInfo#action} field. */
+ public XrActionSpaceCreateInfo.Buffer action(XrAction value) { XrActionSpaceCreateInfo.naction(address(), value); return this; }
+ /** Sets the specified value to the {@link XrActionSpaceCreateInfo#subactionPath} field. */
+ public XrActionSpaceCreateInfo.Buffer subactionPath(@NativeType("XrPath") long value) { XrActionSpaceCreateInfo.nsubactionPath(address(), value); return this; }
+ /** Copies the specified {@link XrPosef} to the {@link XrActionSpaceCreateInfo#poseInActionSpace} field. */
+ public XrActionSpaceCreateInfo.Buffer poseInActionSpace(XrPosef value) { XrActionSpaceCreateInfo.nposeInActionSpace(address(), value); return this; }
+ /** Passes the {@link XrActionSpaceCreateInfo#poseInActionSpace} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrActionSpaceCreateInfo.Buffer poseInActionSpace(java.util.function.Consumer consumer) { consumer.accept(poseInActionSpace()); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateBoolean.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateBoolean.java
index e7163a4612..c0e225432f 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateBoolean.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateBoolean.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Boolean action state.
*
@@ -44,8 +44,8 @@
* XrTime {@link #lastChangeTime};
* XrBool32 {@link #isActive};
* }
- */
-public class XrActionStateBoolean extends Struct implements NativeResource {
+ */
+public class XrActionStateBoolean extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -55,41 +55,32 @@ public class XrActionStateBoolean extends Struct implement
/** The struct member offsets. */
public static final int
- TYPE,
- NEXT,
- CURRENTSTATE,
- CHANGEDSINCELASTSYNC,
- LASTCHANGETIME,
- ISACTIVE;
+ TYPE,
+ NEXT,
+ CURRENTSTATE,
+ CHANGEDSINCELASTSYNC,
+ LASTCHANGETIME,
+ ISACTIVE;
static {
- Layout layout = __struct(
- __member(4),
- __member(POINTER_SIZE),
- __member(4),
- __member(4),
- __member(8),
+ Layout layout = __struct(
+ __member(4),
+ __member(POINTER_SIZE),
+ __member(4),
+ __member(4),
+ __member(8),
__member(4)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- TYPE = layout.offsetof(0);
- NEXT = layout.offsetof(1);
- CURRENTSTATE = layout.offsetof(2);
- CHANGEDSINCELASTSYNC = layout.offsetof(3);
- LASTCHANGETIME = layout.offsetof(4);
- ISACTIVE = layout.offsetof(5);
- }
-
- protected XrActionStateBoolean(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrActionStateBoolean create(long address, @Nullable ByteBuffer container) {
- return new XrActionStateBoolean(address, container);
+ TYPE = layout.offsetof(0);
+ NEXT = layout.offsetof(1);
+ CURRENTSTATE = layout.offsetof(2);
+ CHANGEDSINCELASTSYNC = layout.offsetof(3);
+ LASTCHANGETIME = layout.offsetof(4);
+ ISACTIVE = layout.offsetof(5);
}
/**
@@ -104,56 +95,56 @@ public XrActionStateBoolean(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the {@code XrStructureType} of this structure. */
- @NativeType("XrStructureType")
- public int type() { return ntype(address()); }
- /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
- @NativeType("void *")
- public long next() { return nnext(address()); }
- /** the current state of the action. */
- @NativeType("XrBool32")
- public boolean currentState() { return ncurrentState(address()) != 0; }
- /** {@link XR10#XR_TRUE TRUE} if the value of {@code currentState} is different than it was before the most recent call to {@link XR10#xrSyncActions SyncActions}. This parameter can be combined with {@code currentState} to detect rising and falling edges since the previous call to {@link XR10#xrSyncActions SyncActions}. E.g. if both {@code changedSinceLastSync} and {@code currentState} are {@link XR10#XR_TRUE TRUE} then a rising edge ({@link XR10#XR_FALSE FALSE} to {@link XR10#XR_TRUE TRUE}) has taken place. */
- @NativeType("XrBool32")
- public boolean changedSinceLastSync() { return nchangedSinceLastSync(address()) != 0; }
- /** the {@code XrTime} when this action’s value last changed. */
- @NativeType("XrTime")
- public long lastChangeTime() { return nlastChangeTime(address()); }
- /** {@link XR10#XR_TRUE TRUE} if and only if there exists an input source that is contributing to the current state of this action. */
- @NativeType("XrBool32")
- public boolean isActive() { return nisActive(address()) != 0; }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrActionStateBoolean type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_BOOLEAN TYPE_ACTION_STATE_BOOLEAN} value to the {@link #type} field. */
- public XrActionStateBoolean type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_BOOLEAN); }
- /** Sets the specified value to the {@link #next} field. */
- public XrActionStateBoolean next(@NativeType("void *") long value) { nnext(address(), value); return this; }
- /** Sets the specified value to the {@link #currentState} field. */
- public XrActionStateBoolean currentState(@NativeType("XrBool32") boolean value) { ncurrentState(address(), value ? 1 : 0); return this; }
- /** Sets the specified value to the {@link #changedSinceLastSync} field. */
- public XrActionStateBoolean changedSinceLastSync(@NativeType("XrBool32") boolean value) { nchangedSinceLastSync(address(), value ? 1 : 0); return this; }
- /** Sets the specified value to the {@link #lastChangeTime} field. */
- public XrActionStateBoolean lastChangeTime(@NativeType("XrTime") long value) { nlastChangeTime(address(), value); return this; }
- /** Sets the specified value to the {@link #isActive} field. */
- public XrActionStateBoolean isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
+ @NativeType("void *")
+ public long next() { return nnext(address()); }
+ /** the current state of the action. */
+ @NativeType("XrBool32")
+ public boolean currentState() { return ncurrentState(address()) != 0; }
+ /** {@link XR10#XR_TRUE TRUE} if the value of {@code currentState} is different than it was before the most recent call to {@link XR10#xrSyncActions SyncActions}. This parameter can be combined with {@code currentState} to detect rising and falling edges since the previous call to {@link XR10#xrSyncActions SyncActions}. E.g. if both {@code changedSinceLastSync} and {@code currentState} are {@link XR10#XR_TRUE TRUE} then a rising edge ({@link XR10#XR_FALSE FALSE} to {@link XR10#XR_TRUE TRUE}) has taken place. */
+ @NativeType("XrBool32")
+ public boolean changedSinceLastSync() { return nchangedSinceLastSync(address()) != 0; }
+ /** the {@code XrTime} when this action’s value last changed. */
+ @NativeType("XrTime")
+ public long lastChangeTime() { return nlastChangeTime(address()); }
+ /** {@link XR10#XR_TRUE TRUE} if and only if there exists an input source that is contributing to the current state of this action. */
+ @NativeType("XrBool32")
+ public boolean isActive() { return nisActive(address()) != 0; }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrActionStateBoolean type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_BOOLEAN TYPE_ACTION_STATE_BOOLEAN} value to the {@link #type} field. */
+ public XrActionStateBoolean type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_BOOLEAN); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrActionStateBoolean next(@NativeType("void *") long value) { nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link #currentState} field. */
+ public XrActionStateBoolean currentState(@NativeType("XrBool32") boolean value) { ncurrentState(address(), value ? 1 : 0); return this; }
+ /** Sets the specified value to the {@link #changedSinceLastSync} field. */
+ public XrActionStateBoolean changedSinceLastSync(@NativeType("XrBool32") boolean value) { nchangedSinceLastSync(address(), value ? 1 : 0); return this; }
+ /** Sets the specified value to the {@link #lastChangeTime} field. */
+ public XrActionStateBoolean lastChangeTime(@NativeType("XrTime") long value) { nlastChangeTime(address(), value); return this; }
+ /** Sets the specified value to the {@link #isActive} field. */
+ public XrActionStateBoolean isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; }
/** Initializes this struct with the specified values. */
public XrActionStateBoolean set(
- int type,
- long next,
- boolean currentState,
- boolean changedSinceLastSync,
- long lastChangeTime,
+ int type,
+ long next,
+ boolean currentState,
+ boolean changedSinceLastSync,
+ long lastChangeTime,
boolean isActive
- ) {
- type(type);
- next(next);
- currentState(currentState);
- changedSinceLastSync(changedSinceLastSync);
- lastChangeTime(lastChangeTime);
- isActive(isActive);
+ ) {
+ type(type);
+ next(next);
+ currentState(currentState);
+ changedSinceLastSync(changedSinceLastSync);
+ lastChangeTime(lastChangeTime);
+ isActive(isActive);
return this;
}
@@ -174,29 +165,29 @@ public XrActionStateBoolean set(XrActionStateBoolean src) {
/** Returns a new {@code XrActionStateBoolean} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrActionStateBoolean malloc() {
- return new XrActionStateBoolean(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrActionStateBoolean.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrActionStateBoolean} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrActionStateBoolean calloc() {
- return new XrActionStateBoolean(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrActionStateBoolean.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrActionStateBoolean} instance allocated with {@link BufferUtils}. */
public static XrActionStateBoolean create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrActionStateBoolean(memAddress(container), container);
+ return wrap(XrActionStateBoolean.class, memAddress(container), container);
}
/** Returns a new {@code XrActionStateBoolean} instance for the specified memory address. */
public static XrActionStateBoolean create(long address) {
- return new XrActionStateBoolean(address, null);
+ return wrap(XrActionStateBoolean.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionStateBoolean createSafe(long address) {
- return address == NULL ? null : new XrActionStateBoolean(address, null);
+ return address == NULL ? null : wrap(XrActionStateBoolean.class, address);
}
/**
@@ -205,7 +196,7 @@ public static XrActionStateBoolean createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrActionStateBoolean.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -214,7 +205,7 @@ public static XrActionStateBoolean.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionStateBoolean.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -224,7 +215,7 @@ public static XrActionStateBoolean.Buffer calloc(int capacity) {
*/
public static XrActionStateBoolean.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -234,13 +225,13 @@ public static XrActionStateBoolean.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionStateBoolean.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionStateBoolean.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -249,7 +240,7 @@ public static XrActionStateBoolean.Buffer createSafe(long address, int capacity)
* @param stack the stack from which to allocate
*/
public static XrActionStateBoolean malloc(MemoryStack stack) {
- return new XrActionStateBoolean(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrActionStateBoolean.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -258,7 +249,7 @@ public static XrActionStateBoolean malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrActionStateBoolean calloc(MemoryStack stack) {
- return new XrActionStateBoolean(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrActionStateBoolean.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -268,7 +259,7 @@ public static XrActionStateBoolean calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrActionStateBoolean.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -278,38 +269,38 @@ public static XrActionStateBoolean.Buffer malloc(int capacity, MemoryStack stack
* @param capacity the buffer capacity
*/
public static XrActionStateBoolean.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStateBoolean.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrActionStateBoolean.NEXT); }
- /** Unsafe version of {@link #currentState}. */
- public static int ncurrentState(long struct) { return UNSAFE.getInt(null, struct + XrActionStateBoolean.CURRENTSTATE); }
- /** Unsafe version of {@link #changedSinceLastSync}. */
- public static int nchangedSinceLastSync(long struct) { return UNSAFE.getInt(null, struct + XrActionStateBoolean.CHANGEDSINCELASTSYNC); }
- /** Unsafe version of {@link #lastChangeTime}. */
- public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrActionStateBoolean.LASTCHANGETIME); }
- /** Unsafe version of {@link #isActive}. */
- public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrActionStateBoolean.ISACTIVE); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateBoolean.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStateBoolean.NEXT, value); }
- /** Unsafe version of {@link #currentState(boolean) currentState}. */
- public static void ncurrentState(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateBoolean.CURRENTSTATE, value); }
- /** Unsafe version of {@link #changedSinceLastSync(boolean) changedSinceLastSync}. */
- public static void nchangedSinceLastSync(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateBoolean.CHANGEDSINCELASTSYNC, value); }
- /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */
- public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrActionStateBoolean.LASTCHANGETIME, value); }
- /** Unsafe version of {@link #isActive(boolean) isActive}. */
- public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateBoolean.ISACTIVE, value); }
-
- // -----------------------------------
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStateBoolean.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrActionStateBoolean.NEXT); }
+ /** Unsafe version of {@link #currentState}. */
+ public static int ncurrentState(long struct) { return UNSAFE.getInt(null, struct + XrActionStateBoolean.CURRENTSTATE); }
+ /** Unsafe version of {@link #changedSinceLastSync}. */
+ public static int nchangedSinceLastSync(long struct) { return UNSAFE.getInt(null, struct + XrActionStateBoolean.CHANGEDSINCELASTSYNC); }
+ /** Unsafe version of {@link #lastChangeTime}. */
+ public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrActionStateBoolean.LASTCHANGETIME); }
+ /** Unsafe version of {@link #isActive}. */
+ public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrActionStateBoolean.ISACTIVE); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateBoolean.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStateBoolean.NEXT, value); }
+ /** Unsafe version of {@link #currentState(boolean) currentState}. */
+ public static void ncurrentState(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateBoolean.CURRENTSTATE, value); }
+ /** Unsafe version of {@link #changedSinceLastSync(boolean) changedSinceLastSync}. */
+ public static void nchangedSinceLastSync(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateBoolean.CHANGEDSINCELASTSYNC, value); }
+ /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */
+ public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrActionStateBoolean.LASTCHANGETIME, value); }
+ /** Unsafe version of {@link #isActive(boolean) isActive}. */
+ public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateBoolean.ISACTIVE, value); }
+
+ // -----------------------------------
/** An array of {@link XrActionStateBoolean} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -319,9 +310,9 @@ public static class Buffer extends StructBuffer im
/**
* Creates a new {@code XrActionStateBoolean.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrActionStateBoolean#SIZEOF}, and its mark will be undefined.
+ * by {@link XrActionStateBoolean#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -346,40 +337,40 @@ protected Buffer self() {
protected XrActionStateBoolean getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrActionStateBoolean#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrActionStateBoolean.ntype(address()); }
- /** @return the value of the {@link XrActionStateBoolean#next} field. */
- @NativeType("void *")
- public long next() { return XrActionStateBoolean.nnext(address()); }
- /** @return the value of the {@link XrActionStateBoolean#currentState} field. */
- @NativeType("XrBool32")
- public boolean currentState() { return XrActionStateBoolean.ncurrentState(address()) != 0; }
- /** @return the value of the {@link XrActionStateBoolean#changedSinceLastSync} field. */
- @NativeType("XrBool32")
- public boolean changedSinceLastSync() { return XrActionStateBoolean.nchangedSinceLastSync(address()) != 0; }
- /** @return the value of the {@link XrActionStateBoolean#lastChangeTime} field. */
- @NativeType("XrTime")
- public long lastChangeTime() { return XrActionStateBoolean.nlastChangeTime(address()); }
- /** @return the value of the {@link XrActionStateBoolean#isActive} field. */
- @NativeType("XrBool32")
- public boolean isActive() { return XrActionStateBoolean.nisActive(address()) != 0; }
-
- /** Sets the specified value to the {@link XrActionStateBoolean#type} field. */
- public XrActionStateBoolean.Buffer type(@NativeType("XrStructureType") int value) { XrActionStateBoolean.ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_BOOLEAN TYPE_ACTION_STATE_BOOLEAN} value to the {@link XrActionStateBoolean#type} field. */
- public XrActionStateBoolean.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_BOOLEAN); }
- /** Sets the specified value to the {@link XrActionStateBoolean#next} field. */
- public XrActionStateBoolean.Buffer next(@NativeType("void *") long value) { XrActionStateBoolean.nnext(address(), value); return this; }
- /** Sets the specified value to the {@link XrActionStateBoolean#currentState} field. */
- public XrActionStateBoolean.Buffer currentState(@NativeType("XrBool32") boolean value) { XrActionStateBoolean.ncurrentState(address(), value ? 1 : 0); return this; }
- /** Sets the specified value to the {@link XrActionStateBoolean#changedSinceLastSync} field. */
- public XrActionStateBoolean.Buffer changedSinceLastSync(@NativeType("XrBool32") boolean value) { XrActionStateBoolean.nchangedSinceLastSync(address(), value ? 1 : 0); return this; }
- /** Sets the specified value to the {@link XrActionStateBoolean#lastChangeTime} field. */
- public XrActionStateBoolean.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrActionStateBoolean.nlastChangeTime(address(), value); return this; }
- /** Sets the specified value to the {@link XrActionStateBoolean#isActive} field. */
- public XrActionStateBoolean.Buffer isActive(@NativeType("XrBool32") boolean value) { XrActionStateBoolean.nisActive(address(), value ? 1 : 0); return this; }
+
+ /** @return the value of the {@link XrActionStateBoolean#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrActionStateBoolean.ntype(address()); }
+ /** @return the value of the {@link XrActionStateBoolean#next} field. */
+ @NativeType("void *")
+ public long next() { return XrActionStateBoolean.nnext(address()); }
+ /** @return the value of the {@link XrActionStateBoolean#currentState} field. */
+ @NativeType("XrBool32")
+ public boolean currentState() { return XrActionStateBoolean.ncurrentState(address()) != 0; }
+ /** @return the value of the {@link XrActionStateBoolean#changedSinceLastSync} field. */
+ @NativeType("XrBool32")
+ public boolean changedSinceLastSync() { return XrActionStateBoolean.nchangedSinceLastSync(address()) != 0; }
+ /** @return the value of the {@link XrActionStateBoolean#lastChangeTime} field. */
+ @NativeType("XrTime")
+ public long lastChangeTime() { return XrActionStateBoolean.nlastChangeTime(address()); }
+ /** @return the value of the {@link XrActionStateBoolean#isActive} field. */
+ @NativeType("XrBool32")
+ public boolean isActive() { return XrActionStateBoolean.nisActive(address()) != 0; }
+
+ /** Sets the specified value to the {@link XrActionStateBoolean#type} field. */
+ public XrActionStateBoolean.Buffer type(@NativeType("XrStructureType") int value) { XrActionStateBoolean.ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_BOOLEAN TYPE_ACTION_STATE_BOOLEAN} value to the {@link XrActionStateBoolean#type} field. */
+ public XrActionStateBoolean.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_BOOLEAN); }
+ /** Sets the specified value to the {@link XrActionStateBoolean#next} field. */
+ public XrActionStateBoolean.Buffer next(@NativeType("void *") long value) { XrActionStateBoolean.nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link XrActionStateBoolean#currentState} field. */
+ public XrActionStateBoolean.Buffer currentState(@NativeType("XrBool32") boolean value) { XrActionStateBoolean.ncurrentState(address(), value ? 1 : 0); return this; }
+ /** Sets the specified value to the {@link XrActionStateBoolean#changedSinceLastSync} field. */
+ public XrActionStateBoolean.Buffer changedSinceLastSync(@NativeType("XrBool32") boolean value) { XrActionStateBoolean.nchangedSinceLastSync(address(), value ? 1 : 0); return this; }
+ /** Sets the specified value to the {@link XrActionStateBoolean#lastChangeTime} field. */
+ public XrActionStateBoolean.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrActionStateBoolean.nlastChangeTime(address(), value); return this; }
+ /** Sets the specified value to the {@link XrActionStateBoolean#isActive} field. */
+ public XrActionStateBoolean.Buffer isActive(@NativeType("XrBool32") boolean value) { XrActionStateBoolean.nisActive(address(), value ? 1 : 0); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateFloat.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateFloat.java
index 6394a33fa1..7eae78b565 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateFloat.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateFloat.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Floating point action state.
*
@@ -44,8 +44,8 @@
* XrTime {@link #lastChangeTime};
* XrBool32 {@link #isActive};
* }
- */
-public class XrActionStateFloat extends Struct implements NativeResource {
+ */
+public class XrActionStateFloat extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -55,41 +55,32 @@ public class XrActionStateFloat extends Struct implements Na
/** The struct member offsets. */
public static final int
- TYPE,
- NEXT,
- CURRENTSTATE,
- CHANGEDSINCELASTSYNC,
- LASTCHANGETIME,
- ISACTIVE;
+ TYPE,
+ NEXT,
+ CURRENTSTATE,
+ CHANGEDSINCELASTSYNC,
+ LASTCHANGETIME,
+ ISACTIVE;
static {
- Layout layout = __struct(
- __member(4),
- __member(POINTER_SIZE),
- __member(4),
- __member(4),
- __member(8),
+ Layout layout = __struct(
+ __member(4),
+ __member(POINTER_SIZE),
+ __member(4),
+ __member(4),
+ __member(8),
__member(4)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- TYPE = layout.offsetof(0);
- NEXT = layout.offsetof(1);
- CURRENTSTATE = layout.offsetof(2);
- CHANGEDSINCELASTSYNC = layout.offsetof(3);
- LASTCHANGETIME = layout.offsetof(4);
- ISACTIVE = layout.offsetof(5);
- }
-
- protected XrActionStateFloat(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrActionStateFloat create(long address, @Nullable ByteBuffer container) {
- return new XrActionStateFloat(address, container);
+ TYPE = layout.offsetof(0);
+ NEXT = layout.offsetof(1);
+ CURRENTSTATE = layout.offsetof(2);
+ CHANGEDSINCELASTSYNC = layout.offsetof(3);
+ LASTCHANGETIME = layout.offsetof(4);
+ ISACTIVE = layout.offsetof(5);
}
/**
@@ -104,55 +95,55 @@ public XrActionStateFloat(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the {@code XrStructureType} of this structure. */
- @NativeType("XrStructureType")
- public int type() { return ntype(address()); }
- /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
- @NativeType("void *")
- public long next() { return nnext(address()); }
- /** the current state of the Action. */
- public float currentState() { return ncurrentState(address()); }
- /** {@link XR10#XR_TRUE TRUE} if the value of {@code currentState} is different than it was before the most recent call to {@link XR10#xrSyncActions SyncActions}. */
- @NativeType("XrBool32")
- public boolean changedSinceLastSync() { return nchangedSinceLastSync(address()) != 0; }
- /** the {@code XrTime} in nanoseconds since this action’s value last changed. */
- @NativeType("XrTime")
- public long lastChangeTime() { return nlastChangeTime(address()); }
- /** {@link XR10#XR_TRUE TRUE} if and only if there exists an input source that is contributing to the current state of this action. */
- @NativeType("XrBool32")
- public boolean isActive() { return nisActive(address()) != 0; }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrActionStateFloat type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_FLOAT TYPE_ACTION_STATE_FLOAT} value to the {@link #type} field. */
- public XrActionStateFloat type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_FLOAT); }
- /** Sets the specified value to the {@link #next} field. */
- public XrActionStateFloat next(@NativeType("void *") long value) { nnext(address(), value); return this; }
- /** Sets the specified value to the {@link #currentState} field. */
- public XrActionStateFloat currentState(float value) { ncurrentState(address(), value); return this; }
- /** Sets the specified value to the {@link #changedSinceLastSync} field. */
- public XrActionStateFloat changedSinceLastSync(@NativeType("XrBool32") boolean value) { nchangedSinceLastSync(address(), value ? 1 : 0); return this; }
- /** Sets the specified value to the {@link #lastChangeTime} field. */
- public XrActionStateFloat lastChangeTime(@NativeType("XrTime") long value) { nlastChangeTime(address(), value); return this; }
- /** Sets the specified value to the {@link #isActive} field. */
- public XrActionStateFloat isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
+ @NativeType("void *")
+ public long next() { return nnext(address()); }
+ /** the current state of the Action. */
+ public float currentState() { return ncurrentState(address()); }
+ /** {@link XR10#XR_TRUE TRUE} if the value of {@code currentState} is different than it was before the most recent call to {@link XR10#xrSyncActions SyncActions}. */
+ @NativeType("XrBool32")
+ public boolean changedSinceLastSync() { return nchangedSinceLastSync(address()) != 0; }
+ /** the {@code XrTime} in nanoseconds since this action’s value last changed. */
+ @NativeType("XrTime")
+ public long lastChangeTime() { return nlastChangeTime(address()); }
+ /** {@link XR10#XR_TRUE TRUE} if and only if there exists an input source that is contributing to the current state of this action. */
+ @NativeType("XrBool32")
+ public boolean isActive() { return nisActive(address()) != 0; }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrActionStateFloat type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_FLOAT TYPE_ACTION_STATE_FLOAT} value to the {@link #type} field. */
+ public XrActionStateFloat type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_FLOAT); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrActionStateFloat next(@NativeType("void *") long value) { nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link #currentState} field. */
+ public XrActionStateFloat currentState(float value) { ncurrentState(address(), value); return this; }
+ /** Sets the specified value to the {@link #changedSinceLastSync} field. */
+ public XrActionStateFloat changedSinceLastSync(@NativeType("XrBool32") boolean value) { nchangedSinceLastSync(address(), value ? 1 : 0); return this; }
+ /** Sets the specified value to the {@link #lastChangeTime} field. */
+ public XrActionStateFloat lastChangeTime(@NativeType("XrTime") long value) { nlastChangeTime(address(), value); return this; }
+ /** Sets the specified value to the {@link #isActive} field. */
+ public XrActionStateFloat isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; }
/** Initializes this struct with the specified values. */
public XrActionStateFloat set(
- int type,
- long next,
- float currentState,
- boolean changedSinceLastSync,
- long lastChangeTime,
+ int type,
+ long next,
+ float currentState,
+ boolean changedSinceLastSync,
+ long lastChangeTime,
boolean isActive
- ) {
- type(type);
- next(next);
- currentState(currentState);
- changedSinceLastSync(changedSinceLastSync);
- lastChangeTime(lastChangeTime);
- isActive(isActive);
+ ) {
+ type(type);
+ next(next);
+ currentState(currentState);
+ changedSinceLastSync(changedSinceLastSync);
+ lastChangeTime(lastChangeTime);
+ isActive(isActive);
return this;
}
@@ -173,29 +164,29 @@ public XrActionStateFloat set(XrActionStateFloat src) {
/** Returns a new {@code XrActionStateFloat} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrActionStateFloat malloc() {
- return new XrActionStateFloat(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrActionStateFloat.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrActionStateFloat} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrActionStateFloat calloc() {
- return new XrActionStateFloat(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrActionStateFloat.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrActionStateFloat} instance allocated with {@link BufferUtils}. */
public static XrActionStateFloat create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrActionStateFloat(memAddress(container), container);
+ return wrap(XrActionStateFloat.class, memAddress(container), container);
}
/** Returns a new {@code XrActionStateFloat} instance for the specified memory address. */
public static XrActionStateFloat create(long address) {
- return new XrActionStateFloat(address, null);
+ return wrap(XrActionStateFloat.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionStateFloat createSafe(long address) {
- return address == NULL ? null : new XrActionStateFloat(address, null);
+ return address == NULL ? null : wrap(XrActionStateFloat.class, address);
}
/**
@@ -204,7 +195,7 @@ public static XrActionStateFloat createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrActionStateFloat.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -213,7 +204,7 @@ public static XrActionStateFloat.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionStateFloat.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -223,7 +214,7 @@ public static XrActionStateFloat.Buffer calloc(int capacity) {
*/
public static XrActionStateFloat.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -233,13 +224,13 @@ public static XrActionStateFloat.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionStateFloat.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionStateFloat.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -248,7 +239,7 @@ public static XrActionStateFloat.Buffer createSafe(long address, int capacity) {
* @param stack the stack from which to allocate
*/
public static XrActionStateFloat malloc(MemoryStack stack) {
- return new XrActionStateFloat(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrActionStateFloat.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -257,7 +248,7 @@ public static XrActionStateFloat malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrActionStateFloat calloc(MemoryStack stack) {
- return new XrActionStateFloat(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrActionStateFloat.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -267,7 +258,7 @@ public static XrActionStateFloat calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrActionStateFloat.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -277,38 +268,38 @@ public static XrActionStateFloat.Buffer malloc(int capacity, MemoryStack stack)
* @param capacity the buffer capacity
*/
public static XrActionStateFloat.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStateFloat.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrActionStateFloat.NEXT); }
- /** Unsafe version of {@link #currentState}. */
- public static float ncurrentState(long struct) { return UNSAFE.getFloat(null, struct + XrActionStateFloat.CURRENTSTATE); }
- /** Unsafe version of {@link #changedSinceLastSync}. */
- public static int nchangedSinceLastSync(long struct) { return UNSAFE.getInt(null, struct + XrActionStateFloat.CHANGEDSINCELASTSYNC); }
- /** Unsafe version of {@link #lastChangeTime}. */
- public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrActionStateFloat.LASTCHANGETIME); }
- /** Unsafe version of {@link #isActive}. */
- public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrActionStateFloat.ISACTIVE); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateFloat.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStateFloat.NEXT, value); }
- /** Unsafe version of {@link #currentState(float) currentState}. */
- public static void ncurrentState(long struct, float value) { UNSAFE.putFloat(null, struct + XrActionStateFloat.CURRENTSTATE, value); }
- /** Unsafe version of {@link #changedSinceLastSync(boolean) changedSinceLastSync}. */
- public static void nchangedSinceLastSync(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateFloat.CHANGEDSINCELASTSYNC, value); }
- /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */
- public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrActionStateFloat.LASTCHANGETIME, value); }
- /** Unsafe version of {@link #isActive(boolean) isActive}. */
- public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateFloat.ISACTIVE, value); }
-
- // -----------------------------------
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStateFloat.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrActionStateFloat.NEXT); }
+ /** Unsafe version of {@link #currentState}. */
+ public static float ncurrentState(long struct) { return UNSAFE.getFloat(null, struct + XrActionStateFloat.CURRENTSTATE); }
+ /** Unsafe version of {@link #changedSinceLastSync}. */
+ public static int nchangedSinceLastSync(long struct) { return UNSAFE.getInt(null, struct + XrActionStateFloat.CHANGEDSINCELASTSYNC); }
+ /** Unsafe version of {@link #lastChangeTime}. */
+ public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrActionStateFloat.LASTCHANGETIME); }
+ /** Unsafe version of {@link #isActive}. */
+ public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrActionStateFloat.ISACTIVE); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateFloat.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStateFloat.NEXT, value); }
+ /** Unsafe version of {@link #currentState(float) currentState}. */
+ public static void ncurrentState(long struct, float value) { UNSAFE.putFloat(null, struct + XrActionStateFloat.CURRENTSTATE, value); }
+ /** Unsafe version of {@link #changedSinceLastSync(boolean) changedSinceLastSync}. */
+ public static void nchangedSinceLastSync(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateFloat.CHANGEDSINCELASTSYNC, value); }
+ /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */
+ public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrActionStateFloat.LASTCHANGETIME, value); }
+ /** Unsafe version of {@link #isActive(boolean) isActive}. */
+ public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateFloat.ISACTIVE, value); }
+
+ // -----------------------------------
/** An array of {@link XrActionStateFloat} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -318,9 +309,9 @@ public static class Buffer extends StructBuffer impl
/**
* Creates a new {@code XrActionStateFloat.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrActionStateFloat#SIZEOF}, and its mark will be undefined.
+ * by {@link XrActionStateFloat#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -345,39 +336,39 @@ protected Buffer self() {
protected XrActionStateFloat getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrActionStateFloat#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrActionStateFloat.ntype(address()); }
- /** @return the value of the {@link XrActionStateFloat#next} field. */
- @NativeType("void *")
- public long next() { return XrActionStateFloat.nnext(address()); }
- /** @return the value of the {@link XrActionStateFloat#currentState} field. */
- public float currentState() { return XrActionStateFloat.ncurrentState(address()); }
- /** @return the value of the {@link XrActionStateFloat#changedSinceLastSync} field. */
- @NativeType("XrBool32")
- public boolean changedSinceLastSync() { return XrActionStateFloat.nchangedSinceLastSync(address()) != 0; }
- /** @return the value of the {@link XrActionStateFloat#lastChangeTime} field. */
- @NativeType("XrTime")
- public long lastChangeTime() { return XrActionStateFloat.nlastChangeTime(address()); }
- /** @return the value of the {@link XrActionStateFloat#isActive} field. */
- @NativeType("XrBool32")
- public boolean isActive() { return XrActionStateFloat.nisActive(address()) != 0; }
-
- /** Sets the specified value to the {@link XrActionStateFloat#type} field. */
- public XrActionStateFloat.Buffer type(@NativeType("XrStructureType") int value) { XrActionStateFloat.ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_FLOAT TYPE_ACTION_STATE_FLOAT} value to the {@link XrActionStateFloat#type} field. */
- public XrActionStateFloat.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_FLOAT); }
- /** Sets the specified value to the {@link XrActionStateFloat#next} field. */
- public XrActionStateFloat.Buffer next(@NativeType("void *") long value) { XrActionStateFloat.nnext(address(), value); return this; }
- /** Sets the specified value to the {@link XrActionStateFloat#currentState} field. */
- public XrActionStateFloat.Buffer currentState(float value) { XrActionStateFloat.ncurrentState(address(), value); return this; }
- /** Sets the specified value to the {@link XrActionStateFloat#changedSinceLastSync} field. */
- public XrActionStateFloat.Buffer changedSinceLastSync(@NativeType("XrBool32") boolean value) { XrActionStateFloat.nchangedSinceLastSync(address(), value ? 1 : 0); return this; }
- /** Sets the specified value to the {@link XrActionStateFloat#lastChangeTime} field. */
- public XrActionStateFloat.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrActionStateFloat.nlastChangeTime(address(), value); return this; }
- /** Sets the specified value to the {@link XrActionStateFloat#isActive} field. */
- public XrActionStateFloat.Buffer isActive(@NativeType("XrBool32") boolean value) { XrActionStateFloat.nisActive(address(), value ? 1 : 0); return this; }
+
+ /** @return the value of the {@link XrActionStateFloat#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrActionStateFloat.ntype(address()); }
+ /** @return the value of the {@link XrActionStateFloat#next} field. */
+ @NativeType("void *")
+ public long next() { return XrActionStateFloat.nnext(address()); }
+ /** @return the value of the {@link XrActionStateFloat#currentState} field. */
+ public float currentState() { return XrActionStateFloat.ncurrentState(address()); }
+ /** @return the value of the {@link XrActionStateFloat#changedSinceLastSync} field. */
+ @NativeType("XrBool32")
+ public boolean changedSinceLastSync() { return XrActionStateFloat.nchangedSinceLastSync(address()) != 0; }
+ /** @return the value of the {@link XrActionStateFloat#lastChangeTime} field. */
+ @NativeType("XrTime")
+ public long lastChangeTime() { return XrActionStateFloat.nlastChangeTime(address()); }
+ /** @return the value of the {@link XrActionStateFloat#isActive} field. */
+ @NativeType("XrBool32")
+ public boolean isActive() { return XrActionStateFloat.nisActive(address()) != 0; }
+
+ /** Sets the specified value to the {@link XrActionStateFloat#type} field. */
+ public XrActionStateFloat.Buffer type(@NativeType("XrStructureType") int value) { XrActionStateFloat.ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_FLOAT TYPE_ACTION_STATE_FLOAT} value to the {@link XrActionStateFloat#type} field. */
+ public XrActionStateFloat.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_FLOAT); }
+ /** Sets the specified value to the {@link XrActionStateFloat#next} field. */
+ public XrActionStateFloat.Buffer next(@NativeType("void *") long value) { XrActionStateFloat.nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link XrActionStateFloat#currentState} field. */
+ public XrActionStateFloat.Buffer currentState(float value) { XrActionStateFloat.ncurrentState(address(), value); return this; }
+ /** Sets the specified value to the {@link XrActionStateFloat#changedSinceLastSync} field. */
+ public XrActionStateFloat.Buffer changedSinceLastSync(@NativeType("XrBool32") boolean value) { XrActionStateFloat.nchangedSinceLastSync(address(), value ? 1 : 0); return this; }
+ /** Sets the specified value to the {@link XrActionStateFloat#lastChangeTime} field. */
+ public XrActionStateFloat.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrActionStateFloat.nlastChangeTime(address(), value); return this; }
+ /** Sets the specified value to the {@link XrActionStateFloat#isActive} field. */
+ public XrActionStateFloat.Buffer isActive(@NativeType("XrBool32") boolean value) { XrActionStateFloat.nisActive(address(), value ? 1 : 0); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateGetInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateGetInfo.java
index f2428d36e7..b60f849b70 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateGetInfo.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateGetInfo.java
@@ -4,18 +4,18 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Information to get action state.
*
@@ -44,8 +44,8 @@
* XrAction {@link #action};
* XrPath {@link #subactionPath};
* }
- */
-public class XrActionStateGetInfo extends Struct implements NativeResource {
+ */
+public class XrActionStateGetInfo extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -55,35 +55,26 @@ public class XrActionStateGetInfo extends Struct implement
/** The struct member offsets. */
public static final int
- TYPE,
- NEXT,
- ACTION,
- SUBACTIONPATH;
+ TYPE,
+ NEXT,
+ ACTION,
+ SUBACTIONPATH;
static {
- Layout layout = __struct(
- __member(4),
- __member(POINTER_SIZE),
- __member(POINTER_SIZE),
+ Layout layout = __struct(
+ __member(4),
+ __member(POINTER_SIZE),
+ __member(POINTER_SIZE),
__member(8)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- TYPE = layout.offsetof(0);
- NEXT = layout.offsetof(1);
- ACTION = layout.offsetof(2);
- SUBACTIONPATH = layout.offsetof(3);
- }
-
- protected XrActionStateGetInfo(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrActionStateGetInfo create(long address, @Nullable ByteBuffer container) {
- return new XrActionStateGetInfo(address, container);
+ TYPE = layout.offsetof(0);
+ NEXT = layout.offsetof(1);
+ ACTION = layout.offsetof(2);
+ SUBACTIONPATH = layout.offsetof(3);
}
/**
@@ -98,42 +89,42 @@ public XrActionStateGetInfo(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the {@code XrStructureType} of this structure. */
- @NativeType("XrStructureType")
- public int type() { return ntype(address()); }
- /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
- @NativeType("void const *")
- public long next() { return nnext(address()); }
- /** the {@code XrAction} being queried. */
- @NativeType("XrAction")
- public long action() { return naction(address()); }
- /** the subaction path {@code XrPath} to query data from, or {@link XR10#XR_NULL_PATH NULL_PATH} to specify all subaction paths. If the subaction path is specified, it is one of the subaction paths that were specified when the action was created. If the subaction path was not specified when the action was created, the runtime must return {@link XR10#XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}. If this parameter is specified, the runtime must return data that originates only from the subaction paths specified. */
- @NativeType("XrPath")
- public long subactionPath() { return nsubactionPath(address()); }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrActionStateGetInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_GET_INFO TYPE_ACTION_STATE_GET_INFO} value to the {@link #type} field. */
- public XrActionStateGetInfo type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_GET_INFO); }
- /** Sets the specified value to the {@link #next} field. */
- public XrActionStateGetInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
- /** Sets the specified value to the {@link #action} field. */
- public XrActionStateGetInfo action(XrAction value) { naction(address(), value); return this; }
- /** Sets the specified value to the {@link #subactionPath} field. */
- public XrActionStateGetInfo subactionPath(@NativeType("XrPath") long value) { nsubactionPath(address(), value); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
+ @NativeType("void const *")
+ public long next() { return nnext(address()); }
+ /** the {@code XrAction} being queried. */
+ @NativeType("XrAction")
+ public long action() { return naction(address()); }
+ /** the subaction path {@code XrPath} to query data from, or {@link XR10#XR_NULL_PATH NULL_PATH} to specify all subaction paths. If the subaction path is specified, it is one of the subaction paths that were specified when the action was created. If the subaction path was not specified when the action was created, the runtime must return {@link XR10#XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}. If this parameter is specified, the runtime must return data that originates only from the subaction paths specified. */
+ @NativeType("XrPath")
+ public long subactionPath() { return nsubactionPath(address()); }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrActionStateGetInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_GET_INFO TYPE_ACTION_STATE_GET_INFO} value to the {@link #type} field. */
+ public XrActionStateGetInfo type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_GET_INFO); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrActionStateGetInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link #action} field. */
+ public XrActionStateGetInfo action(XrAction value) { naction(address(), value); return this; }
+ /** Sets the specified value to the {@link #subactionPath} field. */
+ public XrActionStateGetInfo subactionPath(@NativeType("XrPath") long value) { nsubactionPath(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrActionStateGetInfo set(
- int type,
- long next,
- XrAction action,
+ int type,
+ long next,
+ XrAction action,
long subactionPath
- ) {
- type(type);
- next(next);
- action(action);
- subactionPath(subactionPath);
+ ) {
+ type(type);
+ next(next);
+ action(action);
+ subactionPath(subactionPath);
return this;
}
@@ -154,29 +145,29 @@ public XrActionStateGetInfo set(XrActionStateGetInfo src) {
/** Returns a new {@code XrActionStateGetInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrActionStateGetInfo malloc() {
- return new XrActionStateGetInfo(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrActionStateGetInfo.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrActionStateGetInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrActionStateGetInfo calloc() {
- return new XrActionStateGetInfo(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrActionStateGetInfo.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrActionStateGetInfo} instance allocated with {@link BufferUtils}. */
public static XrActionStateGetInfo create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrActionStateGetInfo(memAddress(container), container);
+ return wrap(XrActionStateGetInfo.class, memAddress(container), container);
}
/** Returns a new {@code XrActionStateGetInfo} instance for the specified memory address. */
public static XrActionStateGetInfo create(long address) {
- return new XrActionStateGetInfo(address, null);
+ return wrap(XrActionStateGetInfo.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionStateGetInfo createSafe(long address) {
- return address == NULL ? null : new XrActionStateGetInfo(address, null);
+ return address == NULL ? null : wrap(XrActionStateGetInfo.class, address);
}
/**
@@ -185,7 +176,7 @@ public static XrActionStateGetInfo createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrActionStateGetInfo.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -194,7 +185,7 @@ public static XrActionStateGetInfo.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionStateGetInfo.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -204,7 +195,7 @@ public static XrActionStateGetInfo.Buffer calloc(int capacity) {
*/
public static XrActionStateGetInfo.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -214,13 +205,13 @@ public static XrActionStateGetInfo.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionStateGetInfo.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionStateGetInfo.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -229,7 +220,7 @@ public static XrActionStateGetInfo.Buffer createSafe(long address, int capacity)
* @param stack the stack from which to allocate
*/
public static XrActionStateGetInfo malloc(MemoryStack stack) {
- return new XrActionStateGetInfo(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrActionStateGetInfo.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -238,7 +229,7 @@ public static XrActionStateGetInfo malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrActionStateGetInfo calloc(MemoryStack stack) {
- return new XrActionStateGetInfo(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrActionStateGetInfo.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -248,7 +239,7 @@ public static XrActionStateGetInfo calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrActionStateGetInfo.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -258,28 +249,28 @@ public static XrActionStateGetInfo.Buffer malloc(int capacity, MemoryStack stack
* @param capacity the buffer capacity
*/
public static XrActionStateGetInfo.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStateGetInfo.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrActionStateGetInfo.NEXT); }
- /** Unsafe version of {@link #action}. */
- public static long naction(long struct) { return memGetAddress(struct + XrActionStateGetInfo.ACTION); }
- /** Unsafe version of {@link #subactionPath}. */
- public static long nsubactionPath(long struct) { return UNSAFE.getLong(null, struct + XrActionStateGetInfo.SUBACTIONPATH); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateGetInfo.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStateGetInfo.NEXT, value); }
- /** Unsafe version of {@link #action(XrAction) action}. */
- public static void naction(long struct, XrAction value) { memPutAddress(struct + XrActionStateGetInfo.ACTION, value.address()); }
- /** Unsafe version of {@link #subactionPath(long) subactionPath}. */
- public static void nsubactionPath(long struct, long value) { UNSAFE.putLong(null, struct + XrActionStateGetInfo.SUBACTIONPATH, value); }
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStateGetInfo.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrActionStateGetInfo.NEXT); }
+ /** Unsafe version of {@link #action}. */
+ public static long naction(long struct) { return memGetAddress(struct + XrActionStateGetInfo.ACTION); }
+ /** Unsafe version of {@link #subactionPath}. */
+ public static long nsubactionPath(long struct) { return UNSAFE.getLong(null, struct + XrActionStateGetInfo.SUBACTIONPATH); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateGetInfo.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStateGetInfo.NEXT, value); }
+ /** Unsafe version of {@link #action(XrAction) action}. */
+ public static void naction(long struct, XrAction value) { memPutAddress(struct + XrActionStateGetInfo.ACTION, value.address()); }
+ /** Unsafe version of {@link #subactionPath(long) subactionPath}. */
+ public static void nsubactionPath(long struct, long value) { UNSAFE.putLong(null, struct + XrActionStateGetInfo.SUBACTIONPATH, value); }
/**
* Validates pointer members that should not be {@code NULL}.
@@ -288,9 +279,9 @@ public static XrActionStateGetInfo.Buffer calloc(int capacity, MemoryStack stack
*/
public static void validate(long struct) {
check(memGetAddress(struct + XrActionStateGetInfo.ACTION));
- }
+ }
- // -----------------------------------
+ // -----------------------------------
/** An array of {@link XrActionStateGetInfo} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -300,9 +291,9 @@ public static class Buffer extends StructBuffer im
/**
* Creates a new {@code XrActionStateGetInfo.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrActionStateGetInfo#SIZEOF}, and its mark will be undefined.
+ * by {@link XrActionStateGetInfo#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -327,30 +318,30 @@ protected Buffer self() {
protected XrActionStateGetInfo getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrActionStateGetInfo#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrActionStateGetInfo.ntype(address()); }
- /** @return the value of the {@link XrActionStateGetInfo#next} field. */
- @NativeType("void const *")
- public long next() { return XrActionStateGetInfo.nnext(address()); }
- /** @return the value of the {@link XrActionStateGetInfo#action} field. */
- @NativeType("XrAction")
- public long action() { return XrActionStateGetInfo.naction(address()); }
- /** @return the value of the {@link XrActionStateGetInfo#subactionPath} field. */
- @NativeType("XrPath")
- public long subactionPath() { return XrActionStateGetInfo.nsubactionPath(address()); }
-
- /** Sets the specified value to the {@link XrActionStateGetInfo#type} field. */
- public XrActionStateGetInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionStateGetInfo.ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_GET_INFO TYPE_ACTION_STATE_GET_INFO} value to the {@link XrActionStateGetInfo#type} field. */
- public XrActionStateGetInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_GET_INFO); }
- /** Sets the specified value to the {@link XrActionStateGetInfo#next} field. */
- public XrActionStateGetInfo.Buffer next(@NativeType("void const *") long value) { XrActionStateGetInfo.nnext(address(), value); return this; }
- /** Sets the specified value to the {@link XrActionStateGetInfo#action} field. */
- public XrActionStateGetInfo.Buffer action(XrAction value) { XrActionStateGetInfo.naction(address(), value); return this; }
- /** Sets the specified value to the {@link XrActionStateGetInfo#subactionPath} field. */
- public XrActionStateGetInfo.Buffer subactionPath(@NativeType("XrPath") long value) { XrActionStateGetInfo.nsubactionPath(address(), value); return this; }
+
+ /** @return the value of the {@link XrActionStateGetInfo#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrActionStateGetInfo.ntype(address()); }
+ /** @return the value of the {@link XrActionStateGetInfo#next} field. */
+ @NativeType("void const *")
+ public long next() { return XrActionStateGetInfo.nnext(address()); }
+ /** @return the value of the {@link XrActionStateGetInfo#action} field. */
+ @NativeType("XrAction")
+ public long action() { return XrActionStateGetInfo.naction(address()); }
+ /** @return the value of the {@link XrActionStateGetInfo#subactionPath} field. */
+ @NativeType("XrPath")
+ public long subactionPath() { return XrActionStateGetInfo.nsubactionPath(address()); }
+
+ /** Sets the specified value to the {@link XrActionStateGetInfo#type} field. */
+ public XrActionStateGetInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionStateGetInfo.ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_GET_INFO TYPE_ACTION_STATE_GET_INFO} value to the {@link XrActionStateGetInfo#type} field. */
+ public XrActionStateGetInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_GET_INFO); }
+ /** Sets the specified value to the {@link XrActionStateGetInfo#next} field. */
+ public XrActionStateGetInfo.Buffer next(@NativeType("void const *") long value) { XrActionStateGetInfo.nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link XrActionStateGetInfo#action} field. */
+ public XrActionStateGetInfo.Buffer action(XrAction value) { XrActionStateGetInfo.naction(address(), value); return this; }
+ /** Sets the specified value to the {@link XrActionStateGetInfo#subactionPath} field. */
+ public XrActionStateGetInfo.Buffer subactionPath(@NativeType("XrPath") long value) { XrActionStateGetInfo.nsubactionPath(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStatePose.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStatePose.java
index f0403aa67c..df76dd5fb9 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStatePose.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStatePose.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Pose action metadata.
*
@@ -41,8 +41,8 @@
* void * {@link #next};
* XrBool32 {@link #isActive};
* }
- */
-public class XrActionStatePose extends Struct implements NativeResource {
+ */
+public class XrActionStatePose extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -52,32 +52,23 @@ public class XrActionStatePose extends Struct implements Nati
/** The struct member offsets. */
public static final int
- TYPE,
- NEXT,
- ISACTIVE;
+ TYPE,
+ NEXT,
+ ISACTIVE;
static {
- Layout layout = __struct(
- __member(4),
- __member(POINTER_SIZE),
+ Layout layout = __struct(
+ __member(4),
+ __member(POINTER_SIZE),
__member(4)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- TYPE = layout.offsetof(0);
- NEXT = layout.offsetof(1);
- ISACTIVE = layout.offsetof(2);
- }
-
- protected XrActionStatePose(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrActionStatePose create(long address, @Nullable ByteBuffer container) {
- return new XrActionStatePose(address, container);
+ TYPE = layout.offsetof(0);
+ NEXT = layout.offsetof(1);
+ ISACTIVE = layout.offsetof(2);
}
/**
@@ -92,35 +83,35 @@ public XrActionStatePose(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the {@code XrStructureType} of this structure. */
- @NativeType("XrStructureType")
- public int type() { return ntype(address()); }
- /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
- @NativeType("void *")
- public long next() { return nnext(address()); }
- /** {@link XR10#XR_TRUE TRUE} if and only if there exists an input source that is being tracked by this pose action. */
- @NativeType("XrBool32")
- public boolean isActive() { return nisActive(address()) != 0; }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrActionStatePose type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_POSE TYPE_ACTION_STATE_POSE} value to the {@link #type} field. */
- public XrActionStatePose type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_POSE); }
- /** Sets the specified value to the {@link #next} field. */
- public XrActionStatePose next(@NativeType("void *") long value) { nnext(address(), value); return this; }
- /** Sets the specified value to the {@link #isActive} field. */
- public XrActionStatePose isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
+ @NativeType("void *")
+ public long next() { return nnext(address()); }
+ /** {@link XR10#XR_TRUE TRUE} if and only if there exists an input source that is being tracked by this pose action. */
+ @NativeType("XrBool32")
+ public boolean isActive() { return nisActive(address()) != 0; }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrActionStatePose type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_POSE TYPE_ACTION_STATE_POSE} value to the {@link #type} field. */
+ public XrActionStatePose type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_POSE); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrActionStatePose next(@NativeType("void *") long value) { nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link #isActive} field. */
+ public XrActionStatePose isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; }
/** Initializes this struct with the specified values. */
public XrActionStatePose set(
- int type,
- long next,
+ int type,
+ long next,
boolean isActive
- ) {
- type(type);
- next(next);
- isActive(isActive);
+ ) {
+ type(type);
+ next(next);
+ isActive(isActive);
return this;
}
@@ -141,29 +132,29 @@ public XrActionStatePose set(XrActionStatePose src) {
/** Returns a new {@code XrActionStatePose} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrActionStatePose malloc() {
- return new XrActionStatePose(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrActionStatePose.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrActionStatePose} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrActionStatePose calloc() {
- return new XrActionStatePose(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrActionStatePose.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrActionStatePose} instance allocated with {@link BufferUtils}. */
public static XrActionStatePose create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrActionStatePose(memAddress(container), container);
+ return wrap(XrActionStatePose.class, memAddress(container), container);
}
/** Returns a new {@code XrActionStatePose} instance for the specified memory address. */
public static XrActionStatePose create(long address) {
- return new XrActionStatePose(address, null);
+ return wrap(XrActionStatePose.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionStatePose createSafe(long address) {
- return address == NULL ? null : new XrActionStatePose(address, null);
+ return address == NULL ? null : wrap(XrActionStatePose.class, address);
}
/**
@@ -172,7 +163,7 @@ public static XrActionStatePose createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrActionStatePose.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -181,7 +172,7 @@ public static XrActionStatePose.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionStatePose.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -191,7 +182,7 @@ public static XrActionStatePose.Buffer calloc(int capacity) {
*/
public static XrActionStatePose.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -201,13 +192,13 @@ public static XrActionStatePose.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionStatePose.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionStatePose.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -216,7 +207,7 @@ public static XrActionStatePose.Buffer createSafe(long address, int capacity) {
* @param stack the stack from which to allocate
*/
public static XrActionStatePose malloc(MemoryStack stack) {
- return new XrActionStatePose(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrActionStatePose.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -225,7 +216,7 @@ public static XrActionStatePose malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrActionStatePose calloc(MemoryStack stack) {
- return new XrActionStatePose(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrActionStatePose.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -235,7 +226,7 @@ public static XrActionStatePose calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrActionStatePose.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -245,26 +236,26 @@ public static XrActionStatePose.Buffer malloc(int capacity, MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrActionStatePose.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStatePose.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrActionStatePose.NEXT); }
- /** Unsafe version of {@link #isActive}. */
- public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrActionStatePose.ISACTIVE); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStatePose.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStatePose.NEXT, value); }
- /** Unsafe version of {@link #isActive(boolean) isActive}. */
- public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStatePose.ISACTIVE, value); }
-
- // -----------------------------------
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStatePose.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrActionStatePose.NEXT); }
+ /** Unsafe version of {@link #isActive}. */
+ public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrActionStatePose.ISACTIVE); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStatePose.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStatePose.NEXT, value); }
+ /** Unsafe version of {@link #isActive(boolean) isActive}. */
+ public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStatePose.ISACTIVE, value); }
+
+ // -----------------------------------
/** An array of {@link XrActionStatePose} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -274,9 +265,9 @@ public static class Buffer extends StructBuffer imple
/**
* Creates a new {@code XrActionStatePose.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrActionStatePose#SIZEOF}, and its mark will be undefined.
+ * by {@link XrActionStatePose#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -301,25 +292,25 @@ protected Buffer self() {
protected XrActionStatePose getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrActionStatePose#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrActionStatePose.ntype(address()); }
- /** @return the value of the {@link XrActionStatePose#next} field. */
- @NativeType("void *")
- public long next() { return XrActionStatePose.nnext(address()); }
- /** @return the value of the {@link XrActionStatePose#isActive} field. */
- @NativeType("XrBool32")
- public boolean isActive() { return XrActionStatePose.nisActive(address()) != 0; }
-
- /** Sets the specified value to the {@link XrActionStatePose#type} field. */
- public XrActionStatePose.Buffer type(@NativeType("XrStructureType") int value) { XrActionStatePose.ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_POSE TYPE_ACTION_STATE_POSE} value to the {@link XrActionStatePose#type} field. */
- public XrActionStatePose.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_POSE); }
- /** Sets the specified value to the {@link XrActionStatePose#next} field. */
- public XrActionStatePose.Buffer next(@NativeType("void *") long value) { XrActionStatePose.nnext(address(), value); return this; }
- /** Sets the specified value to the {@link XrActionStatePose#isActive} field. */
- public XrActionStatePose.Buffer isActive(@NativeType("XrBool32") boolean value) { XrActionStatePose.nisActive(address(), value ? 1 : 0); return this; }
+
+ /** @return the value of the {@link XrActionStatePose#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrActionStatePose.ntype(address()); }
+ /** @return the value of the {@link XrActionStatePose#next} field. */
+ @NativeType("void *")
+ public long next() { return XrActionStatePose.nnext(address()); }
+ /** @return the value of the {@link XrActionStatePose#isActive} field. */
+ @NativeType("XrBool32")
+ public boolean isActive() { return XrActionStatePose.nisActive(address()) != 0; }
+
+ /** Sets the specified value to the {@link XrActionStatePose#type} field. */
+ public XrActionStatePose.Buffer type(@NativeType("XrStructureType") int value) { XrActionStatePose.ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_POSE TYPE_ACTION_STATE_POSE} value to the {@link XrActionStatePose#type} field. */
+ public XrActionStatePose.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_POSE); }
+ /** Sets the specified value to the {@link XrActionStatePose#next} field. */
+ public XrActionStatePose.Buffer next(@NativeType("void *") long value) { XrActionStatePose.nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link XrActionStatePose#isActive} field. */
+ public XrActionStatePose.Buffer isActive(@NativeType("XrBool32") boolean value) { XrActionStatePose.nisActive(address(), value ? 1 : 0); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateVector2f.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateVector2f.java
index 33aaac6489..26913eea3b 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateVector2f.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateVector2f.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* 2D float vector action state.
*
@@ -44,8 +44,8 @@
* XrTime {@link #lastChangeTime};
* XrBool32 {@link #isActive};
* }
- */
-public class XrActionStateVector2f extends Struct implements NativeResource {
+ */
+public class XrActionStateVector2f extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -55,41 +55,32 @@ public class XrActionStateVector2f extends Struct impleme
/** The struct member offsets. */
public static final int
- TYPE,
- NEXT,
- CURRENTSTATE,
- CHANGEDSINCELASTSYNC,
- LASTCHANGETIME,
- ISACTIVE;
+ TYPE,
+ NEXT,
+ CURRENTSTATE,
+ CHANGEDSINCELASTSYNC,
+ LASTCHANGETIME,
+ ISACTIVE;
static {
- Layout layout = __struct(
- __member(4),
- __member(POINTER_SIZE),
- __member(XrVector2f.SIZEOF, XrVector2f.ALIGNOF),
- __member(4),
- __member(8),
+ Layout layout = __struct(
+ __member(4),
+ __member(POINTER_SIZE),
+ __member(XrVector2f.SIZEOF, XrVector2f.ALIGNOF),
+ __member(4),
+ __member(8),
__member(4)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- TYPE = layout.offsetof(0);
- NEXT = layout.offsetof(1);
- CURRENTSTATE = layout.offsetof(2);
- CHANGEDSINCELASTSYNC = layout.offsetof(3);
- LASTCHANGETIME = layout.offsetof(4);
- ISACTIVE = layout.offsetof(5);
- }
-
- protected XrActionStateVector2f(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrActionStateVector2f create(long address, @Nullable ByteBuffer container) {
- return new XrActionStateVector2f(address, container);
+ TYPE = layout.offsetof(0);
+ NEXT = layout.offsetof(1);
+ CURRENTSTATE = layout.offsetof(2);
+ CHANGEDSINCELASTSYNC = layout.offsetof(3);
+ LASTCHANGETIME = layout.offsetof(4);
+ ISACTIVE = layout.offsetof(5);
}
/**
@@ -104,57 +95,57 @@ public XrActionStateVector2f(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the {@code XrStructureType} of this structure. */
- @NativeType("XrStructureType")
- public int type() { return ntype(address()); }
- /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
- @NativeType("void *")
- public long next() { return nnext(address()); }
- /** the current {@link XrVector2f} state of the Action. */
- public XrVector2f currentState() { return ncurrentState(address()); }
- /** {@link XR10#XR_TRUE TRUE} if the value of {@code currentState} is different than it was before the most recent call to {@link XR10#xrSyncActions SyncActions}. */
- @NativeType("XrBool32")
- public boolean changedSinceLastSync() { return nchangedSinceLastSync(address()) != 0; }
- /** the {@code XrTime} in nanoseconds since this action’s value last changed. */
- @NativeType("XrTime")
- public long lastChangeTime() { return nlastChangeTime(address()); }
- /** {@link XR10#XR_TRUE TRUE} if and only if there exists an input source that is contributing to the current state of this action. */
- @NativeType("XrBool32")
- public boolean isActive() { return nisActive(address()) != 0; }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrActionStateVector2f type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_VECTOR2F TYPE_ACTION_STATE_VECTOR2F} value to the {@link #type} field. */
- public XrActionStateVector2f type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_VECTOR2F); }
- /** Sets the specified value to the {@link #next} field. */
- public XrActionStateVector2f next(@NativeType("void *") long value) { nnext(address(), value); return this; }
- /** Copies the specified {@link XrVector2f} to the {@link #currentState} field. */
- public XrActionStateVector2f currentState(XrVector2f value) { ncurrentState(address(), value); return this; }
- /** Passes the {@link #currentState} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrActionStateVector2f currentState(java.util.function.Consumer consumer) { consumer.accept(currentState()); return this; }
- /** Sets the specified value to the {@link #changedSinceLastSync} field. */
- public XrActionStateVector2f changedSinceLastSync(@NativeType("XrBool32") boolean value) { nchangedSinceLastSync(address(), value ? 1 : 0); return this; }
- /** Sets the specified value to the {@link #lastChangeTime} field. */
- public XrActionStateVector2f lastChangeTime(@NativeType("XrTime") long value) { nlastChangeTime(address(), value); return this; }
- /** Sets the specified value to the {@link #isActive} field. */
- public XrActionStateVector2f isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
+ @NativeType("void *")
+ public long next() { return nnext(address()); }
+ /** the current {@link XrVector2f} state of the Action. */
+ public XrVector2f currentState() { return ncurrentState(address()); }
+ /** {@link XR10#XR_TRUE TRUE} if the value of {@code currentState} is different than it was before the most recent call to {@link XR10#xrSyncActions SyncActions}. */
+ @NativeType("XrBool32")
+ public boolean changedSinceLastSync() { return nchangedSinceLastSync(address()) != 0; }
+ /** the {@code XrTime} in nanoseconds since this action’s value last changed. */
+ @NativeType("XrTime")
+ public long lastChangeTime() { return nlastChangeTime(address()); }
+ /** {@link XR10#XR_TRUE TRUE} if and only if there exists an input source that is contributing to the current state of this action. */
+ @NativeType("XrBool32")
+ public boolean isActive() { return nisActive(address()) != 0; }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrActionStateVector2f type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_VECTOR2F TYPE_ACTION_STATE_VECTOR2F} value to the {@link #type} field. */
+ public XrActionStateVector2f type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_VECTOR2F); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrActionStateVector2f next(@NativeType("void *") long value) { nnext(address(), value); return this; }
+ /** Copies the specified {@link XrVector2f} to the {@link #currentState} field. */
+ public XrActionStateVector2f currentState(XrVector2f value) { ncurrentState(address(), value); return this; }
+ /** Passes the {@link #currentState} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrActionStateVector2f currentState(java.util.function.Consumer consumer) { consumer.accept(currentState()); return this; }
+ /** Sets the specified value to the {@link #changedSinceLastSync} field. */
+ public XrActionStateVector2f changedSinceLastSync(@NativeType("XrBool32") boolean value) { nchangedSinceLastSync(address(), value ? 1 : 0); return this; }
+ /** Sets the specified value to the {@link #lastChangeTime} field. */
+ public XrActionStateVector2f lastChangeTime(@NativeType("XrTime") long value) { nlastChangeTime(address(), value); return this; }
+ /** Sets the specified value to the {@link #isActive} field. */
+ public XrActionStateVector2f isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; }
/** Initializes this struct with the specified values. */
public XrActionStateVector2f set(
- int type,
- long next,
- XrVector2f currentState,
- boolean changedSinceLastSync,
- long lastChangeTime,
+ int type,
+ long next,
+ XrVector2f currentState,
+ boolean changedSinceLastSync,
+ long lastChangeTime,
boolean isActive
- ) {
- type(type);
- next(next);
- currentState(currentState);
- changedSinceLastSync(changedSinceLastSync);
- lastChangeTime(lastChangeTime);
- isActive(isActive);
+ ) {
+ type(type);
+ next(next);
+ currentState(currentState);
+ changedSinceLastSync(changedSinceLastSync);
+ lastChangeTime(lastChangeTime);
+ isActive(isActive);
return this;
}
@@ -175,29 +166,29 @@ public XrActionStateVector2f set(XrActionStateVector2f src) {
/** Returns a new {@code XrActionStateVector2f} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrActionStateVector2f malloc() {
- return new XrActionStateVector2f(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrActionStateVector2f.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrActionStateVector2f} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrActionStateVector2f calloc() {
- return new XrActionStateVector2f(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrActionStateVector2f.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrActionStateVector2f} instance allocated with {@link BufferUtils}. */
public static XrActionStateVector2f create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrActionStateVector2f(memAddress(container), container);
+ return wrap(XrActionStateVector2f.class, memAddress(container), container);
}
/** Returns a new {@code XrActionStateVector2f} instance for the specified memory address. */
public static XrActionStateVector2f create(long address) {
- return new XrActionStateVector2f(address, null);
+ return wrap(XrActionStateVector2f.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionStateVector2f createSafe(long address) {
- return address == NULL ? null : new XrActionStateVector2f(address, null);
+ return address == NULL ? null : wrap(XrActionStateVector2f.class, address);
}
/**
@@ -206,7 +197,7 @@ public static XrActionStateVector2f createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrActionStateVector2f.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -215,7 +206,7 @@ public static XrActionStateVector2f.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionStateVector2f.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -225,7 +216,7 @@ public static XrActionStateVector2f.Buffer calloc(int capacity) {
*/
public static XrActionStateVector2f.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -235,13 +226,13 @@ public static XrActionStateVector2f.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionStateVector2f.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionStateVector2f.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -250,7 +241,7 @@ public static XrActionStateVector2f.Buffer createSafe(long address, int capacity
* @param stack the stack from which to allocate
*/
public static XrActionStateVector2f malloc(MemoryStack stack) {
- return new XrActionStateVector2f(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrActionStateVector2f.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -259,7 +250,7 @@ public static XrActionStateVector2f malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrActionStateVector2f calloc(MemoryStack stack) {
- return new XrActionStateVector2f(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrActionStateVector2f.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -269,7 +260,7 @@ public static XrActionStateVector2f calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrActionStateVector2f.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -279,38 +270,38 @@ public static XrActionStateVector2f.Buffer malloc(int capacity, MemoryStack stac
* @param capacity the buffer capacity
*/
public static XrActionStateVector2f.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStateVector2f.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrActionStateVector2f.NEXT); }
- /** Unsafe version of {@link #currentState}. */
- public static XrVector2f ncurrentState(long struct) { return XrVector2f.create(struct + XrActionStateVector2f.CURRENTSTATE); }
- /** Unsafe version of {@link #changedSinceLastSync}. */
- public static int nchangedSinceLastSync(long struct) { return UNSAFE.getInt(null, struct + XrActionStateVector2f.CHANGEDSINCELASTSYNC); }
- /** Unsafe version of {@link #lastChangeTime}. */
- public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrActionStateVector2f.LASTCHANGETIME); }
- /** Unsafe version of {@link #isActive}. */
- public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrActionStateVector2f.ISACTIVE); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateVector2f.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStateVector2f.NEXT, value); }
- /** Unsafe version of {@link #currentState(XrVector2f) currentState}. */
- public static void ncurrentState(long struct, XrVector2f value) { memCopy(value.address(), struct + XrActionStateVector2f.CURRENTSTATE, XrVector2f.SIZEOF); }
- /** Unsafe version of {@link #changedSinceLastSync(boolean) changedSinceLastSync}. */
- public static void nchangedSinceLastSync(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateVector2f.CHANGEDSINCELASTSYNC, value); }
- /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */
- public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrActionStateVector2f.LASTCHANGETIME, value); }
- /** Unsafe version of {@link #isActive(boolean) isActive}. */
- public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateVector2f.ISACTIVE, value); }
-
- // -----------------------------------
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStateVector2f.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrActionStateVector2f.NEXT); }
+ /** Unsafe version of {@link #currentState}. */
+ public static XrVector2f ncurrentState(long struct) { return XrVector2f.create(struct + XrActionStateVector2f.CURRENTSTATE); }
+ /** Unsafe version of {@link #changedSinceLastSync}. */
+ public static int nchangedSinceLastSync(long struct) { return UNSAFE.getInt(null, struct + XrActionStateVector2f.CHANGEDSINCELASTSYNC); }
+ /** Unsafe version of {@link #lastChangeTime}. */
+ public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrActionStateVector2f.LASTCHANGETIME); }
+ /** Unsafe version of {@link #isActive}. */
+ public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrActionStateVector2f.ISACTIVE); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateVector2f.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStateVector2f.NEXT, value); }
+ /** Unsafe version of {@link #currentState(XrVector2f) currentState}. */
+ public static void ncurrentState(long struct, XrVector2f value) { memCopy(value.address(), struct + XrActionStateVector2f.CURRENTSTATE, XrVector2f.SIZEOF); }
+ /** Unsafe version of {@link #changedSinceLastSync(boolean) changedSinceLastSync}. */
+ public static void nchangedSinceLastSync(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateVector2f.CHANGEDSINCELASTSYNC, value); }
+ /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */
+ public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrActionStateVector2f.LASTCHANGETIME, value); }
+ /** Unsafe version of {@link #isActive(boolean) isActive}. */
+ public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateVector2f.ISACTIVE, value); }
+
+ // -----------------------------------
/** An array of {@link XrActionStateVector2f} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -320,9 +311,9 @@ public static class Buffer extends StructBuffer i
/**
* Creates a new {@code XrActionStateVector2f.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrActionStateVector2f#SIZEOF}, and its mark will be undefined.
+ * by {@link XrActionStateVector2f#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -347,41 +338,41 @@ protected Buffer self() {
protected XrActionStateVector2f getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrActionStateVector2f#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrActionStateVector2f.ntype(address()); }
- /** @return the value of the {@link XrActionStateVector2f#next} field. */
- @NativeType("void *")
- public long next() { return XrActionStateVector2f.nnext(address()); }
- /** @return a {@link XrVector2f} view of the {@link XrActionStateVector2f#currentState} field. */
- public XrVector2f currentState() { return XrActionStateVector2f.ncurrentState(address()); }
- /** @return the value of the {@link XrActionStateVector2f#changedSinceLastSync} field. */
- @NativeType("XrBool32")
- public boolean changedSinceLastSync() { return XrActionStateVector2f.nchangedSinceLastSync(address()) != 0; }
- /** @return the value of the {@link XrActionStateVector2f#lastChangeTime} field. */
- @NativeType("XrTime")
- public long lastChangeTime() { return XrActionStateVector2f.nlastChangeTime(address()); }
- /** @return the value of the {@link XrActionStateVector2f#isActive} field. */
- @NativeType("XrBool32")
- public boolean isActive() { return XrActionStateVector2f.nisActive(address()) != 0; }
-
- /** Sets the specified value to the {@link XrActionStateVector2f#type} field. */
- public XrActionStateVector2f.Buffer type(@NativeType("XrStructureType") int value) { XrActionStateVector2f.ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_VECTOR2F TYPE_ACTION_STATE_VECTOR2F} value to the {@link XrActionStateVector2f#type} field. */
- public XrActionStateVector2f.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_VECTOR2F); }
- /** Sets the specified value to the {@link XrActionStateVector2f#next} field. */
- public XrActionStateVector2f.Buffer next(@NativeType("void *") long value) { XrActionStateVector2f.nnext(address(), value); return this; }
- /** Copies the specified {@link XrVector2f} to the {@link XrActionStateVector2f#currentState} field. */
- public XrActionStateVector2f.Buffer currentState(XrVector2f value) { XrActionStateVector2f.ncurrentState(address(), value); return this; }
- /** Passes the {@link XrActionStateVector2f#currentState} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrActionStateVector2f.Buffer currentState(java.util.function.Consumer consumer) { consumer.accept(currentState()); return this; }
- /** Sets the specified value to the {@link XrActionStateVector2f#changedSinceLastSync} field. */
- public XrActionStateVector2f.Buffer changedSinceLastSync(@NativeType("XrBool32") boolean value) { XrActionStateVector2f.nchangedSinceLastSync(address(), value ? 1 : 0); return this; }
- /** Sets the specified value to the {@link XrActionStateVector2f#lastChangeTime} field. */
- public XrActionStateVector2f.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrActionStateVector2f.nlastChangeTime(address(), value); return this; }
- /** Sets the specified value to the {@link XrActionStateVector2f#isActive} field. */
- public XrActionStateVector2f.Buffer isActive(@NativeType("XrBool32") boolean value) { XrActionStateVector2f.nisActive(address(), value ? 1 : 0); return this; }
+
+ /** @return the value of the {@link XrActionStateVector2f#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrActionStateVector2f.ntype(address()); }
+ /** @return the value of the {@link XrActionStateVector2f#next} field. */
+ @NativeType("void *")
+ public long next() { return XrActionStateVector2f.nnext(address()); }
+ /** @return a {@link XrVector2f} view of the {@link XrActionStateVector2f#currentState} field. */
+ public XrVector2f currentState() { return XrActionStateVector2f.ncurrentState(address()); }
+ /** @return the value of the {@link XrActionStateVector2f#changedSinceLastSync} field. */
+ @NativeType("XrBool32")
+ public boolean changedSinceLastSync() { return XrActionStateVector2f.nchangedSinceLastSync(address()) != 0; }
+ /** @return the value of the {@link XrActionStateVector2f#lastChangeTime} field. */
+ @NativeType("XrTime")
+ public long lastChangeTime() { return XrActionStateVector2f.nlastChangeTime(address()); }
+ /** @return the value of the {@link XrActionStateVector2f#isActive} field. */
+ @NativeType("XrBool32")
+ public boolean isActive() { return XrActionStateVector2f.nisActive(address()) != 0; }
+
+ /** Sets the specified value to the {@link XrActionStateVector2f#type} field. */
+ public XrActionStateVector2f.Buffer type(@NativeType("XrStructureType") int value) { XrActionStateVector2f.ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_VECTOR2F TYPE_ACTION_STATE_VECTOR2F} value to the {@link XrActionStateVector2f#type} field. */
+ public XrActionStateVector2f.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_VECTOR2F); }
+ /** Sets the specified value to the {@link XrActionStateVector2f#next} field. */
+ public XrActionStateVector2f.Buffer next(@NativeType("void *") long value) { XrActionStateVector2f.nnext(address(), value); return this; }
+ /** Copies the specified {@link XrVector2f} to the {@link XrActionStateVector2f#currentState} field. */
+ public XrActionStateVector2f.Buffer currentState(XrVector2f value) { XrActionStateVector2f.ncurrentState(address(), value); return this; }
+ /** Passes the {@link XrActionStateVector2f#currentState} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrActionStateVector2f.Buffer currentState(java.util.function.Consumer consumer) { consumer.accept(currentState()); return this; }
+ /** Sets the specified value to the {@link XrActionStateVector2f#changedSinceLastSync} field. */
+ public XrActionStateVector2f.Buffer changedSinceLastSync(@NativeType("XrBool32") boolean value) { XrActionStateVector2f.nchangedSinceLastSync(address(), value ? 1 : 0); return this; }
+ /** Sets the specified value to the {@link XrActionStateVector2f#lastChangeTime} field. */
+ public XrActionStateVector2f.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrActionStateVector2f.nlastChangeTime(address(), value); return this; }
+ /** Sets the specified value to the {@link XrActionStateVector2f#isActive} field. */
+ public XrActionStateVector2f.Buffer isActive(@NativeType("XrBool32") boolean value) { XrActionStateVector2f.nisActive(address(), value ? 1 : 0); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSuggestedBinding.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSuggestedBinding.java
index 72dbbc85cf..69b296f13e 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSuggestedBinding.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSuggestedBinding.java
@@ -4,18 +4,18 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Suggested binding for a single action.
*
@@ -36,8 +36,8 @@
* XrAction {@link #action};
* XrPath {@link #binding};
* }
- */
-public class XrActionSuggestedBinding extends Struct implements NativeResource {
+ */
+public class XrActionSuggestedBinding extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -47,29 +47,20 @@ public class XrActionSuggestedBinding extends Struct i
/** The struct member offsets. */
public static final int
- ACTION,
- BINDING;
+ ACTION,
+ BINDING;
static {
- Layout layout = __struct(
- __member(POINTER_SIZE),
+ Layout layout = __struct(
+ __member(POINTER_SIZE),
__member(8)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- ACTION = layout.offsetof(0);
- BINDING = layout.offsetof(1);
- }
-
- protected XrActionSuggestedBinding(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrActionSuggestedBinding create(long address, @Nullable ByteBuffer container) {
- return new XrActionSuggestedBinding(address, container);
+ ACTION = layout.offsetof(0);
+ BINDING = layout.offsetof(1);
}
/**
@@ -84,26 +75,26 @@ public XrActionSuggestedBinding(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the {@code XrAction} handle for an action */
- @NativeType("XrAction")
- public long action() { return naction(address()); }
- /** the {@code XrPath} of a binding for the action specified in {@code action}. This path is any top level user path plus input source path, for example pathname:/user/hand/right/input/trigger/click. See suggested bindings for more details. */
- @NativeType("XrPath")
- public long binding() { return nbinding(address()); }
-
- /** Sets the specified value to the {@link #action} field. */
- public XrActionSuggestedBinding action(XrAction value) { naction(address(), value); return this; }
- /** Sets the specified value to the {@link #binding} field. */
- public XrActionSuggestedBinding binding(@NativeType("XrPath") long value) { nbinding(address(), value); return this; }
+
+ /** the {@code XrAction} handle for an action */
+ @NativeType("XrAction")
+ public long action() { return naction(address()); }
+ /** the {@code XrPath} of a binding for the action specified in {@code action}. This path is any top level user path plus input source path, for example pathname:/user/hand/right/input/trigger/click. See suggested bindings for more details. */
+ @NativeType("XrPath")
+ public long binding() { return nbinding(address()); }
+
+ /** Sets the specified value to the {@link #action} field. */
+ public XrActionSuggestedBinding action(XrAction value) { naction(address(), value); return this; }
+ /** Sets the specified value to the {@link #binding} field. */
+ public XrActionSuggestedBinding binding(@NativeType("XrPath") long value) { nbinding(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrActionSuggestedBinding set(
- XrAction action,
+ XrAction action,
long binding
- ) {
- action(action);
- binding(binding);
+ ) {
+ action(action);
+ binding(binding);
return this;
}
@@ -124,29 +115,29 @@ public XrActionSuggestedBinding set(XrActionSuggestedBinding src) {
/** Returns a new {@code XrActionSuggestedBinding} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrActionSuggestedBinding malloc() {
- return new XrActionSuggestedBinding(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrActionSuggestedBinding.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrActionSuggestedBinding} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrActionSuggestedBinding calloc() {
- return new XrActionSuggestedBinding(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrActionSuggestedBinding.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrActionSuggestedBinding} instance allocated with {@link BufferUtils}. */
public static XrActionSuggestedBinding create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrActionSuggestedBinding(memAddress(container), container);
+ return wrap(XrActionSuggestedBinding.class, memAddress(container), container);
}
/** Returns a new {@code XrActionSuggestedBinding} instance for the specified memory address. */
public static XrActionSuggestedBinding create(long address) {
- return new XrActionSuggestedBinding(address, null);
+ return wrap(XrActionSuggestedBinding.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionSuggestedBinding createSafe(long address) {
- return address == NULL ? null : new XrActionSuggestedBinding(address, null);
+ return address == NULL ? null : wrap(XrActionSuggestedBinding.class, address);
}
/**
@@ -155,7 +146,7 @@ public static XrActionSuggestedBinding createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrActionSuggestedBinding.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -164,7 +155,7 @@ public static XrActionSuggestedBinding.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionSuggestedBinding.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -174,7 +165,7 @@ public static XrActionSuggestedBinding.Buffer calloc(int capacity) {
*/
public static XrActionSuggestedBinding.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -184,13 +175,13 @@ public static XrActionSuggestedBinding.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionSuggestedBinding.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionSuggestedBinding.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -199,7 +190,7 @@ public static XrActionSuggestedBinding.Buffer createSafe(long address, int capac
* @param stack the stack from which to allocate
*/
public static XrActionSuggestedBinding malloc(MemoryStack stack) {
- return new XrActionSuggestedBinding(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrActionSuggestedBinding.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -208,7 +199,7 @@ public static XrActionSuggestedBinding malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrActionSuggestedBinding calloc(MemoryStack stack) {
- return new XrActionSuggestedBinding(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrActionSuggestedBinding.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -218,7 +209,7 @@ public static XrActionSuggestedBinding calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrActionSuggestedBinding.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -228,20 +219,20 @@ public static XrActionSuggestedBinding.Buffer malloc(int capacity, MemoryStack s
* @param capacity the buffer capacity
*/
public static XrActionSuggestedBinding.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #action}. */
- public static long naction(long struct) { return memGetAddress(struct + XrActionSuggestedBinding.ACTION); }
- /** Unsafe version of {@link #binding}. */
- public static long nbinding(long struct) { return UNSAFE.getLong(null, struct + XrActionSuggestedBinding.BINDING); }
-
- /** Unsafe version of {@link #action(XrAction) action}. */
- public static void naction(long struct, XrAction value) { memPutAddress(struct + XrActionSuggestedBinding.ACTION, value.address()); }
- /** Unsafe version of {@link #binding(long) binding}. */
- public static void nbinding(long struct, long value) { UNSAFE.putLong(null, struct + XrActionSuggestedBinding.BINDING, value); }
+
+ /** Unsafe version of {@link #action}. */
+ public static long naction(long struct) { return memGetAddress(struct + XrActionSuggestedBinding.ACTION); }
+ /** Unsafe version of {@link #binding}. */
+ public static long nbinding(long struct) { return UNSAFE.getLong(null, struct + XrActionSuggestedBinding.BINDING); }
+
+ /** Unsafe version of {@link #action(XrAction) action}. */
+ public static void naction(long struct, XrAction value) { memPutAddress(struct + XrActionSuggestedBinding.ACTION, value.address()); }
+ /** Unsafe version of {@link #binding(long) binding}. */
+ public static void nbinding(long struct, long value) { UNSAFE.putLong(null, struct + XrActionSuggestedBinding.BINDING, value); }
/**
* Validates pointer members that should not be {@code NULL}.
@@ -250,9 +241,9 @@ public static XrActionSuggestedBinding.Buffer calloc(int capacity, MemoryStack s
*/
public static void validate(long struct) {
check(memGetAddress(struct + XrActionSuggestedBinding.ACTION));
- }
+ }
- // -----------------------------------
+ // -----------------------------------
/** An array of {@link XrActionSuggestedBinding} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -262,9 +253,9 @@ public static class Buffer extends StructBufferChanges to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrActionSuggestedBinding#SIZEOF}, and its mark will be undefined.
+ * by {@link XrActionSuggestedBinding#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -289,18 +280,18 @@ protected Buffer self() {
protected XrActionSuggestedBinding getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrActionSuggestedBinding#action} field. */
- @NativeType("XrAction")
- public long action() { return XrActionSuggestedBinding.naction(address()); }
- /** @return the value of the {@link XrActionSuggestedBinding#binding} field. */
- @NativeType("XrPath")
- public long binding() { return XrActionSuggestedBinding.nbinding(address()); }
-
- /** Sets the specified value to the {@link XrActionSuggestedBinding#action} field. */
- public XrActionSuggestedBinding.Buffer action(XrAction value) { XrActionSuggestedBinding.naction(address(), value); return this; }
- /** Sets the specified value to the {@link XrActionSuggestedBinding#binding} field. */
- public XrActionSuggestedBinding.Buffer binding(@NativeType("XrPath") long value) { XrActionSuggestedBinding.nbinding(address(), value); return this; }
+
+ /** @return the value of the {@link XrActionSuggestedBinding#action} field. */
+ @NativeType("XrAction")
+ public long action() { return XrActionSuggestedBinding.naction(address()); }
+ /** @return the value of the {@link XrActionSuggestedBinding#binding} field. */
+ @NativeType("XrPath")
+ public long binding() { return XrActionSuggestedBinding.nbinding(address()); }
+
+ /** Sets the specified value to the {@link XrActionSuggestedBinding#action} field. */
+ public XrActionSuggestedBinding.Buffer action(XrAction value) { XrActionSuggestedBinding.naction(address(), value); return this; }
+ /** Sets the specified value to the {@link XrActionSuggestedBinding#binding} field. */
+ public XrActionSuggestedBinding.Buffer binding(@NativeType("XrPath") long value) { XrActionSuggestedBinding.nbinding(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionsSyncInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionsSyncInfo.java
index dcfde4c982..88b991fca5 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionsSyncInfo.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionsSyncInfo.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Information to sync actions.
*
@@ -39,8 +39,8 @@
* uint32_t {@link #countActiveActionSets};
* {@link XrActiveActionSet XrActiveActionSet} const * {@link #activeActionSets};
* }
- */
-public class XrActionsSyncInfo extends Struct implements NativeResource {
+ */
+public class XrActionsSyncInfo extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -50,35 +50,26 @@ public class XrActionsSyncInfo extends Struct implements Nati
/** The struct member offsets. */
public static final int
- TYPE,
- NEXT,
- COUNTACTIVEACTIONSETS,
- ACTIVEACTIONSETS;
+ TYPE,
+ NEXT,
+ COUNTACTIVEACTIONSETS,
+ ACTIVEACTIONSETS;
static {
- Layout layout = __struct(
- __member(4),
- __member(POINTER_SIZE),
- __member(4),
+ Layout layout = __struct(
+ __member(4),
+ __member(POINTER_SIZE),
+ __member(4),
__member(POINTER_SIZE)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- TYPE = layout.offsetof(0);
- NEXT = layout.offsetof(1);
- COUNTACTIVEACTIONSETS = layout.offsetof(2);
- ACTIVEACTIONSETS = layout.offsetof(3);
- }
-
- protected XrActionsSyncInfo(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrActionsSyncInfo create(long address, @Nullable ByteBuffer container) {
- return new XrActionsSyncInfo(address, container);
+ TYPE = layout.offsetof(0);
+ NEXT = layout.offsetof(1);
+ COUNTACTIVEACTIONSETS = layout.offsetof(2);
+ ACTIVEACTIONSETS = layout.offsetof(3);
}
/**
@@ -93,45 +84,45 @@ public XrActionsSyncInfo(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the {@code XrStructureType} of this structure. */
- @NativeType("XrStructureType")
- public int type() { return ntype(address()); }
- /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
- @NativeType("void const *")
- public long next() { return nnext(address()); }
- /** an integer specifying the number of valid elements in the {@code activeActionSets} array. */
- @NativeType("uint32_t")
- public int countActiveActionSets() { return ncountActiveActionSets(address()); }
- /** {@code NULL} or a pointer to an array of one or more {@link XrActiveActionSet} structures that should be synchronized. */
- @Nullable
- @NativeType("XrActiveActionSet const *")
- public XrActiveActionSet.Buffer activeActionSets() { return nactiveActionSets(address()); }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrActionsSyncInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_ACTIONS_SYNC_INFO TYPE_ACTIONS_SYNC_INFO} value to the {@link #type} field. */
- public XrActionsSyncInfo type$Default() { return type(XR10.XR_TYPE_ACTIONS_SYNC_INFO); }
- /** Sets the specified value to the {@link #next} field. */
- public XrActionsSyncInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
- /** Prepends the specified {@link XrActiveActionSetPrioritiesEXT} value to the {@code next} chain. */
- public XrActionsSyncInfo next(XrActiveActionSetPrioritiesEXT value) { return this.next(value.next(this.next()).address()); }
- /** Sets the specified value to the {@link #countActiveActionSets} field. */
- public XrActionsSyncInfo countActiveActionSets(@NativeType("uint32_t") int value) { ncountActiveActionSets(address(), value); return this; }
- /** Sets the address of the specified {@link XrActiveActionSet.Buffer} to the {@link #activeActionSets} field. */
- public XrActionsSyncInfo activeActionSets(@Nullable @NativeType("XrActiveActionSet const *") XrActiveActionSet.Buffer value) { nactiveActionSets(address(), value); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
+ @NativeType("void const *")
+ public long next() { return nnext(address()); }
+ /** an integer specifying the number of valid elements in the {@code activeActionSets} array. */
+ @NativeType("uint32_t")
+ public int countActiveActionSets() { return ncountActiveActionSets(address()); }
+ /** {@code NULL} or a pointer to an array of one or more {@link XrActiveActionSet} structures that should be synchronized. */
+ @Nullable
+ @NativeType("XrActiveActionSet const *")
+ public XrActiveActionSet.Buffer activeActionSets() { return nactiveActionSets(address()); }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrActionsSyncInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_ACTIONS_SYNC_INFO TYPE_ACTIONS_SYNC_INFO} value to the {@link #type} field. */
+ public XrActionsSyncInfo type$Default() { return type(XR10.XR_TYPE_ACTIONS_SYNC_INFO); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrActionsSyncInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
+ /** Prepends the specified {@link XrActiveActionSetPrioritiesEXT} value to the {@code next} chain. */
+ public XrActionsSyncInfo next(XrActiveActionSetPrioritiesEXT value) { return this.next(value.next(this.next()).address()); }
+ /** Sets the specified value to the {@link #countActiveActionSets} field. */
+ public XrActionsSyncInfo countActiveActionSets(@NativeType("uint32_t") int value) { ncountActiveActionSets(address(), value); return this; }
+ /** Sets the address of the specified {@link XrActiveActionSet.Buffer} to the {@link #activeActionSets} field. */
+ public XrActionsSyncInfo activeActionSets(@Nullable @NativeType("XrActiveActionSet const *") XrActiveActionSet.Buffer value) { nactiveActionSets(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrActionsSyncInfo set(
- int type,
- long next,
- int countActiveActionSets,
+ int type,
+ long next,
+ int countActiveActionSets,
@Nullable XrActiveActionSet.Buffer activeActionSets
- ) {
- type(type);
- next(next);
- countActiveActionSets(countActiveActionSets);
- activeActionSets(activeActionSets);
+ ) {
+ type(type);
+ next(next);
+ countActiveActionSets(countActiveActionSets);
+ activeActionSets(activeActionSets);
return this;
}
@@ -152,29 +143,29 @@ public XrActionsSyncInfo set(XrActionsSyncInfo src) {
/** Returns a new {@code XrActionsSyncInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrActionsSyncInfo malloc() {
- return new XrActionsSyncInfo(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrActionsSyncInfo.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrActionsSyncInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrActionsSyncInfo calloc() {
- return new XrActionsSyncInfo(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrActionsSyncInfo.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrActionsSyncInfo} instance allocated with {@link BufferUtils}. */
public static XrActionsSyncInfo create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrActionsSyncInfo(memAddress(container), container);
+ return wrap(XrActionsSyncInfo.class, memAddress(container), container);
}
/** Returns a new {@code XrActionsSyncInfo} instance for the specified memory address. */
public static XrActionsSyncInfo create(long address) {
- return new XrActionsSyncInfo(address, null);
+ return wrap(XrActionsSyncInfo.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionsSyncInfo createSafe(long address) {
- return address == NULL ? null : new XrActionsSyncInfo(address, null);
+ return address == NULL ? null : wrap(XrActionsSyncInfo.class, address);
}
/**
@@ -183,7 +174,7 @@ public static XrActionsSyncInfo createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrActionsSyncInfo.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -192,7 +183,7 @@ public static XrActionsSyncInfo.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionsSyncInfo.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -202,7 +193,7 @@ public static XrActionsSyncInfo.Buffer calloc(int capacity) {
*/
public static XrActionsSyncInfo.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -212,13 +203,13 @@ public static XrActionsSyncInfo.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActionsSyncInfo.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActionsSyncInfo.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -227,7 +218,7 @@ public static XrActionsSyncInfo.Buffer createSafe(long address, int capacity) {
* @param stack the stack from which to allocate
*/
public static XrActionsSyncInfo malloc(MemoryStack stack) {
- return new XrActionsSyncInfo(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrActionsSyncInfo.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -236,7 +227,7 @@ public static XrActionsSyncInfo malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrActionsSyncInfo calloc(MemoryStack stack) {
- return new XrActionsSyncInfo(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrActionsSyncInfo.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -246,7 +237,7 @@ public static XrActionsSyncInfo calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrActionsSyncInfo.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -256,30 +247,30 @@ public static XrActionsSyncInfo.Buffer malloc(int capacity, MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrActionsSyncInfo.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionsSyncInfo.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrActionsSyncInfo.NEXT); }
- /** Unsafe version of {@link #countActiveActionSets}. */
- public static int ncountActiveActionSets(long struct) { return UNSAFE.getInt(null, struct + XrActionsSyncInfo.COUNTACTIVEACTIONSETS); }
- /** Unsafe version of {@link #activeActionSets}. */
- @Nullable public static XrActiveActionSet.Buffer nactiveActionSets(long struct) { return XrActiveActionSet.createSafe(memGetAddress(struct + XrActionsSyncInfo.ACTIVEACTIONSETS), ncountActiveActionSets(struct)); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionsSyncInfo.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrActionsSyncInfo.NEXT, value); }
- /** Sets the specified value to the {@code countActiveActionSets} field of the specified {@code struct}. */
- public static void ncountActiveActionSets(long struct, int value) { UNSAFE.putInt(null, struct + XrActionsSyncInfo.COUNTACTIVEACTIONSETS, value); }
- /** Unsafe version of {@link #activeActionSets(XrActiveActionSet.Buffer) activeActionSets}. */
- public static void nactiveActionSets(long struct, @Nullable XrActiveActionSet.Buffer value) { memPutAddress(struct + XrActionsSyncInfo.ACTIVEACTIONSETS, memAddressSafe(value)); if (value != null) { ncountActiveActionSets(struct, value.remaining()); } }
-
- // -----------------------------------
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionsSyncInfo.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrActionsSyncInfo.NEXT); }
+ /** Unsafe version of {@link #countActiveActionSets}. */
+ public static int ncountActiveActionSets(long struct) { return UNSAFE.getInt(null, struct + XrActionsSyncInfo.COUNTACTIVEACTIONSETS); }
+ /** Unsafe version of {@link #activeActionSets}. */
+ @Nullable public static XrActiveActionSet.Buffer nactiveActionSets(long struct) { return XrActiveActionSet.createSafe(memGetAddress(struct + XrActionsSyncInfo.ACTIVEACTIONSETS), ncountActiveActionSets(struct)); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionsSyncInfo.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrActionsSyncInfo.NEXT, value); }
+ /** Sets the specified value to the {@code countActiveActionSets} field of the specified {@code struct}. */
+ public static void ncountActiveActionSets(long struct, int value) { UNSAFE.putInt(null, struct + XrActionsSyncInfo.COUNTACTIVEACTIONSETS, value); }
+ /** Unsafe version of {@link #activeActionSets(XrActiveActionSet.Buffer) activeActionSets}. */
+ public static void nactiveActionSets(long struct, @Nullable XrActiveActionSet.Buffer value) { memPutAddress(struct + XrActionsSyncInfo.ACTIVEACTIONSETS, memAddressSafe(value)); if (value != null) { ncountActiveActionSets(struct, value.remaining()); } }
+
+ // -----------------------------------
/** An array of {@link XrActionsSyncInfo} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -289,9 +280,9 @@ public static class Buffer extends StructBuffer imple
/**
* Creates a new {@code XrActionsSyncInfo.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrActionsSyncInfo#SIZEOF}, and its mark will be undefined.
+ * by {@link XrActionsSyncInfo#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -316,33 +307,33 @@ protected Buffer self() {
protected XrActionsSyncInfo getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrActionsSyncInfo#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrActionsSyncInfo.ntype(address()); }
- /** @return the value of the {@link XrActionsSyncInfo#next} field. */
- @NativeType("void const *")
- public long next() { return XrActionsSyncInfo.nnext(address()); }
- /** @return the value of the {@link XrActionsSyncInfo#countActiveActionSets} field. */
- @NativeType("uint32_t")
- public int countActiveActionSets() { return XrActionsSyncInfo.ncountActiveActionSets(address()); }
- /** @return a {@link XrActiveActionSet.Buffer} view of the struct array pointed to by the {@link XrActionsSyncInfo#activeActionSets} field. */
- @Nullable
- @NativeType("XrActiveActionSet const *")
- public XrActiveActionSet.Buffer activeActionSets() { return XrActionsSyncInfo.nactiveActionSets(address()); }
-
- /** Sets the specified value to the {@link XrActionsSyncInfo#type} field. */
- public XrActionsSyncInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionsSyncInfo.ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_ACTIONS_SYNC_INFO TYPE_ACTIONS_SYNC_INFO} value to the {@link XrActionsSyncInfo#type} field. */
- public XrActionsSyncInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTIONS_SYNC_INFO); }
- /** Sets the specified value to the {@link XrActionsSyncInfo#next} field. */
- public XrActionsSyncInfo.Buffer next(@NativeType("void const *") long value) { XrActionsSyncInfo.nnext(address(), value); return this; }
- /** Prepends the specified {@link XrActiveActionSetPrioritiesEXT} value to the {@code next} chain. */
- public XrActionsSyncInfo.Buffer next(XrActiveActionSetPrioritiesEXT value) { return this.next(value.next(this.next()).address()); }
- /** Sets the specified value to the {@link XrActionsSyncInfo#countActiveActionSets} field. */
- public XrActionsSyncInfo.Buffer countActiveActionSets(@NativeType("uint32_t") int value) { XrActionsSyncInfo.ncountActiveActionSets(address(), value); return this; }
- /** Sets the address of the specified {@link XrActiveActionSet.Buffer} to the {@link XrActionsSyncInfo#activeActionSets} field. */
- public XrActionsSyncInfo.Buffer activeActionSets(@Nullable @NativeType("XrActiveActionSet const *") XrActiveActionSet.Buffer value) { XrActionsSyncInfo.nactiveActionSets(address(), value); return this; }
+
+ /** @return the value of the {@link XrActionsSyncInfo#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrActionsSyncInfo.ntype(address()); }
+ /** @return the value of the {@link XrActionsSyncInfo#next} field. */
+ @NativeType("void const *")
+ public long next() { return XrActionsSyncInfo.nnext(address()); }
+ /** @return the value of the {@link XrActionsSyncInfo#countActiveActionSets} field. */
+ @NativeType("uint32_t")
+ public int countActiveActionSets() { return XrActionsSyncInfo.ncountActiveActionSets(address()); }
+ /** @return a {@link XrActiveActionSet.Buffer} view of the struct array pointed to by the {@link XrActionsSyncInfo#activeActionSets} field. */
+ @Nullable
+ @NativeType("XrActiveActionSet const *")
+ public XrActiveActionSet.Buffer activeActionSets() { return XrActionsSyncInfo.nactiveActionSets(address()); }
+
+ /** Sets the specified value to the {@link XrActionsSyncInfo#type} field. */
+ public XrActionsSyncInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionsSyncInfo.ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_ACTIONS_SYNC_INFO TYPE_ACTIONS_SYNC_INFO} value to the {@link XrActionsSyncInfo#type} field. */
+ public XrActionsSyncInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTIONS_SYNC_INFO); }
+ /** Sets the specified value to the {@link XrActionsSyncInfo#next} field. */
+ public XrActionsSyncInfo.Buffer next(@NativeType("void const *") long value) { XrActionsSyncInfo.nnext(address(), value); return this; }
+ /** Prepends the specified {@link XrActiveActionSetPrioritiesEXT} value to the {@code next} chain. */
+ public XrActionsSyncInfo.Buffer next(XrActiveActionSetPrioritiesEXT value) { return this.next(value.next(this.next()).address()); }
+ /** Sets the specified value to the {@link XrActionsSyncInfo#countActiveActionSets} field. */
+ public XrActionsSyncInfo.Buffer countActiveActionSets(@NativeType("uint32_t") int value) { XrActionsSyncInfo.ncountActiveActionSets(address(), value); return this; }
+ /** Sets the address of the specified {@link XrActiveActionSet.Buffer} to the {@link XrActionsSyncInfo#activeActionSets} field. */
+ public XrActionsSyncInfo.Buffer activeActionSets(@Nullable @NativeType("XrActiveActionSet const *") XrActiveActionSet.Buffer value) { XrActionsSyncInfo.nactiveActionSets(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSet.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSet.java
index 351fba29d1..beb527bc9f 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSet.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSet.java
@@ -4,18 +4,18 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Describes an active action set.
*
@@ -40,8 +40,8 @@
* XrActionSet {@link #actionSet};
* XrPath {@link #subactionPath};
* }
- */
-public class XrActiveActionSet extends Struct implements NativeResource {
+ */
+public class XrActiveActionSet extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -51,29 +51,20 @@ public class XrActiveActionSet extends Struct implements Nati
/** The struct member offsets. */
public static final int
- ACTIONSET,
- SUBACTIONPATH;
+ ACTIONSET,
+ SUBACTIONPATH;
static {
- Layout layout = __struct(
- __member(POINTER_SIZE),
+ Layout layout = __struct(
+ __member(POINTER_SIZE),
__member(8)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- ACTIONSET = layout.offsetof(0);
- SUBACTIONPATH = layout.offsetof(1);
- }
-
- protected XrActiveActionSet(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrActiveActionSet create(long address, @Nullable ByteBuffer container) {
- return new XrActiveActionSet(address, container);
+ ACTIONSET = layout.offsetof(0);
+ SUBACTIONPATH = layout.offsetof(1);
}
/**
@@ -88,26 +79,26 @@ public XrActiveActionSet(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the handle of the action set to activate. */
- @NativeType("XrActionSet")
- public long actionSet() { return nactionSet(address()); }
- /** a subaction path that was declared when one or more actions in the action set was created or {@link XR10#XR_NULL_PATH NULL_PATH}. If the application wants to activate the action set on more than one subaction path, it can include additional {@link XrActiveActionSet} structs with the other {@code subactionPath} values. Using {@link XR10#XR_NULL_PATH NULL_PATH} as the value for {@code subactionPath}, acts as a wildcard for all subaction paths on the actions in the action set. If the subaction path was not specified on any of the actions in the actionSet when that action was created, the runtime must return {@link XR10#XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}. */
- @NativeType("XrPath")
- public long subactionPath() { return nsubactionPath(address()); }
-
- /** Sets the specified value to the {@link #actionSet} field. */
- public XrActiveActionSet actionSet(XrActionSet value) { nactionSet(address(), value); return this; }
- /** Sets the specified value to the {@link #subactionPath} field. */
- public XrActiveActionSet subactionPath(@NativeType("XrPath") long value) { nsubactionPath(address(), value); return this; }
+
+ /** the handle of the action set to activate. */
+ @NativeType("XrActionSet")
+ public long actionSet() { return nactionSet(address()); }
+ /** a subaction path that was declared when one or more actions in the action set was created or {@link XR10#XR_NULL_PATH NULL_PATH}. If the application wants to activate the action set on more than one subaction path, it can include additional {@link XrActiveActionSet} structs with the other {@code subactionPath} values. Using {@link XR10#XR_NULL_PATH NULL_PATH} as the value for {@code subactionPath}, acts as a wildcard for all subaction paths on the actions in the action set. If the subaction path was not specified on any of the actions in the actionSet when that action was created, the runtime must return {@link XR10#XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}. */
+ @NativeType("XrPath")
+ public long subactionPath() { return nsubactionPath(address()); }
+
+ /** Sets the specified value to the {@link #actionSet} field. */
+ public XrActiveActionSet actionSet(XrActionSet value) { nactionSet(address(), value); return this; }
+ /** Sets the specified value to the {@link #subactionPath} field. */
+ public XrActiveActionSet subactionPath(@NativeType("XrPath") long value) { nsubactionPath(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrActiveActionSet set(
- XrActionSet actionSet,
+ XrActionSet actionSet,
long subactionPath
- ) {
- actionSet(actionSet);
- subactionPath(subactionPath);
+ ) {
+ actionSet(actionSet);
+ subactionPath(subactionPath);
return this;
}
@@ -128,29 +119,29 @@ public XrActiveActionSet set(XrActiveActionSet src) {
/** Returns a new {@code XrActiveActionSet} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrActiveActionSet malloc() {
- return new XrActiveActionSet(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrActiveActionSet.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrActiveActionSet} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrActiveActionSet calloc() {
- return new XrActiveActionSet(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrActiveActionSet.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrActiveActionSet} instance allocated with {@link BufferUtils}. */
public static XrActiveActionSet create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrActiveActionSet(memAddress(container), container);
+ return wrap(XrActiveActionSet.class, memAddress(container), container);
}
/** Returns a new {@code XrActiveActionSet} instance for the specified memory address. */
public static XrActiveActionSet create(long address) {
- return new XrActiveActionSet(address, null);
+ return wrap(XrActiveActionSet.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActiveActionSet createSafe(long address) {
- return address == NULL ? null : new XrActiveActionSet(address, null);
+ return address == NULL ? null : wrap(XrActiveActionSet.class, address);
}
/**
@@ -159,7 +150,7 @@ public static XrActiveActionSet createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrActiveActionSet.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -168,7 +159,7 @@ public static XrActiveActionSet.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActiveActionSet.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -178,7 +169,7 @@ public static XrActiveActionSet.Buffer calloc(int capacity) {
*/
public static XrActiveActionSet.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -188,13 +179,13 @@ public static XrActiveActionSet.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActiveActionSet.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActiveActionSet.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -203,7 +194,7 @@ public static XrActiveActionSet.Buffer createSafe(long address, int capacity) {
* @param stack the stack from which to allocate
*/
public static XrActiveActionSet malloc(MemoryStack stack) {
- return new XrActiveActionSet(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrActiveActionSet.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -212,7 +203,7 @@ public static XrActiveActionSet malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrActiveActionSet calloc(MemoryStack stack) {
- return new XrActiveActionSet(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrActiveActionSet.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -222,7 +213,7 @@ public static XrActiveActionSet calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrActiveActionSet.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -232,20 +223,20 @@ public static XrActiveActionSet.Buffer malloc(int capacity, MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrActiveActionSet.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #actionSet}. */
- public static long nactionSet(long struct) { return memGetAddress(struct + XrActiveActionSet.ACTIONSET); }
- /** Unsafe version of {@link #subactionPath}. */
- public static long nsubactionPath(long struct) { return UNSAFE.getLong(null, struct + XrActiveActionSet.SUBACTIONPATH); }
-
- /** Unsafe version of {@link #actionSet(XrActionSet) actionSet}. */
- public static void nactionSet(long struct, XrActionSet value) { memPutAddress(struct + XrActiveActionSet.ACTIONSET, value.address()); }
- /** Unsafe version of {@link #subactionPath(long) subactionPath}. */
- public static void nsubactionPath(long struct, long value) { UNSAFE.putLong(null, struct + XrActiveActionSet.SUBACTIONPATH, value); }
+
+ /** Unsafe version of {@link #actionSet}. */
+ public static long nactionSet(long struct) { return memGetAddress(struct + XrActiveActionSet.ACTIONSET); }
+ /** Unsafe version of {@link #subactionPath}. */
+ public static long nsubactionPath(long struct) { return UNSAFE.getLong(null, struct + XrActiveActionSet.SUBACTIONPATH); }
+
+ /** Unsafe version of {@link #actionSet(XrActionSet) actionSet}. */
+ public static void nactionSet(long struct, XrActionSet value) { memPutAddress(struct + XrActiveActionSet.ACTIONSET, value.address()); }
+ /** Unsafe version of {@link #subactionPath(long) subactionPath}. */
+ public static void nsubactionPath(long struct, long value) { UNSAFE.putLong(null, struct + XrActiveActionSet.SUBACTIONPATH, value); }
/**
* Validates pointer members that should not be {@code NULL}.
@@ -254,9 +245,9 @@ public static XrActiveActionSet.Buffer calloc(int capacity, MemoryStack stack) {
*/
public static void validate(long struct) {
check(memGetAddress(struct + XrActiveActionSet.ACTIONSET));
- }
+ }
- // -----------------------------------
+ // -----------------------------------
/** An array of {@link XrActiveActionSet} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -266,9 +257,9 @@ public static class Buffer extends StructBuffer imple
/**
* Creates a new {@code XrActiveActionSet.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrActiveActionSet#SIZEOF}, and its mark will be undefined.
+ * by {@link XrActiveActionSet#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -293,18 +284,18 @@ protected Buffer self() {
protected XrActiveActionSet getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrActiveActionSet#actionSet} field. */
- @NativeType("XrActionSet")
- public long actionSet() { return XrActiveActionSet.nactionSet(address()); }
- /** @return the value of the {@link XrActiveActionSet#subactionPath} field. */
- @NativeType("XrPath")
- public long subactionPath() { return XrActiveActionSet.nsubactionPath(address()); }
-
- /** Sets the specified value to the {@link XrActiveActionSet#actionSet} field. */
- public XrActiveActionSet.Buffer actionSet(XrActionSet value) { XrActiveActionSet.nactionSet(address(), value); return this; }
- /** Sets the specified value to the {@link XrActiveActionSet#subactionPath} field. */
- public XrActiveActionSet.Buffer subactionPath(@NativeType("XrPath") long value) { XrActiveActionSet.nsubactionPath(address(), value); return this; }
+
+ /** @return the value of the {@link XrActiveActionSet#actionSet} field. */
+ @NativeType("XrActionSet")
+ public long actionSet() { return XrActiveActionSet.nactionSet(address()); }
+ /** @return the value of the {@link XrActiveActionSet#subactionPath} field. */
+ @NativeType("XrPath")
+ public long subactionPath() { return XrActiveActionSet.nsubactionPath(address()); }
+
+ /** Sets the specified value to the {@link XrActiveActionSet#actionSet} field. */
+ public XrActiveActionSet.Buffer actionSet(XrActionSet value) { XrActiveActionSet.nactionSet(address(), value); return this; }
+ /** Sets the specified value to the {@link XrActiveActionSet#subactionPath} field. */
+ public XrActiveActionSet.Buffer subactionPath(@NativeType("XrPath") long value) { XrActiveActionSet.nsubactionPath(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSetPrioritiesEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSetPrioritiesEXT.java
index 9631ad253e..b5e60af202 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSetPrioritiesEXT.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSetPrioritiesEXT.java
@@ -4,18 +4,18 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Active action set priority numbers.
*
@@ -48,8 +48,8 @@
* uint32_t actionSetPriorityCount;
* {@link XrActiveActionSetPriorityEXT XrActiveActionSetPriorityEXT} const * {@link #actionSetPriorities};
* }
- */
-public class XrActiveActionSetPrioritiesEXT extends Struct implements NativeResource {
+ */
+public class XrActiveActionSetPrioritiesEXT extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -59,35 +59,26 @@ public class XrActiveActionSetPrioritiesEXT extends Structmay return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} from {@link XR10#xrSyncActions SyncActions}. */
- @NativeType("XrActiveActionSetPriorityEXT const *")
- public XrActiveActionSetPriorityEXT.Buffer actionSetPriorities() { return nactionSetPriorities(address()); }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrActiveActionSetPrioritiesEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link EXTActiveActionSetPriority#XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT} value to the {@link #type} field. */
- public XrActiveActionSetPrioritiesEXT type$Default() { return type(EXTActiveActionSetPriority.XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT); }
- /** Sets the specified value to the {@link #next} field. */
- public XrActiveActionSetPrioritiesEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
- /** Sets the address of the specified {@link XrActiveActionSetPriorityEXT.Buffer} to the {@link #actionSetPriorities} field. */
- public XrActiveActionSetPrioritiesEXT actionSetPriorities(@NativeType("XrActiveActionSetPriorityEXT const *") XrActiveActionSetPriorityEXT.Buffer value) { nactionSetPriorities(address(), value); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */
+ @NativeType("void const *")
+ public long next() { return nnext(address()); }
+ /** @return the value of the {@code actionSetPriorityCount} field. */
+ @NativeType("uint32_t")
+ public int actionSetPriorityCount() { return nactionSetPriorityCount(address()); }
+ /** a pointer to an array that maps action sets to their active priority numbers. If an action set is specified multiple times, the runtime may return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} from {@link XR10#xrSyncActions SyncActions}. */
+ @NativeType("XrActiveActionSetPriorityEXT const *")
+ public XrActiveActionSetPriorityEXT.Buffer actionSetPriorities() { return nactionSetPriorities(address()); }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrActiveActionSetPrioritiesEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link EXTActiveActionSetPriority#XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT} value to the {@link #type} field. */
+ public XrActiveActionSetPrioritiesEXT type$Default() { return type(EXTActiveActionSetPriority.XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrActiveActionSetPrioritiesEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
+ /** Sets the address of the specified {@link XrActiveActionSetPriorityEXT.Buffer} to the {@link #actionSetPriorities} field. */
+ public XrActiveActionSetPrioritiesEXT actionSetPriorities(@NativeType("XrActiveActionSetPriorityEXT const *") XrActiveActionSetPriorityEXT.Buffer value) { nactionSetPriorities(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrActiveActionSetPrioritiesEXT set(
- int type,
- long next,
+ int type,
+ long next,
XrActiveActionSetPriorityEXT.Buffer actionSetPriorities
- ) {
- type(type);
- next(next);
- actionSetPriorities(actionSetPriorities);
+ ) {
+ type(type);
+ next(next);
+ actionSetPriorities(actionSetPriorities);
return this;
}
@@ -154,29 +145,29 @@ public XrActiveActionSetPrioritiesEXT set(XrActiveActionSetPrioritiesEXT src) {
/** Returns a new {@code XrActiveActionSetPrioritiesEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrActiveActionSetPrioritiesEXT malloc() {
- return new XrActiveActionSetPrioritiesEXT(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrActiveActionSetPrioritiesEXT.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrActiveActionSetPrioritiesEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrActiveActionSetPrioritiesEXT calloc() {
- return new XrActiveActionSetPrioritiesEXT(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrActiveActionSetPrioritiesEXT.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrActiveActionSetPrioritiesEXT} instance allocated with {@link BufferUtils}. */
public static XrActiveActionSetPrioritiesEXT create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrActiveActionSetPrioritiesEXT(memAddress(container), container);
+ return wrap(XrActiveActionSetPrioritiesEXT.class, memAddress(container), container);
}
/** Returns a new {@code XrActiveActionSetPrioritiesEXT} instance for the specified memory address. */
public static XrActiveActionSetPrioritiesEXT create(long address) {
- return new XrActiveActionSetPrioritiesEXT(address, null);
+ return wrap(XrActiveActionSetPrioritiesEXT.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActiveActionSetPrioritiesEXT createSafe(long address) {
- return address == NULL ? null : new XrActiveActionSetPrioritiesEXT(address, null);
+ return address == NULL ? null : wrap(XrActiveActionSetPrioritiesEXT.class, address);
}
/**
@@ -185,7 +176,7 @@ public static XrActiveActionSetPrioritiesEXT createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrActiveActionSetPrioritiesEXT.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -194,7 +185,7 @@ public static XrActiveActionSetPrioritiesEXT.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActiveActionSetPrioritiesEXT.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -204,7 +195,7 @@ public static XrActiveActionSetPrioritiesEXT.Buffer calloc(int capacity) {
*/
public static XrActiveActionSetPrioritiesEXT.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -214,13 +205,13 @@ public static XrActiveActionSetPrioritiesEXT.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrActiveActionSetPrioritiesEXT.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrActiveActionSetPrioritiesEXT.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -229,7 +220,7 @@ public static XrActiveActionSetPrioritiesEXT.Buffer createSafe(long address, int
* @param stack the stack from which to allocate
*/
public static XrActiveActionSetPrioritiesEXT malloc(MemoryStack stack) {
- return new XrActiveActionSetPrioritiesEXT(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrActiveActionSetPrioritiesEXT.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -238,7 +229,7 @@ public static XrActiveActionSetPrioritiesEXT malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrActiveActionSetPrioritiesEXT calloc(MemoryStack stack) {
- return new XrActiveActionSetPrioritiesEXT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrActiveActionSetPrioritiesEXT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -248,7 +239,7 @@ public static XrActiveActionSetPrioritiesEXT calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrActiveActionSetPrioritiesEXT.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -258,28 +249,28 @@ public static XrActiveActionSetPrioritiesEXT.Buffer malloc(int capacity, MemoryS
* @param capacity the buffer capacity
*/
public static XrActiveActionSetPrioritiesEXT.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActiveActionSetPrioritiesEXT.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrActiveActionSetPrioritiesEXT.NEXT); }
- /** Unsafe version of {@link #actionSetPriorityCount}. */
- public static int nactionSetPriorityCount(long struct) { return UNSAFE.getInt(null, struct + XrActiveActionSetPrioritiesEXT.ACTIONSETPRIORITYCOUNT); }
- /** Unsafe version of {@link #actionSetPriorities}. */
- public static XrActiveActionSetPriorityEXT.Buffer nactionSetPriorities(long struct) { return XrActiveActionSetPriorityEXT.create(memGetAddress(struct + XrActiveActionSetPrioritiesEXT.ACTIONSETPRIORITIES), nactionSetPriorityCount(struct)); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActiveActionSetPrioritiesEXT.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrActiveActionSetPrioritiesEXT.NEXT, value); }
- /** Sets the specified value to the {@code actionSetPriorityCount} field of the specified {@code struct}. */
- public static void nactionSetPriorityCount(long struct, int value) { UNSAFE.putInt(null, struct + XrActiveActionSetPrioritiesEXT.ACTIONSETPRIORITYCOUNT, value); }
- /** Unsafe version of {@link #actionSetPriorities(XrActiveActionSetPriorityEXT.Buffer) actionSetPriorities}. */
- public static void nactionSetPriorities(long struct, XrActiveActionSetPriorityEXT.Buffer value) { memPutAddress(struct + XrActiveActionSetPrioritiesEXT.ACTIONSETPRIORITIES, value.address()); nactionSetPriorityCount(struct, value.remaining()); }
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActiveActionSetPrioritiesEXT.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrActiveActionSetPrioritiesEXT.NEXT); }
+ /** Unsafe version of {@link #actionSetPriorityCount}. */
+ public static int nactionSetPriorityCount(long struct) { return UNSAFE.getInt(null, struct + XrActiveActionSetPrioritiesEXT.ACTIONSETPRIORITYCOUNT); }
+ /** Unsafe version of {@link #actionSetPriorities}. */
+ public static XrActiveActionSetPriorityEXT.Buffer nactionSetPriorities(long struct) { return XrActiveActionSetPriorityEXT.create(memGetAddress(struct + XrActiveActionSetPrioritiesEXT.ACTIONSETPRIORITIES), nactionSetPriorityCount(struct)); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActiveActionSetPrioritiesEXT.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrActiveActionSetPrioritiesEXT.NEXT, value); }
+ /** Sets the specified value to the {@code actionSetPriorityCount} field of the specified {@code struct}. */
+ public static void nactionSetPriorityCount(long struct, int value) { UNSAFE.putInt(null, struct + XrActiveActionSetPrioritiesEXT.ACTIONSETPRIORITYCOUNT, value); }
+ /** Unsafe version of {@link #actionSetPriorities(XrActiveActionSetPriorityEXT.Buffer) actionSetPriorities}. */
+ public static void nactionSetPriorities(long struct, XrActiveActionSetPriorityEXT.Buffer value) { memPutAddress(struct + XrActiveActionSetPrioritiesEXT.ACTIONSETPRIORITIES, value.address()); nactionSetPriorityCount(struct, value.remaining()); }
/**
* Validates pointer members that should not be {@code NULL}.
@@ -291,9 +282,9 @@ public static void validate(long struct) {
long actionSetPriorities = memGetAddress(struct + XrActiveActionSetPrioritiesEXT.ACTIONSETPRIORITIES);
check(actionSetPriorities);
validate(actionSetPriorities, actionSetPriorityCount, XrActiveActionSetPriorityEXT.SIZEOF, XrActiveActionSetPriorityEXT::validate);
- }
+ }
- // -----------------------------------
+ // -----------------------------------
/** An array of {@link XrActiveActionSetPrioritiesEXT} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -303,9 +294,9 @@ public static class Buffer extends StructBufferChanges to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrActiveActionSetPrioritiesEXT#SIZEOF}, and its mark will be undefined.
+ * by {@link XrActiveActionSetPrioritiesEXT#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -330,28 +321,28 @@ protected Buffer self() {
protected XrActiveActionSetPrioritiesEXT getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrActiveActionSetPrioritiesEXT#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrActiveActionSetPrioritiesEXT.ntype(address()); }
- /** @return the value of the {@link XrActiveActionSetPrioritiesEXT#next} field. */
- @NativeType("void const *")
- public long next() { return XrActiveActionSetPrioritiesEXT.nnext(address()); }
- /** @return the value of the {@code actionSetPriorityCount} field. */
- @NativeType("uint32_t")
- public int actionSetPriorityCount() { return XrActiveActionSetPrioritiesEXT.nactionSetPriorityCount(address()); }
- /** @return a {@link XrActiveActionSetPriorityEXT.Buffer} view of the struct array pointed to by the {@link XrActiveActionSetPrioritiesEXT#actionSetPriorities} field. */
- @NativeType("XrActiveActionSetPriorityEXT const *")
- public XrActiveActionSetPriorityEXT.Buffer actionSetPriorities() { return XrActiveActionSetPrioritiesEXT.nactionSetPriorities(address()); }
-
- /** Sets the specified value to the {@link XrActiveActionSetPrioritiesEXT#type} field. */
- public XrActiveActionSetPrioritiesEXT.Buffer type(@NativeType("XrStructureType") int value) { XrActiveActionSetPrioritiesEXT.ntype(address(), value); return this; }
- /** Sets the {@link EXTActiveActionSetPriority#XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT} value to the {@link XrActiveActionSetPrioritiesEXT#type} field. */
- public XrActiveActionSetPrioritiesEXT.Buffer type$Default() { return type(EXTActiveActionSetPriority.XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT); }
- /** Sets the specified value to the {@link XrActiveActionSetPrioritiesEXT#next} field. */
- public XrActiveActionSetPrioritiesEXT.Buffer next(@NativeType("void const *") long value) { XrActiveActionSetPrioritiesEXT.nnext(address(), value); return this; }
- /** Sets the address of the specified {@link XrActiveActionSetPriorityEXT.Buffer} to the {@link XrActiveActionSetPrioritiesEXT#actionSetPriorities} field. */
- public XrActiveActionSetPrioritiesEXT.Buffer actionSetPriorities(@NativeType("XrActiveActionSetPriorityEXT const *") XrActiveActionSetPriorityEXT.Buffer value) { XrActiveActionSetPrioritiesEXT.nactionSetPriorities(address(), value); return this; }
+
+ /** @return the value of the {@link XrActiveActionSetPrioritiesEXT#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrActiveActionSetPrioritiesEXT.ntype(address()); }
+ /** @return the value of the {@link XrActiveActionSetPrioritiesEXT#next} field. */
+ @NativeType("void const *")
+ public long next() { return XrActiveActionSetPrioritiesEXT.nnext(address()); }
+ /** @return the value of the {@code actionSetPriorityCount} field. */
+ @NativeType("uint32_t")
+ public int actionSetPriorityCount() { return XrActiveActionSetPrioritiesEXT.nactionSetPriorityCount(address()); }
+ /** @return a {@link XrActiveActionSetPriorityEXT.Buffer} view of the struct array pointed to by the {@link XrActiveActionSetPrioritiesEXT#actionSetPriorities} field. */
+ @NativeType("XrActiveActionSetPriorityEXT const *")
+ public XrActiveActionSetPriorityEXT.Buffer actionSetPriorities() { return XrActiveActionSetPrioritiesEXT.nactionSetPriorities(address()); }
+
+ /** Sets the specified value to the {@link XrActiveActionSetPrioritiesEXT#type} field. */
+ public XrActiveActionSetPrioritiesEXT.Buffer type(@NativeType("XrStructureType") int value) { XrActiveActionSetPrioritiesEXT.ntype(address(), value); return this; }
+ /** Sets the {@link EXTActiveActionSetPriority#XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT} value to the {@link XrActiveActionSetPrioritiesEXT#type} field. */
+ public XrActiveActionSetPrioritiesEXT.Buffer type$Default() { return type(EXTActiveActionSetPriority.XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT); }
+ /** Sets the specified value to the {@link XrActiveActionSetPrioritiesEXT#next} field. */
+ public XrActiveActionSetPrioritiesEXT.Buffer next(@NativeType("void const *") long value) { XrActiveActionSetPrioritiesEXT.nnext(address(), value); return this; }
+ /** Sets the address of the specified {@link XrActiveActionSetPriorityEXT.Buffer} to the {@link XrActiveActionSetPrioritiesEXT#actionSetPriorities} field. */
+ public XrActiveActionSetPrioritiesEXT.Buffer actionSetPriorities(@NativeType("XrActiveActionSetPriorityEXT const *") XrActiveActionSetPriorityEXT.Buffer value) { XrActiveActionSetPrioritiesEXT.nactionSetPriorities(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSetPriorityEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSetPriorityEXT.java
index 4b9cd6046f..1eba913375 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSetPriorityEXT.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSetPriorityEXT.java
@@ -4,18 +4,18 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Action set priority mapping.
*
@@ -37,8 +37,8 @@
* XrActionSet {@link #actionSet};
* uint32_t {@link #priorityOverride};
* }
- */
-public class XrActiveActionSetPriorityEXT extends Struct implements NativeResource {
+ */
+public class XrActiveActionSetPriorityEXT extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -48,29 +48,20 @@ public class XrActiveActionSetPriorityEXT extends Struct implements NativeResource {
@@ -263,9 +254,9 @@ public static class Buffer extends StructBufferChanges to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrActiveActionSetPriorityEXT#SIZEOF}, and its mark will be undefined.
+ * by {@link XrActiveActionSetPriorityEXT#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -290,18 +281,18 @@ protected Buffer self() {
protected XrActiveActionSetPriorityEXT getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrActiveActionSetPriorityEXT#actionSet} field. */
- @NativeType("XrActionSet")
- public long actionSet() { return XrActiveActionSetPriorityEXT.nactionSet(address()); }
- /** @return the value of the {@link XrActiveActionSetPriorityEXT#priorityOverride} field. */
- @NativeType("uint32_t")
- public int priorityOverride() { return XrActiveActionSetPriorityEXT.npriorityOverride(address()); }
-
- /** Sets the specified value to the {@link XrActiveActionSetPriorityEXT#actionSet} field. */
- public XrActiveActionSetPriorityEXT.Buffer actionSet(XrActionSet value) { XrActiveActionSetPriorityEXT.nactionSet(address(), value); return this; }
- /** Sets the specified value to the {@link XrActiveActionSetPriorityEXT#priorityOverride} field. */
- public XrActiveActionSetPriorityEXT.Buffer priorityOverride(@NativeType("uint32_t") int value) { XrActiveActionSetPriorityEXT.npriorityOverride(address(), value); return this; }
+
+ /** @return the value of the {@link XrActiveActionSetPriorityEXT#actionSet} field. */
+ @NativeType("XrActionSet")
+ public long actionSet() { return XrActiveActionSetPriorityEXT.nactionSet(address()); }
+ /** @return the value of the {@link XrActiveActionSetPriorityEXT#priorityOverride} field. */
+ @NativeType("uint32_t")
+ public int priorityOverride() { return XrActiveActionSetPriorityEXT.npriorityOverride(address()); }
+
+ /** Sets the specified value to the {@link XrActiveActionSetPriorityEXT#actionSet} field. */
+ public XrActiveActionSetPriorityEXT.Buffer actionSet(XrActionSet value) { XrActiveActionSetPriorityEXT.nactionSet(address(), value); return this; }
+ /** Sets the specified value to the {@link XrActiveActionSetPriorityEXT#priorityOverride} field. */
+ public XrActiveActionSetPriorityEXT.Buffer priorityOverride(@NativeType("uint32_t") int value) { XrActiveActionSetPriorityEXT.npriorityOverride(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrApiLayerProperties.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrApiLayerProperties.java
index 45090b3b20..9ec08315bf 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrApiLayerProperties.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrApiLayerProperties.java
@@ -4,19 +4,19 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
-import static org.lwjgl.openxr.XR10.*;
-
+
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
+import static org.lwjgl.openxr.XR10.*;
+
/**
* Structure specifying layer properties.
*
@@ -42,8 +42,8 @@
* uint32_t {@link #layerVersion};
* char {@link #description}[XR_MAX_API_LAYER_DESCRIPTION_SIZE];
* }
- */
-public class XrApiLayerProperties extends Struct implements NativeResource {
+ */
+public class XrApiLayerProperties extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -53,41 +53,32 @@ public class XrApiLayerProperties extends Struct implement
/** The struct member offsets. */
public static final int
- TYPE,
- NEXT,
- LAYERNAME,
- SPECVERSION,
- LAYERVERSION,
- DESCRIPTION;
+ TYPE,
+ NEXT,
+ LAYERNAME,
+ SPECVERSION,
+ LAYERVERSION,
+ DESCRIPTION;
static {
- Layout layout = __struct(
- __member(4),
- __member(POINTER_SIZE),
- __array(1, XR_MAX_API_LAYER_NAME_SIZE),
- __member(8),
- __member(4),
+ Layout layout = __struct(
+ __member(4),
+ __member(POINTER_SIZE),
+ __array(1, XR_MAX_API_LAYER_NAME_SIZE),
+ __member(8),
+ __member(4),
__array(1, XR_MAX_API_LAYER_DESCRIPTION_SIZE)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- TYPE = layout.offsetof(0);
- NEXT = layout.offsetof(1);
- LAYERNAME = layout.offsetof(2);
- SPECVERSION = layout.offsetof(3);
- LAYERVERSION = layout.offsetof(4);
- DESCRIPTION = layout.offsetof(5);
- }
-
- protected XrApiLayerProperties(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrApiLayerProperties create(long address, @Nullable ByteBuffer container) {
- return new XrApiLayerProperties(address, container);
+ TYPE = layout.offsetof(0);
+ NEXT = layout.offsetof(1);
+ LAYERNAME = layout.offsetof(2);
+ SPECVERSION = layout.offsetof(3);
+ LAYERVERSION = layout.offsetof(4);
+ DESCRIPTION = layout.offsetof(5);
}
/**
@@ -102,46 +93,46 @@ public XrApiLayerProperties(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the {@code XrStructureType} of this structure. */
- @NativeType("XrStructureType")
- public int type() { return ntype(address()); }
- /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
- @NativeType("void *")
- public long next() { return nnext(address()); }
- /** a string specifying the name of the API layer. Use this name in the {@link XrInstanceCreateInfo}{@code ::enabledApiLayerNames} array to enable this API layer for an instance. */
- @NativeType("char[XR_MAX_API_LAYER_NAME_SIZE]")
- public ByteBuffer layerName() { return nlayerName(address()); }
- /** a string specifying the name of the API layer. Use this name in the {@link XrInstanceCreateInfo}{@code ::enabledApiLayerNames} array to enable this API layer for an instance. */
- @NativeType("char[XR_MAX_API_LAYER_NAME_SIZE]")
- public String layerNameString() { return nlayerNameString(address()); }
- /** the API version the API layer was written to, encoded as described in the API Version Numbers and Semantics section. */
- @NativeType("XrVersion")
- public long specVersion() { return nspecVersion(address()); }
- /** the version of this API layer. It is an integer, increasing with backward compatible changes. */
- @NativeType("uint32_t")
- public int layerVersion() { return nlayerVersion(address()); }
- /** a string providing additional details that can be used by the application to identify the API layer. */
- @NativeType("char[XR_MAX_API_LAYER_DESCRIPTION_SIZE]")
- public ByteBuffer description() { return ndescription(address()); }
- /** a string providing additional details that can be used by the application to identify the API layer. */
- @NativeType("char[XR_MAX_API_LAYER_DESCRIPTION_SIZE]")
- public String descriptionString() { return ndescriptionString(address()); }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrApiLayerProperties type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_API_LAYER_PROPERTIES TYPE_API_LAYER_PROPERTIES} value to the {@link #type} field. */
- public XrApiLayerProperties type$Default() { return type(XR10.XR_TYPE_API_LAYER_PROPERTIES); }
- /** Sets the specified value to the {@link #next} field. */
- public XrApiLayerProperties next(@NativeType("void *") long value) { nnext(address(), value); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
+ @NativeType("void *")
+ public long next() { return nnext(address()); }
+ /** a string specifying the name of the API layer. Use this name in the {@link XrInstanceCreateInfo}{@code ::enabledApiLayerNames} array to enable this API layer for an instance. */
+ @NativeType("char[XR_MAX_API_LAYER_NAME_SIZE]")
+ public ByteBuffer layerName() { return nlayerName(address()); }
+ /** a string specifying the name of the API layer. Use this name in the {@link XrInstanceCreateInfo}{@code ::enabledApiLayerNames} array to enable this API layer for an instance. */
+ @NativeType("char[XR_MAX_API_LAYER_NAME_SIZE]")
+ public String layerNameString() { return nlayerNameString(address()); }
+ /** the API version the API layer was written to, encoded as described in the API Version Numbers and Semantics section. */
+ @NativeType("XrVersion")
+ public long specVersion() { return nspecVersion(address()); }
+ /** the version of this API layer. It is an integer, increasing with backward compatible changes. */
+ @NativeType("uint32_t")
+ public int layerVersion() { return nlayerVersion(address()); }
+ /** a string providing additional details that can be used by the application to identify the API layer. */
+ @NativeType("char[XR_MAX_API_LAYER_DESCRIPTION_SIZE]")
+ public ByteBuffer description() { return ndescription(address()); }
+ /** a string providing additional details that can be used by the application to identify the API layer. */
+ @NativeType("char[XR_MAX_API_LAYER_DESCRIPTION_SIZE]")
+ public String descriptionString() { return ndescriptionString(address()); }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrApiLayerProperties type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_API_LAYER_PROPERTIES TYPE_API_LAYER_PROPERTIES} value to the {@link #type} field. */
+ public XrApiLayerProperties type$Default() { return type(XR10.XR_TYPE_API_LAYER_PROPERTIES); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrApiLayerProperties next(@NativeType("void *") long value) { nnext(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrApiLayerProperties set(
- int type,
+ int type,
long next
- ) {
- type(type);
- next(next);
+ ) {
+ type(type);
+ next(next);
return this;
}
@@ -162,29 +153,29 @@ public XrApiLayerProperties set(XrApiLayerProperties src) {
/** Returns a new {@code XrApiLayerProperties} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrApiLayerProperties malloc() {
- return new XrApiLayerProperties(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrApiLayerProperties.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrApiLayerProperties} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrApiLayerProperties calloc() {
- return new XrApiLayerProperties(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrApiLayerProperties.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrApiLayerProperties} instance allocated with {@link BufferUtils}. */
public static XrApiLayerProperties create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrApiLayerProperties(memAddress(container), container);
+ return wrap(XrApiLayerProperties.class, memAddress(container), container);
}
/** Returns a new {@code XrApiLayerProperties} instance for the specified memory address. */
public static XrApiLayerProperties create(long address) {
- return new XrApiLayerProperties(address, null);
+ return wrap(XrApiLayerProperties.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrApiLayerProperties createSafe(long address) {
- return address == NULL ? null : new XrApiLayerProperties(address, null);
+ return address == NULL ? null : wrap(XrApiLayerProperties.class, address);
}
/**
@@ -193,7 +184,7 @@ public static XrApiLayerProperties createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrApiLayerProperties.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -202,7 +193,7 @@ public static XrApiLayerProperties.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrApiLayerProperties.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -212,7 +203,7 @@ public static XrApiLayerProperties.Buffer calloc(int capacity) {
*/
public static XrApiLayerProperties.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -222,13 +213,13 @@ public static XrApiLayerProperties.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrApiLayerProperties.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrApiLayerProperties.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -237,7 +228,7 @@ public static XrApiLayerProperties.Buffer createSafe(long address, int capacity)
* @param stack the stack from which to allocate
*/
public static XrApiLayerProperties malloc(MemoryStack stack) {
- return new XrApiLayerProperties(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrApiLayerProperties.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -246,7 +237,7 @@ public static XrApiLayerProperties malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrApiLayerProperties calloc(MemoryStack stack) {
- return new XrApiLayerProperties(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrApiLayerProperties.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -256,7 +247,7 @@ public static XrApiLayerProperties calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrApiLayerProperties.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -266,34 +257,34 @@ public static XrApiLayerProperties.Buffer malloc(int capacity, MemoryStack stack
* @param capacity the buffer capacity
*/
public static XrApiLayerProperties.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrApiLayerProperties.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrApiLayerProperties.NEXT); }
- /** Unsafe version of {@link #layerName}. */
- public static ByteBuffer nlayerName(long struct) { return memByteBuffer(struct + XrApiLayerProperties.LAYERNAME, XR_MAX_API_LAYER_NAME_SIZE); }
- /** Unsafe version of {@link #layerNameString}. */
- public static String nlayerNameString(long struct) { return memUTF8(struct + XrApiLayerProperties.LAYERNAME); }
- /** Unsafe version of {@link #specVersion}. */
- public static long nspecVersion(long struct) { return UNSAFE.getLong(null, struct + XrApiLayerProperties.SPECVERSION); }
- /** Unsafe version of {@link #layerVersion}. */
- public static int nlayerVersion(long struct) { return UNSAFE.getInt(null, struct + XrApiLayerProperties.LAYERVERSION); }
- /** Unsafe version of {@link #description}. */
- public static ByteBuffer ndescription(long struct) { return memByteBuffer(struct + XrApiLayerProperties.DESCRIPTION, XR_MAX_API_LAYER_DESCRIPTION_SIZE); }
- /** Unsafe version of {@link #descriptionString}. */
- public static String ndescriptionString(long struct) { return memUTF8(struct + XrApiLayerProperties.DESCRIPTION); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrApiLayerProperties.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrApiLayerProperties.NEXT, value); }
-
- // -----------------------------------
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrApiLayerProperties.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrApiLayerProperties.NEXT); }
+ /** Unsafe version of {@link #layerName}. */
+ public static ByteBuffer nlayerName(long struct) { return memByteBuffer(struct + XrApiLayerProperties.LAYERNAME, XR_MAX_API_LAYER_NAME_SIZE); }
+ /** Unsafe version of {@link #layerNameString}. */
+ public static String nlayerNameString(long struct) { return memUTF8(struct + XrApiLayerProperties.LAYERNAME); }
+ /** Unsafe version of {@link #specVersion}. */
+ public static long nspecVersion(long struct) { return UNSAFE.getLong(null, struct + XrApiLayerProperties.SPECVERSION); }
+ /** Unsafe version of {@link #layerVersion}. */
+ public static int nlayerVersion(long struct) { return UNSAFE.getInt(null, struct + XrApiLayerProperties.LAYERVERSION); }
+ /** Unsafe version of {@link #description}. */
+ public static ByteBuffer ndescription(long struct) { return memByteBuffer(struct + XrApiLayerProperties.DESCRIPTION, XR_MAX_API_LAYER_DESCRIPTION_SIZE); }
+ /** Unsafe version of {@link #descriptionString}. */
+ public static String ndescriptionString(long struct) { return memUTF8(struct + XrApiLayerProperties.DESCRIPTION); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrApiLayerProperties.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrApiLayerProperties.NEXT, value); }
+
+ // -----------------------------------
/** An array of {@link XrApiLayerProperties} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -303,9 +294,9 @@ public static class Buffer extends StructBuffer im
/**
* Creates a new {@code XrApiLayerProperties.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrApiLayerProperties#SIZEOF}, and its mark will be undefined.
+ * by {@link XrApiLayerProperties#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -330,38 +321,38 @@ protected Buffer self() {
protected XrApiLayerProperties getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrApiLayerProperties#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrApiLayerProperties.ntype(address()); }
- /** @return the value of the {@link XrApiLayerProperties#next} field. */
- @NativeType("void *")
- public long next() { return XrApiLayerProperties.nnext(address()); }
- /** @return a {@link ByteBuffer} view of the {@link XrApiLayerProperties#layerName} field. */
- @NativeType("char[XR_MAX_API_LAYER_NAME_SIZE]")
- public ByteBuffer layerName() { return XrApiLayerProperties.nlayerName(address()); }
- /** @return the null-terminated string stored in the {@link XrApiLayerProperties#layerName} field. */
- @NativeType("char[XR_MAX_API_LAYER_NAME_SIZE]")
- public String layerNameString() { return XrApiLayerProperties.nlayerNameString(address()); }
- /** @return the value of the {@link XrApiLayerProperties#specVersion} field. */
- @NativeType("XrVersion")
- public long specVersion() { return XrApiLayerProperties.nspecVersion(address()); }
- /** @return the value of the {@link XrApiLayerProperties#layerVersion} field. */
- @NativeType("uint32_t")
- public int layerVersion() { return XrApiLayerProperties.nlayerVersion(address()); }
- /** @return a {@link ByteBuffer} view of the {@link XrApiLayerProperties#description} field. */
- @NativeType("char[XR_MAX_API_LAYER_DESCRIPTION_SIZE]")
- public ByteBuffer description() { return XrApiLayerProperties.ndescription(address()); }
- /** @return the null-terminated string stored in the {@link XrApiLayerProperties#description} field. */
- @NativeType("char[XR_MAX_API_LAYER_DESCRIPTION_SIZE]")
- public String descriptionString() { return XrApiLayerProperties.ndescriptionString(address()); }
-
- /** Sets the specified value to the {@link XrApiLayerProperties#type} field. */
- public XrApiLayerProperties.Buffer type(@NativeType("XrStructureType") int value) { XrApiLayerProperties.ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_API_LAYER_PROPERTIES TYPE_API_LAYER_PROPERTIES} value to the {@link XrApiLayerProperties#type} field. */
- public XrApiLayerProperties.Buffer type$Default() { return type(XR10.XR_TYPE_API_LAYER_PROPERTIES); }
- /** Sets the specified value to the {@link XrApiLayerProperties#next} field. */
- public XrApiLayerProperties.Buffer next(@NativeType("void *") long value) { XrApiLayerProperties.nnext(address(), value); return this; }
+
+ /** @return the value of the {@link XrApiLayerProperties#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrApiLayerProperties.ntype(address()); }
+ /** @return the value of the {@link XrApiLayerProperties#next} field. */
+ @NativeType("void *")
+ public long next() { return XrApiLayerProperties.nnext(address()); }
+ /** @return a {@link ByteBuffer} view of the {@link XrApiLayerProperties#layerName} field. */
+ @NativeType("char[XR_MAX_API_LAYER_NAME_SIZE]")
+ public ByteBuffer layerName() { return XrApiLayerProperties.nlayerName(address()); }
+ /** @return the null-terminated string stored in the {@link XrApiLayerProperties#layerName} field. */
+ @NativeType("char[XR_MAX_API_LAYER_NAME_SIZE]")
+ public String layerNameString() { return XrApiLayerProperties.nlayerNameString(address()); }
+ /** @return the value of the {@link XrApiLayerProperties#specVersion} field. */
+ @NativeType("XrVersion")
+ public long specVersion() { return XrApiLayerProperties.nspecVersion(address()); }
+ /** @return the value of the {@link XrApiLayerProperties#layerVersion} field. */
+ @NativeType("uint32_t")
+ public int layerVersion() { return XrApiLayerProperties.nlayerVersion(address()); }
+ /** @return a {@link ByteBuffer} view of the {@link XrApiLayerProperties#description} field. */
+ @NativeType("char[XR_MAX_API_LAYER_DESCRIPTION_SIZE]")
+ public ByteBuffer description() { return XrApiLayerProperties.ndescription(address()); }
+ /** @return the null-terminated string stored in the {@link XrApiLayerProperties#description} field. */
+ @NativeType("char[XR_MAX_API_LAYER_DESCRIPTION_SIZE]")
+ public String descriptionString() { return XrApiLayerProperties.ndescriptionString(address()); }
+
+ /** Sets the specified value to the {@link XrApiLayerProperties#type} field. */
+ public XrApiLayerProperties.Buffer type(@NativeType("XrStructureType") int value) { XrApiLayerProperties.ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_API_LAYER_PROPERTIES TYPE_API_LAYER_PROPERTIES} value to the {@link XrApiLayerProperties#type} field. */
+ public XrApiLayerProperties.Buffer type$Default() { return type(XR10.XR_TYPE_API_LAYER_PROPERTIES); }
+ /** Sets the specified value to the {@link XrApiLayerProperties#next} field. */
+ public XrApiLayerProperties.Buffer next(@NativeType("void *") long value) { XrApiLayerProperties.nnext(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrApplicationInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrApplicationInfo.java
index f62fddc122..20e9420391 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrApplicationInfo.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrApplicationInfo.java
@@ -4,20 +4,20 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
-import static org.lwjgl.openxr.XR10.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
+import static org.lwjgl.openxr.XR10.*;
+
/**
* Structure specifying application info.
*
@@ -49,8 +49,8 @@
* uint32_t {@link #engineVersion};
* XrVersion {@link #apiVersion};
* }
- */
-public class XrApplicationInfo extends Struct implements NativeResource {
+ */
+public class XrApplicationInfo extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -60,38 +60,29 @@ public class XrApplicationInfo extends Struct implements Nati
/** The struct member offsets. */
public static final int
- APPLICATIONNAME,
- APPLICATIONVERSION,
- ENGINENAME,
- ENGINEVERSION,
- APIVERSION;
+ APPLICATIONNAME,
+ APPLICATIONVERSION,
+ ENGINENAME,
+ ENGINEVERSION,
+ APIVERSION;
static {
- Layout layout = __struct(
- __array(1, XR_MAX_APPLICATION_NAME_SIZE),
- __member(4),
- __array(1, XR_MAX_ENGINE_NAME_SIZE),
- __member(4),
+ Layout layout = __struct(
+ __array(1, XR_MAX_APPLICATION_NAME_SIZE),
+ __member(4),
+ __array(1, XR_MAX_ENGINE_NAME_SIZE),
+ __member(4),
__member(8)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- APPLICATIONNAME = layout.offsetof(0);
- APPLICATIONVERSION = layout.offsetof(1);
- ENGINENAME = layout.offsetof(2);
- ENGINEVERSION = layout.offsetof(3);
- APIVERSION = layout.offsetof(4);
- }
-
- protected XrApplicationInfo(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrApplicationInfo create(long address, @Nullable ByteBuffer container) {
- return new XrApplicationInfo(address, container);
+ APPLICATIONNAME = layout.offsetof(0);
+ APPLICATIONVERSION = layout.offsetof(1);
+ ENGINENAME = layout.offsetof(2);
+ ENGINEVERSION = layout.offsetof(3);
+ APIVERSION = layout.offsetof(4);
}
/**
@@ -106,53 +97,53 @@ public XrApplicationInfo(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** a non-empty string containing the name of the application. */
- @NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]")
- public ByteBuffer applicationName() { return napplicationName(address()); }
- /** a non-empty string containing the name of the application. */
- @NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]")
- public String applicationNameString() { return napplicationNameString(address()); }
- /** an unsigned integer variable containing the developer-supplied version number of the application. */
- @NativeType("uint32_t")
- public int applicationVersion() { return napplicationVersion(address()); }
- /** a string containing the name of the engine (if any) used to create the application. It may be empty to indicate no specified engine. */
- @NativeType("char[XR_MAX_ENGINE_NAME_SIZE]")
- public ByteBuffer engineName() { return nengineName(address()); }
- /** a string containing the name of the engine (if any) used to create the application. It may be empty to indicate no specified engine. */
- @NativeType("char[XR_MAX_ENGINE_NAME_SIZE]")
- public String engineNameString() { return nengineNameString(address()); }
- /** an unsigned integer variable containing the developer-supplied version number of the engine used to create the application. May be zero to indicate no specified engine. */
- @NativeType("uint32_t")
- public int engineVersion() { return nengineVersion(address()); }
- /** the version of this API against which the application will run, encoded as described in the API Version Numbers and Semantics section. If the runtime does not support the requested {@code apiVersion} it must return {@link XR10#XR_ERROR_API_VERSION_UNSUPPORTED ERROR_API_VERSION_UNSUPPORTED}. */
- @NativeType("XrVersion")
- public long apiVersion() { return napiVersion(address()); }
-
- /** Copies the specified encoded string to the {@link #applicationName} field. */
- public XrApplicationInfo applicationName(@NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]") ByteBuffer value) { napplicationName(address(), value); return this; }
- /** Sets the specified value to the {@link #applicationVersion} field. */
- public XrApplicationInfo applicationVersion(@NativeType("uint32_t") int value) { napplicationVersion(address(), value); return this; }
- /** Copies the specified encoded string to the {@link #engineName} field. */
- public XrApplicationInfo engineName(@NativeType("char[XR_MAX_ENGINE_NAME_SIZE]") ByteBuffer value) { nengineName(address(), value); return this; }
- /** Sets the specified value to the {@link #engineVersion} field. */
- public XrApplicationInfo engineVersion(@NativeType("uint32_t") int value) { nengineVersion(address(), value); return this; }
- /** Sets the specified value to the {@link #apiVersion} field. */
- public XrApplicationInfo apiVersion(@NativeType("XrVersion") long value) { napiVersion(address(), value); return this; }
+
+ /** a non-empty string containing the name of the application. */
+ @NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]")
+ public ByteBuffer applicationName() { return napplicationName(address()); }
+ /** a non-empty string containing the name of the application. */
+ @NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]")
+ public String applicationNameString() { return napplicationNameString(address()); }
+ /** an unsigned integer variable containing the developer-supplied version number of the application. */
+ @NativeType("uint32_t")
+ public int applicationVersion() { return napplicationVersion(address()); }
+ /** a string containing the name of the engine (if any) used to create the application. It may be empty to indicate no specified engine. */
+ @NativeType("char[XR_MAX_ENGINE_NAME_SIZE]")
+ public ByteBuffer engineName() { return nengineName(address()); }
+ /** a string containing the name of the engine (if any) used to create the application. It may be empty to indicate no specified engine. */
+ @NativeType("char[XR_MAX_ENGINE_NAME_SIZE]")
+ public String engineNameString() { return nengineNameString(address()); }
+ /** an unsigned integer variable containing the developer-supplied version number of the engine used to create the application. May be zero to indicate no specified engine. */
+ @NativeType("uint32_t")
+ public int engineVersion() { return nengineVersion(address()); }
+ /** the version of this API against which the application will run, encoded as described in the API Version Numbers and Semantics section. If the runtime does not support the requested {@code apiVersion} it must return {@link XR10#XR_ERROR_API_VERSION_UNSUPPORTED ERROR_API_VERSION_UNSUPPORTED}. */
+ @NativeType("XrVersion")
+ public long apiVersion() { return napiVersion(address()); }
+
+ /** Copies the specified encoded string to the {@link #applicationName} field. */
+ public XrApplicationInfo applicationName(@NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]") ByteBuffer value) { napplicationName(address(), value); return this; }
+ /** Sets the specified value to the {@link #applicationVersion} field. */
+ public XrApplicationInfo applicationVersion(@NativeType("uint32_t") int value) { napplicationVersion(address(), value); return this; }
+ /** Copies the specified encoded string to the {@link #engineName} field. */
+ public XrApplicationInfo engineName(@NativeType("char[XR_MAX_ENGINE_NAME_SIZE]") ByteBuffer value) { nengineName(address(), value); return this; }
+ /** Sets the specified value to the {@link #engineVersion} field. */
+ public XrApplicationInfo engineVersion(@NativeType("uint32_t") int value) { nengineVersion(address(), value); return this; }
+ /** Sets the specified value to the {@link #apiVersion} field. */
+ public XrApplicationInfo apiVersion(@NativeType("XrVersion") long value) { napiVersion(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrApplicationInfo set(
- ByteBuffer applicationName,
- int applicationVersion,
- ByteBuffer engineName,
- int engineVersion,
+ ByteBuffer applicationName,
+ int applicationVersion,
+ ByteBuffer engineName,
+ int engineVersion,
long apiVersion
- ) {
- applicationName(applicationName);
- applicationVersion(applicationVersion);
- engineName(engineName);
- engineVersion(engineVersion);
- apiVersion(apiVersion);
+ ) {
+ applicationName(applicationName);
+ applicationVersion(applicationVersion);
+ engineName(engineName);
+ engineVersion(engineVersion);
+ apiVersion(apiVersion);
return this;
}
@@ -173,29 +164,29 @@ public XrApplicationInfo set(XrApplicationInfo src) {
/** Returns a new {@code XrApplicationInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrApplicationInfo malloc() {
- return new XrApplicationInfo(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrApplicationInfo.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrApplicationInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrApplicationInfo calloc() {
- return new XrApplicationInfo(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrApplicationInfo.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrApplicationInfo} instance allocated with {@link BufferUtils}. */
public static XrApplicationInfo create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrApplicationInfo(memAddress(container), container);
+ return wrap(XrApplicationInfo.class, memAddress(container), container);
}
/** Returns a new {@code XrApplicationInfo} instance for the specified memory address. */
public static XrApplicationInfo create(long address) {
- return new XrApplicationInfo(address, null);
+ return wrap(XrApplicationInfo.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrApplicationInfo createSafe(long address) {
- return address == NULL ? null : new XrApplicationInfo(address, null);
+ return address == NULL ? null : wrap(XrApplicationInfo.class, address);
}
/**
@@ -204,7 +195,7 @@ public static XrApplicationInfo createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrApplicationInfo.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -213,7 +204,7 @@ public static XrApplicationInfo.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrApplicationInfo.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -223,7 +214,7 @@ public static XrApplicationInfo.Buffer calloc(int capacity) {
*/
public static XrApplicationInfo.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -233,13 +224,13 @@ public static XrApplicationInfo.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrApplicationInfo.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrApplicationInfo.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -248,7 +239,7 @@ public static XrApplicationInfo.Buffer createSafe(long address, int capacity) {
* @param stack the stack from which to allocate
*/
public static XrApplicationInfo malloc(MemoryStack stack) {
- return new XrApplicationInfo(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrApplicationInfo.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -257,7 +248,7 @@ public static XrApplicationInfo malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrApplicationInfo calloc(MemoryStack stack) {
- return new XrApplicationInfo(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrApplicationInfo.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -267,7 +258,7 @@ public static XrApplicationInfo calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrApplicationInfo.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -277,50 +268,50 @@ public static XrApplicationInfo.Buffer malloc(int capacity, MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrApplicationInfo.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ }
+
+ // -----------------------------------
+
+ /** Unsafe version of {@link #applicationName}. */
+ public static ByteBuffer napplicationName(long struct) { return memByteBuffer(struct + XrApplicationInfo.APPLICATIONNAME, XR_MAX_APPLICATION_NAME_SIZE); }
+ /** Unsafe version of {@link #applicationNameString}. */
+ public static String napplicationNameString(long struct) { return memUTF8(struct + XrApplicationInfo.APPLICATIONNAME); }
+ /** Unsafe version of {@link #applicationVersion}. */
+ public static int napplicationVersion(long struct) { return UNSAFE.getInt(null, struct + XrApplicationInfo.APPLICATIONVERSION); }
+ /** Unsafe version of {@link #engineName}. */
+ public static ByteBuffer nengineName(long struct) { return memByteBuffer(struct + XrApplicationInfo.ENGINENAME, XR_MAX_ENGINE_NAME_SIZE); }
+ /** Unsafe version of {@link #engineNameString}. */
+ public static String nengineNameString(long struct) { return memUTF8(struct + XrApplicationInfo.ENGINENAME); }
+ /** Unsafe version of {@link #engineVersion}. */
+ public static int nengineVersion(long struct) { return UNSAFE.getInt(null, struct + XrApplicationInfo.ENGINEVERSION); }
+ /** Unsafe version of {@link #apiVersion}. */
+ public static long napiVersion(long struct) { return UNSAFE.getLong(null, struct + XrApplicationInfo.APIVERSION); }
+
+ /** Unsafe version of {@link #applicationName(ByteBuffer) applicationName}. */
+ public static void napplicationName(long struct, ByteBuffer value) {
+ if (CHECKS) {
+ checkNT1(value);
+ checkGT(value, XR_MAX_APPLICATION_NAME_SIZE);
+ }
+ memCopy(memAddress(value), struct + XrApplicationInfo.APPLICATIONNAME, value.remaining());
}
+ /** Unsafe version of {@link #applicationVersion(int) applicationVersion}. */
+ public static void napplicationVersion(long struct, int value) { UNSAFE.putInt(null, struct + XrApplicationInfo.APPLICATIONVERSION, value); }
+ /** Unsafe version of {@link #engineName(ByteBuffer) engineName}. */
+ public static void nengineName(long struct, ByteBuffer value) {
+ if (CHECKS) {
+ checkNT1(value);
+ checkGT(value, XR_MAX_ENGINE_NAME_SIZE);
+ }
+ memCopy(memAddress(value), struct + XrApplicationInfo.ENGINENAME, value.remaining());
+ }
+ /** Unsafe version of {@link #engineVersion(int) engineVersion}. */
+ public static void nengineVersion(long struct, int value) { UNSAFE.putInt(null, struct + XrApplicationInfo.ENGINEVERSION, value); }
+ /** Unsafe version of {@link #apiVersion(long) apiVersion}. */
+ public static void napiVersion(long struct, long value) { UNSAFE.putLong(null, struct + XrApplicationInfo.APIVERSION, value); }
// -----------------------------------
-
- /** Unsafe version of {@link #applicationName}. */
- public static ByteBuffer napplicationName(long struct) { return memByteBuffer(struct + XrApplicationInfo.APPLICATIONNAME, XR_MAX_APPLICATION_NAME_SIZE); }
- /** Unsafe version of {@link #applicationNameString}. */
- public static String napplicationNameString(long struct) { return memUTF8(struct + XrApplicationInfo.APPLICATIONNAME); }
- /** Unsafe version of {@link #applicationVersion}. */
- public static int napplicationVersion(long struct) { return UNSAFE.getInt(null, struct + XrApplicationInfo.APPLICATIONVERSION); }
- /** Unsafe version of {@link #engineName}. */
- public static ByteBuffer nengineName(long struct) { return memByteBuffer(struct + XrApplicationInfo.ENGINENAME, XR_MAX_ENGINE_NAME_SIZE); }
- /** Unsafe version of {@link #engineNameString}. */
- public static String nengineNameString(long struct) { return memUTF8(struct + XrApplicationInfo.ENGINENAME); }
- /** Unsafe version of {@link #engineVersion}. */
- public static int nengineVersion(long struct) { return UNSAFE.getInt(null, struct + XrApplicationInfo.ENGINEVERSION); }
- /** Unsafe version of {@link #apiVersion}. */
- public static long napiVersion(long struct) { return UNSAFE.getLong(null, struct + XrApplicationInfo.APIVERSION); }
-
- /** Unsafe version of {@link #applicationName(ByteBuffer) applicationName}. */
- public static void napplicationName(long struct, ByteBuffer value) {
- if (CHECKS) {
- checkNT1(value);
- checkGT(value, XR_MAX_APPLICATION_NAME_SIZE);
- }
- memCopy(memAddress(value), struct + XrApplicationInfo.APPLICATIONNAME, value.remaining());
- }
- /** Unsafe version of {@link #applicationVersion(int) applicationVersion}. */
- public static void napplicationVersion(long struct, int value) { UNSAFE.putInt(null, struct + XrApplicationInfo.APPLICATIONVERSION, value); }
- /** Unsafe version of {@link #engineName(ByteBuffer) engineName}. */
- public static void nengineName(long struct, ByteBuffer value) {
- if (CHECKS) {
- checkNT1(value);
- checkGT(value, XR_MAX_ENGINE_NAME_SIZE);
- }
- memCopy(memAddress(value), struct + XrApplicationInfo.ENGINENAME, value.remaining());
- }
- /** Unsafe version of {@link #engineVersion(int) engineVersion}. */
- public static void nengineVersion(long struct, int value) { UNSAFE.putInt(null, struct + XrApplicationInfo.ENGINEVERSION, value); }
- /** Unsafe version of {@link #apiVersion(long) apiVersion}. */
- public static void napiVersion(long struct, long value) { UNSAFE.putLong(null, struct + XrApplicationInfo.APIVERSION, value); }
-
- // -----------------------------------
/** An array of {@link XrApplicationInfo} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -330,9 +321,9 @@ public static class Buffer extends StructBuffer imple
/**
* Creates a new {@code XrApplicationInfo.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrApplicationInfo#SIZEOF}, and its mark will be undefined.
+ * by {@link XrApplicationInfo#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -357,39 +348,39 @@ protected Buffer self() {
protected XrApplicationInfo getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return a {@link ByteBuffer} view of the {@link XrApplicationInfo#applicationName} field. */
- @NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]")
- public ByteBuffer applicationName() { return XrApplicationInfo.napplicationName(address()); }
- /** @return the null-terminated string stored in the {@link XrApplicationInfo#applicationName} field. */
- @NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]")
- public String applicationNameString() { return XrApplicationInfo.napplicationNameString(address()); }
- /** @return the value of the {@link XrApplicationInfo#applicationVersion} field. */
- @NativeType("uint32_t")
- public int applicationVersion() { return XrApplicationInfo.napplicationVersion(address()); }
- /** @return a {@link ByteBuffer} view of the {@link XrApplicationInfo#engineName} field. */
- @NativeType("char[XR_MAX_ENGINE_NAME_SIZE]")
- public ByteBuffer engineName() { return XrApplicationInfo.nengineName(address()); }
- /** @return the null-terminated string stored in the {@link XrApplicationInfo#engineName} field. */
- @NativeType("char[XR_MAX_ENGINE_NAME_SIZE]")
- public String engineNameString() { return XrApplicationInfo.nengineNameString(address()); }
- /** @return the value of the {@link XrApplicationInfo#engineVersion} field. */
- @NativeType("uint32_t")
- public int engineVersion() { return XrApplicationInfo.nengineVersion(address()); }
- /** @return the value of the {@link XrApplicationInfo#apiVersion} field. */
- @NativeType("XrVersion")
- public long apiVersion() { return XrApplicationInfo.napiVersion(address()); }
-
- /** Copies the specified encoded string to the {@link XrApplicationInfo#applicationName} field. */
- public XrApplicationInfo.Buffer applicationName(@NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]") ByteBuffer value) { XrApplicationInfo.napplicationName(address(), value); return this; }
- /** Sets the specified value to the {@link XrApplicationInfo#applicationVersion} field. */
- public XrApplicationInfo.Buffer applicationVersion(@NativeType("uint32_t") int value) { XrApplicationInfo.napplicationVersion(address(), value); return this; }
- /** Copies the specified encoded string to the {@link XrApplicationInfo#engineName} field. */
- public XrApplicationInfo.Buffer engineName(@NativeType("char[XR_MAX_ENGINE_NAME_SIZE]") ByteBuffer value) { XrApplicationInfo.nengineName(address(), value); return this; }
- /** Sets the specified value to the {@link XrApplicationInfo#engineVersion} field. */
- public XrApplicationInfo.Buffer engineVersion(@NativeType("uint32_t") int value) { XrApplicationInfo.nengineVersion(address(), value); return this; }
- /** Sets the specified value to the {@link XrApplicationInfo#apiVersion} field. */
- public XrApplicationInfo.Buffer apiVersion(@NativeType("XrVersion") long value) { XrApplicationInfo.napiVersion(address(), value); return this; }
+
+ /** @return a {@link ByteBuffer} view of the {@link XrApplicationInfo#applicationName} field. */
+ @NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]")
+ public ByteBuffer applicationName() { return XrApplicationInfo.napplicationName(address()); }
+ /** @return the null-terminated string stored in the {@link XrApplicationInfo#applicationName} field. */
+ @NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]")
+ public String applicationNameString() { return XrApplicationInfo.napplicationNameString(address()); }
+ /** @return the value of the {@link XrApplicationInfo#applicationVersion} field. */
+ @NativeType("uint32_t")
+ public int applicationVersion() { return XrApplicationInfo.napplicationVersion(address()); }
+ /** @return a {@link ByteBuffer} view of the {@link XrApplicationInfo#engineName} field. */
+ @NativeType("char[XR_MAX_ENGINE_NAME_SIZE]")
+ public ByteBuffer engineName() { return XrApplicationInfo.nengineName(address()); }
+ /** @return the null-terminated string stored in the {@link XrApplicationInfo#engineName} field. */
+ @NativeType("char[XR_MAX_ENGINE_NAME_SIZE]")
+ public String engineNameString() { return XrApplicationInfo.nengineNameString(address()); }
+ /** @return the value of the {@link XrApplicationInfo#engineVersion} field. */
+ @NativeType("uint32_t")
+ public int engineVersion() { return XrApplicationInfo.nengineVersion(address()); }
+ /** @return the value of the {@link XrApplicationInfo#apiVersion} field. */
+ @NativeType("XrVersion")
+ public long apiVersion() { return XrApplicationInfo.napiVersion(address()); }
+
+ /** Copies the specified encoded string to the {@link XrApplicationInfo#applicationName} field. */
+ public XrApplicationInfo.Buffer applicationName(@NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]") ByteBuffer value) { XrApplicationInfo.napplicationName(address(), value); return this; }
+ /** Sets the specified value to the {@link XrApplicationInfo#applicationVersion} field. */
+ public XrApplicationInfo.Buffer applicationVersion(@NativeType("uint32_t") int value) { XrApplicationInfo.napplicationVersion(address(), value); return this; }
+ /** Copies the specified encoded string to the {@link XrApplicationInfo#engineName} field. */
+ public XrApplicationInfo.Buffer engineName(@NativeType("char[XR_MAX_ENGINE_NAME_SIZE]") ByteBuffer value) { XrApplicationInfo.nengineName(address(), value); return this; }
+ /** Sets the specified value to the {@link XrApplicationInfo#engineVersion} field. */
+ public XrApplicationInfo.Buffer engineVersion(@NativeType("uint32_t") int value) { XrApplicationInfo.nengineVersion(address(), value); return this; }
+ /** Sets the specified value to the {@link XrApplicationInfo#apiVersion} field. */
+ public XrApplicationInfo.Buffer apiVersion(@NativeType("XrVersion") long value) { XrApplicationInfo.napiVersion(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBaseInStructure.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBaseInStructure.java
index 4264704d4d..6cb070ec29 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBaseInStructure.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBaseInStructure.java
@@ -4,18 +4,18 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Convenience type for iterating (read only).
*
@@ -34,8 +34,8 @@
* XrStructureType {@link #type};
* {@link XrBaseInStructure XrBaseInStructure} const * {@link #next};
* }
- */
-public class XrBaseInStructure extends Struct implements NativeResource {
+ */
+public class XrBaseInStructure extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -45,29 +45,20 @@ public class XrBaseInStructure extends Struct implements Nati
/** The struct member offsets. */
public static final int
- TYPE,
- NEXT;
+ TYPE,
+ NEXT;
static {
- Layout layout = __struct(
- __member(4),
+ Layout layout = __struct(
+ __member(4),
__member(POINTER_SIZE)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- TYPE = layout.offsetof(0);
- NEXT = layout.offsetof(1);
- }
-
- protected XrBaseInStructure(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrBaseInStructure create(long address, @Nullable ByteBuffer container) {
- return new XrBaseInStructure(address, container);
+ TYPE = layout.offsetof(0);
+ NEXT = layout.offsetof(1);
}
/**
@@ -82,26 +73,26 @@ public XrBaseInStructure(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the {@code XrStructureType} of this structure. This base structure itself has no associated {@code XrStructureType} value. */
- @NativeType("XrStructureType")
- public int type() { return ntype(address()); }
- /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
- @NativeType("XrBaseInStructure const *")
- public XrBaseInStructure next() { return nnext(address()); }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrBaseInStructure type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the address of the specified {@link XrBaseInStructure} to the {@link #next} field. */
- public XrBaseInStructure next(@NativeType("XrBaseInStructure const *") XrBaseInStructure value) { nnext(address(), value); return this; }
+
+ /** the {@code XrStructureType} of this structure. This base structure itself has no associated {@code XrStructureType} value. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
+ @NativeType("XrBaseInStructure const *")
+ public XrBaseInStructure next() { return nnext(address()); }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrBaseInStructure type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the address of the specified {@link XrBaseInStructure} to the {@link #next} field. */
+ public XrBaseInStructure next(@NativeType("XrBaseInStructure const *") XrBaseInStructure value) { nnext(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrBaseInStructure set(
- int type,
+ int type,
XrBaseInStructure next
- ) {
- type(type);
- next(next);
+ ) {
+ type(type);
+ next(next);
return this;
}
@@ -122,29 +113,29 @@ public XrBaseInStructure set(XrBaseInStructure src) {
/** Returns a new {@code XrBaseInStructure} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrBaseInStructure malloc() {
- return new XrBaseInStructure(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrBaseInStructure.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrBaseInStructure} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrBaseInStructure calloc() {
- return new XrBaseInStructure(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrBaseInStructure.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrBaseInStructure} instance allocated with {@link BufferUtils}. */
public static XrBaseInStructure create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrBaseInStructure(memAddress(container), container);
+ return wrap(XrBaseInStructure.class, memAddress(container), container);
}
/** Returns a new {@code XrBaseInStructure} instance for the specified memory address. */
public static XrBaseInStructure create(long address) {
- return new XrBaseInStructure(address, null);
+ return wrap(XrBaseInStructure.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrBaseInStructure createSafe(long address) {
- return address == NULL ? null : new XrBaseInStructure(address, null);
+ return address == NULL ? null : wrap(XrBaseInStructure.class, address);
}
/**
@@ -153,7 +144,7 @@ public static XrBaseInStructure createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrBaseInStructure.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -162,7 +153,7 @@ public static XrBaseInStructure.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrBaseInStructure.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -172,7 +163,7 @@ public static XrBaseInStructure.Buffer calloc(int capacity) {
*/
public static XrBaseInStructure.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -182,13 +173,13 @@ public static XrBaseInStructure.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrBaseInStructure.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrBaseInStructure.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -197,7 +188,7 @@ public static XrBaseInStructure.Buffer createSafe(long address, int capacity) {
* @param stack the stack from which to allocate
*/
public static XrBaseInStructure malloc(MemoryStack stack) {
- return new XrBaseInStructure(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrBaseInStructure.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -206,7 +197,7 @@ public static XrBaseInStructure malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrBaseInStructure calloc(MemoryStack stack) {
- return new XrBaseInStructure(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrBaseInStructure.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -216,7 +207,7 @@ public static XrBaseInStructure calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrBaseInStructure.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -226,20 +217,20 @@ public static XrBaseInStructure.Buffer malloc(int capacity, MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrBaseInStructure.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBaseInStructure.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static XrBaseInStructure nnext(long struct) { return XrBaseInStructure.create(memGetAddress(struct + XrBaseInStructure.NEXT)); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBaseInStructure.TYPE, value); }
- /** Unsafe version of {@link #next(XrBaseInStructure) next}. */
- public static void nnext(long struct, XrBaseInStructure value) { memPutAddress(struct + XrBaseInStructure.NEXT, value.address()); }
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBaseInStructure.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static XrBaseInStructure nnext(long struct) { return XrBaseInStructure.create(memGetAddress(struct + XrBaseInStructure.NEXT)); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBaseInStructure.TYPE, value); }
+ /** Unsafe version of {@link #next(XrBaseInStructure) next}. */
+ public static void nnext(long struct, XrBaseInStructure value) { memPutAddress(struct + XrBaseInStructure.NEXT, value.address()); }
/**
* Validates pointer members that should not be {@code NULL}.
@@ -248,9 +239,9 @@ public static XrBaseInStructure.Buffer calloc(int capacity, MemoryStack stack) {
*/
public static void validate(long struct) {
check(memGetAddress(struct + XrBaseInStructure.NEXT));
- }
+ }
- // -----------------------------------
+ // -----------------------------------
/** An array of {@link XrBaseInStructure} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -260,9 +251,9 @@ public static class Buffer extends StructBuffer imple
/**
* Creates a new {@code XrBaseInStructure.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrBaseInStructure#SIZEOF}, and its mark will be undefined.
+ * by {@link XrBaseInStructure#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -287,18 +278,18 @@ protected Buffer self() {
protected XrBaseInStructure getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrBaseInStructure#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrBaseInStructure.ntype(address()); }
- /** @return a {@link XrBaseInStructure} view of the struct pointed to by the {@link XrBaseInStructure#next} field. */
- @NativeType("XrBaseInStructure const *")
- public XrBaseInStructure next() { return XrBaseInStructure.nnext(address()); }
-
- /** Sets the specified value to the {@link XrBaseInStructure#type} field. */
- public XrBaseInStructure.Buffer type(@NativeType("XrStructureType") int value) { XrBaseInStructure.ntype(address(), value); return this; }
- /** Sets the address of the specified {@link XrBaseInStructure} to the {@link XrBaseInStructure#next} field. */
- public XrBaseInStructure.Buffer next(@NativeType("XrBaseInStructure const *") XrBaseInStructure value) { XrBaseInStructure.nnext(address(), value); return this; }
+
+ /** @return the value of the {@link XrBaseInStructure#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrBaseInStructure.ntype(address()); }
+ /** @return a {@link XrBaseInStructure} view of the struct pointed to by the {@link XrBaseInStructure#next} field. */
+ @NativeType("XrBaseInStructure const *")
+ public XrBaseInStructure next() { return XrBaseInStructure.nnext(address()); }
+
+ /** Sets the specified value to the {@link XrBaseInStructure#type} field. */
+ public XrBaseInStructure.Buffer type(@NativeType("XrStructureType") int value) { XrBaseInStructure.ntype(address(), value); return this; }
+ /** Sets the address of the specified {@link XrBaseInStructure} to the {@link XrBaseInStructure#next} field. */
+ public XrBaseInStructure.Buffer next(@NativeType("XrBaseInStructure const *") XrBaseInStructure value) { XrBaseInStructure.nnext(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBaseOutStructure.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBaseOutStructure.java
index e1bf42e221..78bde2deb6 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBaseOutStructure.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBaseOutStructure.java
@@ -4,18 +4,18 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Convenience type for iterating (mutable).
*
@@ -34,8 +34,8 @@
* XrStructureType {@link #type};
* {@link XrBaseOutStructure XrBaseOutStructure} * {@link #next};
* }
- */
-public class XrBaseOutStructure extends Struct implements NativeResource {
+ */
+public class XrBaseOutStructure extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -45,29 +45,20 @@ public class XrBaseOutStructure extends Struct implements Na
/** The struct member offsets. */
public static final int
- TYPE,
- NEXT;
+ TYPE,
+ NEXT;
static {
- Layout layout = __struct(
- __member(4),
+ Layout layout = __struct(
+ __member(4),
__member(POINTER_SIZE)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- TYPE = layout.offsetof(0);
- NEXT = layout.offsetof(1);
- }
-
- protected XrBaseOutStructure(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrBaseOutStructure create(long address, @Nullable ByteBuffer container) {
- return new XrBaseOutStructure(address, container);
+ TYPE = layout.offsetof(0);
+ NEXT = layout.offsetof(1);
}
/**
@@ -82,26 +73,26 @@ public XrBaseOutStructure(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the {@code XrStructureType} of this structure. This base structure itself has no associated {@code XrStructureType} value. */
- @NativeType("XrStructureType")
- public int type() { return ntype(address()); }
- /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
- @NativeType("XrBaseOutStructure *")
- public XrBaseOutStructure next() { return nnext(address()); }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrBaseOutStructure type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the address of the specified {@link XrBaseOutStructure} to the {@link #next} field. */
- public XrBaseOutStructure next(@NativeType("XrBaseOutStructure *") XrBaseOutStructure value) { nnext(address(), value); return this; }
+
+ /** the {@code XrStructureType} of this structure. This base structure itself has no associated {@code XrStructureType} value. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */
+ @NativeType("XrBaseOutStructure *")
+ public XrBaseOutStructure next() { return nnext(address()); }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrBaseOutStructure type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the address of the specified {@link XrBaseOutStructure} to the {@link #next} field. */
+ public XrBaseOutStructure next(@NativeType("XrBaseOutStructure *") XrBaseOutStructure value) { nnext(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrBaseOutStructure set(
- int type,
+ int type,
XrBaseOutStructure next
- ) {
- type(type);
- next(next);
+ ) {
+ type(type);
+ next(next);
return this;
}
@@ -122,29 +113,29 @@ public XrBaseOutStructure set(XrBaseOutStructure src) {
/** Returns a new {@code XrBaseOutStructure} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrBaseOutStructure malloc() {
- return new XrBaseOutStructure(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrBaseOutStructure.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrBaseOutStructure} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrBaseOutStructure calloc() {
- return new XrBaseOutStructure(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrBaseOutStructure.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrBaseOutStructure} instance allocated with {@link BufferUtils}. */
public static XrBaseOutStructure create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrBaseOutStructure(memAddress(container), container);
+ return wrap(XrBaseOutStructure.class, memAddress(container), container);
}
/** Returns a new {@code XrBaseOutStructure} instance for the specified memory address. */
public static XrBaseOutStructure create(long address) {
- return new XrBaseOutStructure(address, null);
+ return wrap(XrBaseOutStructure.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrBaseOutStructure createSafe(long address) {
- return address == NULL ? null : new XrBaseOutStructure(address, null);
+ return address == NULL ? null : wrap(XrBaseOutStructure.class, address);
}
/**
@@ -153,7 +144,7 @@ public static XrBaseOutStructure createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrBaseOutStructure.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -162,7 +153,7 @@ public static XrBaseOutStructure.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrBaseOutStructure.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -172,7 +163,7 @@ public static XrBaseOutStructure.Buffer calloc(int capacity) {
*/
public static XrBaseOutStructure.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -182,13 +173,13 @@ public static XrBaseOutStructure.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrBaseOutStructure.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrBaseOutStructure.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -197,7 +188,7 @@ public static XrBaseOutStructure.Buffer createSafe(long address, int capacity) {
* @param stack the stack from which to allocate
*/
public static XrBaseOutStructure malloc(MemoryStack stack) {
- return new XrBaseOutStructure(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrBaseOutStructure.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -206,7 +197,7 @@ public static XrBaseOutStructure malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrBaseOutStructure calloc(MemoryStack stack) {
- return new XrBaseOutStructure(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrBaseOutStructure.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -216,7 +207,7 @@ public static XrBaseOutStructure calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrBaseOutStructure.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -226,20 +217,20 @@ public static XrBaseOutStructure.Buffer malloc(int capacity, MemoryStack stack)
* @param capacity the buffer capacity
*/
public static XrBaseOutStructure.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBaseOutStructure.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static XrBaseOutStructure nnext(long struct) { return XrBaseOutStructure.create(memGetAddress(struct + XrBaseOutStructure.NEXT)); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBaseOutStructure.TYPE, value); }
- /** Unsafe version of {@link #next(XrBaseOutStructure) next}. */
- public static void nnext(long struct, XrBaseOutStructure value) { memPutAddress(struct + XrBaseOutStructure.NEXT, value.address()); }
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBaseOutStructure.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static XrBaseOutStructure nnext(long struct) { return XrBaseOutStructure.create(memGetAddress(struct + XrBaseOutStructure.NEXT)); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBaseOutStructure.TYPE, value); }
+ /** Unsafe version of {@link #next(XrBaseOutStructure) next}. */
+ public static void nnext(long struct, XrBaseOutStructure value) { memPutAddress(struct + XrBaseOutStructure.NEXT, value.address()); }
/**
* Validates pointer members that should not be {@code NULL}.
@@ -248,9 +239,9 @@ public static XrBaseOutStructure.Buffer calloc(int capacity, MemoryStack stack)
*/
public static void validate(long struct) {
check(memGetAddress(struct + XrBaseOutStructure.NEXT));
- }
+ }
- // -----------------------------------
+ // -----------------------------------
/** An array of {@link XrBaseOutStructure} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -260,9 +251,9 @@ public static class Buffer extends StructBuffer impl
/**
* Creates a new {@code XrBaseOutStructure.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrBaseOutStructure#SIZEOF}, and its mark will be undefined.
+ * by {@link XrBaseOutStructure#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -287,18 +278,18 @@ protected Buffer self() {
protected XrBaseOutStructure getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrBaseOutStructure#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrBaseOutStructure.ntype(address()); }
- /** @return a {@link XrBaseOutStructure} view of the struct pointed to by the {@link XrBaseOutStructure#next} field. */
- @NativeType("XrBaseOutStructure *")
- public XrBaseOutStructure next() { return XrBaseOutStructure.nnext(address()); }
-
- /** Sets the specified value to the {@link XrBaseOutStructure#type} field. */
- public XrBaseOutStructure.Buffer type(@NativeType("XrStructureType") int value) { XrBaseOutStructure.ntype(address(), value); return this; }
- /** Sets the address of the specified {@link XrBaseOutStructure} to the {@link XrBaseOutStructure#next} field. */
- public XrBaseOutStructure.Buffer next(@NativeType("XrBaseOutStructure *") XrBaseOutStructure value) { XrBaseOutStructure.nnext(address(), value); return this; }
+
+ /** @return the value of the {@link XrBaseOutStructure#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrBaseOutStructure.ntype(address()); }
+ /** @return a {@link XrBaseOutStructure} view of the struct pointed to by the {@link XrBaseOutStructure#next} field. */
+ @NativeType("XrBaseOutStructure *")
+ public XrBaseOutStructure next() { return XrBaseOutStructure.nnext(address()); }
+
+ /** Sets the specified value to the {@link XrBaseOutStructure#type} field. */
+ public XrBaseOutStructure.Buffer type(@NativeType("XrStructureType") int value) { XrBaseOutStructure.ntype(address(), value); return this; }
+ /** Sets the address of the specified {@link XrBaseOutStructure} to the {@link XrBaseOutStructure#next} field. */
+ public XrBaseOutStructure.Buffer next(@NativeType("XrBaseOutStructure *") XrBaseOutStructure value) { XrBaseOutStructure.nnext(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBindingModificationBaseHeaderKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBindingModificationBaseHeaderKHR.java
index fc39d7f120..f0b0563e58 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBindingModificationBaseHeaderKHR.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBindingModificationBaseHeaderKHR.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Base struct for all binding modifications.
*
@@ -40,8 +40,8 @@
* XrStructureType {@link #type};
* void const * {@link #next};
* }
- */
-public class XrBindingModificationBaseHeaderKHR extends Struct implements NativeResource {
+ */
+public class XrBindingModificationBaseHeaderKHR extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -51,29 +51,20 @@ public class XrBindingModificationBaseHeaderKHR extends Struct implements NativeResource {
@@ -277,9 +268,9 @@ public static class Buffer extends StructBufferChanges to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrBindingModificationBaseHeaderKHR#SIZEOF}, and its mark will be undefined.
+ * by {@link XrBindingModificationBaseHeaderKHR#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -304,18 +295,18 @@ protected Buffer self() {
protected XrBindingModificationBaseHeaderKHR getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrBindingModificationBaseHeaderKHR#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrBindingModificationBaseHeaderKHR.ntype(address()); }
- /** @return the value of the {@link XrBindingModificationBaseHeaderKHR#next} field. */
- @NativeType("void const *")
- public long next() { return XrBindingModificationBaseHeaderKHR.nnext(address()); }
-
- /** Sets the specified value to the {@link XrBindingModificationBaseHeaderKHR#type} field. */
- public XrBindingModificationBaseHeaderKHR.Buffer type(@NativeType("XrStructureType") int value) { XrBindingModificationBaseHeaderKHR.ntype(address(), value); return this; }
- /** Sets the specified value to the {@link XrBindingModificationBaseHeaderKHR#next} field. */
- public XrBindingModificationBaseHeaderKHR.Buffer next(@NativeType("void const *") long value) { XrBindingModificationBaseHeaderKHR.nnext(address(), value); return this; }
+
+ /** @return the value of the {@link XrBindingModificationBaseHeaderKHR#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrBindingModificationBaseHeaderKHR.ntype(address()); }
+ /** @return the value of the {@link XrBindingModificationBaseHeaderKHR#next} field. */
+ @NativeType("void const *")
+ public long next() { return XrBindingModificationBaseHeaderKHR.nnext(address()); }
+
+ /** Sets the specified value to the {@link XrBindingModificationBaseHeaderKHR#type} field. */
+ public XrBindingModificationBaseHeaderKHR.Buffer type(@NativeType("XrStructureType") int value) { XrBindingModificationBaseHeaderKHR.ntype(address(), value); return this; }
+ /** Sets the specified value to the {@link XrBindingModificationBaseHeaderKHR#next} field. */
+ public XrBindingModificationBaseHeaderKHR.Buffer next(@NativeType("void const *") long value) { XrBindingModificationBaseHeaderKHR.nnext(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBindingModificationsKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBindingModificationsKHR.java
index 2e9e36ab55..91c81279da 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBindingModificationsKHR.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBindingModificationsKHR.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Suggested bindings with binding modification details.
*
@@ -40,8 +40,8 @@
* uint32_t {@link #bindingModificationCount};
* {@link XrBindingModificationBaseHeaderKHR XrBindingModificationBaseHeaderKHR} const * const * {@link #bindingModifications};
* }
- */
-public class XrBindingModificationsKHR extends Struct implements NativeResource {
+ */
+public class XrBindingModificationsKHR extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -51,35 +51,26 @@ public class XrBindingModificationsKHR extends Struct
/** The struct member offsets. */
public static final int
- TYPE,
- NEXT,
- BINDINGMODIFICATIONCOUNT,
- BINDINGMODIFICATIONS;
+ TYPE,
+ NEXT,
+ BINDINGMODIFICATIONCOUNT,
+ BINDINGMODIFICATIONS;
static {
- Layout layout = __struct(
- __member(4),
- __member(POINTER_SIZE),
- __member(4),
+ Layout layout = __struct(
+ __member(4),
+ __member(POINTER_SIZE),
+ __member(4),
__member(POINTER_SIZE)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- TYPE = layout.offsetof(0);
- NEXT = layout.offsetof(1);
- BINDINGMODIFICATIONCOUNT = layout.offsetof(2);
- BINDINGMODIFICATIONS = layout.offsetof(3);
- }
-
- protected XrBindingModificationsKHR(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrBindingModificationsKHR create(long address, @Nullable ByteBuffer container) {
- return new XrBindingModificationsKHR(address, container);
+ TYPE = layout.offsetof(0);
+ NEXT = layout.offsetof(1);
+ BINDINGMODIFICATIONCOUNT = layout.offsetof(2);
+ BINDINGMODIFICATIONS = layout.offsetof(3);
}
/**
@@ -94,43 +85,43 @@ public XrBindingModificationsKHR(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the {@code XrStructureType} of this structure. */
- @NativeType("XrStructureType")
- public int type() { return ntype(address()); }
- /** {@code NULL} or a pointer to the next structure in a structure chain. */
- @NativeType("void const *")
- public long next() { return nnext(address()); }
- /** the number of binding modifications in the array pointed to by {@code bindingModifications}. */
- @NativeType("uint32_t")
- public int bindingModificationCount() { return nbindingModificationCount(address()); }
- /** a pointer to an array of pointers to binding modification structures based on {@link XrBindingModificationBaseHeaderKHR}, that define all of the application’s suggested binding modifications for the specified interaction profile. */
- @Nullable
- @NativeType("XrBindingModificationBaseHeaderKHR const * const *")
- public PointerBuffer bindingModifications() { return nbindingModifications(address()); }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrBindingModificationsKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link KHRBindingModification#XR_TYPE_BINDING_MODIFICATIONS_KHR TYPE_BINDING_MODIFICATIONS_KHR} value to the {@link #type} field. */
- public XrBindingModificationsKHR type$Default() { return type(KHRBindingModification.XR_TYPE_BINDING_MODIFICATIONS_KHR); }
- /** Sets the specified value to the {@link #next} field. */
- public XrBindingModificationsKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
- /** Sets the specified value to the {@link #bindingModificationCount} field. */
- public XrBindingModificationsKHR bindingModificationCount(@NativeType("uint32_t") int value) { nbindingModificationCount(address(), value); return this; }
- /** Sets the address of the specified {@link PointerBuffer} to the {@link #bindingModifications} field. */
- public XrBindingModificationsKHR bindingModifications(@Nullable @NativeType("XrBindingModificationBaseHeaderKHR const * const *") PointerBuffer value) { nbindingModifications(address(), value); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. */
+ @NativeType("void const *")
+ public long next() { return nnext(address()); }
+ /** the number of binding modifications in the array pointed to by {@code bindingModifications}. */
+ @NativeType("uint32_t")
+ public int bindingModificationCount() { return nbindingModificationCount(address()); }
+ /** a pointer to an array of pointers to binding modification structures based on {@link XrBindingModificationBaseHeaderKHR}, that define all of the application’s suggested binding modifications for the specified interaction profile. */
+ @Nullable
+ @NativeType("XrBindingModificationBaseHeaderKHR const * const *")
+ public PointerBuffer bindingModifications() { return nbindingModifications(address()); }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrBindingModificationsKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link KHRBindingModification#XR_TYPE_BINDING_MODIFICATIONS_KHR TYPE_BINDING_MODIFICATIONS_KHR} value to the {@link #type} field. */
+ public XrBindingModificationsKHR type$Default() { return type(KHRBindingModification.XR_TYPE_BINDING_MODIFICATIONS_KHR); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrBindingModificationsKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link #bindingModificationCount} field. */
+ public XrBindingModificationsKHR bindingModificationCount(@NativeType("uint32_t") int value) { nbindingModificationCount(address(), value); return this; }
+ /** Sets the address of the specified {@link PointerBuffer} to the {@link #bindingModifications} field. */
+ public XrBindingModificationsKHR bindingModifications(@Nullable @NativeType("XrBindingModificationBaseHeaderKHR const * const *") PointerBuffer value) { nbindingModifications(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrBindingModificationsKHR set(
- int type,
- long next,
- int bindingModificationCount,
+ int type,
+ long next,
+ int bindingModificationCount,
@Nullable PointerBuffer bindingModifications
- ) {
- type(type);
- next(next);
- bindingModificationCount(bindingModificationCount);
- bindingModifications(bindingModifications);
+ ) {
+ type(type);
+ next(next);
+ bindingModificationCount(bindingModificationCount);
+ bindingModifications(bindingModifications);
return this;
}
@@ -151,29 +142,29 @@ public XrBindingModificationsKHR set(XrBindingModificationsKHR src) {
/** Returns a new {@code XrBindingModificationsKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrBindingModificationsKHR malloc() {
- return new XrBindingModificationsKHR(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrBindingModificationsKHR.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrBindingModificationsKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrBindingModificationsKHR calloc() {
- return new XrBindingModificationsKHR(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrBindingModificationsKHR.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrBindingModificationsKHR} instance allocated with {@link BufferUtils}. */
public static XrBindingModificationsKHR create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrBindingModificationsKHR(memAddress(container), container);
+ return wrap(XrBindingModificationsKHR.class, memAddress(container), container);
}
/** Returns a new {@code XrBindingModificationsKHR} instance for the specified memory address. */
public static XrBindingModificationsKHR create(long address) {
- return new XrBindingModificationsKHR(address, null);
+ return wrap(XrBindingModificationsKHR.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrBindingModificationsKHR createSafe(long address) {
- return address == NULL ? null : new XrBindingModificationsKHR(address, null);
+ return address == NULL ? null : wrap(XrBindingModificationsKHR.class, address);
}
/**
@@ -182,7 +173,7 @@ public static XrBindingModificationsKHR createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrBindingModificationsKHR.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -191,7 +182,7 @@ public static XrBindingModificationsKHR.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrBindingModificationsKHR.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -201,7 +192,7 @@ public static XrBindingModificationsKHR.Buffer calloc(int capacity) {
*/
public static XrBindingModificationsKHR.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -211,13 +202,13 @@ public static XrBindingModificationsKHR.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrBindingModificationsKHR.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrBindingModificationsKHR.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -226,7 +217,7 @@ public static XrBindingModificationsKHR.Buffer createSafe(long address, int capa
* @param stack the stack from which to allocate
*/
public static XrBindingModificationsKHR malloc(MemoryStack stack) {
- return new XrBindingModificationsKHR(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrBindingModificationsKHR.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -235,7 +226,7 @@ public static XrBindingModificationsKHR malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrBindingModificationsKHR calloc(MemoryStack stack) {
- return new XrBindingModificationsKHR(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrBindingModificationsKHR.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -245,7 +236,7 @@ public static XrBindingModificationsKHR calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrBindingModificationsKHR.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -255,30 +246,30 @@ public static XrBindingModificationsKHR.Buffer malloc(int capacity, MemoryStack
* @param capacity the buffer capacity
*/
public static XrBindingModificationsKHR.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBindingModificationsKHR.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrBindingModificationsKHR.NEXT); }
- /** Unsafe version of {@link #bindingModificationCount}. */
- public static int nbindingModificationCount(long struct) { return UNSAFE.getInt(null, struct + XrBindingModificationsKHR.BINDINGMODIFICATIONCOUNT); }
- /** Unsafe version of {@link #bindingModifications() bindingModifications}. */
- @Nullable public static PointerBuffer nbindingModifications(long struct) { return memPointerBufferSafe(memGetAddress(struct + XrBindingModificationsKHR.BINDINGMODIFICATIONS), nbindingModificationCount(struct)); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBindingModificationsKHR.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrBindingModificationsKHR.NEXT, value); }
- /** Sets the specified value to the {@code bindingModificationCount} field of the specified {@code struct}. */
- public static void nbindingModificationCount(long struct, int value) { UNSAFE.putInt(null, struct + XrBindingModificationsKHR.BINDINGMODIFICATIONCOUNT, value); }
- /** Unsafe version of {@link #bindingModifications(PointerBuffer) bindingModifications}. */
- public static void nbindingModifications(long struct, @Nullable PointerBuffer value) { memPutAddress(struct + XrBindingModificationsKHR.BINDINGMODIFICATIONS, memAddressSafe(value)); if (value != null) { nbindingModificationCount(struct, value.remaining()); } }
-
- // -----------------------------------
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBindingModificationsKHR.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrBindingModificationsKHR.NEXT); }
+ /** Unsafe version of {@link #bindingModificationCount}. */
+ public static int nbindingModificationCount(long struct) { return UNSAFE.getInt(null, struct + XrBindingModificationsKHR.BINDINGMODIFICATIONCOUNT); }
+ /** Unsafe version of {@link #bindingModifications() bindingModifications}. */
+ @Nullable public static PointerBuffer nbindingModifications(long struct) { return memPointerBufferSafe(memGetAddress(struct + XrBindingModificationsKHR.BINDINGMODIFICATIONS), nbindingModificationCount(struct)); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBindingModificationsKHR.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrBindingModificationsKHR.NEXT, value); }
+ /** Sets the specified value to the {@code bindingModificationCount} field of the specified {@code struct}. */
+ public static void nbindingModificationCount(long struct, int value) { UNSAFE.putInt(null, struct + XrBindingModificationsKHR.BINDINGMODIFICATIONCOUNT, value); }
+ /** Unsafe version of {@link #bindingModifications(PointerBuffer) bindingModifications}. */
+ public static void nbindingModifications(long struct, @Nullable PointerBuffer value) { memPutAddress(struct + XrBindingModificationsKHR.BINDINGMODIFICATIONS, memAddressSafe(value)); if (value != null) { nbindingModificationCount(struct, value.remaining()); } }
+
+ // -----------------------------------
/** An array of {@link XrBindingModificationsKHR} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -288,9 +279,9 @@ public static class Buffer extends StructBufferChanges to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrBindingModificationsKHR#SIZEOF}, and its mark will be undefined.
+ * by {@link XrBindingModificationsKHR#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -315,31 +306,31 @@ protected Buffer self() {
protected XrBindingModificationsKHR getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrBindingModificationsKHR#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrBindingModificationsKHR.ntype(address()); }
- /** @return the value of the {@link XrBindingModificationsKHR#next} field. */
- @NativeType("void const *")
- public long next() { return XrBindingModificationsKHR.nnext(address()); }
- /** @return the value of the {@link XrBindingModificationsKHR#bindingModificationCount} field. */
- @NativeType("uint32_t")
- public int bindingModificationCount() { return XrBindingModificationsKHR.nbindingModificationCount(address()); }
- /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrBindingModificationsKHR#bindingModifications} field. */
- @Nullable
- @NativeType("XrBindingModificationBaseHeaderKHR const * const *")
- public PointerBuffer bindingModifications() { return XrBindingModificationsKHR.nbindingModifications(address()); }
-
- /** Sets the specified value to the {@link XrBindingModificationsKHR#type} field. */
- public XrBindingModificationsKHR.Buffer type(@NativeType("XrStructureType") int value) { XrBindingModificationsKHR.ntype(address(), value); return this; }
- /** Sets the {@link KHRBindingModification#XR_TYPE_BINDING_MODIFICATIONS_KHR TYPE_BINDING_MODIFICATIONS_KHR} value to the {@link XrBindingModificationsKHR#type} field. */
- public XrBindingModificationsKHR.Buffer type$Default() { return type(KHRBindingModification.XR_TYPE_BINDING_MODIFICATIONS_KHR); }
- /** Sets the specified value to the {@link XrBindingModificationsKHR#next} field. */
- public XrBindingModificationsKHR.Buffer next(@NativeType("void const *") long value) { XrBindingModificationsKHR.nnext(address(), value); return this; }
- /** Sets the specified value to the {@link XrBindingModificationsKHR#bindingModificationCount} field. */
- public XrBindingModificationsKHR.Buffer bindingModificationCount(@NativeType("uint32_t") int value) { XrBindingModificationsKHR.nbindingModificationCount(address(), value); return this; }
- /** Sets the address of the specified {@link PointerBuffer} to the {@link XrBindingModificationsKHR#bindingModifications} field. */
- public XrBindingModificationsKHR.Buffer bindingModifications(@Nullable @NativeType("XrBindingModificationBaseHeaderKHR const * const *") PointerBuffer value) { XrBindingModificationsKHR.nbindingModifications(address(), value); return this; }
+
+ /** @return the value of the {@link XrBindingModificationsKHR#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrBindingModificationsKHR.ntype(address()); }
+ /** @return the value of the {@link XrBindingModificationsKHR#next} field. */
+ @NativeType("void const *")
+ public long next() { return XrBindingModificationsKHR.nnext(address()); }
+ /** @return the value of the {@link XrBindingModificationsKHR#bindingModificationCount} field. */
+ @NativeType("uint32_t")
+ public int bindingModificationCount() { return XrBindingModificationsKHR.nbindingModificationCount(address()); }
+ /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrBindingModificationsKHR#bindingModifications} field. */
+ @Nullable
+ @NativeType("XrBindingModificationBaseHeaderKHR const * const *")
+ public PointerBuffer bindingModifications() { return XrBindingModificationsKHR.nbindingModifications(address()); }
+
+ /** Sets the specified value to the {@link XrBindingModificationsKHR#type} field. */
+ public XrBindingModificationsKHR.Buffer type(@NativeType("XrStructureType") int value) { XrBindingModificationsKHR.ntype(address(), value); return this; }
+ /** Sets the {@link KHRBindingModification#XR_TYPE_BINDING_MODIFICATIONS_KHR TYPE_BINDING_MODIFICATIONS_KHR} value to the {@link XrBindingModificationsKHR#type} field. */
+ public XrBindingModificationsKHR.Buffer type$Default() { return type(KHRBindingModification.XR_TYPE_BINDING_MODIFICATIONS_KHR); }
+ /** Sets the specified value to the {@link XrBindingModificationsKHR#next} field. */
+ public XrBindingModificationsKHR.Buffer next(@NativeType("void const *") long value) { XrBindingModificationsKHR.nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link XrBindingModificationsKHR#bindingModificationCount} field. */
+ public XrBindingModificationsKHR.Buffer bindingModificationCount(@NativeType("uint32_t") int value) { XrBindingModificationsKHR.nbindingModificationCount(address(), value); return this; }
+ /** Sets the address of the specified {@link PointerBuffer} to the {@link XrBindingModificationsKHR#bindingModifications} field. */
+ public XrBindingModificationsKHR.Buffer bindingModifications(@Nullable @NativeType("XrBindingModificationBaseHeaderKHR const * const *") PointerBuffer value) { XrBindingModificationsKHR.nbindingModifications(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointLocationFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointLocationFB.java
index c891170d84..348ad60e3a 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointLocationFB.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointLocationFB.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Describes the location and radius of a body joint.
*
@@ -37,8 +37,8 @@
* XrSpaceLocationFlags {@link #locationFlags};
* {@link XrPosef XrPosef} {@link #pose};
* }
- */
-public class XrBodyJointLocationFB extends Struct implements NativeResource {
+ */
+public class XrBodyJointLocationFB extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -48,29 +48,20 @@ public class XrBodyJointLocationFB extends Struct impleme
/** The struct member offsets. */
public static final int
- LOCATIONFLAGS,
- POSE;
+ LOCATIONFLAGS,
+ POSE;
static {
- Layout layout = __struct(
- __member(8),
+ Layout layout = __struct(
+ __member(8),
__member(XrPosef.SIZEOF, XrPosef.ALIGNOF)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- LOCATIONFLAGS = layout.offsetof(0);
- POSE = layout.offsetof(1);
- }
-
- protected XrBodyJointLocationFB(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrBodyJointLocationFB create(long address, @Nullable ByteBuffer container) {
- return new XrBodyJointLocationFB(address, container);
+ LOCATIONFLAGS = layout.offsetof(0);
+ POSE = layout.offsetof(1);
}
/**
@@ -85,27 +76,27 @@ public XrBodyJointLocationFB(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** a bitfield, with bit masks defined in {@code XrSpaceLocationFlagBits}, to indicate which members contain valid data. If none of the bits are set, no other fields in this structure should be considered to be valid or meaningful. */
- @NativeType("XrSpaceLocationFlags")
- public long locationFlags() { return nlocationFlags(address()); }
- /** an {@link XrPosef} defining the position and orientation of the origin of a body joint within the reference frame of the corresponding {@link XrBodyJointsLocateInfoFB}{@code ::baseSpace}. */
- public XrPosef pose() { return npose(address()); }
-
- /** Sets the specified value to the {@link #locationFlags} field. */
- public XrBodyJointLocationFB locationFlags(@NativeType("XrSpaceLocationFlags") long value) { nlocationFlags(address(), value); return this; }
- /** Copies the specified {@link XrPosef} to the {@link #pose} field. */
- public XrBodyJointLocationFB pose(XrPosef value) { npose(address(), value); return this; }
- /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrBodyJointLocationFB pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; }
+
+ /** a bitfield, with bit masks defined in {@code XrSpaceLocationFlagBits}, to indicate which members contain valid data. If none of the bits are set, no other fields in this structure should be considered to be valid or meaningful. */
+ @NativeType("XrSpaceLocationFlags")
+ public long locationFlags() { return nlocationFlags(address()); }
+ /** an {@link XrPosef} defining the position and orientation of the origin of a body joint within the reference frame of the corresponding {@link XrBodyJointsLocateInfoFB}{@code ::baseSpace}. */
+ public XrPosef pose() { return npose(address()); }
+
+ /** Sets the specified value to the {@link #locationFlags} field. */
+ public XrBodyJointLocationFB locationFlags(@NativeType("XrSpaceLocationFlags") long value) { nlocationFlags(address(), value); return this; }
+ /** Copies the specified {@link XrPosef} to the {@link #pose} field. */
+ public XrBodyJointLocationFB pose(XrPosef value) { npose(address(), value); return this; }
+ /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrBodyJointLocationFB pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; }
/** Initializes this struct with the specified values. */
public XrBodyJointLocationFB set(
- long locationFlags,
+ long locationFlags,
XrPosef pose
- ) {
- locationFlags(locationFlags);
- pose(pose);
+ ) {
+ locationFlags(locationFlags);
+ pose(pose);
return this;
}
@@ -126,29 +117,29 @@ public XrBodyJointLocationFB set(XrBodyJointLocationFB src) {
/** Returns a new {@code XrBodyJointLocationFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrBodyJointLocationFB malloc() {
- return new XrBodyJointLocationFB(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrBodyJointLocationFB.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrBodyJointLocationFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrBodyJointLocationFB calloc() {
- return new XrBodyJointLocationFB(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrBodyJointLocationFB.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrBodyJointLocationFB} instance allocated with {@link BufferUtils}. */
public static XrBodyJointLocationFB create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrBodyJointLocationFB(memAddress(container), container);
+ return wrap(XrBodyJointLocationFB.class, memAddress(container), container);
}
/** Returns a new {@code XrBodyJointLocationFB} instance for the specified memory address. */
public static XrBodyJointLocationFB create(long address) {
- return new XrBodyJointLocationFB(address, null);
+ return wrap(XrBodyJointLocationFB.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrBodyJointLocationFB createSafe(long address) {
- return address == NULL ? null : new XrBodyJointLocationFB(address, null);
+ return address == NULL ? null : wrap(XrBodyJointLocationFB.class, address);
}
/**
@@ -157,7 +148,7 @@ public static XrBodyJointLocationFB createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrBodyJointLocationFB.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -166,7 +157,7 @@ public static XrBodyJointLocationFB.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrBodyJointLocationFB.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -176,7 +167,7 @@ public static XrBodyJointLocationFB.Buffer calloc(int capacity) {
*/
public static XrBodyJointLocationFB.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -186,13 +177,13 @@ public static XrBodyJointLocationFB.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrBodyJointLocationFB.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrBodyJointLocationFB.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -201,7 +192,7 @@ public static XrBodyJointLocationFB.Buffer createSafe(long address, int capacity
* @param stack the stack from which to allocate
*/
public static XrBodyJointLocationFB malloc(MemoryStack stack) {
- return new XrBodyJointLocationFB(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrBodyJointLocationFB.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -210,7 +201,7 @@ public static XrBodyJointLocationFB malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrBodyJointLocationFB calloc(MemoryStack stack) {
- return new XrBodyJointLocationFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrBodyJointLocationFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -220,7 +211,7 @@ public static XrBodyJointLocationFB calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrBodyJointLocationFB.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -230,22 +221,22 @@ public static XrBodyJointLocationFB.Buffer malloc(int capacity, MemoryStack stac
* @param capacity the buffer capacity
*/
public static XrBodyJointLocationFB.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #locationFlags}. */
- public static long nlocationFlags(long struct) { return UNSAFE.getLong(null, struct + XrBodyJointLocationFB.LOCATIONFLAGS); }
- /** Unsafe version of {@link #pose}. */
- public static XrPosef npose(long struct) { return XrPosef.create(struct + XrBodyJointLocationFB.POSE); }
-
- /** Unsafe version of {@link #locationFlags(long) locationFlags}. */
- public static void nlocationFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrBodyJointLocationFB.LOCATIONFLAGS, value); }
- /** Unsafe version of {@link #pose(XrPosef) pose}. */
- public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrBodyJointLocationFB.POSE, XrPosef.SIZEOF); }
-
- // -----------------------------------
+
+ /** Unsafe version of {@link #locationFlags}. */
+ public static long nlocationFlags(long struct) { return UNSAFE.getLong(null, struct + XrBodyJointLocationFB.LOCATIONFLAGS); }
+ /** Unsafe version of {@link #pose}. */
+ public static XrPosef npose(long struct) { return XrPosef.create(struct + XrBodyJointLocationFB.POSE); }
+
+ /** Unsafe version of {@link #locationFlags(long) locationFlags}. */
+ public static void nlocationFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrBodyJointLocationFB.LOCATIONFLAGS, value); }
+ /** Unsafe version of {@link #pose(XrPosef) pose}. */
+ public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrBodyJointLocationFB.POSE, XrPosef.SIZEOF); }
+
+ // -----------------------------------
/** An array of {@link XrBodyJointLocationFB} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -255,9 +246,9 @@ public static class Buffer extends StructBuffer i
/**
* Creates a new {@code XrBodyJointLocationFB.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrBodyJointLocationFB#SIZEOF}, and its mark will be undefined.
+ * by {@link XrBodyJointLocationFB#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -282,19 +273,19 @@ protected Buffer self() {
protected XrBodyJointLocationFB getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrBodyJointLocationFB#locationFlags} field. */
- @NativeType("XrSpaceLocationFlags")
- public long locationFlags() { return XrBodyJointLocationFB.nlocationFlags(address()); }
- /** @return a {@link XrPosef} view of the {@link XrBodyJointLocationFB#pose} field. */
- public XrPosef pose() { return XrBodyJointLocationFB.npose(address()); }
-
- /** Sets the specified value to the {@link XrBodyJointLocationFB#locationFlags} field. */
- public XrBodyJointLocationFB.Buffer locationFlags(@NativeType("XrSpaceLocationFlags") long value) { XrBodyJointLocationFB.nlocationFlags(address(), value); return this; }
- /** Copies the specified {@link XrPosef} to the {@link XrBodyJointLocationFB#pose} field. */
- public XrBodyJointLocationFB.Buffer pose(XrPosef value) { XrBodyJointLocationFB.npose(address(), value); return this; }
- /** Passes the {@link XrBodyJointLocationFB#pose} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrBodyJointLocationFB.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; }
+
+ /** @return the value of the {@link XrBodyJointLocationFB#locationFlags} field. */
+ @NativeType("XrSpaceLocationFlags")
+ public long locationFlags() { return XrBodyJointLocationFB.nlocationFlags(address()); }
+ /** @return a {@link XrPosef} view of the {@link XrBodyJointLocationFB#pose} field. */
+ public XrPosef pose() { return XrBodyJointLocationFB.npose(address()); }
+
+ /** Sets the specified value to the {@link XrBodyJointLocationFB#locationFlags} field. */
+ public XrBodyJointLocationFB.Buffer locationFlags(@NativeType("XrSpaceLocationFlags") long value) { XrBodyJointLocationFB.nlocationFlags(address(), value); return this; }
+ /** Copies the specified {@link XrPosef} to the {@link XrBodyJointLocationFB#pose} field. */
+ public XrBodyJointLocationFB.Buffer pose(XrPosef value) { XrBodyJointLocationFB.npose(address(), value); return this; }
+ /** Passes the {@link XrBodyJointLocationFB#pose} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrBodyJointLocationFB.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointLocationsFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointLocationsFB.java
index ab20474bac..9c1f2ba0ae 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointLocationsFB.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointLocationsFB.java
@@ -4,18 +4,18 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Returns the body joint locations.
*
@@ -58,8 +58,8 @@
* uint32_t {@link #skeletonChangedCount};
* XrTime {@link #time};
* }
- */
-public class XrBodyJointLocationsFB extends Struct implements NativeResource {
+ */
+public class XrBodyJointLocationsFB extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -69,47 +69,38 @@ public class XrBodyJointLocationsFB extends Struct imple
/** The struct member offsets. */
public static final int
- TYPE,
- NEXT,
- ISACTIVE,
- CONFIDENCE,
- JOINTCOUNT,
- JOINTLOCATIONS,
- SKELETONCHANGEDCOUNT,
- TIME;
+ TYPE,
+ NEXT,
+ ISACTIVE,
+ CONFIDENCE,
+ JOINTCOUNT,
+ JOINTLOCATIONS,
+ SKELETONCHANGEDCOUNT,
+ TIME;
static {
- Layout layout = __struct(
- __member(4),
- __member(POINTER_SIZE),
- __member(4),
- __member(4),
- __member(4),
- __member(POINTER_SIZE),
- __member(4),
+ Layout layout = __struct(
+ __member(4),
+ __member(POINTER_SIZE),
+ __member(4),
+ __member(4),
+ __member(4),
+ __member(POINTER_SIZE),
+ __member(4),
__member(8)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- TYPE = layout.offsetof(0);
- NEXT = layout.offsetof(1);
- ISACTIVE = layout.offsetof(2);
- CONFIDENCE = layout.offsetof(3);
- JOINTCOUNT = layout.offsetof(4);
- JOINTLOCATIONS = layout.offsetof(5);
- SKELETONCHANGEDCOUNT = layout.offsetof(6);
- TIME = layout.offsetof(7);
- }
-
- protected XrBodyJointLocationsFB(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrBodyJointLocationsFB create(long address, @Nullable ByteBuffer container) {
- return new XrBodyJointLocationsFB(address, container);
+ TYPE = layout.offsetof(0);
+ NEXT = layout.offsetof(1);
+ ISACTIVE = layout.offsetof(2);
+ CONFIDENCE = layout.offsetof(3);
+ JOINTCOUNT = layout.offsetof(4);
+ JOINTLOCATIONS = layout.offsetof(5);
+ SKELETONCHANGEDCOUNT = layout.offsetof(6);
+ TIME = layout.offsetof(7);
}
/**
@@ -124,65 +115,65 @@ public XrBodyJointLocationsFB(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the {@code XrStructureType} of this structure. */
- @NativeType("XrStructureType")
- public int type() { return ntype(address()); }
- /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */
- @NativeType("void *")
- public long next() { return nnext(address()); }
- /** an {@code XrBool32} indicating if the body tracker is actively tracking. */
- @NativeType("XrBool32")
- public boolean isActive() { return nisActive(address()) != 0; }
- /** a {@code float} between 0 and 1 which represents the confidence for the returned body pose. A value of 0 means there is no confidence in the pose returned, and a value of 1 means maximum confidence in the returned body pose. */
- public float confidence() { return nconfidence(address()); }
- /** a {@code uint32_t} describing the count of elements in {@code jointLocations} array. */
- @NativeType("uint32_t")
- public int jointCount() { return njointCount(address()); }
- /** an application-allocated array of {@link XrBodyJointLocationFB} that will be filled with joint locations. */
- @NativeType("XrBodyJointLocationFB *")
- public XrBodyJointLocationFB.Buffer jointLocations() { return njointLocations(address()); }
- /** an output {@code uint32_t} incremental counter indicating that the skeleton scale proportions have changed. {@link FBBodyTracking#xrGetBodySkeletonFB GetBodySkeletonFB} can be called when this counter increases to get the latest body proportions/scale. */
- @NativeType("uint32_t")
- public int skeletonChangedCount() { return nskeletonChangedCount(address()); }
- /** an {@code XrTime} time at which the returned joints are tracked. Equals the time at which the joints were requested if the interpolation at the time was successful. */
- @NativeType("XrTime")
- public long time() { return ntime(address()); }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrBodyJointLocationsFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_JOINT_LOCATIONS_FB TYPE_BODY_JOINT_LOCATIONS_FB} value to the {@link #type} field. */
- public XrBodyJointLocationsFB type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_JOINT_LOCATIONS_FB); }
- /** Sets the specified value to the {@link #next} field. */
- public XrBodyJointLocationsFB next(@NativeType("void *") long value) { nnext(address(), value); return this; }
- /** Sets the specified value to the {@link #isActive} field. */
- public XrBodyJointLocationsFB isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; }
- /** Sets the specified value to the {@link #confidence} field. */
- public XrBodyJointLocationsFB confidence(float value) { nconfidence(address(), value); return this; }
- /** Sets the address of the specified {@link XrBodyJointLocationFB.Buffer} to the {@link #jointLocations} field. */
- public XrBodyJointLocationsFB jointLocations(@NativeType("XrBodyJointLocationFB *") XrBodyJointLocationFB.Buffer value) { njointLocations(address(), value); return this; }
- /** Sets the specified value to the {@link #skeletonChangedCount} field. */
- public XrBodyJointLocationsFB skeletonChangedCount(@NativeType("uint32_t") int value) { nskeletonChangedCount(address(), value); return this; }
- /** Sets the specified value to the {@link #time} field. */
- public XrBodyJointLocationsFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */
+ @NativeType("void *")
+ public long next() { return nnext(address()); }
+ /** an {@code XrBool32} indicating if the body tracker is actively tracking. */
+ @NativeType("XrBool32")
+ public boolean isActive() { return nisActive(address()) != 0; }
+ /** a {@code float} between 0 and 1 which represents the confidence for the returned body pose. A value of 0 means there is no confidence in the pose returned, and a value of 1 means maximum confidence in the returned body pose. */
+ public float confidence() { return nconfidence(address()); }
+ /** a {@code uint32_t} describing the count of elements in {@code jointLocations} array. */
+ @NativeType("uint32_t")
+ public int jointCount() { return njointCount(address()); }
+ /** an application-allocated array of {@link XrBodyJointLocationFB} that will be filled with joint locations. */
+ @NativeType("XrBodyJointLocationFB *")
+ public XrBodyJointLocationFB.Buffer jointLocations() { return njointLocations(address()); }
+ /** an output {@code uint32_t} incremental counter indicating that the skeleton scale proportions have changed. {@link FBBodyTracking#xrGetBodySkeletonFB GetBodySkeletonFB} can be called when this counter increases to get the latest body proportions/scale. */
+ @NativeType("uint32_t")
+ public int skeletonChangedCount() { return nskeletonChangedCount(address()); }
+ /** an {@code XrTime} time at which the returned joints are tracked. Equals the time at which the joints were requested if the interpolation at the time was successful. */
+ @NativeType("XrTime")
+ public long time() { return ntime(address()); }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrBodyJointLocationsFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_JOINT_LOCATIONS_FB TYPE_BODY_JOINT_LOCATIONS_FB} value to the {@link #type} field. */
+ public XrBodyJointLocationsFB type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_JOINT_LOCATIONS_FB); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrBodyJointLocationsFB next(@NativeType("void *") long value) { nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link #isActive} field. */
+ public XrBodyJointLocationsFB isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; }
+ /** Sets the specified value to the {@link #confidence} field. */
+ public XrBodyJointLocationsFB confidence(float value) { nconfidence(address(), value); return this; }
+ /** Sets the address of the specified {@link XrBodyJointLocationFB.Buffer} to the {@link #jointLocations} field. */
+ public XrBodyJointLocationsFB jointLocations(@NativeType("XrBodyJointLocationFB *") XrBodyJointLocationFB.Buffer value) { njointLocations(address(), value); return this; }
+ /** Sets the specified value to the {@link #skeletonChangedCount} field. */
+ public XrBodyJointLocationsFB skeletonChangedCount(@NativeType("uint32_t") int value) { nskeletonChangedCount(address(), value); return this; }
+ /** Sets the specified value to the {@link #time} field. */
+ public XrBodyJointLocationsFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrBodyJointLocationsFB set(
- int type,
- long next,
- boolean isActive,
- float confidence,
- XrBodyJointLocationFB.Buffer jointLocations,
- int skeletonChangedCount,
+ int type,
+ long next,
+ boolean isActive,
+ float confidence,
+ XrBodyJointLocationFB.Buffer jointLocations,
+ int skeletonChangedCount,
long time
- ) {
- type(type);
- next(next);
- isActive(isActive);
- confidence(confidence);
- jointLocations(jointLocations);
- skeletonChangedCount(skeletonChangedCount);
- time(time);
+ ) {
+ type(type);
+ next(next);
+ isActive(isActive);
+ confidence(confidence);
+ jointLocations(jointLocations);
+ skeletonChangedCount(skeletonChangedCount);
+ time(time);
return this;
}
@@ -203,29 +194,29 @@ public XrBodyJointLocationsFB set(XrBodyJointLocationsFB src) {
/** Returns a new {@code XrBodyJointLocationsFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrBodyJointLocationsFB malloc() {
- return new XrBodyJointLocationsFB(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrBodyJointLocationsFB.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrBodyJointLocationsFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrBodyJointLocationsFB calloc() {
- return new XrBodyJointLocationsFB(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrBodyJointLocationsFB.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrBodyJointLocationsFB} instance allocated with {@link BufferUtils}. */
public static XrBodyJointLocationsFB create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrBodyJointLocationsFB(memAddress(container), container);
+ return wrap(XrBodyJointLocationsFB.class, memAddress(container), container);
}
/** Returns a new {@code XrBodyJointLocationsFB} instance for the specified memory address. */
public static XrBodyJointLocationsFB create(long address) {
- return new XrBodyJointLocationsFB(address, null);
+ return wrap(XrBodyJointLocationsFB.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrBodyJointLocationsFB createSafe(long address) {
- return address == NULL ? null : new XrBodyJointLocationsFB(address, null);
+ return address == NULL ? null : wrap(XrBodyJointLocationsFB.class, address);
}
/**
@@ -234,7 +225,7 @@ public static XrBodyJointLocationsFB createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrBodyJointLocationsFB.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -243,7 +234,7 @@ public static XrBodyJointLocationsFB.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrBodyJointLocationsFB.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -253,7 +244,7 @@ public static XrBodyJointLocationsFB.Buffer calloc(int capacity) {
*/
public static XrBodyJointLocationsFB.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -263,13 +254,13 @@ public static XrBodyJointLocationsFB.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrBodyJointLocationsFB.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrBodyJointLocationsFB.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -278,7 +269,7 @@ public static XrBodyJointLocationsFB.Buffer createSafe(long address, int capacit
* @param stack the stack from which to allocate
*/
public static XrBodyJointLocationsFB malloc(MemoryStack stack) {
- return new XrBodyJointLocationsFB(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrBodyJointLocationsFB.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -287,7 +278,7 @@ public static XrBodyJointLocationsFB malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrBodyJointLocationsFB calloc(MemoryStack stack) {
- return new XrBodyJointLocationsFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrBodyJointLocationsFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -297,7 +288,7 @@ public static XrBodyJointLocationsFB calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrBodyJointLocationsFB.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -307,44 +298,44 @@ public static XrBodyJointLocationsFB.Buffer malloc(int capacity, MemoryStack sta
* @param capacity the buffer capacity
*/
public static XrBodyJointLocationsFB.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointLocationsFB.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrBodyJointLocationsFB.NEXT); }
- /** Unsafe version of {@link #isActive}. */
- public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointLocationsFB.ISACTIVE); }
- /** Unsafe version of {@link #confidence}. */
- public static float nconfidence(long struct) { return UNSAFE.getFloat(null, struct + XrBodyJointLocationsFB.CONFIDENCE); }
- /** Unsafe version of {@link #jointCount}. */
- public static int njointCount(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointLocationsFB.JOINTCOUNT); }
- /** Unsafe version of {@link #jointLocations}. */
- public static XrBodyJointLocationFB.Buffer njointLocations(long struct) { return XrBodyJointLocationFB.create(memGetAddress(struct + XrBodyJointLocationsFB.JOINTLOCATIONS), njointCount(struct)); }
- /** Unsafe version of {@link #skeletonChangedCount}. */
- public static int nskeletonChangedCount(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointLocationsFB.SKELETONCHANGEDCOUNT); }
- /** Unsafe version of {@link #time}. */
- public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrBodyJointLocationsFB.TIME); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointLocationsFB.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrBodyJointLocationsFB.NEXT, value); }
- /** Unsafe version of {@link #isActive(boolean) isActive}. */
- public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointLocationsFB.ISACTIVE, value); }
- /** Unsafe version of {@link #confidence(float) confidence}. */
- public static void nconfidence(long struct, float value) { UNSAFE.putFloat(null, struct + XrBodyJointLocationsFB.CONFIDENCE, value); }
- /** Sets the specified value to the {@code jointCount} field of the specified {@code struct}. */
- public static void njointCount(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointLocationsFB.JOINTCOUNT, value); }
- /** Unsafe version of {@link #jointLocations(XrBodyJointLocationFB.Buffer) jointLocations}. */
- public static void njointLocations(long struct, XrBodyJointLocationFB.Buffer value) { memPutAddress(struct + XrBodyJointLocationsFB.JOINTLOCATIONS, value.address()); njointCount(struct, value.remaining()); }
- /** Unsafe version of {@link #skeletonChangedCount(int) skeletonChangedCount}. */
- public static void nskeletonChangedCount(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointLocationsFB.SKELETONCHANGEDCOUNT, value); }
- /** Unsafe version of {@link #time(long) time}. */
- public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrBodyJointLocationsFB.TIME, value); }
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointLocationsFB.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrBodyJointLocationsFB.NEXT); }
+ /** Unsafe version of {@link #isActive}. */
+ public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointLocationsFB.ISACTIVE); }
+ /** Unsafe version of {@link #confidence}. */
+ public static float nconfidence(long struct) { return UNSAFE.getFloat(null, struct + XrBodyJointLocationsFB.CONFIDENCE); }
+ /** Unsafe version of {@link #jointCount}. */
+ public static int njointCount(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointLocationsFB.JOINTCOUNT); }
+ /** Unsafe version of {@link #jointLocations}. */
+ public static XrBodyJointLocationFB.Buffer njointLocations(long struct) { return XrBodyJointLocationFB.create(memGetAddress(struct + XrBodyJointLocationsFB.JOINTLOCATIONS), njointCount(struct)); }
+ /** Unsafe version of {@link #skeletonChangedCount}. */
+ public static int nskeletonChangedCount(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointLocationsFB.SKELETONCHANGEDCOUNT); }
+ /** Unsafe version of {@link #time}. */
+ public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrBodyJointLocationsFB.TIME); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointLocationsFB.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrBodyJointLocationsFB.NEXT, value); }
+ /** Unsafe version of {@link #isActive(boolean) isActive}. */
+ public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointLocationsFB.ISACTIVE, value); }
+ /** Unsafe version of {@link #confidence(float) confidence}. */
+ public static void nconfidence(long struct, float value) { UNSAFE.putFloat(null, struct + XrBodyJointLocationsFB.CONFIDENCE, value); }
+ /** Sets the specified value to the {@code jointCount} field of the specified {@code struct}. */
+ public static void njointCount(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointLocationsFB.JOINTCOUNT, value); }
+ /** Unsafe version of {@link #jointLocations(XrBodyJointLocationFB.Buffer) jointLocations}. */
+ public static void njointLocations(long struct, XrBodyJointLocationFB.Buffer value) { memPutAddress(struct + XrBodyJointLocationsFB.JOINTLOCATIONS, value.address()); njointCount(struct, value.remaining()); }
+ /** Unsafe version of {@link #skeletonChangedCount(int) skeletonChangedCount}. */
+ public static void nskeletonChangedCount(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointLocationsFB.SKELETONCHANGEDCOUNT, value); }
+ /** Unsafe version of {@link #time(long) time}. */
+ public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrBodyJointLocationsFB.TIME, value); }
/**
* Validates pointer members that should not be {@code NULL}.
@@ -353,9 +344,9 @@ public static XrBodyJointLocationsFB.Buffer calloc(int capacity, MemoryStack sta
*/
public static void validate(long struct) {
check(memGetAddress(struct + XrBodyJointLocationsFB.JOINTLOCATIONS));
- }
+ }
- // -----------------------------------
+ // -----------------------------------
/** An array of {@link XrBodyJointLocationsFB} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -365,9 +356,9 @@ public static class Buffer extends StructBuffer
/**
* Creates a new {@code XrBodyJointLocationsFB.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrBodyJointLocationsFB#SIZEOF}, and its mark will be undefined.
+ * by {@link XrBodyJointLocationsFB#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -392,47 +383,47 @@ protected Buffer self() {
protected XrBodyJointLocationsFB getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrBodyJointLocationsFB#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrBodyJointLocationsFB.ntype(address()); }
- /** @return the value of the {@link XrBodyJointLocationsFB#next} field. */
- @NativeType("void *")
- public long next() { return XrBodyJointLocationsFB.nnext(address()); }
- /** @return the value of the {@link XrBodyJointLocationsFB#isActive} field. */
- @NativeType("XrBool32")
- public boolean isActive() { return XrBodyJointLocationsFB.nisActive(address()) != 0; }
- /** @return the value of the {@link XrBodyJointLocationsFB#confidence} field. */
- public float confidence() { return XrBodyJointLocationsFB.nconfidence(address()); }
- /** @return the value of the {@link XrBodyJointLocationsFB#jointCount} field. */
- @NativeType("uint32_t")
- public int jointCount() { return XrBodyJointLocationsFB.njointCount(address()); }
- /** @return a {@link XrBodyJointLocationFB.Buffer} view of the struct array pointed to by the {@link XrBodyJointLocationsFB#jointLocations} field. */
- @NativeType("XrBodyJointLocationFB *")
- public XrBodyJointLocationFB.Buffer jointLocations() { return XrBodyJointLocationsFB.njointLocations(address()); }
- /** @return the value of the {@link XrBodyJointLocationsFB#skeletonChangedCount} field. */
- @NativeType("uint32_t")
- public int skeletonChangedCount() { return XrBodyJointLocationsFB.nskeletonChangedCount(address()); }
- /** @return the value of the {@link XrBodyJointLocationsFB#time} field. */
- @NativeType("XrTime")
- public long time() { return XrBodyJointLocationsFB.ntime(address()); }
-
- /** Sets the specified value to the {@link XrBodyJointLocationsFB#type} field. */
- public XrBodyJointLocationsFB.Buffer type(@NativeType("XrStructureType") int value) { XrBodyJointLocationsFB.ntype(address(), value); return this; }
- /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_JOINT_LOCATIONS_FB TYPE_BODY_JOINT_LOCATIONS_FB} value to the {@link XrBodyJointLocationsFB#type} field. */
- public XrBodyJointLocationsFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_JOINT_LOCATIONS_FB); }
- /** Sets the specified value to the {@link XrBodyJointLocationsFB#next} field. */
- public XrBodyJointLocationsFB.Buffer next(@NativeType("void *") long value) { XrBodyJointLocationsFB.nnext(address(), value); return this; }
- /** Sets the specified value to the {@link XrBodyJointLocationsFB#isActive} field. */
- public XrBodyJointLocationsFB.Buffer isActive(@NativeType("XrBool32") boolean value) { XrBodyJointLocationsFB.nisActive(address(), value ? 1 : 0); return this; }
- /** Sets the specified value to the {@link XrBodyJointLocationsFB#confidence} field. */
- public XrBodyJointLocationsFB.Buffer confidence(float value) { XrBodyJointLocationsFB.nconfidence(address(), value); return this; }
- /** Sets the address of the specified {@link XrBodyJointLocationFB.Buffer} to the {@link XrBodyJointLocationsFB#jointLocations} field. */
- public XrBodyJointLocationsFB.Buffer jointLocations(@NativeType("XrBodyJointLocationFB *") XrBodyJointLocationFB.Buffer value) { XrBodyJointLocationsFB.njointLocations(address(), value); return this; }
- /** Sets the specified value to the {@link XrBodyJointLocationsFB#skeletonChangedCount} field. */
- public XrBodyJointLocationsFB.Buffer skeletonChangedCount(@NativeType("uint32_t") int value) { XrBodyJointLocationsFB.nskeletonChangedCount(address(), value); return this; }
- /** Sets the specified value to the {@link XrBodyJointLocationsFB#time} field. */
- public XrBodyJointLocationsFB.Buffer time(@NativeType("XrTime") long value) { XrBodyJointLocationsFB.ntime(address(), value); return this; }
+
+ /** @return the value of the {@link XrBodyJointLocationsFB#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrBodyJointLocationsFB.ntype(address()); }
+ /** @return the value of the {@link XrBodyJointLocationsFB#next} field. */
+ @NativeType("void *")
+ public long next() { return XrBodyJointLocationsFB.nnext(address()); }
+ /** @return the value of the {@link XrBodyJointLocationsFB#isActive} field. */
+ @NativeType("XrBool32")
+ public boolean isActive() { return XrBodyJointLocationsFB.nisActive(address()) != 0; }
+ /** @return the value of the {@link XrBodyJointLocationsFB#confidence} field. */
+ public float confidence() { return XrBodyJointLocationsFB.nconfidence(address()); }
+ /** @return the value of the {@link XrBodyJointLocationsFB#jointCount} field. */
+ @NativeType("uint32_t")
+ public int jointCount() { return XrBodyJointLocationsFB.njointCount(address()); }
+ /** @return a {@link XrBodyJointLocationFB.Buffer} view of the struct array pointed to by the {@link XrBodyJointLocationsFB#jointLocations} field. */
+ @NativeType("XrBodyJointLocationFB *")
+ public XrBodyJointLocationFB.Buffer jointLocations() { return XrBodyJointLocationsFB.njointLocations(address()); }
+ /** @return the value of the {@link XrBodyJointLocationsFB#skeletonChangedCount} field. */
+ @NativeType("uint32_t")
+ public int skeletonChangedCount() { return XrBodyJointLocationsFB.nskeletonChangedCount(address()); }
+ /** @return the value of the {@link XrBodyJointLocationsFB#time} field. */
+ @NativeType("XrTime")
+ public long time() { return XrBodyJointLocationsFB.ntime(address()); }
+
+ /** Sets the specified value to the {@link XrBodyJointLocationsFB#type} field. */
+ public XrBodyJointLocationsFB.Buffer type(@NativeType("XrStructureType") int value) { XrBodyJointLocationsFB.ntype(address(), value); return this; }
+ /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_JOINT_LOCATIONS_FB TYPE_BODY_JOINT_LOCATIONS_FB} value to the {@link XrBodyJointLocationsFB#type} field. */
+ public XrBodyJointLocationsFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_JOINT_LOCATIONS_FB); }
+ /** Sets the specified value to the {@link XrBodyJointLocationsFB#next} field. */
+ public XrBodyJointLocationsFB.Buffer next(@NativeType("void *") long value) { XrBodyJointLocationsFB.nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link XrBodyJointLocationsFB#isActive} field. */
+ public XrBodyJointLocationsFB.Buffer isActive(@NativeType("XrBool32") boolean value) { XrBodyJointLocationsFB.nisActive(address(), value ? 1 : 0); return this; }
+ /** Sets the specified value to the {@link XrBodyJointLocationsFB#confidence} field. */
+ public XrBodyJointLocationsFB.Buffer confidence(float value) { XrBodyJointLocationsFB.nconfidence(address(), value); return this; }
+ /** Sets the address of the specified {@link XrBodyJointLocationFB.Buffer} to the {@link XrBodyJointLocationsFB#jointLocations} field. */
+ public XrBodyJointLocationsFB.Buffer jointLocations(@NativeType("XrBodyJointLocationFB *") XrBodyJointLocationFB.Buffer value) { XrBodyJointLocationsFB.njointLocations(address(), value); return this; }
+ /** Sets the specified value to the {@link XrBodyJointLocationsFB#skeletonChangedCount} field. */
+ public XrBodyJointLocationsFB.Buffer skeletonChangedCount(@NativeType("uint32_t") int value) { XrBodyJointLocationsFB.nskeletonChangedCount(address(), value); return this; }
+ /** Sets the specified value to the {@link XrBodyJointLocationsFB#time} field. */
+ public XrBodyJointLocationsFB.Buffer time(@NativeType("XrTime") long value) { XrBodyJointLocationsFB.ntime(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointsLocateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointsLocateInfoFB.java
index b4d26b809e..156467668c 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointsLocateInfoFB.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointsLocateInfoFB.java
@@ -4,18 +4,18 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Describes the information to locate body joints.
*
@@ -45,8 +45,8 @@
* XrSpace {@link #baseSpace};
* XrTime {@link #time};
* }
- */
-public class XrBodyJointsLocateInfoFB extends Struct implements NativeResource {
+ */
+public class XrBodyJointsLocateInfoFB extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -56,35 +56,26 @@ public class XrBodyJointsLocateInfoFB extends Struct i
/** The struct member offsets. */
public static final int
- TYPE,
- NEXT,
- BASESPACE,
- TIME;
+ TYPE,
+ NEXT,
+ BASESPACE,
+ TIME;
static {
- Layout layout = __struct(
- __member(4),
- __member(POINTER_SIZE),
- __member(POINTER_SIZE),
+ Layout layout = __struct(
+ __member(4),
+ __member(POINTER_SIZE),
+ __member(POINTER_SIZE),
__member(8)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- TYPE = layout.offsetof(0);
- NEXT = layout.offsetof(1);
- BASESPACE = layout.offsetof(2);
- TIME = layout.offsetof(3);
- }
-
- protected XrBodyJointsLocateInfoFB(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrBodyJointsLocateInfoFB create(long address, @Nullable ByteBuffer container) {
- return new XrBodyJointsLocateInfoFB(address, container);
+ TYPE = layout.offsetof(0);
+ NEXT = layout.offsetof(1);
+ BASESPACE = layout.offsetof(2);
+ TIME = layout.offsetof(3);
}
/**
@@ -99,42 +90,42 @@ public XrBodyJointsLocateInfoFB(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the {@code XrStructureType} of this structure. */
- @NativeType("XrStructureType")
- public int type() { return ntype(address()); }
- /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */
- @NativeType("void const *")
- public long next() { return nnext(address()); }
- /** an {@code XrSpace} within which the returned body joint locations will be represented. */
- @NativeType("XrSpace")
- public long baseSpace() { return nbaseSpace(address()); }
- /** an {@code XrTime} at which to locate the body joints. */
- @NativeType("XrTime")
- public long time() { return ntime(address()); }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrBodyJointsLocateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB TYPE_BODY_JOINTS_LOCATE_INFO_FB} value to the {@link #type} field. */
- public XrBodyJointsLocateInfoFB type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB); }
- /** Sets the specified value to the {@link #next} field. */
- public XrBodyJointsLocateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
- /** Sets the specified value to the {@link #baseSpace} field. */
- public XrBodyJointsLocateInfoFB baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; }
- /** Sets the specified value to the {@link #time} field. */
- public XrBodyJointsLocateInfoFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */
+ @NativeType("void const *")
+ public long next() { return nnext(address()); }
+ /** an {@code XrSpace} within which the returned body joint locations will be represented. */
+ @NativeType("XrSpace")
+ public long baseSpace() { return nbaseSpace(address()); }
+ /** an {@code XrTime} at which to locate the body joints. */
+ @NativeType("XrTime")
+ public long time() { return ntime(address()); }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrBodyJointsLocateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB TYPE_BODY_JOINTS_LOCATE_INFO_FB} value to the {@link #type} field. */
+ public XrBodyJointsLocateInfoFB type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrBodyJointsLocateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link #baseSpace} field. */
+ public XrBodyJointsLocateInfoFB baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; }
+ /** Sets the specified value to the {@link #time} field. */
+ public XrBodyJointsLocateInfoFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrBodyJointsLocateInfoFB set(
- int type,
- long next,
- XrSpace baseSpace,
+ int type,
+ long next,
+ XrSpace baseSpace,
long time
- ) {
- type(type);
- next(next);
- baseSpace(baseSpace);
- time(time);
+ ) {
+ type(type);
+ next(next);
+ baseSpace(baseSpace);
+ time(time);
return this;
}
@@ -155,29 +146,29 @@ public XrBodyJointsLocateInfoFB set(XrBodyJointsLocateInfoFB src) {
/** Returns a new {@code XrBodyJointsLocateInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrBodyJointsLocateInfoFB malloc() {
- return new XrBodyJointsLocateInfoFB(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrBodyJointsLocateInfoFB.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrBodyJointsLocateInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrBodyJointsLocateInfoFB calloc() {
- return new XrBodyJointsLocateInfoFB(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrBodyJointsLocateInfoFB.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrBodyJointsLocateInfoFB} instance allocated with {@link BufferUtils}. */
public static XrBodyJointsLocateInfoFB create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrBodyJointsLocateInfoFB(memAddress(container), container);
+ return wrap(XrBodyJointsLocateInfoFB.class, memAddress(container), container);
}
/** Returns a new {@code XrBodyJointsLocateInfoFB} instance for the specified memory address. */
public static XrBodyJointsLocateInfoFB create(long address) {
- return new XrBodyJointsLocateInfoFB(address, null);
+ return wrap(XrBodyJointsLocateInfoFB.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrBodyJointsLocateInfoFB createSafe(long address) {
- return address == NULL ? null : new XrBodyJointsLocateInfoFB(address, null);
+ return address == NULL ? null : wrap(XrBodyJointsLocateInfoFB.class, address);
}
/**
@@ -186,7 +177,7 @@ public static XrBodyJointsLocateInfoFB createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrBodyJointsLocateInfoFB.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -195,7 +186,7 @@ public static XrBodyJointsLocateInfoFB.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrBodyJointsLocateInfoFB.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -205,7 +196,7 @@ public static XrBodyJointsLocateInfoFB.Buffer calloc(int capacity) {
*/
public static XrBodyJointsLocateInfoFB.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -215,13 +206,13 @@ public static XrBodyJointsLocateInfoFB.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrBodyJointsLocateInfoFB.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrBodyJointsLocateInfoFB.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -230,7 +221,7 @@ public static XrBodyJointsLocateInfoFB.Buffer createSafe(long address, int capac
* @param stack the stack from which to allocate
*/
public static XrBodyJointsLocateInfoFB malloc(MemoryStack stack) {
- return new XrBodyJointsLocateInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrBodyJointsLocateInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -239,7 +230,7 @@ public static XrBodyJointsLocateInfoFB malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrBodyJointsLocateInfoFB calloc(MemoryStack stack) {
- return new XrBodyJointsLocateInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrBodyJointsLocateInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -249,7 +240,7 @@ public static XrBodyJointsLocateInfoFB calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrBodyJointsLocateInfoFB.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -259,28 +250,28 @@ public static XrBodyJointsLocateInfoFB.Buffer malloc(int capacity, MemoryStack s
* @param capacity the buffer capacity
*/
public static XrBodyJointsLocateInfoFB.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointsLocateInfoFB.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrBodyJointsLocateInfoFB.NEXT); }
- /** Unsafe version of {@link #baseSpace}. */
- public static long nbaseSpace(long struct) { return memGetAddress(struct + XrBodyJointsLocateInfoFB.BASESPACE); }
- /** Unsafe version of {@link #time}. */
- public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrBodyJointsLocateInfoFB.TIME); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointsLocateInfoFB.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrBodyJointsLocateInfoFB.NEXT, value); }
- /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */
- public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrBodyJointsLocateInfoFB.BASESPACE, value.address()); }
- /** Unsafe version of {@link #time(long) time}. */
- public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrBodyJointsLocateInfoFB.TIME, value); }
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointsLocateInfoFB.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrBodyJointsLocateInfoFB.NEXT); }
+ /** Unsafe version of {@link #baseSpace}. */
+ public static long nbaseSpace(long struct) { return memGetAddress(struct + XrBodyJointsLocateInfoFB.BASESPACE); }
+ /** Unsafe version of {@link #time}. */
+ public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrBodyJointsLocateInfoFB.TIME); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointsLocateInfoFB.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrBodyJointsLocateInfoFB.NEXT, value); }
+ /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */
+ public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrBodyJointsLocateInfoFB.BASESPACE, value.address()); }
+ /** Unsafe version of {@link #time(long) time}. */
+ public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrBodyJointsLocateInfoFB.TIME, value); }
/**
* Validates pointer members that should not be {@code NULL}.
@@ -289,9 +280,9 @@ public static XrBodyJointsLocateInfoFB.Buffer calloc(int capacity, MemoryStack s
*/
public static void validate(long struct) {
check(memGetAddress(struct + XrBodyJointsLocateInfoFB.BASESPACE));
- }
+ }
- // -----------------------------------
+ // -----------------------------------
/** An array of {@link XrBodyJointsLocateInfoFB} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -301,9 +292,9 @@ public static class Buffer extends StructBufferChanges to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrBodyJointsLocateInfoFB#SIZEOF}, and its mark will be undefined.
+ * by {@link XrBodyJointsLocateInfoFB#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -328,30 +319,30 @@ protected Buffer self() {
protected XrBodyJointsLocateInfoFB getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrBodyJointsLocateInfoFB#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrBodyJointsLocateInfoFB.ntype(address()); }
- /** @return the value of the {@link XrBodyJointsLocateInfoFB#next} field. */
- @NativeType("void const *")
- public long next() { return XrBodyJointsLocateInfoFB.nnext(address()); }
- /** @return the value of the {@link XrBodyJointsLocateInfoFB#baseSpace} field. */
- @NativeType("XrSpace")
- public long baseSpace() { return XrBodyJointsLocateInfoFB.nbaseSpace(address()); }
- /** @return the value of the {@link XrBodyJointsLocateInfoFB#time} field. */
- @NativeType("XrTime")
- public long time() { return XrBodyJointsLocateInfoFB.ntime(address()); }
-
- /** Sets the specified value to the {@link XrBodyJointsLocateInfoFB#type} field. */
- public XrBodyJointsLocateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrBodyJointsLocateInfoFB.ntype(address(), value); return this; }
- /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB TYPE_BODY_JOINTS_LOCATE_INFO_FB} value to the {@link XrBodyJointsLocateInfoFB#type} field. */
- public XrBodyJointsLocateInfoFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB); }
- /** Sets the specified value to the {@link XrBodyJointsLocateInfoFB#next} field. */
- public XrBodyJointsLocateInfoFB.Buffer next(@NativeType("void const *") long value) { XrBodyJointsLocateInfoFB.nnext(address(), value); return this; }
- /** Sets the specified value to the {@link XrBodyJointsLocateInfoFB#baseSpace} field. */
- public XrBodyJointsLocateInfoFB.Buffer baseSpace(XrSpace value) { XrBodyJointsLocateInfoFB.nbaseSpace(address(), value); return this; }
- /** Sets the specified value to the {@link XrBodyJointsLocateInfoFB#time} field. */
- public XrBodyJointsLocateInfoFB.Buffer time(@NativeType("XrTime") long value) { XrBodyJointsLocateInfoFB.ntime(address(), value); return this; }
+
+ /** @return the value of the {@link XrBodyJointsLocateInfoFB#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrBodyJointsLocateInfoFB.ntype(address()); }
+ /** @return the value of the {@link XrBodyJointsLocateInfoFB#next} field. */
+ @NativeType("void const *")
+ public long next() { return XrBodyJointsLocateInfoFB.nnext(address()); }
+ /** @return the value of the {@link XrBodyJointsLocateInfoFB#baseSpace} field. */
+ @NativeType("XrSpace")
+ public long baseSpace() { return XrBodyJointsLocateInfoFB.nbaseSpace(address()); }
+ /** @return the value of the {@link XrBodyJointsLocateInfoFB#time} field. */
+ @NativeType("XrTime")
+ public long time() { return XrBodyJointsLocateInfoFB.ntime(address()); }
+
+ /** Sets the specified value to the {@link XrBodyJointsLocateInfoFB#type} field. */
+ public XrBodyJointsLocateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrBodyJointsLocateInfoFB.ntype(address(), value); return this; }
+ /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB TYPE_BODY_JOINTS_LOCATE_INFO_FB} value to the {@link XrBodyJointsLocateInfoFB#type} field. */
+ public XrBodyJointsLocateInfoFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB); }
+ /** Sets the specified value to the {@link XrBodyJointsLocateInfoFB#next} field. */
+ public XrBodyJointsLocateInfoFB.Buffer next(@NativeType("void const *") long value) { XrBodyJointsLocateInfoFB.nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link XrBodyJointsLocateInfoFB#baseSpace} field. */
+ public XrBodyJointsLocateInfoFB.Buffer baseSpace(XrSpace value) { XrBodyJointsLocateInfoFB.nbaseSpace(address(), value); return this; }
+ /** Sets the specified value to the {@link XrBodyJointsLocateInfoFB#time} field. */
+ public XrBodyJointsLocateInfoFB.Buffer time(@NativeType("XrTime") long value) { XrBodyJointsLocateInfoFB.ntime(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodySkeletonFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodySkeletonFB.java
index daa5d70e33..3b436bca84 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodySkeletonFB.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodySkeletonFB.java
@@ -4,18 +4,18 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Returns the body skeleton hierarchy.
*
@@ -48,8 +48,8 @@
* uint32_t {@link #jointCount};
* {@link XrBodySkeletonJointFB XrBodySkeletonJointFB} * {@link #joints};
* }
- */
-public class XrBodySkeletonFB extends Struct implements NativeResource {
+ */
+public class XrBodySkeletonFB extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -59,35 +59,26 @@ public class XrBodySkeletonFB extends Struct implements Native
/** The struct member offsets. */
public static final int
- TYPE,
- NEXT,
- JOINTCOUNT,
- JOINTS;
+ TYPE,
+ NEXT,
+ JOINTCOUNT,
+ JOINTS;
static {
- Layout layout = __struct(
- __member(4),
- __member(POINTER_SIZE),
- __member(4),
+ Layout layout = __struct(
+ __member(4),
+ __member(POINTER_SIZE),
+ __member(4),
__member(POINTER_SIZE)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- TYPE = layout.offsetof(0);
- NEXT = layout.offsetof(1);
- JOINTCOUNT = layout.offsetof(2);
- JOINTS = layout.offsetof(3);
- }
-
- protected XrBodySkeletonFB(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrBodySkeletonFB create(long address, @Nullable ByteBuffer container) {
- return new XrBodySkeletonFB(address, container);
+ TYPE = layout.offsetof(0);
+ NEXT = layout.offsetof(1);
+ JOINTCOUNT = layout.offsetof(2);
+ JOINTS = layout.offsetof(3);
}
/**
@@ -102,38 +93,38 @@ public XrBodySkeletonFB(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the {@code XrStructureType} of this structure. */
- @NativeType("XrStructureType")
- public int type() { return ntype(address()); }
- /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */
- @NativeType("void *")
- public long next() { return nnext(address()); }
- /** an {@code uint32_t} describing the count of elements in {@code joints} array. */
- @NativeType("uint32_t")
- public int jointCount() { return njointCount(address()); }
- /** an application-allocated array of {@link XrBodySkeletonJointFB} that will be filled with skeleton joint elements. */
- @NativeType("XrBodySkeletonJointFB *")
- public XrBodySkeletonJointFB.Buffer joints() { return njoints(address()); }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrBodySkeletonFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_SKELETON_FB TYPE_BODY_SKELETON_FB} value to the {@link #type} field. */
- public XrBodySkeletonFB type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_SKELETON_FB); }
- /** Sets the specified value to the {@link #next} field. */
- public XrBodySkeletonFB next(@NativeType("void *") long value) { nnext(address(), value); return this; }
- /** Sets the address of the specified {@link XrBodySkeletonJointFB.Buffer} to the {@link #joints} field. */
- public XrBodySkeletonFB joints(@NativeType("XrBodySkeletonJointFB *") XrBodySkeletonJointFB.Buffer value) { njoints(address(), value); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */
+ @NativeType("void *")
+ public long next() { return nnext(address()); }
+ /** an {@code uint32_t} describing the count of elements in {@code joints} array. */
+ @NativeType("uint32_t")
+ public int jointCount() { return njointCount(address()); }
+ /** an application-allocated array of {@link XrBodySkeletonJointFB} that will be filled with skeleton joint elements. */
+ @NativeType("XrBodySkeletonJointFB *")
+ public XrBodySkeletonJointFB.Buffer joints() { return njoints(address()); }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrBodySkeletonFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_SKELETON_FB TYPE_BODY_SKELETON_FB} value to the {@link #type} field. */
+ public XrBodySkeletonFB type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_SKELETON_FB); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrBodySkeletonFB next(@NativeType("void *") long value) { nnext(address(), value); return this; }
+ /** Sets the address of the specified {@link XrBodySkeletonJointFB.Buffer} to the {@link #joints} field. */
+ public XrBodySkeletonFB joints(@NativeType("XrBodySkeletonJointFB *") XrBodySkeletonJointFB.Buffer value) { njoints(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrBodySkeletonFB set(
- int type,
- long next,
+ int type,
+ long next,
XrBodySkeletonJointFB.Buffer joints
- ) {
- type(type);
- next(next);
- joints(joints);
+ ) {
+ type(type);
+ next(next);
+ joints(joints);
return this;
}
@@ -154,29 +145,29 @@ public XrBodySkeletonFB set(XrBodySkeletonFB src) {
/** Returns a new {@code XrBodySkeletonFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrBodySkeletonFB malloc() {
- return new XrBodySkeletonFB(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrBodySkeletonFB.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrBodySkeletonFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrBodySkeletonFB calloc() {
- return new XrBodySkeletonFB(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrBodySkeletonFB.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrBodySkeletonFB} instance allocated with {@link BufferUtils}. */
public static XrBodySkeletonFB create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrBodySkeletonFB(memAddress(container), container);
+ return wrap(XrBodySkeletonFB.class, memAddress(container), container);
}
/** Returns a new {@code XrBodySkeletonFB} instance for the specified memory address. */
public static XrBodySkeletonFB create(long address) {
- return new XrBodySkeletonFB(address, null);
+ return wrap(XrBodySkeletonFB.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrBodySkeletonFB createSafe(long address) {
- return address == NULL ? null : new XrBodySkeletonFB(address, null);
+ return address == NULL ? null : wrap(XrBodySkeletonFB.class, address);
}
/**
@@ -185,7 +176,7 @@ public static XrBodySkeletonFB createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrBodySkeletonFB.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -194,7 +185,7 @@ public static XrBodySkeletonFB.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrBodySkeletonFB.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -204,7 +195,7 @@ public static XrBodySkeletonFB.Buffer calloc(int capacity) {
*/
public static XrBodySkeletonFB.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -214,13 +205,13 @@ public static XrBodySkeletonFB.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrBodySkeletonFB.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrBodySkeletonFB.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -229,7 +220,7 @@ public static XrBodySkeletonFB.Buffer createSafe(long address, int capacity) {
* @param stack the stack from which to allocate
*/
public static XrBodySkeletonFB malloc(MemoryStack stack) {
- return new XrBodySkeletonFB(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrBodySkeletonFB.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -238,7 +229,7 @@ public static XrBodySkeletonFB malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrBodySkeletonFB calloc(MemoryStack stack) {
- return new XrBodySkeletonFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrBodySkeletonFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -248,7 +239,7 @@ public static XrBodySkeletonFB calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrBodySkeletonFB.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -258,28 +249,28 @@ public static XrBodySkeletonFB.Buffer malloc(int capacity, MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrBodySkeletonFB.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBodySkeletonFB.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrBodySkeletonFB.NEXT); }
- /** Unsafe version of {@link #jointCount}. */
- public static int njointCount(long struct) { return UNSAFE.getInt(null, struct + XrBodySkeletonFB.JOINTCOUNT); }
- /** Unsafe version of {@link #joints}. */
- public static XrBodySkeletonJointFB.Buffer njoints(long struct) { return XrBodySkeletonJointFB.create(memGetAddress(struct + XrBodySkeletonFB.JOINTS), njointCount(struct)); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBodySkeletonFB.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrBodySkeletonFB.NEXT, value); }
- /** Sets the specified value to the {@code jointCount} field of the specified {@code struct}. */
- public static void njointCount(long struct, int value) { UNSAFE.putInt(null, struct + XrBodySkeletonFB.JOINTCOUNT, value); }
- /** Unsafe version of {@link #joints(XrBodySkeletonJointFB.Buffer) joints}. */
- public static void njoints(long struct, XrBodySkeletonJointFB.Buffer value) { memPutAddress(struct + XrBodySkeletonFB.JOINTS, value.address()); njointCount(struct, value.remaining()); }
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBodySkeletonFB.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrBodySkeletonFB.NEXT); }
+ /** Unsafe version of {@link #jointCount}. */
+ public static int njointCount(long struct) { return UNSAFE.getInt(null, struct + XrBodySkeletonFB.JOINTCOUNT); }
+ /** Unsafe version of {@link #joints}. */
+ public static XrBodySkeletonJointFB.Buffer njoints(long struct) { return XrBodySkeletonJointFB.create(memGetAddress(struct + XrBodySkeletonFB.JOINTS), njointCount(struct)); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBodySkeletonFB.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrBodySkeletonFB.NEXT, value); }
+ /** Sets the specified value to the {@code jointCount} field of the specified {@code struct}. */
+ public static void njointCount(long struct, int value) { UNSAFE.putInt(null, struct + XrBodySkeletonFB.JOINTCOUNT, value); }
+ /** Unsafe version of {@link #joints(XrBodySkeletonJointFB.Buffer) joints}. */
+ public static void njoints(long struct, XrBodySkeletonJointFB.Buffer value) { memPutAddress(struct + XrBodySkeletonFB.JOINTS, value.address()); njointCount(struct, value.remaining()); }
/**
* Validates pointer members that should not be {@code NULL}.
@@ -288,9 +279,9 @@ public static XrBodySkeletonFB.Buffer calloc(int capacity, MemoryStack stack) {
*/
public static void validate(long struct) {
check(memGetAddress(struct + XrBodySkeletonFB.JOINTS));
- }
+ }
- // -----------------------------------
+ // -----------------------------------
/** An array of {@link XrBodySkeletonFB} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -300,9 +291,9 @@ public static class Buffer extends StructBuffer implem
/**
* Creates a new {@code XrBodySkeletonFB.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrBodySkeletonFB#SIZEOF}, and its mark will be undefined.
+ * by {@link XrBodySkeletonFB#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -327,28 +318,28 @@ protected Buffer self() {
protected XrBodySkeletonFB getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrBodySkeletonFB#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrBodySkeletonFB.ntype(address()); }
- /** @return the value of the {@link XrBodySkeletonFB#next} field. */
- @NativeType("void *")
- public long next() { return XrBodySkeletonFB.nnext(address()); }
- /** @return the value of the {@link XrBodySkeletonFB#jointCount} field. */
- @NativeType("uint32_t")
- public int jointCount() { return XrBodySkeletonFB.njointCount(address()); }
- /** @return a {@link XrBodySkeletonJointFB.Buffer} view of the struct array pointed to by the {@link XrBodySkeletonFB#joints} field. */
- @NativeType("XrBodySkeletonJointFB *")
- public XrBodySkeletonJointFB.Buffer joints() { return XrBodySkeletonFB.njoints(address()); }
-
- /** Sets the specified value to the {@link XrBodySkeletonFB#type} field. */
- public XrBodySkeletonFB.Buffer type(@NativeType("XrStructureType") int value) { XrBodySkeletonFB.ntype(address(), value); return this; }
- /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_SKELETON_FB TYPE_BODY_SKELETON_FB} value to the {@link XrBodySkeletonFB#type} field. */
- public XrBodySkeletonFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_SKELETON_FB); }
- /** Sets the specified value to the {@link XrBodySkeletonFB#next} field. */
- public XrBodySkeletonFB.Buffer next(@NativeType("void *") long value) { XrBodySkeletonFB.nnext(address(), value); return this; }
- /** Sets the address of the specified {@link XrBodySkeletonJointFB.Buffer} to the {@link XrBodySkeletonFB#joints} field. */
- public XrBodySkeletonFB.Buffer joints(@NativeType("XrBodySkeletonJointFB *") XrBodySkeletonJointFB.Buffer value) { XrBodySkeletonFB.njoints(address(), value); return this; }
+
+ /** @return the value of the {@link XrBodySkeletonFB#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrBodySkeletonFB.ntype(address()); }
+ /** @return the value of the {@link XrBodySkeletonFB#next} field. */
+ @NativeType("void *")
+ public long next() { return XrBodySkeletonFB.nnext(address()); }
+ /** @return the value of the {@link XrBodySkeletonFB#jointCount} field. */
+ @NativeType("uint32_t")
+ public int jointCount() { return XrBodySkeletonFB.njointCount(address()); }
+ /** @return a {@link XrBodySkeletonJointFB.Buffer} view of the struct array pointed to by the {@link XrBodySkeletonFB#joints} field. */
+ @NativeType("XrBodySkeletonJointFB *")
+ public XrBodySkeletonJointFB.Buffer joints() { return XrBodySkeletonFB.njoints(address()); }
+
+ /** Sets the specified value to the {@link XrBodySkeletonFB#type} field. */
+ public XrBodySkeletonFB.Buffer type(@NativeType("XrStructureType") int value) { XrBodySkeletonFB.ntype(address(), value); return this; }
+ /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_SKELETON_FB TYPE_BODY_SKELETON_FB} value to the {@link XrBodySkeletonFB#type} field. */
+ public XrBodySkeletonFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_SKELETON_FB); }
+ /** Sets the specified value to the {@link XrBodySkeletonFB#next} field. */
+ public XrBodySkeletonFB.Buffer next(@NativeType("void *") long value) { XrBodySkeletonFB.nnext(address(), value); return this; }
+ /** Sets the address of the specified {@link XrBodySkeletonJointFB.Buffer} to the {@link XrBodySkeletonFB#joints} field. */
+ public XrBodySkeletonFB.Buffer joints(@NativeType("XrBodySkeletonJointFB *") XrBodySkeletonJointFB.Buffer value) { XrBodySkeletonFB.njoints(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodySkeletonJointFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodySkeletonJointFB.java
index ed3d33ba65..3ca0f2494c 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodySkeletonJointFB.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodySkeletonJointFB.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Describes the location and position of a joint in the skeleton hierarchy.
*
@@ -36,8 +36,8 @@
* int32_t {@link #parentJoint};
* {@link XrPosef XrPosef} {@link #pose};
* }
- */
-public class XrBodySkeletonJointFB extends Struct implements NativeResource {
+ */
+public class XrBodySkeletonJointFB extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -47,32 +47,23 @@ public class XrBodySkeletonJointFB extends Struct impleme
/** The struct member offsets. */
public static final int
- JOINT,
- PARENTJOINT,
- POSE;
+ JOINT,
+ PARENTJOINT,
+ POSE;
static {
- Layout layout = __struct(
- __member(4),
- __member(4),
+ Layout layout = __struct(
+ __member(4),
+ __member(4),
__member(XrPosef.SIZEOF, XrPosef.ALIGNOF)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- JOINT = layout.offsetof(0);
- PARENTJOINT = layout.offsetof(1);
- POSE = layout.offsetof(2);
- }
-
- protected XrBodySkeletonJointFB(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrBodySkeletonJointFB create(long address, @Nullable ByteBuffer container) {
- return new XrBodySkeletonJointFB(address, container);
+ JOINT = layout.offsetof(0);
+ PARENTJOINT = layout.offsetof(1);
+ POSE = layout.offsetof(2);
}
/**
@@ -87,34 +78,34 @@ public XrBodySkeletonJointFB(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** an index of a joint using the corresponding body joint enum (e.g. {@code XrBodyJointFB}). */
- @NativeType("int32_t")
- public int joint() { return njoint(address()); }
- /** an index of a parent joint of that joint, using the corresponding body joint enum (e.g. {@code XrBodyJointFB}). */
- @NativeType("int32_t")
- public int parentJoint() { return nparentJoint(address()); }
- /** an {@link XrPosef} defining the position and orientation of the origin of a body joint within the reference frame of the corresponding {@link XrBodyJointsLocateInfoFB}{@code ::baseSpace}. */
- public XrPosef pose() { return npose(address()); }
-
- /** Sets the specified value to the {@link #joint} field. */
- public XrBodySkeletonJointFB joint(@NativeType("int32_t") int value) { njoint(address(), value); return this; }
- /** Sets the specified value to the {@link #parentJoint} field. */
- public XrBodySkeletonJointFB parentJoint(@NativeType("int32_t") int value) { nparentJoint(address(), value); return this; }
- /** Copies the specified {@link XrPosef} to the {@link #pose} field. */
- public XrBodySkeletonJointFB pose(XrPosef value) { npose(address(), value); return this; }
- /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrBodySkeletonJointFB pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; }
+
+ /** an index of a joint using the corresponding body joint enum (e.g. {@code XrBodyJointFB}). */
+ @NativeType("int32_t")
+ public int joint() { return njoint(address()); }
+ /** an index of a parent joint of that joint, using the corresponding body joint enum (e.g. {@code XrBodyJointFB}). */
+ @NativeType("int32_t")
+ public int parentJoint() { return nparentJoint(address()); }
+ /** an {@link XrPosef} defining the position and orientation of the origin of a body joint within the reference frame of the corresponding {@link XrBodyJointsLocateInfoFB}{@code ::baseSpace}. */
+ public XrPosef pose() { return npose(address()); }
+
+ /** Sets the specified value to the {@link #joint} field. */
+ public XrBodySkeletonJointFB joint(@NativeType("int32_t") int value) { njoint(address(), value); return this; }
+ /** Sets the specified value to the {@link #parentJoint} field. */
+ public XrBodySkeletonJointFB parentJoint(@NativeType("int32_t") int value) { nparentJoint(address(), value); return this; }
+ /** Copies the specified {@link XrPosef} to the {@link #pose} field. */
+ public XrBodySkeletonJointFB pose(XrPosef value) { npose(address(), value); return this; }
+ /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrBodySkeletonJointFB pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; }
/** Initializes this struct with the specified values. */
public XrBodySkeletonJointFB set(
- int joint,
- int parentJoint,
+ int joint,
+ int parentJoint,
XrPosef pose
- ) {
- joint(joint);
- parentJoint(parentJoint);
- pose(pose);
+ ) {
+ joint(joint);
+ parentJoint(parentJoint);
+ pose(pose);
return this;
}
@@ -135,29 +126,29 @@ public XrBodySkeletonJointFB set(XrBodySkeletonJointFB src) {
/** Returns a new {@code XrBodySkeletonJointFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrBodySkeletonJointFB malloc() {
- return new XrBodySkeletonJointFB(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrBodySkeletonJointFB.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrBodySkeletonJointFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrBodySkeletonJointFB calloc() {
- return new XrBodySkeletonJointFB(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrBodySkeletonJointFB.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrBodySkeletonJointFB} instance allocated with {@link BufferUtils}. */
public static XrBodySkeletonJointFB create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrBodySkeletonJointFB(memAddress(container), container);
+ return wrap(XrBodySkeletonJointFB.class, memAddress(container), container);
}
/** Returns a new {@code XrBodySkeletonJointFB} instance for the specified memory address. */
public static XrBodySkeletonJointFB create(long address) {
- return new XrBodySkeletonJointFB(address, null);
+ return wrap(XrBodySkeletonJointFB.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrBodySkeletonJointFB createSafe(long address) {
- return address == NULL ? null : new XrBodySkeletonJointFB(address, null);
+ return address == NULL ? null : wrap(XrBodySkeletonJointFB.class, address);
}
/**
@@ -166,7 +157,7 @@ public static XrBodySkeletonJointFB createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrBodySkeletonJointFB.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -175,7 +166,7 @@ public static XrBodySkeletonJointFB.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrBodySkeletonJointFB.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -185,7 +176,7 @@ public static XrBodySkeletonJointFB.Buffer calloc(int capacity) {
*/
public static XrBodySkeletonJointFB.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -195,13 +186,13 @@ public static XrBodySkeletonJointFB.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrBodySkeletonJointFB.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrBodySkeletonJointFB.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -210,7 +201,7 @@ public static XrBodySkeletonJointFB.Buffer createSafe(long address, int capacity
* @param stack the stack from which to allocate
*/
public static XrBodySkeletonJointFB malloc(MemoryStack stack) {
- return new XrBodySkeletonJointFB(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrBodySkeletonJointFB.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -219,7 +210,7 @@ public static XrBodySkeletonJointFB malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrBodySkeletonJointFB calloc(MemoryStack stack) {
- return new XrBodySkeletonJointFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrBodySkeletonJointFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -229,7 +220,7 @@ public static XrBodySkeletonJointFB calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrBodySkeletonJointFB.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -239,26 +230,26 @@ public static XrBodySkeletonJointFB.Buffer malloc(int capacity, MemoryStack stac
* @param capacity the buffer capacity
*/
public static XrBodySkeletonJointFB.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #joint}. */
- public static int njoint(long struct) { return UNSAFE.getInt(null, struct + XrBodySkeletonJointFB.JOINT); }
- /** Unsafe version of {@link #parentJoint}. */
- public static int nparentJoint(long struct) { return UNSAFE.getInt(null, struct + XrBodySkeletonJointFB.PARENTJOINT); }
- /** Unsafe version of {@link #pose}. */
- public static XrPosef npose(long struct) { return XrPosef.create(struct + XrBodySkeletonJointFB.POSE); }
-
- /** Unsafe version of {@link #joint(int) joint}. */
- public static void njoint(long struct, int value) { UNSAFE.putInt(null, struct + XrBodySkeletonJointFB.JOINT, value); }
- /** Unsafe version of {@link #parentJoint(int) parentJoint}. */
- public static void nparentJoint(long struct, int value) { UNSAFE.putInt(null, struct + XrBodySkeletonJointFB.PARENTJOINT, value); }
- /** Unsafe version of {@link #pose(XrPosef) pose}. */
- public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrBodySkeletonJointFB.POSE, XrPosef.SIZEOF); }
-
- // -----------------------------------
+
+ /** Unsafe version of {@link #joint}. */
+ public static int njoint(long struct) { return UNSAFE.getInt(null, struct + XrBodySkeletonJointFB.JOINT); }
+ /** Unsafe version of {@link #parentJoint}. */
+ public static int nparentJoint(long struct) { return UNSAFE.getInt(null, struct + XrBodySkeletonJointFB.PARENTJOINT); }
+ /** Unsafe version of {@link #pose}. */
+ public static XrPosef npose(long struct) { return XrPosef.create(struct + XrBodySkeletonJointFB.POSE); }
+
+ /** Unsafe version of {@link #joint(int) joint}. */
+ public static void njoint(long struct, int value) { UNSAFE.putInt(null, struct + XrBodySkeletonJointFB.JOINT, value); }
+ /** Unsafe version of {@link #parentJoint(int) parentJoint}. */
+ public static void nparentJoint(long struct, int value) { UNSAFE.putInt(null, struct + XrBodySkeletonJointFB.PARENTJOINT, value); }
+ /** Unsafe version of {@link #pose(XrPosef) pose}. */
+ public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrBodySkeletonJointFB.POSE, XrPosef.SIZEOF); }
+
+ // -----------------------------------
/** An array of {@link XrBodySkeletonJointFB} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -268,9 +259,9 @@ public static class Buffer extends StructBuffer i
/**
* Creates a new {@code XrBodySkeletonJointFB.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrBodySkeletonJointFB#SIZEOF}, and its mark will be undefined.
+ * by {@link XrBodySkeletonJointFB#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -295,24 +286,24 @@ protected Buffer self() {
protected XrBodySkeletonJointFB getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrBodySkeletonJointFB#joint} field. */
- @NativeType("int32_t")
- public int joint() { return XrBodySkeletonJointFB.njoint(address()); }
- /** @return the value of the {@link XrBodySkeletonJointFB#parentJoint} field. */
- @NativeType("int32_t")
- public int parentJoint() { return XrBodySkeletonJointFB.nparentJoint(address()); }
- /** @return a {@link XrPosef} view of the {@link XrBodySkeletonJointFB#pose} field. */
- public XrPosef pose() { return XrBodySkeletonJointFB.npose(address()); }
-
- /** Sets the specified value to the {@link XrBodySkeletonJointFB#joint} field. */
- public XrBodySkeletonJointFB.Buffer joint(@NativeType("int32_t") int value) { XrBodySkeletonJointFB.njoint(address(), value); return this; }
- /** Sets the specified value to the {@link XrBodySkeletonJointFB#parentJoint} field. */
- public XrBodySkeletonJointFB.Buffer parentJoint(@NativeType("int32_t") int value) { XrBodySkeletonJointFB.nparentJoint(address(), value); return this; }
- /** Copies the specified {@link XrPosef} to the {@link XrBodySkeletonJointFB#pose} field. */
- public XrBodySkeletonJointFB.Buffer pose(XrPosef value) { XrBodySkeletonJointFB.npose(address(), value); return this; }
- /** Passes the {@link XrBodySkeletonJointFB#pose} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrBodySkeletonJointFB.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; }
+
+ /** @return the value of the {@link XrBodySkeletonJointFB#joint} field. */
+ @NativeType("int32_t")
+ public int joint() { return XrBodySkeletonJointFB.njoint(address()); }
+ /** @return the value of the {@link XrBodySkeletonJointFB#parentJoint} field. */
+ @NativeType("int32_t")
+ public int parentJoint() { return XrBodySkeletonJointFB.nparentJoint(address()); }
+ /** @return a {@link XrPosef} view of the {@link XrBodySkeletonJointFB#pose} field. */
+ public XrPosef pose() { return XrBodySkeletonJointFB.npose(address()); }
+
+ /** Sets the specified value to the {@link XrBodySkeletonJointFB#joint} field. */
+ public XrBodySkeletonJointFB.Buffer joint(@NativeType("int32_t") int value) { XrBodySkeletonJointFB.njoint(address(), value); return this; }
+ /** Sets the specified value to the {@link XrBodySkeletonJointFB#parentJoint} field. */
+ public XrBodySkeletonJointFB.Buffer parentJoint(@NativeType("int32_t") int value) { XrBodySkeletonJointFB.nparentJoint(address(), value); return this; }
+ /** Copies the specified {@link XrPosef} to the {@link XrBodySkeletonJointFB#pose} field. */
+ public XrBodySkeletonJointFB.Buffer pose(XrPosef value) { XrBodySkeletonJointFB.npose(address(), value); return this; }
+ /** Passes the {@link XrBodySkeletonJointFB#pose} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrBodySkeletonJointFB.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyTrackerCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyTrackerCreateInfoFB.java
index d5d40d7a16..7b64a98c4e 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyTrackerCreateInfoFB.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyTrackerCreateInfoFB.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Information to create a body joints handle.
*
@@ -39,8 +39,8 @@
* void const * {@link #next};
* XrBodyJointSetFB {@link #bodyJointSet};
* }
- */
-public class XrBodyTrackerCreateInfoFB extends Struct implements NativeResource {
+ */
+public class XrBodyTrackerCreateInfoFB extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -50,32 +50,23 @@ public class XrBodyTrackerCreateInfoFB extends Struct
/** The struct member offsets. */
public static final int
- TYPE,
- NEXT,
- BODYJOINTSET;
+ TYPE,
+ NEXT,
+ BODYJOINTSET;
static {
- Layout layout = __struct(
- __member(4),
- __member(POINTER_SIZE),
+ Layout layout = __struct(
+ __member(4),
+ __member(POINTER_SIZE),
__member(4)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- TYPE = layout.offsetof(0);
- NEXT = layout.offsetof(1);
- BODYJOINTSET = layout.offsetof(2);
- }
-
- protected XrBodyTrackerCreateInfoFB(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrBodyTrackerCreateInfoFB create(long address, @Nullable ByteBuffer container) {
- return new XrBodyTrackerCreateInfoFB(address, container);
+ TYPE = layout.offsetof(0);
+ NEXT = layout.offsetof(1);
+ BODYJOINTSET = layout.offsetof(2);
}
/**
@@ -90,35 +81,35 @@ public XrBodyTrackerCreateInfoFB(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the {@code XrStructureType} of this structure. */
- @NativeType("XrStructureType")
- public int type() { return ntype(address()); }
- /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */
- @NativeType("void const *")
- public long next() { return nnext(address()); }
- /** an {@code XrBodyJointSetFB} that describes the set of body joints to retrieve. */
- @NativeType("XrBodyJointSetFB")
- public int bodyJointSet() { return nbodyJointSet(address()); }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrBodyTrackerCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_TRACKER_CREATE_INFO_FB TYPE_BODY_TRACKER_CREATE_INFO_FB} value to the {@link #type} field. */
- public XrBodyTrackerCreateInfoFB type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_TRACKER_CREATE_INFO_FB); }
- /** Sets the specified value to the {@link #next} field. */
- public XrBodyTrackerCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
- /** Sets the specified value to the {@link #bodyJointSet} field. */
- public XrBodyTrackerCreateInfoFB bodyJointSet(@NativeType("XrBodyJointSetFB") int value) { nbodyJointSet(address(), value); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */
+ @NativeType("void const *")
+ public long next() { return nnext(address()); }
+ /** an {@code XrBodyJointSetFB} that describes the set of body joints to retrieve. */
+ @NativeType("XrBodyJointSetFB")
+ public int bodyJointSet() { return nbodyJointSet(address()); }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrBodyTrackerCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_TRACKER_CREATE_INFO_FB TYPE_BODY_TRACKER_CREATE_INFO_FB} value to the {@link #type} field. */
+ public XrBodyTrackerCreateInfoFB type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_TRACKER_CREATE_INFO_FB); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrBodyTrackerCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link #bodyJointSet} field. */
+ public XrBodyTrackerCreateInfoFB bodyJointSet(@NativeType("XrBodyJointSetFB") int value) { nbodyJointSet(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrBodyTrackerCreateInfoFB set(
- int type,
- long next,
+ int type,
+ long next,
int bodyJointSet
- ) {
- type(type);
- next(next);
- bodyJointSet(bodyJointSet);
+ ) {
+ type(type);
+ next(next);
+ bodyJointSet(bodyJointSet);
return this;
}
@@ -139,29 +130,29 @@ public XrBodyTrackerCreateInfoFB set(XrBodyTrackerCreateInfoFB src) {
/** Returns a new {@code XrBodyTrackerCreateInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrBodyTrackerCreateInfoFB malloc() {
- return new XrBodyTrackerCreateInfoFB(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrBodyTrackerCreateInfoFB.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrBodyTrackerCreateInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrBodyTrackerCreateInfoFB calloc() {
- return new XrBodyTrackerCreateInfoFB(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrBodyTrackerCreateInfoFB.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrBodyTrackerCreateInfoFB} instance allocated with {@link BufferUtils}. */
public static XrBodyTrackerCreateInfoFB create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrBodyTrackerCreateInfoFB(memAddress(container), container);
+ return wrap(XrBodyTrackerCreateInfoFB.class, memAddress(container), container);
}
/** Returns a new {@code XrBodyTrackerCreateInfoFB} instance for the specified memory address. */
public static XrBodyTrackerCreateInfoFB create(long address) {
- return new XrBodyTrackerCreateInfoFB(address, null);
+ return wrap(XrBodyTrackerCreateInfoFB.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrBodyTrackerCreateInfoFB createSafe(long address) {
- return address == NULL ? null : new XrBodyTrackerCreateInfoFB(address, null);
+ return address == NULL ? null : wrap(XrBodyTrackerCreateInfoFB.class, address);
}
/**
@@ -170,7 +161,7 @@ public static XrBodyTrackerCreateInfoFB createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrBodyTrackerCreateInfoFB.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -179,7 +170,7 @@ public static XrBodyTrackerCreateInfoFB.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrBodyTrackerCreateInfoFB.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -189,7 +180,7 @@ public static XrBodyTrackerCreateInfoFB.Buffer calloc(int capacity) {
*/
public static XrBodyTrackerCreateInfoFB.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -199,13 +190,13 @@ public static XrBodyTrackerCreateInfoFB.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrBodyTrackerCreateInfoFB.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrBodyTrackerCreateInfoFB.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -214,7 +205,7 @@ public static XrBodyTrackerCreateInfoFB.Buffer createSafe(long address, int capa
* @param stack the stack from which to allocate
*/
public static XrBodyTrackerCreateInfoFB malloc(MemoryStack stack) {
- return new XrBodyTrackerCreateInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrBodyTrackerCreateInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -223,7 +214,7 @@ public static XrBodyTrackerCreateInfoFB malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrBodyTrackerCreateInfoFB calloc(MemoryStack stack) {
- return new XrBodyTrackerCreateInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrBodyTrackerCreateInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -233,7 +224,7 @@ public static XrBodyTrackerCreateInfoFB calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrBodyTrackerCreateInfoFB.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -243,26 +234,26 @@ public static XrBodyTrackerCreateInfoFB.Buffer malloc(int capacity, MemoryStack
* @param capacity the buffer capacity
*/
public static XrBodyTrackerCreateInfoFB.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBodyTrackerCreateInfoFB.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrBodyTrackerCreateInfoFB.NEXT); }
- /** Unsafe version of {@link #bodyJointSet}. */
- public static int nbodyJointSet(long struct) { return UNSAFE.getInt(null, struct + XrBodyTrackerCreateInfoFB.BODYJOINTSET); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyTrackerCreateInfoFB.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrBodyTrackerCreateInfoFB.NEXT, value); }
- /** Unsafe version of {@link #bodyJointSet(int) bodyJointSet}. */
- public static void nbodyJointSet(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyTrackerCreateInfoFB.BODYJOINTSET, value); }
-
- // -----------------------------------
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBodyTrackerCreateInfoFB.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrBodyTrackerCreateInfoFB.NEXT); }
+ /** Unsafe version of {@link #bodyJointSet}. */
+ public static int nbodyJointSet(long struct) { return UNSAFE.getInt(null, struct + XrBodyTrackerCreateInfoFB.BODYJOINTSET); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyTrackerCreateInfoFB.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrBodyTrackerCreateInfoFB.NEXT, value); }
+ /** Unsafe version of {@link #bodyJointSet(int) bodyJointSet}. */
+ public static void nbodyJointSet(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyTrackerCreateInfoFB.BODYJOINTSET, value); }
+
+ // -----------------------------------
/** An array of {@link XrBodyTrackerCreateInfoFB} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -272,9 +263,9 @@ public static class Buffer extends StructBufferChanges to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrBodyTrackerCreateInfoFB#SIZEOF}, and its mark will be undefined.
+ * by {@link XrBodyTrackerCreateInfoFB#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -299,25 +290,25 @@ protected Buffer self() {
protected XrBodyTrackerCreateInfoFB getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrBodyTrackerCreateInfoFB#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrBodyTrackerCreateInfoFB.ntype(address()); }
- /** @return the value of the {@link XrBodyTrackerCreateInfoFB#next} field. */
- @NativeType("void const *")
- public long next() { return XrBodyTrackerCreateInfoFB.nnext(address()); }
- /** @return the value of the {@link XrBodyTrackerCreateInfoFB#bodyJointSet} field. */
- @NativeType("XrBodyJointSetFB")
- public int bodyJointSet() { return XrBodyTrackerCreateInfoFB.nbodyJointSet(address()); }
-
- /** Sets the specified value to the {@link XrBodyTrackerCreateInfoFB#type} field. */
- public XrBodyTrackerCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrBodyTrackerCreateInfoFB.ntype(address(), value); return this; }
- /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_TRACKER_CREATE_INFO_FB TYPE_BODY_TRACKER_CREATE_INFO_FB} value to the {@link XrBodyTrackerCreateInfoFB#type} field. */
- public XrBodyTrackerCreateInfoFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_TRACKER_CREATE_INFO_FB); }
- /** Sets the specified value to the {@link XrBodyTrackerCreateInfoFB#next} field. */
- public XrBodyTrackerCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrBodyTrackerCreateInfoFB.nnext(address(), value); return this; }
- /** Sets the specified value to the {@link XrBodyTrackerCreateInfoFB#bodyJointSet} field. */
- public XrBodyTrackerCreateInfoFB.Buffer bodyJointSet(@NativeType("XrBodyJointSetFB") int value) { XrBodyTrackerCreateInfoFB.nbodyJointSet(address(), value); return this; }
+
+ /** @return the value of the {@link XrBodyTrackerCreateInfoFB#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrBodyTrackerCreateInfoFB.ntype(address()); }
+ /** @return the value of the {@link XrBodyTrackerCreateInfoFB#next} field. */
+ @NativeType("void const *")
+ public long next() { return XrBodyTrackerCreateInfoFB.nnext(address()); }
+ /** @return the value of the {@link XrBodyTrackerCreateInfoFB#bodyJointSet} field. */
+ @NativeType("XrBodyJointSetFB")
+ public int bodyJointSet() { return XrBodyTrackerCreateInfoFB.nbodyJointSet(address()); }
+
+ /** Sets the specified value to the {@link XrBodyTrackerCreateInfoFB#type} field. */
+ public XrBodyTrackerCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrBodyTrackerCreateInfoFB.ntype(address(), value); return this; }
+ /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_TRACKER_CREATE_INFO_FB TYPE_BODY_TRACKER_CREATE_INFO_FB} value to the {@link XrBodyTrackerCreateInfoFB#type} field. */
+ public XrBodyTrackerCreateInfoFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_TRACKER_CREATE_INFO_FB); }
+ /** Sets the specified value to the {@link XrBodyTrackerCreateInfoFB#next} field. */
+ public XrBodyTrackerCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrBodyTrackerCreateInfoFB.nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link XrBodyTrackerCreateInfoFB#bodyJointSet} field. */
+ public XrBodyTrackerCreateInfoFB.Buffer bodyJointSet(@NativeType("XrBodyJointSetFB") int value) { XrBodyTrackerCreateInfoFB.nbodyJointSet(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyTrackerFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyTrackerFB.java
index 89bec45592..d0f7bc0b71 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyTrackerFB.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyTrackerFB.java
@@ -4,8 +4,8 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
-/** Wraps an {@code XrBodyTrackerFB} handle. */
+
+/** Wraps an {@code XrBodyTrackerFB} handle. */
public class XrBodyTrackerFB extends DispatchableHandle {
private final XrSession session;
@@ -26,4 +26,4 @@ public XrSession getSession() {
return session;
}
-}
+}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBoundSourcesForActionEnumerateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBoundSourcesForActionEnumerateInfo.java
index 7497bb03ce..2012f016f0 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBoundSourcesForActionEnumerateInfo.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBoundSourcesForActionEnumerateInfo.java
@@ -4,18 +4,18 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Information to query the bound input sources for an action.
*
@@ -39,8 +39,8 @@
* void const * {@link #next};
* XrAction {@link #action};
* }
- */
-public class XrBoundSourcesForActionEnumerateInfo extends Struct implements NativeResource {
+ */
+public class XrBoundSourcesForActionEnumerateInfo extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -50,32 +50,23 @@ public class XrBoundSourcesForActionEnumerateInfo extends Struct implements NativeResource {
@@ -281,9 +272,9 @@ public static class Buffer extends StructBufferChanges to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrBoundSourcesForActionEnumerateInfo#SIZEOF}, and its mark will be undefined.
+ * by {@link XrBoundSourcesForActionEnumerateInfo#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -308,25 +299,25 @@ protected Buffer self() {
protected XrBoundSourcesForActionEnumerateInfo getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrBoundSourcesForActionEnumerateInfo#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrBoundSourcesForActionEnumerateInfo.ntype(address()); }
- /** @return the value of the {@link XrBoundSourcesForActionEnumerateInfo#next} field. */
- @NativeType("void const *")
- public long next() { return XrBoundSourcesForActionEnumerateInfo.nnext(address()); }
- /** @return the value of the {@link XrBoundSourcesForActionEnumerateInfo#action} field. */
- @NativeType("XrAction")
- public long action() { return XrBoundSourcesForActionEnumerateInfo.naction(address()); }
-
- /** Sets the specified value to the {@link XrBoundSourcesForActionEnumerateInfo#type} field. */
- public XrBoundSourcesForActionEnumerateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrBoundSourcesForActionEnumerateInfo.ntype(address(), value); return this; }
- /** Sets the {@link XR10#XR_TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO} value to the {@link XrBoundSourcesForActionEnumerateInfo#type} field. */
- public XrBoundSourcesForActionEnumerateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO); }
- /** Sets the specified value to the {@link XrBoundSourcesForActionEnumerateInfo#next} field. */
- public XrBoundSourcesForActionEnumerateInfo.Buffer next(@NativeType("void const *") long value) { XrBoundSourcesForActionEnumerateInfo.nnext(address(), value); return this; }
- /** Sets the specified value to the {@link XrBoundSourcesForActionEnumerateInfo#action} field. */
- public XrBoundSourcesForActionEnumerateInfo.Buffer action(XrAction value) { XrBoundSourcesForActionEnumerateInfo.naction(address(), value); return this; }
+
+ /** @return the value of the {@link XrBoundSourcesForActionEnumerateInfo#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrBoundSourcesForActionEnumerateInfo.ntype(address()); }
+ /** @return the value of the {@link XrBoundSourcesForActionEnumerateInfo#next} field. */
+ @NativeType("void const *")
+ public long next() { return XrBoundSourcesForActionEnumerateInfo.nnext(address()); }
+ /** @return the value of the {@link XrBoundSourcesForActionEnumerateInfo#action} field. */
+ @NativeType("XrAction")
+ public long action() { return XrBoundSourcesForActionEnumerateInfo.naction(address()); }
+
+ /** Sets the specified value to the {@link XrBoundSourcesForActionEnumerateInfo#type} field. */
+ public XrBoundSourcesForActionEnumerateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrBoundSourcesForActionEnumerateInfo.ntype(address(), value); return this; }
+ /** Sets the {@link XR10#XR_TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO} value to the {@link XrBoundSourcesForActionEnumerateInfo#type} field. */
+ public XrBoundSourcesForActionEnumerateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO); }
+ /** Sets the specified value to the {@link XrBoundSourcesForActionEnumerateInfo#next} field. */
+ public XrBoundSourcesForActionEnumerateInfo.Buffer next(@NativeType("void const *") long value) { XrBoundSourcesForActionEnumerateInfo.nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link XrBoundSourcesForActionEnumerateInfo#action} field. */
+ public XrBoundSourcesForActionEnumerateInfo.Buffer action(XrAction value) { XrBoundSourcesForActionEnumerateInfo.naction(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrColor4f.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrColor4f.java
index e1a5f56163..3edb13d8f7 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrColor4f.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrColor4f.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Color Vector.
*
@@ -37,8 +37,8 @@
* float {@link #b};
* float {@link #a};
* }
- */
-public class XrColor4f extends Struct implements NativeResource {
+ */
+public class XrColor4f extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -48,35 +48,26 @@ public class XrColor4f extends Struct implements NativeResource {
/** The struct member offsets. */
public static final int
- R,
- G,
- B,
- A;
+ R,
+ G,
+ B,
+ A;
static {
- Layout layout = __struct(
- __member(4),
- __member(4),
- __member(4),
+ Layout layout = __struct(
+ __member(4),
+ __member(4),
+ __member(4),
__member(4)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- R = layout.offsetof(0);
- G = layout.offsetof(1);
- B = layout.offsetof(2);
- A = layout.offsetof(3);
- }
-
- protected XrColor4f(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrColor4f create(long address, @Nullable ByteBuffer container) {
- return new XrColor4f(address, container);
+ R = layout.offsetof(0);
+ G = layout.offsetof(1);
+ B = layout.offsetof(2);
+ A = layout.offsetof(3);
}
/**
@@ -91,36 +82,36 @@ public XrColor4f(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the red component of the color. */
- public float r() { return nr(address()); }
- /** the green component of the color. */
- public float g() { return ng(address()); }
- /** the blue component of the color. */
- public float b() { return nb(address()); }
- /** the alpha component of the color. */
- public float a() { return na(address()); }
-
- /** Sets the specified value to the {@link #r} field. */
- public XrColor4f r(float value) { nr(address(), value); return this; }
- /** Sets the specified value to the {@link #g} field. */
- public XrColor4f g(float value) { ng(address(), value); return this; }
- /** Sets the specified value to the {@link #b} field. */
- public XrColor4f b(float value) { nb(address(), value); return this; }
- /** Sets the specified value to the {@link #a} field. */
- public XrColor4f a(float value) { na(address(), value); return this; }
+
+ /** the red component of the color. */
+ public float r() { return nr(address()); }
+ /** the green component of the color. */
+ public float g() { return ng(address()); }
+ /** the blue component of the color. */
+ public float b() { return nb(address()); }
+ /** the alpha component of the color. */
+ public float a() { return na(address()); }
+
+ /** Sets the specified value to the {@link #r} field. */
+ public XrColor4f r(float value) { nr(address(), value); return this; }
+ /** Sets the specified value to the {@link #g} field. */
+ public XrColor4f g(float value) { ng(address(), value); return this; }
+ /** Sets the specified value to the {@link #b} field. */
+ public XrColor4f b(float value) { nb(address(), value); return this; }
+ /** Sets the specified value to the {@link #a} field. */
+ public XrColor4f a(float value) { na(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrColor4f set(
- float r,
- float g,
- float b,
+ float r,
+ float g,
+ float b,
float a
- ) {
- r(r);
- g(g);
- b(b);
- a(a);
+ ) {
+ r(r);
+ g(g);
+ b(b);
+ a(a);
return this;
}
@@ -141,29 +132,29 @@ public XrColor4f set(XrColor4f src) {
/** Returns a new {@code XrColor4f} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrColor4f malloc() {
- return new XrColor4f(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrColor4f.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrColor4f} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrColor4f calloc() {
- return new XrColor4f(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrColor4f.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrColor4f} instance allocated with {@link BufferUtils}. */
public static XrColor4f create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrColor4f(memAddress(container), container);
+ return wrap(XrColor4f.class, memAddress(container), container);
}
/** Returns a new {@code XrColor4f} instance for the specified memory address. */
public static XrColor4f create(long address) {
- return new XrColor4f(address, null);
+ return wrap(XrColor4f.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrColor4f createSafe(long address) {
- return address == NULL ? null : new XrColor4f(address, null);
+ return address == NULL ? null : wrap(XrColor4f.class, address);
}
/**
@@ -172,7 +163,7 @@ public static XrColor4f createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrColor4f.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -181,7 +172,7 @@ public static XrColor4f.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrColor4f.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -191,7 +182,7 @@ public static XrColor4f.Buffer calloc(int capacity) {
*/
public static XrColor4f.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -201,13 +192,13 @@ public static XrColor4f.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrColor4f.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrColor4f.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -216,7 +207,7 @@ public static XrColor4f.Buffer createSafe(long address, int capacity) {
* @param stack the stack from which to allocate
*/
public static XrColor4f malloc(MemoryStack stack) {
- return new XrColor4f(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrColor4f.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -225,7 +216,7 @@ public static XrColor4f malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrColor4f calloc(MemoryStack stack) {
- return new XrColor4f(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrColor4f.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -235,7 +226,7 @@ public static XrColor4f calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrColor4f.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -245,30 +236,30 @@ public static XrColor4f.Buffer malloc(int capacity, MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrColor4f.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #r}. */
- public static float nr(long struct) { return UNSAFE.getFloat(null, struct + XrColor4f.R); }
- /** Unsafe version of {@link #g}. */
- public static float ng(long struct) { return UNSAFE.getFloat(null, struct + XrColor4f.G); }
- /** Unsafe version of {@link #b}. */
- public static float nb(long struct) { return UNSAFE.getFloat(null, struct + XrColor4f.B); }
- /** Unsafe version of {@link #a}. */
- public static float na(long struct) { return UNSAFE.getFloat(null, struct + XrColor4f.A); }
-
- /** Unsafe version of {@link #r(float) r}. */
- public static void nr(long struct, float value) { UNSAFE.putFloat(null, struct + XrColor4f.R, value); }
- /** Unsafe version of {@link #g(float) g}. */
- public static void ng(long struct, float value) { UNSAFE.putFloat(null, struct + XrColor4f.G, value); }
- /** Unsafe version of {@link #b(float) b}. */
- public static void nb(long struct, float value) { UNSAFE.putFloat(null, struct + XrColor4f.B, value); }
- /** Unsafe version of {@link #a(float) a}. */
- public static void na(long struct, float value) { UNSAFE.putFloat(null, struct + XrColor4f.A, value); }
-
- // -----------------------------------
+
+ /** Unsafe version of {@link #r}. */
+ public static float nr(long struct) { return UNSAFE.getFloat(null, struct + XrColor4f.R); }
+ /** Unsafe version of {@link #g}. */
+ public static float ng(long struct) { return UNSAFE.getFloat(null, struct + XrColor4f.G); }
+ /** Unsafe version of {@link #b}. */
+ public static float nb(long struct) { return UNSAFE.getFloat(null, struct + XrColor4f.B); }
+ /** Unsafe version of {@link #a}. */
+ public static float na(long struct) { return UNSAFE.getFloat(null, struct + XrColor4f.A); }
+
+ /** Unsafe version of {@link #r(float) r}. */
+ public static void nr(long struct, float value) { UNSAFE.putFloat(null, struct + XrColor4f.R, value); }
+ /** Unsafe version of {@link #g(float) g}. */
+ public static void ng(long struct, float value) { UNSAFE.putFloat(null, struct + XrColor4f.G, value); }
+ /** Unsafe version of {@link #b(float) b}. */
+ public static void nb(long struct, float value) { UNSAFE.putFloat(null, struct + XrColor4f.B, value); }
+ /** Unsafe version of {@link #a(float) a}. */
+ public static void na(long struct, float value) { UNSAFE.putFloat(null, struct + XrColor4f.A, value); }
+
+ // -----------------------------------
/** An array of {@link XrColor4f} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -278,9 +269,9 @@ public static class Buffer extends StructBuffer implements Na
/**
* Creates a new {@code XrColor4f.Buffer} instance backed by the specified container.
*
- * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrColor4f#SIZEOF}, and its mark will be undefined.
+ * by {@link XrColor4f#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -305,24 +296,24 @@ protected Buffer self() {
protected XrColor4f getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrColor4f#r} field. */
- public float r() { return XrColor4f.nr(address()); }
- /** @return the value of the {@link XrColor4f#g} field. */
- public float g() { return XrColor4f.ng(address()); }
- /** @return the value of the {@link XrColor4f#b} field. */
- public float b() { return XrColor4f.nb(address()); }
- /** @return the value of the {@link XrColor4f#a} field. */
- public float a() { return XrColor4f.na(address()); }
-
- /** Sets the specified value to the {@link XrColor4f#r} field. */
- public XrColor4f.Buffer r(float value) { XrColor4f.nr(address(), value); return this; }
- /** Sets the specified value to the {@link XrColor4f#g} field. */
- public XrColor4f.Buffer g(float value) { XrColor4f.ng(address(), value); return this; }
- /** Sets the specified value to the {@link XrColor4f#b} field. */
- public XrColor4f.Buffer b(float value) { XrColor4f.nb(address(), value); return this; }
- /** Sets the specified value to the {@link XrColor4f#a} field. */
- public XrColor4f.Buffer a(float value) { XrColor4f.na(address(), value); return this; }
+
+ /** @return the value of the {@link XrColor4f#r} field. */
+ public float r() { return XrColor4f.nr(address()); }
+ /** @return the value of the {@link XrColor4f#g} field. */
+ public float g() { return XrColor4f.ng(address()); }
+ /** @return the value of the {@link XrColor4f#b} field. */
+ public float b() { return XrColor4f.nb(address()); }
+ /** @return the value of the {@link XrColor4f#a} field. */
+ public float a() { return XrColor4f.na(address()); }
+
+ /** Sets the specified value to the {@link XrColor4f#r} field. */
+ public XrColor4f.Buffer r(float value) { XrColor4f.nr(address(), value); return this; }
+ /** Sets the specified value to the {@link XrColor4f#g} field. */
+ public XrColor4f.Buffer g(float value) { XrColor4f.ng(address(), value); return this; }
+ /** Sets the specified value to the {@link XrColor4f#b} field. */
+ public XrColor4f.Buffer b(float value) { XrColor4f.nb(address(), value); return this; }
+ /** Sets the specified value to the {@link XrColor4f#a} field. */
+ public XrColor4f.Buffer a(float value) { XrColor4f.na(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerAlphaBlendFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerAlphaBlendFB.java
index c3e81d98fa..48adb214b6 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerAlphaBlendFB.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerAlphaBlendFB.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* specifies blend factors for composition layers.
*
@@ -51,8 +51,8 @@
* XrBlendFactorFB {@link #srcFactorAlpha};
* XrBlendFactorFB {@link #dstFactorAlpha};
* }
- */
-public class XrCompositionLayerAlphaBlendFB extends Struct implements NativeResource {
+ */
+public class XrCompositionLayerAlphaBlendFB extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -62,41 +62,32 @@ public class XrCompositionLayerAlphaBlendFB extends Struct implements NativeResource {
@@ -326,9 +317,9 @@ public static class Buffer extends StructBufferChanges to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrCompositionLayerAlphaBlendFB#SIZEOF}, and its mark will be undefined.
+ * by {@link XrCompositionLayerAlphaBlendFB#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -353,40 +344,40 @@ protected Buffer self() {
protected XrCompositionLayerAlphaBlendFB getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrCompositionLayerAlphaBlendFB.ntype(address()); }
- /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#next} field. */
- @NativeType("void *")
- public long next() { return XrCompositionLayerAlphaBlendFB.nnext(address()); }
- /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#srcFactorColor} field. */
- @NativeType("XrBlendFactorFB")
- public int srcFactorColor() { return XrCompositionLayerAlphaBlendFB.nsrcFactorColor(address()); }
- /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#dstFactorColor} field. */
- @NativeType("XrBlendFactorFB")
- public int dstFactorColor() { return XrCompositionLayerAlphaBlendFB.ndstFactorColor(address()); }
- /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#srcFactorAlpha} field. */
- @NativeType("XrBlendFactorFB")
- public int srcFactorAlpha() { return XrCompositionLayerAlphaBlendFB.nsrcFactorAlpha(address()); }
- /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#dstFactorAlpha} field. */
- @NativeType("XrBlendFactorFB")
- public int dstFactorAlpha() { return XrCompositionLayerAlphaBlendFB.ndstFactorAlpha(address()); }
-
- /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#type} field. */
- public XrCompositionLayerAlphaBlendFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerAlphaBlendFB.ntype(address(), value); return this; }
- /** Sets the {@link FBCompositionLayerAlphaBlend#XR_TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FB TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FB} value to the {@link XrCompositionLayerAlphaBlendFB#type} field. */
- public XrCompositionLayerAlphaBlendFB.Buffer type$Default() { return type(FBCompositionLayerAlphaBlend.XR_TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FB); }
- /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#next} field. */
- public XrCompositionLayerAlphaBlendFB.Buffer next(@NativeType("void *") long value) { XrCompositionLayerAlphaBlendFB.nnext(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#srcFactorColor} field. */
- public XrCompositionLayerAlphaBlendFB.Buffer srcFactorColor(@NativeType("XrBlendFactorFB") int value) { XrCompositionLayerAlphaBlendFB.nsrcFactorColor(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#dstFactorColor} field. */
- public XrCompositionLayerAlphaBlendFB.Buffer dstFactorColor(@NativeType("XrBlendFactorFB") int value) { XrCompositionLayerAlphaBlendFB.ndstFactorColor(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#srcFactorAlpha} field. */
- public XrCompositionLayerAlphaBlendFB.Buffer srcFactorAlpha(@NativeType("XrBlendFactorFB") int value) { XrCompositionLayerAlphaBlendFB.nsrcFactorAlpha(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#dstFactorAlpha} field. */
- public XrCompositionLayerAlphaBlendFB.Buffer dstFactorAlpha(@NativeType("XrBlendFactorFB") int value) { XrCompositionLayerAlphaBlendFB.ndstFactorAlpha(address(), value); return this; }
+
+ /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrCompositionLayerAlphaBlendFB.ntype(address()); }
+ /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#next} field. */
+ @NativeType("void *")
+ public long next() { return XrCompositionLayerAlphaBlendFB.nnext(address()); }
+ /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#srcFactorColor} field. */
+ @NativeType("XrBlendFactorFB")
+ public int srcFactorColor() { return XrCompositionLayerAlphaBlendFB.nsrcFactorColor(address()); }
+ /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#dstFactorColor} field. */
+ @NativeType("XrBlendFactorFB")
+ public int dstFactorColor() { return XrCompositionLayerAlphaBlendFB.ndstFactorColor(address()); }
+ /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#srcFactorAlpha} field. */
+ @NativeType("XrBlendFactorFB")
+ public int srcFactorAlpha() { return XrCompositionLayerAlphaBlendFB.nsrcFactorAlpha(address()); }
+ /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#dstFactorAlpha} field. */
+ @NativeType("XrBlendFactorFB")
+ public int dstFactorAlpha() { return XrCompositionLayerAlphaBlendFB.ndstFactorAlpha(address()); }
+
+ /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#type} field. */
+ public XrCompositionLayerAlphaBlendFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerAlphaBlendFB.ntype(address(), value); return this; }
+ /** Sets the {@link FBCompositionLayerAlphaBlend#XR_TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FB TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FB} value to the {@link XrCompositionLayerAlphaBlendFB#type} field. */
+ public XrCompositionLayerAlphaBlendFB.Buffer type$Default() { return type(FBCompositionLayerAlphaBlend.XR_TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FB); }
+ /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#next} field. */
+ public XrCompositionLayerAlphaBlendFB.Buffer next(@NativeType("void *") long value) { XrCompositionLayerAlphaBlendFB.nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#srcFactorColor} field. */
+ public XrCompositionLayerAlphaBlendFB.Buffer srcFactorColor(@NativeType("XrBlendFactorFB") int value) { XrCompositionLayerAlphaBlendFB.nsrcFactorColor(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#dstFactorColor} field. */
+ public XrCompositionLayerAlphaBlendFB.Buffer dstFactorColor(@NativeType("XrBlendFactorFB") int value) { XrCompositionLayerAlphaBlendFB.ndstFactorColor(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#srcFactorAlpha} field. */
+ public XrCompositionLayerAlphaBlendFB.Buffer srcFactorAlpha(@NativeType("XrBlendFactorFB") int value) { XrCompositionLayerAlphaBlendFB.nsrcFactorAlpha(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#dstFactorAlpha} field. */
+ public XrCompositionLayerAlphaBlendFB.Buffer dstFactorAlpha(@NativeType("XrBlendFactorFB") int value) { XrCompositionLayerAlphaBlendFB.ndstFactorAlpha(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerBaseHeader.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerBaseHeader.java
index f1ffcb9d3b..2f43769d10 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerBaseHeader.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerBaseHeader.java
@@ -4,18 +4,18 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Composition layer base header.
*
@@ -45,8 +45,8 @@
* XrCompositionLayerFlags {@link #layerFlags};
* XrSpace {@link #space};
* }
- */
-public class XrCompositionLayerBaseHeader extends Struct implements NativeResource {
+ */
+public class XrCompositionLayerBaseHeader extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -56,35 +56,26 @@ public class XrCompositionLayerBaseHeader extends Struct implements NativeResource {
@@ -383,9 +374,9 @@ public static class Buffer extends StructBufferChanges to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrCompositionLayerBaseHeader#SIZEOF}, and its mark will be undefined.
+ * by {@link XrCompositionLayerBaseHeader#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -410,42 +401,42 @@ protected Buffer self() {
protected XrCompositionLayerBaseHeader getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrCompositionLayerBaseHeader#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrCompositionLayerBaseHeader.ntype(address()); }
- /** @return the value of the {@link XrCompositionLayerBaseHeader#next} field. */
- @NativeType("void const *")
- public long next() { return XrCompositionLayerBaseHeader.nnext(address()); }
- /** @return the value of the {@link XrCompositionLayerBaseHeader#layerFlags} field. */
- @NativeType("XrCompositionLayerFlags")
- public long layerFlags() { return XrCompositionLayerBaseHeader.nlayerFlags(address()); }
- /** @return the value of the {@link XrCompositionLayerBaseHeader#space} field. */
- @NativeType("XrSpace")
- public long space() { return XrCompositionLayerBaseHeader.nspace(address()); }
-
- /** Sets the specified value to the {@link XrCompositionLayerBaseHeader#type} field. */
- public XrCompositionLayerBaseHeader.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerBaseHeader.ntype(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerBaseHeader#next} field. */
- public XrCompositionLayerBaseHeader.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerBaseHeader.nnext(address(), value); return this; }
- /** Prepends the specified {@link XrCompositionLayerAlphaBlendFB} value to the {@code next} chain. */
- public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerAlphaBlendFB value) { return this.next(value.next(this.next()).address()); }
- /** Prepends the specified {@link XrCompositionLayerColorScaleBiasKHR} value to the {@code next} chain. */
- public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerColorScaleBiasKHR value) { return this.next(value.next(this.next()).address()); }
- /** Prepends the specified {@link XrCompositionLayerDepthTestFB} value to the {@code next} chain. */
- public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerDepthTestFB value) { return this.next(value.next(this.next()).address()); }
- /** Prepends the specified {@link XrCompositionLayerImageLayoutFB} value to the {@code next} chain. */
- public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerImageLayoutFB value) { return this.next(value.next(this.next()).address()); }
- /** Prepends the specified {@link XrCompositionLayerPassthroughFB} value to the {@code next} chain. */
- public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerPassthroughFB value) { return this.next(value.next(this.next()).address()); }
- /** Prepends the specified {@link XrCompositionLayerSecureContentFB} value to the {@code next} chain. */
- public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerSecureContentFB value) { return this.next(value.next(this.next()).address()); }
- /** Prepends the specified {@link XrCompositionLayerSettingsFB} value to the {@code next} chain. */
- public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerSettingsFB value) { return this.next(value.next(this.next()).address()); }
- /** Sets the specified value to the {@link XrCompositionLayerBaseHeader#layerFlags} field. */
- public XrCompositionLayerBaseHeader.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerBaseHeader.nlayerFlags(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerBaseHeader#space} field. */
- public XrCompositionLayerBaseHeader.Buffer space(XrSpace value) { XrCompositionLayerBaseHeader.nspace(address(), value); return this; }
+
+ /** @return the value of the {@link XrCompositionLayerBaseHeader#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrCompositionLayerBaseHeader.ntype(address()); }
+ /** @return the value of the {@link XrCompositionLayerBaseHeader#next} field. */
+ @NativeType("void const *")
+ public long next() { return XrCompositionLayerBaseHeader.nnext(address()); }
+ /** @return the value of the {@link XrCompositionLayerBaseHeader#layerFlags} field. */
+ @NativeType("XrCompositionLayerFlags")
+ public long layerFlags() { return XrCompositionLayerBaseHeader.nlayerFlags(address()); }
+ /** @return the value of the {@link XrCompositionLayerBaseHeader#space} field. */
+ @NativeType("XrSpace")
+ public long space() { return XrCompositionLayerBaseHeader.nspace(address()); }
+
+ /** Sets the specified value to the {@link XrCompositionLayerBaseHeader#type} field. */
+ public XrCompositionLayerBaseHeader.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerBaseHeader.ntype(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerBaseHeader#next} field. */
+ public XrCompositionLayerBaseHeader.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerBaseHeader.nnext(address(), value); return this; }
+ /** Prepends the specified {@link XrCompositionLayerAlphaBlendFB} value to the {@code next} chain. */
+ public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerAlphaBlendFB value) { return this.next(value.next(this.next()).address()); }
+ /** Prepends the specified {@link XrCompositionLayerColorScaleBiasKHR} value to the {@code next} chain. */
+ public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerColorScaleBiasKHR value) { return this.next(value.next(this.next()).address()); }
+ /** Prepends the specified {@link XrCompositionLayerDepthTestFB} value to the {@code next} chain. */
+ public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerDepthTestFB value) { return this.next(value.next(this.next()).address()); }
+ /** Prepends the specified {@link XrCompositionLayerImageLayoutFB} value to the {@code next} chain. */
+ public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerImageLayoutFB value) { return this.next(value.next(this.next()).address()); }
+ /** Prepends the specified {@link XrCompositionLayerPassthroughFB} value to the {@code next} chain. */
+ public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerPassthroughFB value) { return this.next(value.next(this.next()).address()); }
+ /** Prepends the specified {@link XrCompositionLayerSecureContentFB} value to the {@code next} chain. */
+ public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerSecureContentFB value) { return this.next(value.next(this.next()).address()); }
+ /** Prepends the specified {@link XrCompositionLayerSettingsFB} value to the {@code next} chain. */
+ public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerSettingsFB value) { return this.next(value.next(this.next()).address()); }
+ /** Sets the specified value to the {@link XrCompositionLayerBaseHeader#layerFlags} field. */
+ public XrCompositionLayerBaseHeader.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerBaseHeader.nlayerFlags(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerBaseHeader#space} field. */
+ public XrCompositionLayerBaseHeader.Buffer space(XrSpace value) { XrCompositionLayerBaseHeader.nspace(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerColorScaleBiasKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerColorScaleBiasKHR.java
index b7525d46d0..760f33570f 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerColorScaleBiasKHR.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerColorScaleBiasKHR.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* defines color scale and bias for layer textures.
*
@@ -45,8 +45,8 @@
* {@link XrColor4f XrColor4f} {@link #colorScale};
* {@link XrColor4f XrColor4f} {@link #colorBias};
* }
- */
-public class XrCompositionLayerColorScaleBiasKHR extends Struct implements NativeResource {
+ */
+public class XrCompositionLayerColorScaleBiasKHR extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -56,35 +56,26 @@ public class XrCompositionLayerColorScaleBiasKHR extends Struct consumer) { consumer.accept(colorScale()); return this; }
- /** Copies the specified {@link XrColor4f} to the {@link #colorBias} field. */
- public XrCompositionLayerColorScaleBiasKHR colorBias(XrColor4f value) { ncolorBias(address(), value); return this; }
- /** Passes the {@link #colorBias} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrCompositionLayerColorScaleBiasKHR colorBias(java.util.function.Consumer consumer) { consumer.accept(colorBias()); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */
+ @NativeType("void const *")
+ public long next() { return nnext(address()); }
+ /** an {@link XrColor4f} which will modulate the color sourced from the images. */
+ public XrColor4f colorScale() { return ncolorScale(address()); }
+ /** an {@link XrColor4f} which will offset the color sourced from the images. */
+ public XrColor4f colorBias() { return ncolorBias(address()); }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrCompositionLayerColorScaleBiasKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link KHRCompositionLayerColorScaleBias#XR_TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR} value to the {@link #type} field. */
+ public XrCompositionLayerColorScaleBiasKHR type$Default() { return type(KHRCompositionLayerColorScaleBias.XR_TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrCompositionLayerColorScaleBiasKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
+ /** Copies the specified {@link XrColor4f} to the {@link #colorScale} field. */
+ public XrCompositionLayerColorScaleBiasKHR colorScale(XrColor4f value) { ncolorScale(address(), value); return this; }
+ /** Passes the {@link #colorScale} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrCompositionLayerColorScaleBiasKHR colorScale(java.util.function.Consumer consumer) { consumer.accept(colorScale()); return this; }
+ /** Copies the specified {@link XrColor4f} to the {@link #colorBias} field. */
+ public XrCompositionLayerColorScaleBiasKHR colorBias(XrColor4f value) { ncolorBias(address(), value); return this; }
+ /** Passes the {@link #colorBias} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrCompositionLayerColorScaleBiasKHR colorBias(java.util.function.Consumer consumer) { consumer.accept(colorBias()); return this; }
/** Initializes this struct with the specified values. */
public XrCompositionLayerColorScaleBiasKHR set(
- int type,
- long next,
- XrColor4f colorScale,
+ int type,
+ long next,
+ XrColor4f colorScale,
XrColor4f colorBias
- ) {
- type(type);
- next(next);
- colorScale(colorScale);
- colorBias(colorBias);
+ ) {
+ type(type);
+ next(next);
+ colorScale(colorScale);
+ colorBias(colorBias);
return this;
}
@@ -157,29 +148,29 @@ public XrCompositionLayerColorScaleBiasKHR set(XrCompositionLayerColorScaleBiasK
/** Returns a new {@code XrCompositionLayerColorScaleBiasKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrCompositionLayerColorScaleBiasKHR malloc() {
- return new XrCompositionLayerColorScaleBiasKHR(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrCompositionLayerColorScaleBiasKHR.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrCompositionLayerColorScaleBiasKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrCompositionLayerColorScaleBiasKHR calloc() {
- return new XrCompositionLayerColorScaleBiasKHR(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrCompositionLayerColorScaleBiasKHR.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrCompositionLayerColorScaleBiasKHR} instance allocated with {@link BufferUtils}. */
public static XrCompositionLayerColorScaleBiasKHR create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrCompositionLayerColorScaleBiasKHR(memAddress(container), container);
+ return wrap(XrCompositionLayerColorScaleBiasKHR.class, memAddress(container), container);
}
/** Returns a new {@code XrCompositionLayerColorScaleBiasKHR} instance for the specified memory address. */
public static XrCompositionLayerColorScaleBiasKHR create(long address) {
- return new XrCompositionLayerColorScaleBiasKHR(address, null);
+ return wrap(XrCompositionLayerColorScaleBiasKHR.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrCompositionLayerColorScaleBiasKHR createSafe(long address) {
- return address == NULL ? null : new XrCompositionLayerColorScaleBiasKHR(address, null);
+ return address == NULL ? null : wrap(XrCompositionLayerColorScaleBiasKHR.class, address);
}
/**
@@ -188,7 +179,7 @@ public static XrCompositionLayerColorScaleBiasKHR createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrCompositionLayerColorScaleBiasKHR.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -197,7 +188,7 @@ public static XrCompositionLayerColorScaleBiasKHR.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrCompositionLayerColorScaleBiasKHR.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -207,7 +198,7 @@ public static XrCompositionLayerColorScaleBiasKHR.Buffer calloc(int capacity) {
*/
public static XrCompositionLayerColorScaleBiasKHR.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -217,13 +208,13 @@ public static XrCompositionLayerColorScaleBiasKHR.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrCompositionLayerColorScaleBiasKHR.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrCompositionLayerColorScaleBiasKHR.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -232,7 +223,7 @@ public static XrCompositionLayerColorScaleBiasKHR.Buffer createSafe(long address
* @param stack the stack from which to allocate
*/
public static XrCompositionLayerColorScaleBiasKHR malloc(MemoryStack stack) {
- return new XrCompositionLayerColorScaleBiasKHR(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrCompositionLayerColorScaleBiasKHR.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -241,7 +232,7 @@ public static XrCompositionLayerColorScaleBiasKHR malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrCompositionLayerColorScaleBiasKHR calloc(MemoryStack stack) {
- return new XrCompositionLayerColorScaleBiasKHR(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrCompositionLayerColorScaleBiasKHR.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -251,7 +242,7 @@ public static XrCompositionLayerColorScaleBiasKHR calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrCompositionLayerColorScaleBiasKHR.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -261,30 +252,30 @@ public static XrCompositionLayerColorScaleBiasKHR.Buffer malloc(int capacity, Me
* @param capacity the buffer capacity
*/
public static XrCompositionLayerColorScaleBiasKHR.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerColorScaleBiasKHR.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerColorScaleBiasKHR.NEXT); }
- /** Unsafe version of {@link #colorScale}. */
- public static XrColor4f ncolorScale(long struct) { return XrColor4f.create(struct + XrCompositionLayerColorScaleBiasKHR.COLORSCALE); }
- /** Unsafe version of {@link #colorBias}. */
- public static XrColor4f ncolorBias(long struct) { return XrColor4f.create(struct + XrCompositionLayerColorScaleBiasKHR.COLORBIAS); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerColorScaleBiasKHR.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerColorScaleBiasKHR.NEXT, value); }
- /** Unsafe version of {@link #colorScale(XrColor4f) colorScale}. */
- public static void ncolorScale(long struct, XrColor4f value) { memCopy(value.address(), struct + XrCompositionLayerColorScaleBiasKHR.COLORSCALE, XrColor4f.SIZEOF); }
- /** Unsafe version of {@link #colorBias(XrColor4f) colorBias}. */
- public static void ncolorBias(long struct, XrColor4f value) { memCopy(value.address(), struct + XrCompositionLayerColorScaleBiasKHR.COLORBIAS, XrColor4f.SIZEOF); }
-
- // -----------------------------------
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerColorScaleBiasKHR.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerColorScaleBiasKHR.NEXT); }
+ /** Unsafe version of {@link #colorScale}. */
+ public static XrColor4f ncolorScale(long struct) { return XrColor4f.create(struct + XrCompositionLayerColorScaleBiasKHR.COLORSCALE); }
+ /** Unsafe version of {@link #colorBias}. */
+ public static XrColor4f ncolorBias(long struct) { return XrColor4f.create(struct + XrCompositionLayerColorScaleBiasKHR.COLORBIAS); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerColorScaleBiasKHR.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerColorScaleBiasKHR.NEXT, value); }
+ /** Unsafe version of {@link #colorScale(XrColor4f) colorScale}. */
+ public static void ncolorScale(long struct, XrColor4f value) { memCopy(value.address(), struct + XrCompositionLayerColorScaleBiasKHR.COLORSCALE, XrColor4f.SIZEOF); }
+ /** Unsafe version of {@link #colorBias(XrColor4f) colorBias}. */
+ public static void ncolorBias(long struct, XrColor4f value) { memCopy(value.address(), struct + XrCompositionLayerColorScaleBiasKHR.COLORBIAS, XrColor4f.SIZEOF); }
+
+ // -----------------------------------
/** An array of {@link XrCompositionLayerColorScaleBiasKHR} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -294,9 +285,9 @@ public static class Buffer extends StructBufferChanges to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrCompositionLayerColorScaleBiasKHR#SIZEOF}, and its mark will be undefined.
+ * by {@link XrCompositionLayerColorScaleBiasKHR#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -321,32 +312,32 @@ protected Buffer self() {
protected XrCompositionLayerColorScaleBiasKHR getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrCompositionLayerColorScaleBiasKHR#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrCompositionLayerColorScaleBiasKHR.ntype(address()); }
- /** @return the value of the {@link XrCompositionLayerColorScaleBiasKHR#next} field. */
- @NativeType("void const *")
- public long next() { return XrCompositionLayerColorScaleBiasKHR.nnext(address()); }
- /** @return a {@link XrColor4f} view of the {@link XrCompositionLayerColorScaleBiasKHR#colorScale} field. */
- public XrColor4f colorScale() { return XrCompositionLayerColorScaleBiasKHR.ncolorScale(address()); }
- /** @return a {@link XrColor4f} view of the {@link XrCompositionLayerColorScaleBiasKHR#colorBias} field. */
- public XrColor4f colorBias() { return XrCompositionLayerColorScaleBiasKHR.ncolorBias(address()); }
-
- /** Sets the specified value to the {@link XrCompositionLayerColorScaleBiasKHR#type} field. */
- public XrCompositionLayerColorScaleBiasKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerColorScaleBiasKHR.ntype(address(), value); return this; }
- /** Sets the {@link KHRCompositionLayerColorScaleBias#XR_TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR} value to the {@link XrCompositionLayerColorScaleBiasKHR#type} field. */
- public XrCompositionLayerColorScaleBiasKHR.Buffer type$Default() { return type(KHRCompositionLayerColorScaleBias.XR_TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR); }
- /** Sets the specified value to the {@link XrCompositionLayerColorScaleBiasKHR#next} field. */
- public XrCompositionLayerColorScaleBiasKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerColorScaleBiasKHR.nnext(address(), value); return this; }
- /** Copies the specified {@link XrColor4f} to the {@link XrCompositionLayerColorScaleBiasKHR#colorScale} field. */
- public XrCompositionLayerColorScaleBiasKHR.Buffer colorScale(XrColor4f value) { XrCompositionLayerColorScaleBiasKHR.ncolorScale(address(), value); return this; }
- /** Passes the {@link XrCompositionLayerColorScaleBiasKHR#colorScale} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrCompositionLayerColorScaleBiasKHR.Buffer colorScale(java.util.function.Consumer consumer) { consumer.accept(colorScale()); return this; }
- /** Copies the specified {@link XrColor4f} to the {@link XrCompositionLayerColorScaleBiasKHR#colorBias} field. */
- public XrCompositionLayerColorScaleBiasKHR.Buffer colorBias(XrColor4f value) { XrCompositionLayerColorScaleBiasKHR.ncolorBias(address(), value); return this; }
- /** Passes the {@link XrCompositionLayerColorScaleBiasKHR#colorBias} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrCompositionLayerColorScaleBiasKHR.Buffer colorBias(java.util.function.Consumer consumer) { consumer.accept(colorBias()); return this; }
+
+ /** @return the value of the {@link XrCompositionLayerColorScaleBiasKHR#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrCompositionLayerColorScaleBiasKHR.ntype(address()); }
+ /** @return the value of the {@link XrCompositionLayerColorScaleBiasKHR#next} field. */
+ @NativeType("void const *")
+ public long next() { return XrCompositionLayerColorScaleBiasKHR.nnext(address()); }
+ /** @return a {@link XrColor4f} view of the {@link XrCompositionLayerColorScaleBiasKHR#colorScale} field. */
+ public XrColor4f colorScale() { return XrCompositionLayerColorScaleBiasKHR.ncolorScale(address()); }
+ /** @return a {@link XrColor4f} view of the {@link XrCompositionLayerColorScaleBiasKHR#colorBias} field. */
+ public XrColor4f colorBias() { return XrCompositionLayerColorScaleBiasKHR.ncolorBias(address()); }
+
+ /** Sets the specified value to the {@link XrCompositionLayerColorScaleBiasKHR#type} field. */
+ public XrCompositionLayerColorScaleBiasKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerColorScaleBiasKHR.ntype(address(), value); return this; }
+ /** Sets the {@link KHRCompositionLayerColorScaleBias#XR_TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR} value to the {@link XrCompositionLayerColorScaleBiasKHR#type} field. */
+ public XrCompositionLayerColorScaleBiasKHR.Buffer type$Default() { return type(KHRCompositionLayerColorScaleBias.XR_TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR); }
+ /** Sets the specified value to the {@link XrCompositionLayerColorScaleBiasKHR#next} field. */
+ public XrCompositionLayerColorScaleBiasKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerColorScaleBiasKHR.nnext(address(), value); return this; }
+ /** Copies the specified {@link XrColor4f} to the {@link XrCompositionLayerColorScaleBiasKHR#colorScale} field. */
+ public XrCompositionLayerColorScaleBiasKHR.Buffer colorScale(XrColor4f value) { XrCompositionLayerColorScaleBiasKHR.ncolorScale(address(), value); return this; }
+ /** Passes the {@link XrCompositionLayerColorScaleBiasKHR#colorScale} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrCompositionLayerColorScaleBiasKHR.Buffer colorScale(java.util.function.Consumer consumer) { consumer.accept(colorScale()); return this; }
+ /** Copies the specified {@link XrColor4f} to the {@link XrCompositionLayerColorScaleBiasKHR#colorBias} field. */
+ public XrCompositionLayerColorScaleBiasKHR.Buffer colorBias(XrColor4f value) { XrCompositionLayerColorScaleBiasKHR.ncolorBias(address(), value); return this; }
+ /** Passes the {@link XrCompositionLayerColorScaleBiasKHR#colorBias} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrCompositionLayerColorScaleBiasKHR.Buffer colorBias(java.util.function.Consumer consumer) { consumer.accept(colorBias()); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerCubeKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerCubeKHR.java
index f7258e4abe..0e79ac6486 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerCubeKHR.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerCubeKHR.java
@@ -4,18 +4,18 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Cube map layer composition info.
*
@@ -53,8 +53,8 @@
* uint32_t {@link #imageArrayIndex};
* {@link XrQuaternionf XrQuaternionf} {@link #orientation};
* }
- */
-public class XrCompositionLayerCubeKHR extends Struct implements NativeResource {
+ */
+public class XrCompositionLayerCubeKHR extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -64,47 +64,38 @@ public class XrCompositionLayerCubeKHR extends Struct
/** The struct member offsets. */
public static final int
- TYPE,
- NEXT,
- LAYERFLAGS,
- SPACE,
- EYEVISIBILITY,
- SWAPCHAIN,
- IMAGEARRAYINDEX,
- ORIENTATION;
+ TYPE,
+ NEXT,
+ LAYERFLAGS,
+ SPACE,
+ EYEVISIBILITY,
+ SWAPCHAIN,
+ IMAGEARRAYINDEX,
+ ORIENTATION;
static {
- Layout layout = __struct(
- __member(4),
- __member(POINTER_SIZE),
- __member(8),
- __member(POINTER_SIZE),
- __member(4),
- __member(POINTER_SIZE),
- __member(4),
+ Layout layout = __struct(
+ __member(4),
+ __member(POINTER_SIZE),
+ __member(8),
+ __member(POINTER_SIZE),
+ __member(4),
+ __member(POINTER_SIZE),
+ __member(4),
__member(XrQuaternionf.SIZEOF, XrQuaternionf.ALIGNOF)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
- TYPE = layout.offsetof(0);
- NEXT = layout.offsetof(1);
- LAYERFLAGS = layout.offsetof(2);
- SPACE = layout.offsetof(3);
- EYEVISIBILITY = layout.offsetof(4);
- SWAPCHAIN = layout.offsetof(5);
- IMAGEARRAYINDEX = layout.offsetof(6);
- ORIENTATION = layout.offsetof(7);
- }
-
- protected XrCompositionLayerCubeKHR(long address, @Nullable ByteBuffer container) {
- super(address, container);
- }
-
- @Override
- protected XrCompositionLayerCubeKHR create(long address, @Nullable ByteBuffer container) {
- return new XrCompositionLayerCubeKHR(address, container);
+ TYPE = layout.offsetof(0);
+ NEXT = layout.offsetof(1);
+ LAYERFLAGS = layout.offsetof(2);
+ SPACE = layout.offsetof(3);
+ EYEVISIBILITY = layout.offsetof(4);
+ SWAPCHAIN = layout.offsetof(5);
+ IMAGEARRAYINDEX = layout.offsetof(6);
+ ORIENTATION = layout.offsetof(7);
}
/**
@@ -119,71 +110,71 @@ public XrCompositionLayerCubeKHR(ByteBuffer container) {
@Override
public int sizeof() { return SIZEOF; }
-
- /** the {@code XrStructureType} of this structure. */
- @NativeType("XrStructureType")
- public int type() { return ntype(address()); }
- /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */
- @NativeType("void const *")
- public long next() { return nnext(address()); }
- /** any flags to apply to this layer. */
- @NativeType("XrCompositionLayerFlags")
- public long layerFlags() { return nlayerFlags(address()); }
- /** the {@code XrSpace} in which the {@code orientation} of the cube layer is evaluated over time. */
- @NativeType("XrSpace")
- public long space() { return nspace(address()); }
- /** @return the value of the {@code eyeVisibility} field. */
- @NativeType("XrEyeVisibility")
- public int eyeVisibility() { return neyeVisibility(address()); }
- /** the swapchain, which must have been created with a {@code faceCount} of 6. */
- @NativeType("XrSwapchain")
- public long swapchain() { return nswapchain(address()); }
- /** the image array index, with 0 meaning the first or only array element. */
- @NativeType("uint32_t")
- public int imageArrayIndex() { return nimageArrayIndex(address()); }
- /** the orientation of the environment map in the {@code space}. */
- public XrQuaternionf orientation() { return norientation(address()); }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrCompositionLayerCubeKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link KHRCompositionLayerCube#XR_TYPE_COMPOSITION_LAYER_CUBE_KHR TYPE_COMPOSITION_LAYER_CUBE_KHR} value to the {@link #type} field. */
- public XrCompositionLayerCubeKHR type$Default() { return type(KHRCompositionLayerCube.XR_TYPE_COMPOSITION_LAYER_CUBE_KHR); }
- /** Sets the specified value to the {@link #next} field. */
- public XrCompositionLayerCubeKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
- /** Sets the specified value to the {@link #layerFlags} field. */
- public XrCompositionLayerCubeKHR layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; }
- /** Sets the specified value to the {@link #space} field. */
- public XrCompositionLayerCubeKHR space(XrSpace value) { nspace(address(), value); return this; }
- /** Sets the specified value to the {@code eyeVisibility} field. */
- public XrCompositionLayerCubeKHR eyeVisibility(@NativeType("XrEyeVisibility") int value) { neyeVisibility(address(), value); return this; }
- /** Sets the specified value to the {@link #swapchain} field. */
- public XrCompositionLayerCubeKHR swapchain(XrSwapchain value) { nswapchain(address(), value); return this; }
- /** Sets the specified value to the {@link #imageArrayIndex} field. */
- public XrCompositionLayerCubeKHR imageArrayIndex(@NativeType("uint32_t") int value) { nimageArrayIndex(address(), value); return this; }
- /** Copies the specified {@link XrQuaternionf} to the {@link #orientation} field. */
- public XrCompositionLayerCubeKHR orientation(XrQuaternionf value) { norientation(address(), value); return this; }
- /** Passes the {@link #orientation} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrCompositionLayerCubeKHR orientation(java.util.function.Consumer consumer) { consumer.accept(orientation()); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */
+ @NativeType("void const *")
+ public long next() { return nnext(address()); }
+ /** any flags to apply to this layer. */
+ @NativeType("XrCompositionLayerFlags")
+ public long layerFlags() { return nlayerFlags(address()); }
+ /** the {@code XrSpace} in which the {@code orientation} of the cube layer is evaluated over time. */
+ @NativeType("XrSpace")
+ public long space() { return nspace(address()); }
+ /** @return the value of the {@code eyeVisibility} field. */
+ @NativeType("XrEyeVisibility")
+ public int eyeVisibility() { return neyeVisibility(address()); }
+ /** the swapchain, which must have been created with a {@code faceCount} of 6. */
+ @NativeType("XrSwapchain")
+ public long swapchain() { return nswapchain(address()); }
+ /** the image array index, with 0 meaning the first or only array element. */
+ @NativeType("uint32_t")
+ public int imageArrayIndex() { return nimageArrayIndex(address()); }
+ /** the orientation of the environment map in the {@code space}. */
+ public XrQuaternionf orientation() { return norientation(address()); }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrCompositionLayerCubeKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link KHRCompositionLayerCube#XR_TYPE_COMPOSITION_LAYER_CUBE_KHR TYPE_COMPOSITION_LAYER_CUBE_KHR} value to the {@link #type} field. */
+ public XrCompositionLayerCubeKHR type$Default() { return type(KHRCompositionLayerCube.XR_TYPE_COMPOSITION_LAYER_CUBE_KHR); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrCompositionLayerCubeKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link #layerFlags} field. */
+ public XrCompositionLayerCubeKHR layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; }
+ /** Sets the specified value to the {@link #space} field. */
+ public XrCompositionLayerCubeKHR space(XrSpace value) { nspace(address(), value); return this; }
+ /** Sets the specified value to the {@code eyeVisibility} field. */
+ public XrCompositionLayerCubeKHR eyeVisibility(@NativeType("XrEyeVisibility") int value) { neyeVisibility(address(), value); return this; }
+ /** Sets the specified value to the {@link #swapchain} field. */
+ public XrCompositionLayerCubeKHR swapchain(XrSwapchain value) { nswapchain(address(), value); return this; }
+ /** Sets the specified value to the {@link #imageArrayIndex} field. */
+ public XrCompositionLayerCubeKHR imageArrayIndex(@NativeType("uint32_t") int value) { nimageArrayIndex(address(), value); return this; }
+ /** Copies the specified {@link XrQuaternionf} to the {@link #orientation} field. */
+ public XrCompositionLayerCubeKHR orientation(XrQuaternionf value) { norientation(address(), value); return this; }
+ /** Passes the {@link #orientation} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrCompositionLayerCubeKHR orientation(java.util.function.Consumer consumer) { consumer.accept(orientation()); return this; }
/** Initializes this struct with the specified values. */
public XrCompositionLayerCubeKHR set(
- int type,
- long next,
- long layerFlags,
- XrSpace space,
- int eyeVisibility,
- XrSwapchain swapchain,
- int imageArrayIndex,
+ int type,
+ long next,
+ long layerFlags,
+ XrSpace space,
+ int eyeVisibility,
+ XrSwapchain swapchain,
+ int imageArrayIndex,
XrQuaternionf orientation
- ) {
- type(type);
- next(next);
- layerFlags(layerFlags);
- space(space);
- eyeVisibility(eyeVisibility);
- swapchain(swapchain);
- imageArrayIndex(imageArrayIndex);
- orientation(orientation);
+ ) {
+ type(type);
+ next(next);
+ layerFlags(layerFlags);
+ space(space);
+ eyeVisibility(eyeVisibility);
+ swapchain(swapchain);
+ imageArrayIndex(imageArrayIndex);
+ orientation(orientation);
return this;
}
@@ -204,34 +195,34 @@ public XrCompositionLayerCubeKHR set(XrCompositionLayerCubeKHR src) {
/** Returns a new {@code XrCompositionLayerCubeKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrCompositionLayerCubeKHR malloc() {
- return new XrCompositionLayerCubeKHR(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrCompositionLayerCubeKHR.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrCompositionLayerCubeKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrCompositionLayerCubeKHR calloc() {
- return new XrCompositionLayerCubeKHR(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrCompositionLayerCubeKHR.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrCompositionLayerCubeKHR} instance allocated with {@link BufferUtils}. */
public static XrCompositionLayerCubeKHR create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrCompositionLayerCubeKHR(memAddress(container), container);
+ return wrap(XrCompositionLayerCubeKHR.class, memAddress(container), container);
}
/** Returns a new {@code XrCompositionLayerCubeKHR} instance for the specified memory address. */
public static XrCompositionLayerCubeKHR create(long address) {
- return new XrCompositionLayerCubeKHR(address, null);
+ return wrap(XrCompositionLayerCubeKHR.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrCompositionLayerCubeKHR createSafe(long address) {
- return address == NULL ? null : new XrCompositionLayerCubeKHR(address, null);
+ return address == NULL ? null : wrap(XrCompositionLayerCubeKHR.class, address);
}
/** Downcasts the specified {@code XrCompositionLayerBaseHeader} instance to {@code XrCompositionLayerCubeKHR}. */
public static XrCompositionLayerCubeKHR create(XrCompositionLayerBaseHeader value) {
- return new XrCompositionLayerCubeKHR(value.address(), __getContainer(value));
+ return wrap(XrCompositionLayerCubeKHR.class, value);
}
/**
@@ -240,7 +231,7 @@ public static XrCompositionLayerCubeKHR create(XrCompositionLayerBaseHeader valu
* @param capacity the buffer capacity
*/
public static XrCompositionLayerCubeKHR.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -249,7 +240,7 @@ public static XrCompositionLayerCubeKHR.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrCompositionLayerCubeKHR.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -259,7 +250,7 @@ public static XrCompositionLayerCubeKHR.Buffer calloc(int capacity) {
*/
public static XrCompositionLayerCubeKHR.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -269,18 +260,18 @@ public static XrCompositionLayerCubeKHR.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrCompositionLayerCubeKHR.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrCompositionLayerCubeKHR.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/** Downcasts the specified {@code XrCompositionLayerBaseHeader.Buffer} instance to {@code XrCompositionLayerCubeKHR.Buffer}. */
public static XrCompositionLayerCubeKHR.Buffer create(XrCompositionLayerBaseHeader.Buffer value) {
- return new XrCompositionLayerCubeKHR.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining());
+ return wrap(Buffer.class, value);
}
/**
@@ -289,7 +280,7 @@ public static XrCompositionLayerCubeKHR.Buffer create(XrCompositionLayerBaseHead
* @param stack the stack from which to allocate
*/
public static XrCompositionLayerCubeKHR malloc(MemoryStack stack) {
- return new XrCompositionLayerCubeKHR(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrCompositionLayerCubeKHR.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -298,7 +289,7 @@ public static XrCompositionLayerCubeKHR malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrCompositionLayerCubeKHR calloc(MemoryStack stack) {
- return new XrCompositionLayerCubeKHR(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrCompositionLayerCubeKHR.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -308,7 +299,7 @@ public static XrCompositionLayerCubeKHR calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrCompositionLayerCubeKHR.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -318,44 +309,44 @@ public static XrCompositionLayerCubeKHR.Buffer malloc(int capacity, MemoryStack
* @param capacity the buffer capacity
*/
public static XrCompositionLayerCubeKHR.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCubeKHR.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerCubeKHR.NEXT); }
- /** Unsafe version of {@link #layerFlags}. */
- public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerCubeKHR.LAYERFLAGS); }
- /** Unsafe version of {@link #space}. */
- public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerCubeKHR.SPACE); }
- /** Unsafe version of {@link #eyeVisibility}. */
- public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCubeKHR.EYEVISIBILITY); }
- /** Unsafe version of {@link #swapchain}. */
- public static long nswapchain(long struct) { return memGetAddress(struct + XrCompositionLayerCubeKHR.SWAPCHAIN); }
- /** Unsafe version of {@link #imageArrayIndex}. */
- public static int nimageArrayIndex(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCubeKHR.IMAGEARRAYINDEX); }
- /** Unsafe version of {@link #orientation}. */
- public static XrQuaternionf norientation(long struct) { return XrQuaternionf.create(struct + XrCompositionLayerCubeKHR.ORIENTATION); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCubeKHR.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerCubeKHR.NEXT, value); }
- /** Unsafe version of {@link #layerFlags(long) layerFlags}. */
- public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerCubeKHR.LAYERFLAGS, value); }
- /** Unsafe version of {@link #space(XrSpace) space}. */
- public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerCubeKHR.SPACE, value.address()); }
- /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */
- public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCubeKHR.EYEVISIBILITY, value); }
- /** Unsafe version of {@link #swapchain(XrSwapchain) swapchain}. */
- public static void nswapchain(long struct, XrSwapchain value) { memPutAddress(struct + XrCompositionLayerCubeKHR.SWAPCHAIN, value.address()); }
- /** Unsafe version of {@link #imageArrayIndex(int) imageArrayIndex}. */
- public static void nimageArrayIndex(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCubeKHR.IMAGEARRAYINDEX, value); }
- /** Unsafe version of {@link #orientation(XrQuaternionf) orientation}. */
- public static void norientation(long struct, XrQuaternionf value) { memCopy(value.address(), struct + XrCompositionLayerCubeKHR.ORIENTATION, XrQuaternionf.SIZEOF); }
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCubeKHR.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerCubeKHR.NEXT); }
+ /** Unsafe version of {@link #layerFlags}. */
+ public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerCubeKHR.LAYERFLAGS); }
+ /** Unsafe version of {@link #space}. */
+ public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerCubeKHR.SPACE); }
+ /** Unsafe version of {@link #eyeVisibility}. */
+ public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCubeKHR.EYEVISIBILITY); }
+ /** Unsafe version of {@link #swapchain}. */
+ public static long nswapchain(long struct) { return memGetAddress(struct + XrCompositionLayerCubeKHR.SWAPCHAIN); }
+ /** Unsafe version of {@link #imageArrayIndex}. */
+ public static int nimageArrayIndex(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCubeKHR.IMAGEARRAYINDEX); }
+ /** Unsafe version of {@link #orientation}. */
+ public static XrQuaternionf norientation(long struct) { return XrQuaternionf.create(struct + XrCompositionLayerCubeKHR.ORIENTATION); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCubeKHR.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerCubeKHR.NEXT, value); }
+ /** Unsafe version of {@link #layerFlags(long) layerFlags}. */
+ public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerCubeKHR.LAYERFLAGS, value); }
+ /** Unsafe version of {@link #space(XrSpace) space}. */
+ public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerCubeKHR.SPACE, value.address()); }
+ /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */
+ public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCubeKHR.EYEVISIBILITY, value); }
+ /** Unsafe version of {@link #swapchain(XrSwapchain) swapchain}. */
+ public static void nswapchain(long struct, XrSwapchain value) { memPutAddress(struct + XrCompositionLayerCubeKHR.SWAPCHAIN, value.address()); }
+ /** Unsafe version of {@link #imageArrayIndex(int) imageArrayIndex}. */
+ public static void nimageArrayIndex(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCubeKHR.IMAGEARRAYINDEX, value); }
+ /** Unsafe version of {@link #orientation(XrQuaternionf) orientation}. */
+ public static void norientation(long struct, XrQuaternionf value) { memCopy(value.address(), struct + XrCompositionLayerCubeKHR.ORIENTATION, XrQuaternionf.SIZEOF); }
/**
* Validates pointer members that should not be {@code NULL}.
@@ -365,9 +356,9 @@ public static XrCompositionLayerCubeKHR.Buffer calloc(int capacity, MemoryStack
public static void validate(long struct) {
check(memGetAddress(struct + XrCompositionLayerCubeKHR.SPACE));
check(memGetAddress(struct + XrCompositionLayerCubeKHR.SWAPCHAIN));
- }
+ }
- // -----------------------------------
+ // -----------------------------------
/** An array of {@link XrCompositionLayerCubeKHR} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -377,9 +368,9 @@ public static class Buffer extends StructBufferChanges to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrCompositionLayerCubeKHR#SIZEOF}, and its mark will be undefined.
+ * by {@link XrCompositionLayerCubeKHR#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -404,51 +395,51 @@ protected Buffer self() {
protected XrCompositionLayerCubeKHR getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrCompositionLayerCubeKHR#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrCompositionLayerCubeKHR.ntype(address()); }
- /** @return the value of the {@link XrCompositionLayerCubeKHR#next} field. */
- @NativeType("void const *")
- public long next() { return XrCompositionLayerCubeKHR.nnext(address()); }
- /** @return the value of the {@link XrCompositionLayerCubeKHR#layerFlags} field. */
- @NativeType("XrCompositionLayerFlags")
- public long layerFlags() { return XrCompositionLayerCubeKHR.nlayerFlags(address()); }
- /** @return the value of the {@link XrCompositionLayerCubeKHR#space} field. */
- @NativeType("XrSpace")
- public long space() { return XrCompositionLayerCubeKHR.nspace(address()); }
- /** @return the value of the {@code eyeVisibility} field. */
- @NativeType("XrEyeVisibility")
- public int eyeVisibility() { return XrCompositionLayerCubeKHR.neyeVisibility(address()); }
- /** @return the value of the {@link XrCompositionLayerCubeKHR#swapchain} field. */
- @NativeType("XrSwapchain")
- public long swapchain() { return XrCompositionLayerCubeKHR.nswapchain(address()); }
- /** @return the value of the {@link XrCompositionLayerCubeKHR#imageArrayIndex} field. */
- @NativeType("uint32_t")
- public int imageArrayIndex() { return XrCompositionLayerCubeKHR.nimageArrayIndex(address()); }
- /** @return a {@link XrQuaternionf} view of the {@link XrCompositionLayerCubeKHR#orientation} field. */
- public XrQuaternionf orientation() { return XrCompositionLayerCubeKHR.norientation(address()); }
-
- /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#type} field. */
- public XrCompositionLayerCubeKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerCubeKHR.ntype(address(), value); return this; }
- /** Sets the {@link KHRCompositionLayerCube#XR_TYPE_COMPOSITION_LAYER_CUBE_KHR TYPE_COMPOSITION_LAYER_CUBE_KHR} value to the {@link XrCompositionLayerCubeKHR#type} field. */
- public XrCompositionLayerCubeKHR.Buffer type$Default() { return type(KHRCompositionLayerCube.XR_TYPE_COMPOSITION_LAYER_CUBE_KHR); }
- /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#next} field. */
- public XrCompositionLayerCubeKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerCubeKHR.nnext(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#layerFlags} field. */
- public XrCompositionLayerCubeKHR.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerCubeKHR.nlayerFlags(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#space} field. */
- public XrCompositionLayerCubeKHR.Buffer space(XrSpace value) { XrCompositionLayerCubeKHR.nspace(address(), value); return this; }
- /** Sets the specified value to the {@code eyeVisibility} field. */
- public XrCompositionLayerCubeKHR.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerCubeKHR.neyeVisibility(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#swapchain} field. */
- public XrCompositionLayerCubeKHR.Buffer swapchain(XrSwapchain value) { XrCompositionLayerCubeKHR.nswapchain(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#imageArrayIndex} field. */
- public XrCompositionLayerCubeKHR.Buffer imageArrayIndex(@NativeType("uint32_t") int value) { XrCompositionLayerCubeKHR.nimageArrayIndex(address(), value); return this; }
- /** Copies the specified {@link XrQuaternionf} to the {@link XrCompositionLayerCubeKHR#orientation} field. */
- public XrCompositionLayerCubeKHR.Buffer orientation(XrQuaternionf value) { XrCompositionLayerCubeKHR.norientation(address(), value); return this; }
- /** Passes the {@link XrCompositionLayerCubeKHR#orientation} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrCompositionLayerCubeKHR.Buffer orientation(java.util.function.Consumer consumer) { consumer.accept(orientation()); return this; }
+
+ /** @return the value of the {@link XrCompositionLayerCubeKHR#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrCompositionLayerCubeKHR.ntype(address()); }
+ /** @return the value of the {@link XrCompositionLayerCubeKHR#next} field. */
+ @NativeType("void const *")
+ public long next() { return XrCompositionLayerCubeKHR.nnext(address()); }
+ /** @return the value of the {@link XrCompositionLayerCubeKHR#layerFlags} field. */
+ @NativeType("XrCompositionLayerFlags")
+ public long layerFlags() { return XrCompositionLayerCubeKHR.nlayerFlags(address()); }
+ /** @return the value of the {@link XrCompositionLayerCubeKHR#space} field. */
+ @NativeType("XrSpace")
+ public long space() { return XrCompositionLayerCubeKHR.nspace(address()); }
+ /** @return the value of the {@code eyeVisibility} field. */
+ @NativeType("XrEyeVisibility")
+ public int eyeVisibility() { return XrCompositionLayerCubeKHR.neyeVisibility(address()); }
+ /** @return the value of the {@link XrCompositionLayerCubeKHR#swapchain} field. */
+ @NativeType("XrSwapchain")
+ public long swapchain() { return XrCompositionLayerCubeKHR.nswapchain(address()); }
+ /** @return the value of the {@link XrCompositionLayerCubeKHR#imageArrayIndex} field. */
+ @NativeType("uint32_t")
+ public int imageArrayIndex() { return XrCompositionLayerCubeKHR.nimageArrayIndex(address()); }
+ /** @return a {@link XrQuaternionf} view of the {@link XrCompositionLayerCubeKHR#orientation} field. */
+ public XrQuaternionf orientation() { return XrCompositionLayerCubeKHR.norientation(address()); }
+
+ /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#type} field. */
+ public XrCompositionLayerCubeKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerCubeKHR.ntype(address(), value); return this; }
+ /** Sets the {@link KHRCompositionLayerCube#XR_TYPE_COMPOSITION_LAYER_CUBE_KHR TYPE_COMPOSITION_LAYER_CUBE_KHR} value to the {@link XrCompositionLayerCubeKHR#type} field. */
+ public XrCompositionLayerCubeKHR.Buffer type$Default() { return type(KHRCompositionLayerCube.XR_TYPE_COMPOSITION_LAYER_CUBE_KHR); }
+ /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#next} field. */
+ public XrCompositionLayerCubeKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerCubeKHR.nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#layerFlags} field. */
+ public XrCompositionLayerCubeKHR.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerCubeKHR.nlayerFlags(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#space} field. */
+ public XrCompositionLayerCubeKHR.Buffer space(XrSpace value) { XrCompositionLayerCubeKHR.nspace(address(), value); return this; }
+ /** Sets the specified value to the {@code eyeVisibility} field. */
+ public XrCompositionLayerCubeKHR.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerCubeKHR.neyeVisibility(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#swapchain} field. */
+ public XrCompositionLayerCubeKHR.Buffer swapchain(XrSwapchain value) { XrCompositionLayerCubeKHR.nswapchain(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#imageArrayIndex} field. */
+ public XrCompositionLayerCubeKHR.Buffer imageArrayIndex(@NativeType("uint32_t") int value) { XrCompositionLayerCubeKHR.nimageArrayIndex(address(), value); return this; }
+ /** Copies the specified {@link XrQuaternionf} to the {@link XrCompositionLayerCubeKHR#orientation} field. */
+ public XrCompositionLayerCubeKHR.Buffer orientation(XrQuaternionf value) { XrCompositionLayerCubeKHR.norientation(address(), value); return this; }
+ /** Passes the {@link XrCompositionLayerCubeKHR#orientation} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrCompositionLayerCubeKHR.Buffer orientation(java.util.function.Consumer consumer) { consumer.accept(orientation()); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerCylinderKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerCylinderKHR.java
index 15fde50891..08d62ed4cd 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerCylinderKHR.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerCylinderKHR.java
@@ -4,18 +4,18 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Cylindrical layer composition info.
*
@@ -54,8 +54,8 @@
* float {@link #centralAngle};
* float {@link #aspectRatio};
* }
- */
-public class XrCompositionLayerCylinderKHR extends Struct implements NativeResource {
+ */
+public class XrCompositionLayerCylinderKHR extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -65,53 +65,44 @@ public class XrCompositionLayerCylinderKHR extends Structmust have been created with a {@code faceCount} of 1. */
- public XrSwapchainSubImage subImage() { return nsubImage(address()); }
- /** an {@link XrPosef} defining the position and orientation of the center point of the view of the cylinder within the reference frame of the {@code space}. */
- public XrPosef pose() { return npose(address()); }
- /** the non-negative radius of the cylinder. Values of zero or floating point positive infinity are treated as an infinite cylinder. */
- public float radius() { return nradius(address()); }
- /** the angle of the visible section of the cylinder, based at 0 radians, in the range of [0, 2π)
. It grows symmetrically around the 0 radian angle. */
- public float centralAngle() { return ncentralAngle(address()); }
- /** the ratio of the visible cylinder section width / height
. The height of the cylinder is given by: (cylinder radius × cylinder angle) / aspectRatio
. */
- public float aspectRatio() { return naspectRatio(address()); }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrCompositionLayerCylinderKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link KHRCompositionLayerCylinder#XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR TYPE_COMPOSITION_LAYER_CYLINDER_KHR} value to the {@link #type} field. */
- public XrCompositionLayerCylinderKHR type$Default() { return type(KHRCompositionLayerCylinder.XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR); }
- /** Sets the specified value to the {@link #next} field. */
- public XrCompositionLayerCylinderKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
- /** Sets the specified value to the {@link #layerFlags} field. */
- public XrCompositionLayerCylinderKHR layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; }
- /** Sets the specified value to the {@link #space} field. */
- public XrCompositionLayerCylinderKHR space(XrSpace value) { nspace(address(), value); return this; }
- /** Sets the specified value to the {@code eyeVisibility} field. */
- public XrCompositionLayerCylinderKHR eyeVisibility(@NativeType("XrEyeVisibility") int value) { neyeVisibility(address(), value); return this; }
- /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */
- public XrCompositionLayerCylinderKHR subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; }
- /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrCompositionLayerCylinderKHR subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; }
- /** Copies the specified {@link XrPosef} to the {@link #pose} field. */
- public XrCompositionLayerCylinderKHR pose(XrPosef value) { npose(address(), value); return this; }
- /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrCompositionLayerCylinderKHR pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; }
- /** Sets the specified value to the {@link #radius} field. */
- public XrCompositionLayerCylinderKHR radius(float value) { nradius(address(), value); return this; }
- /** Sets the specified value to the {@link #centralAngle} field. */
- public XrCompositionLayerCylinderKHR centralAngle(float value) { ncentralAngle(address(), value); return this; }
- /** Sets the specified value to the {@link #aspectRatio} field. */
- public XrCompositionLayerCylinderKHR aspectRatio(float value) { naspectRatio(address(), value); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */
+ @NativeType("void const *")
+ public long next() { return nnext(address()); }
+ /** specifies options for the layer. */
+ @NativeType("XrCompositionLayerFlags")
+ public long layerFlags() { return nlayerFlags(address()); }
+ /** the {@code XrSpace} in which the {@code pose} of the cylinder layer is evaluated over time. */
+ @NativeType("XrSpace")
+ public long space() { return nspace(address()); }
+ /** @return the value of the {@code eyeVisibility} field. */
+ @NativeType("XrEyeVisibility")
+ public int eyeVisibility() { return neyeVisibility(address()); }
+ /** identifies the image {@link XrSwapchainSubImage} to use. The swapchain must have been created with a {@code faceCount} of 1. */
+ public XrSwapchainSubImage subImage() { return nsubImage(address()); }
+ /** an {@link XrPosef} defining the position and orientation of the center point of the view of the cylinder within the reference frame of the {@code space}. */
+ public XrPosef pose() { return npose(address()); }
+ /** the non-negative radius of the cylinder. Values of zero or floating point positive infinity are treated as an infinite cylinder. */
+ public float radius() { return nradius(address()); }
+ /** the angle of the visible section of the cylinder, based at 0 radians, in the range of [0, 2π)
. It grows symmetrically around the 0 radian angle. */
+ public float centralAngle() { return ncentralAngle(address()); }
+ /** the ratio of the visible cylinder section width / height
. The height of the cylinder is given by: (cylinder radius × cylinder angle) / aspectRatio
. */
+ public float aspectRatio() { return naspectRatio(address()); }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrCompositionLayerCylinderKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link KHRCompositionLayerCylinder#XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR TYPE_COMPOSITION_LAYER_CYLINDER_KHR} value to the {@link #type} field. */
+ public XrCompositionLayerCylinderKHR type$Default() { return type(KHRCompositionLayerCylinder.XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrCompositionLayerCylinderKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link #layerFlags} field. */
+ public XrCompositionLayerCylinderKHR layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; }
+ /** Sets the specified value to the {@link #space} field. */
+ public XrCompositionLayerCylinderKHR space(XrSpace value) { nspace(address(), value); return this; }
+ /** Sets the specified value to the {@code eyeVisibility} field. */
+ public XrCompositionLayerCylinderKHR eyeVisibility(@NativeType("XrEyeVisibility") int value) { neyeVisibility(address(), value); return this; }
+ /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */
+ public XrCompositionLayerCylinderKHR subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; }
+ /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrCompositionLayerCylinderKHR subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; }
+ /** Copies the specified {@link XrPosef} to the {@link #pose} field. */
+ public XrCompositionLayerCylinderKHR pose(XrPosef value) { npose(address(), value); return this; }
+ /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrCompositionLayerCylinderKHR pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; }
+ /** Sets the specified value to the {@link #radius} field. */
+ public XrCompositionLayerCylinderKHR radius(float value) { nradius(address(), value); return this; }
+ /** Sets the specified value to the {@link #centralAngle} field. */
+ public XrCompositionLayerCylinderKHR centralAngle(float value) { ncentralAngle(address(), value); return this; }
+ /** Sets the specified value to the {@link #aspectRatio} field. */
+ public XrCompositionLayerCylinderKHR aspectRatio(float value) { naspectRatio(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrCompositionLayerCylinderKHR set(
- int type,
- long next,
- long layerFlags,
- XrSpace space,
- int eyeVisibility,
- XrSwapchainSubImage subImage,
- XrPosef pose,
- float radius,
- float centralAngle,
+ int type,
+ long next,
+ long layerFlags,
+ XrSpace space,
+ int eyeVisibility,
+ XrSwapchainSubImage subImage,
+ XrPosef pose,
+ float radius,
+ float centralAngle,
float aspectRatio
- ) {
- type(type);
- next(next);
- layerFlags(layerFlags);
- space(space);
- eyeVisibility(eyeVisibility);
- subImage(subImage);
- pose(pose);
- radius(radius);
- centralAngle(centralAngle);
- aspectRatio(aspectRatio);
+ ) {
+ type(type);
+ next(next);
+ layerFlags(layerFlags);
+ space(space);
+ eyeVisibility(eyeVisibility);
+ subImage(subImage);
+ pose(pose);
+ radius(radius);
+ centralAngle(centralAngle);
+ aspectRatio(aspectRatio);
return this;
}
@@ -223,34 +214,34 @@ public XrCompositionLayerCylinderKHR set(XrCompositionLayerCylinderKHR src) {
/** Returns a new {@code XrCompositionLayerCylinderKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrCompositionLayerCylinderKHR malloc() {
- return new XrCompositionLayerCylinderKHR(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrCompositionLayerCylinderKHR.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrCompositionLayerCylinderKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrCompositionLayerCylinderKHR calloc() {
- return new XrCompositionLayerCylinderKHR(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrCompositionLayerCylinderKHR.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrCompositionLayerCylinderKHR} instance allocated with {@link BufferUtils}. */
public static XrCompositionLayerCylinderKHR create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrCompositionLayerCylinderKHR(memAddress(container), container);
+ return wrap(XrCompositionLayerCylinderKHR.class, memAddress(container), container);
}
/** Returns a new {@code XrCompositionLayerCylinderKHR} instance for the specified memory address. */
public static XrCompositionLayerCylinderKHR create(long address) {
- return new XrCompositionLayerCylinderKHR(address, null);
+ return wrap(XrCompositionLayerCylinderKHR.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrCompositionLayerCylinderKHR createSafe(long address) {
- return address == NULL ? null : new XrCompositionLayerCylinderKHR(address, null);
+ return address == NULL ? null : wrap(XrCompositionLayerCylinderKHR.class, address);
}
/** Downcasts the specified {@code XrCompositionLayerBaseHeader} instance to {@code XrCompositionLayerCylinderKHR}. */
public static XrCompositionLayerCylinderKHR create(XrCompositionLayerBaseHeader value) {
- return new XrCompositionLayerCylinderKHR(value.address(), __getContainer(value));
+ return wrap(XrCompositionLayerCylinderKHR.class, value);
}
/**
@@ -259,7 +250,7 @@ public static XrCompositionLayerCylinderKHR create(XrCompositionLayerBaseHeader
* @param capacity the buffer capacity
*/
public static XrCompositionLayerCylinderKHR.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -268,7 +259,7 @@ public static XrCompositionLayerCylinderKHR.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrCompositionLayerCylinderKHR.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -278,7 +269,7 @@ public static XrCompositionLayerCylinderKHR.Buffer calloc(int capacity) {
*/
public static XrCompositionLayerCylinderKHR.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -288,18 +279,18 @@ public static XrCompositionLayerCylinderKHR.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrCompositionLayerCylinderKHR.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrCompositionLayerCylinderKHR.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/** Downcasts the specified {@code XrCompositionLayerBaseHeader.Buffer} instance to {@code XrCompositionLayerCylinderKHR.Buffer}. */
public static XrCompositionLayerCylinderKHR.Buffer create(XrCompositionLayerBaseHeader.Buffer value) {
- return new XrCompositionLayerCylinderKHR.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining());
+ return wrap(Buffer.class, value);
}
/**
@@ -308,7 +299,7 @@ public static XrCompositionLayerCylinderKHR.Buffer create(XrCompositionLayerBase
* @param stack the stack from which to allocate
*/
public static XrCompositionLayerCylinderKHR malloc(MemoryStack stack) {
- return new XrCompositionLayerCylinderKHR(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrCompositionLayerCylinderKHR.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -317,7 +308,7 @@ public static XrCompositionLayerCylinderKHR malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrCompositionLayerCylinderKHR calloc(MemoryStack stack) {
- return new XrCompositionLayerCylinderKHR(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrCompositionLayerCylinderKHR.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -327,7 +318,7 @@ public static XrCompositionLayerCylinderKHR calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrCompositionLayerCylinderKHR.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -337,52 +328,52 @@ public static XrCompositionLayerCylinderKHR.Buffer malloc(int capacity, MemorySt
* @param capacity the buffer capacity
*/
public static XrCompositionLayerCylinderKHR.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCylinderKHR.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerCylinderKHR.NEXT); }
- /** Unsafe version of {@link #layerFlags}. */
- public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerCylinderKHR.LAYERFLAGS); }
- /** Unsafe version of {@link #space}. */
- public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerCylinderKHR.SPACE); }
- /** Unsafe version of {@link #eyeVisibility}. */
- public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCylinderKHR.EYEVISIBILITY); }
- /** Unsafe version of {@link #subImage}. */
- public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerCylinderKHR.SUBIMAGE); }
- /** Unsafe version of {@link #pose}. */
- public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerCylinderKHR.POSE); }
- /** Unsafe version of {@link #radius}. */
- public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerCylinderKHR.RADIUS); }
- /** Unsafe version of {@link #centralAngle}. */
- public static float ncentralAngle(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerCylinderKHR.CENTRALANGLE); }
- /** Unsafe version of {@link #aspectRatio}. */
- public static float naspectRatio(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerCylinderKHR.ASPECTRATIO); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCylinderKHR.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerCylinderKHR.NEXT, value); }
- /** Unsafe version of {@link #layerFlags(long) layerFlags}. */
- public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerCylinderKHR.LAYERFLAGS, value); }
- /** Unsafe version of {@link #space(XrSpace) space}. */
- public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerCylinderKHR.SPACE, value.address()); }
- /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */
- public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCylinderKHR.EYEVISIBILITY, value); }
- /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */
- public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerCylinderKHR.SUBIMAGE, XrSwapchainSubImage.SIZEOF); }
- /** Unsafe version of {@link #pose(XrPosef) pose}. */
- public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerCylinderKHR.POSE, XrPosef.SIZEOF); }
- /** Unsafe version of {@link #radius(float) radius}. */
- public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerCylinderKHR.RADIUS, value); }
- /** Unsafe version of {@link #centralAngle(float) centralAngle}. */
- public static void ncentralAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerCylinderKHR.CENTRALANGLE, value); }
- /** Unsafe version of {@link #aspectRatio(float) aspectRatio}. */
- public static void naspectRatio(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerCylinderKHR.ASPECTRATIO, value); }
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCylinderKHR.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerCylinderKHR.NEXT); }
+ /** Unsafe version of {@link #layerFlags}. */
+ public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerCylinderKHR.LAYERFLAGS); }
+ /** Unsafe version of {@link #space}. */
+ public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerCylinderKHR.SPACE); }
+ /** Unsafe version of {@link #eyeVisibility}. */
+ public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCylinderKHR.EYEVISIBILITY); }
+ /** Unsafe version of {@link #subImage}. */
+ public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerCylinderKHR.SUBIMAGE); }
+ /** Unsafe version of {@link #pose}. */
+ public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerCylinderKHR.POSE); }
+ /** Unsafe version of {@link #radius}. */
+ public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerCylinderKHR.RADIUS); }
+ /** Unsafe version of {@link #centralAngle}. */
+ public static float ncentralAngle(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerCylinderKHR.CENTRALANGLE); }
+ /** Unsafe version of {@link #aspectRatio}. */
+ public static float naspectRatio(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerCylinderKHR.ASPECTRATIO); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCylinderKHR.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerCylinderKHR.NEXT, value); }
+ /** Unsafe version of {@link #layerFlags(long) layerFlags}. */
+ public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerCylinderKHR.LAYERFLAGS, value); }
+ /** Unsafe version of {@link #space(XrSpace) space}. */
+ public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerCylinderKHR.SPACE, value.address()); }
+ /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */
+ public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCylinderKHR.EYEVISIBILITY, value); }
+ /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */
+ public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerCylinderKHR.SUBIMAGE, XrSwapchainSubImage.SIZEOF); }
+ /** Unsafe version of {@link #pose(XrPosef) pose}. */
+ public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerCylinderKHR.POSE, XrPosef.SIZEOF); }
+ /** Unsafe version of {@link #radius(float) radius}. */
+ public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerCylinderKHR.RADIUS, value); }
+ /** Unsafe version of {@link #centralAngle(float) centralAngle}. */
+ public static void ncentralAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerCylinderKHR.CENTRALANGLE, value); }
+ /** Unsafe version of {@link #aspectRatio(float) aspectRatio}. */
+ public static void naspectRatio(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerCylinderKHR.ASPECTRATIO, value); }
/**
* Validates pointer members that should not be {@code NULL}.
@@ -392,9 +383,9 @@ public static XrCompositionLayerCylinderKHR.Buffer calloc(int capacity, MemorySt
public static void validate(long struct) {
check(memGetAddress(struct + XrCompositionLayerCylinderKHR.SPACE));
XrSwapchainSubImage.validate(struct + XrCompositionLayerCylinderKHR.SUBIMAGE);
- }
+ }
- // -----------------------------------
+ // -----------------------------------
/** An array of {@link XrCompositionLayerCylinderKHR} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -404,9 +395,9 @@ public static class Buffer extends StructBufferChanges to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrCompositionLayerCylinderKHR#SIZEOF}, and its mark will be undefined.
+ * by {@link XrCompositionLayerCylinderKHR#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -431,59 +422,59 @@ protected Buffer self() {
protected XrCompositionLayerCylinderKHR getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrCompositionLayerCylinderKHR#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrCompositionLayerCylinderKHR.ntype(address()); }
- /** @return the value of the {@link XrCompositionLayerCylinderKHR#next} field. */
- @NativeType("void const *")
- public long next() { return XrCompositionLayerCylinderKHR.nnext(address()); }
- /** @return the value of the {@link XrCompositionLayerCylinderKHR#layerFlags} field. */
- @NativeType("XrCompositionLayerFlags")
- public long layerFlags() { return XrCompositionLayerCylinderKHR.nlayerFlags(address()); }
- /** @return the value of the {@link XrCompositionLayerCylinderKHR#space} field. */
- @NativeType("XrSpace")
- public long space() { return XrCompositionLayerCylinderKHR.nspace(address()); }
- /** @return the value of the {@code eyeVisibility} field. */
- @NativeType("XrEyeVisibility")
- public int eyeVisibility() { return XrCompositionLayerCylinderKHR.neyeVisibility(address()); }
- /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerCylinderKHR#subImage} field. */
- public XrSwapchainSubImage subImage() { return XrCompositionLayerCylinderKHR.nsubImage(address()); }
- /** @return a {@link XrPosef} view of the {@link XrCompositionLayerCylinderKHR#pose} field. */
- public XrPosef pose() { return XrCompositionLayerCylinderKHR.npose(address()); }
- /** @return the value of the {@link XrCompositionLayerCylinderKHR#radius} field. */
- public float radius() { return XrCompositionLayerCylinderKHR.nradius(address()); }
- /** @return the value of the {@link XrCompositionLayerCylinderKHR#centralAngle} field. */
- public float centralAngle() { return XrCompositionLayerCylinderKHR.ncentralAngle(address()); }
- /** @return the value of the {@link XrCompositionLayerCylinderKHR#aspectRatio} field. */
- public float aspectRatio() { return XrCompositionLayerCylinderKHR.naspectRatio(address()); }
-
- /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#type} field. */
- public XrCompositionLayerCylinderKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerCylinderKHR.ntype(address(), value); return this; }
- /** Sets the {@link KHRCompositionLayerCylinder#XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR TYPE_COMPOSITION_LAYER_CYLINDER_KHR} value to the {@link XrCompositionLayerCylinderKHR#type} field. */
- public XrCompositionLayerCylinderKHR.Buffer type$Default() { return type(KHRCompositionLayerCylinder.XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR); }
- /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#next} field. */
- public XrCompositionLayerCylinderKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerCylinderKHR.nnext(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#layerFlags} field. */
- public XrCompositionLayerCylinderKHR.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerCylinderKHR.nlayerFlags(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#space} field. */
- public XrCompositionLayerCylinderKHR.Buffer space(XrSpace value) { XrCompositionLayerCylinderKHR.nspace(address(), value); return this; }
- /** Sets the specified value to the {@code eyeVisibility} field. */
- public XrCompositionLayerCylinderKHR.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerCylinderKHR.neyeVisibility(address(), value); return this; }
- /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerCylinderKHR#subImage} field. */
- public XrCompositionLayerCylinderKHR.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerCylinderKHR.nsubImage(address(), value); return this; }
- /** Passes the {@link XrCompositionLayerCylinderKHR#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrCompositionLayerCylinderKHR.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; }
- /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerCylinderKHR#pose} field. */
- public XrCompositionLayerCylinderKHR.Buffer pose(XrPosef value) { XrCompositionLayerCylinderKHR.npose(address(), value); return this; }
- /** Passes the {@link XrCompositionLayerCylinderKHR#pose} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrCompositionLayerCylinderKHR.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#radius} field. */
- public XrCompositionLayerCylinderKHR.Buffer radius(float value) { XrCompositionLayerCylinderKHR.nradius(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#centralAngle} field. */
- public XrCompositionLayerCylinderKHR.Buffer centralAngle(float value) { XrCompositionLayerCylinderKHR.ncentralAngle(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#aspectRatio} field. */
- public XrCompositionLayerCylinderKHR.Buffer aspectRatio(float value) { XrCompositionLayerCylinderKHR.naspectRatio(address(), value); return this; }
+
+ /** @return the value of the {@link XrCompositionLayerCylinderKHR#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrCompositionLayerCylinderKHR.ntype(address()); }
+ /** @return the value of the {@link XrCompositionLayerCylinderKHR#next} field. */
+ @NativeType("void const *")
+ public long next() { return XrCompositionLayerCylinderKHR.nnext(address()); }
+ /** @return the value of the {@link XrCompositionLayerCylinderKHR#layerFlags} field. */
+ @NativeType("XrCompositionLayerFlags")
+ public long layerFlags() { return XrCompositionLayerCylinderKHR.nlayerFlags(address()); }
+ /** @return the value of the {@link XrCompositionLayerCylinderKHR#space} field. */
+ @NativeType("XrSpace")
+ public long space() { return XrCompositionLayerCylinderKHR.nspace(address()); }
+ /** @return the value of the {@code eyeVisibility} field. */
+ @NativeType("XrEyeVisibility")
+ public int eyeVisibility() { return XrCompositionLayerCylinderKHR.neyeVisibility(address()); }
+ /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerCylinderKHR#subImage} field. */
+ public XrSwapchainSubImage subImage() { return XrCompositionLayerCylinderKHR.nsubImage(address()); }
+ /** @return a {@link XrPosef} view of the {@link XrCompositionLayerCylinderKHR#pose} field. */
+ public XrPosef pose() { return XrCompositionLayerCylinderKHR.npose(address()); }
+ /** @return the value of the {@link XrCompositionLayerCylinderKHR#radius} field. */
+ public float radius() { return XrCompositionLayerCylinderKHR.nradius(address()); }
+ /** @return the value of the {@link XrCompositionLayerCylinderKHR#centralAngle} field. */
+ public float centralAngle() { return XrCompositionLayerCylinderKHR.ncentralAngle(address()); }
+ /** @return the value of the {@link XrCompositionLayerCylinderKHR#aspectRatio} field. */
+ public float aspectRatio() { return XrCompositionLayerCylinderKHR.naspectRatio(address()); }
+
+ /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#type} field. */
+ public XrCompositionLayerCylinderKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerCylinderKHR.ntype(address(), value); return this; }
+ /** Sets the {@link KHRCompositionLayerCylinder#XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR TYPE_COMPOSITION_LAYER_CYLINDER_KHR} value to the {@link XrCompositionLayerCylinderKHR#type} field. */
+ public XrCompositionLayerCylinderKHR.Buffer type$Default() { return type(KHRCompositionLayerCylinder.XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR); }
+ /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#next} field. */
+ public XrCompositionLayerCylinderKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerCylinderKHR.nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#layerFlags} field. */
+ public XrCompositionLayerCylinderKHR.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerCylinderKHR.nlayerFlags(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#space} field. */
+ public XrCompositionLayerCylinderKHR.Buffer space(XrSpace value) { XrCompositionLayerCylinderKHR.nspace(address(), value); return this; }
+ /** Sets the specified value to the {@code eyeVisibility} field. */
+ public XrCompositionLayerCylinderKHR.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerCylinderKHR.neyeVisibility(address(), value); return this; }
+ /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerCylinderKHR#subImage} field. */
+ public XrCompositionLayerCylinderKHR.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerCylinderKHR.nsubImage(address(), value); return this; }
+ /** Passes the {@link XrCompositionLayerCylinderKHR#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrCompositionLayerCylinderKHR.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; }
+ /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerCylinderKHR#pose} field. */
+ public XrCompositionLayerCylinderKHR.Buffer pose(XrPosef value) { XrCompositionLayerCylinderKHR.npose(address(), value); return this; }
+ /** Passes the {@link XrCompositionLayerCylinderKHR#pose} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrCompositionLayerCylinderKHR.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#radius} field. */
+ public XrCompositionLayerCylinderKHR.Buffer radius(float value) { XrCompositionLayerCylinderKHR.nradius(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#centralAngle} field. */
+ public XrCompositionLayerCylinderKHR.Buffer centralAngle(float value) { XrCompositionLayerCylinderKHR.ncentralAngle(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#aspectRatio} field. */
+ public XrCompositionLayerCylinderKHR.Buffer aspectRatio(float value) { XrCompositionLayerCylinderKHR.naspectRatio(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthInfoKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthInfoKHR.java
index 5ec1bb8a81..30b21f393e 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthInfoKHR.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthInfoKHR.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Depth map layer info.
*
@@ -63,8 +63,8 @@
* float {@link #nearZ};
* float {@link #farZ};
* }
- */
-public class XrCompositionLayerDepthInfoKHR extends Struct implements NativeResource {
+ */
+public class XrCompositionLayerDepthInfoKHR extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -74,44 +74,35 @@ public class XrCompositionLayerDepthInfoKHR extends Structmust have been created with a {@code faceCount} of 1. */
- public XrSwapchainSubImage subImage() { return nsubImage(address()); }
- /** {@code minDepth} and {@code maxDepth} are the window space depths that correspond to the near and far frustum planes, respectively. {@code minDepth} must be less than {@code maxDepth}. {@code minDepth} and {@code maxDepth} must be in the range [0, 1]. */
- public float minDepth() { return nminDepth(address()); }
- /** see {@code minDepth} */
- public float maxDepth() { return nmaxDepth(address()); }
- /** {@code nearZ} and {@code farZ} are the positive distances in meters to the near and far frustum planes, respectively. {@code nearZ} and {@code farZ} must not be equal. {@code nearZ} and {@code farZ} must be in the range (0, +infinity]. */
- public float nearZ() { return nnearZ(address()); }
- /** see {@code nearZ} */
- public float farZ() { return nfarZ(address()); }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrCompositionLayerDepthInfoKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link KHRCompositionLayerDepth#XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR} value to the {@link #type} field. */
- public XrCompositionLayerDepthInfoKHR type$Default() { return type(KHRCompositionLayerDepth.XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR); }
- /** Sets the specified value to the {@link #next} field. */
- public XrCompositionLayerDepthInfoKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
- /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */
- public XrCompositionLayerDepthInfoKHR subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; }
- /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrCompositionLayerDepthInfoKHR subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; }
- /** Sets the specified value to the {@link #minDepth} field. */
- public XrCompositionLayerDepthInfoKHR minDepth(float value) { nminDepth(address(), value); return this; }
- /** Sets the specified value to the {@link #maxDepth} field. */
- public XrCompositionLayerDepthInfoKHR maxDepth(float value) { nmaxDepth(address(), value); return this; }
- /** Sets the specified value to the {@link #nearZ} field. */
- public XrCompositionLayerDepthInfoKHR nearZ(float value) { nnearZ(address(), value); return this; }
- /** Sets the specified value to the {@link #farZ} field. */
- public XrCompositionLayerDepthInfoKHR farZ(float value) { nfarZ(address(), value); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */
+ @NativeType("void const *")
+ public long next() { return nnext(address()); }
+ /** identifies the depth image {@link XrSwapchainSubImage} to be associated with the color swapchain. The swapchain must have been created with a {@code faceCount} of 1. */
+ public XrSwapchainSubImage subImage() { return nsubImage(address()); }
+ /** {@code minDepth} and {@code maxDepth} are the window space depths that correspond to the near and far frustum planes, respectively. {@code minDepth} must be less than {@code maxDepth}. {@code minDepth} and {@code maxDepth} must be in the range [0, 1]. */
+ public float minDepth() { return nminDepth(address()); }
+ /** see {@code minDepth} */
+ public float maxDepth() { return nmaxDepth(address()); }
+ /** {@code nearZ} and {@code farZ} are the positive distances in meters to the near and far frustum planes, respectively. {@code nearZ} and {@code farZ} must not be equal. {@code nearZ} and {@code farZ} must be in the range (0, +infinity]. */
+ public float nearZ() { return nnearZ(address()); }
+ /** see {@code nearZ} */
+ public float farZ() { return nfarZ(address()); }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrCompositionLayerDepthInfoKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link KHRCompositionLayerDepth#XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR} value to the {@link #type} field. */
+ public XrCompositionLayerDepthInfoKHR type$Default() { return type(KHRCompositionLayerDepth.XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrCompositionLayerDepthInfoKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
+ /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */
+ public XrCompositionLayerDepthInfoKHR subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; }
+ /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrCompositionLayerDepthInfoKHR subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; }
+ /** Sets the specified value to the {@link #minDepth} field. */
+ public XrCompositionLayerDepthInfoKHR minDepth(float value) { nminDepth(address(), value); return this; }
+ /** Sets the specified value to the {@link #maxDepth} field. */
+ public XrCompositionLayerDepthInfoKHR maxDepth(float value) { nmaxDepth(address(), value); return this; }
+ /** Sets the specified value to the {@link #nearZ} field. */
+ public XrCompositionLayerDepthInfoKHR nearZ(float value) { nnearZ(address(), value); return this; }
+ /** Sets the specified value to the {@link #farZ} field. */
+ public XrCompositionLayerDepthInfoKHR farZ(float value) { nfarZ(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrCompositionLayerDepthInfoKHR set(
- int type,
- long next,
- XrSwapchainSubImage subImage,
- float minDepth,
- float maxDepth,
- float nearZ,
+ int type,
+ long next,
+ XrSwapchainSubImage subImage,
+ float minDepth,
+ float maxDepth,
+ float nearZ,
float farZ
- ) {
- type(type);
- next(next);
- subImage(subImage);
- minDepth(minDepth);
- maxDepth(maxDepth);
- nearZ(nearZ);
- farZ(farZ);
+ ) {
+ type(type);
+ next(next);
+ subImage(subImage);
+ minDepth(minDepth);
+ maxDepth(maxDepth);
+ nearZ(nearZ);
+ farZ(farZ);
return this;
}
@@ -200,29 +191,29 @@ public XrCompositionLayerDepthInfoKHR set(XrCompositionLayerDepthInfoKHR src) {
/** Returns a new {@code XrCompositionLayerDepthInfoKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrCompositionLayerDepthInfoKHR malloc() {
- return new XrCompositionLayerDepthInfoKHR(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrCompositionLayerDepthInfoKHR.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrCompositionLayerDepthInfoKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrCompositionLayerDepthInfoKHR calloc() {
- return new XrCompositionLayerDepthInfoKHR(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrCompositionLayerDepthInfoKHR.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrCompositionLayerDepthInfoKHR} instance allocated with {@link BufferUtils}. */
public static XrCompositionLayerDepthInfoKHR create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrCompositionLayerDepthInfoKHR(memAddress(container), container);
+ return wrap(XrCompositionLayerDepthInfoKHR.class, memAddress(container), container);
}
/** Returns a new {@code XrCompositionLayerDepthInfoKHR} instance for the specified memory address. */
public static XrCompositionLayerDepthInfoKHR create(long address) {
- return new XrCompositionLayerDepthInfoKHR(address, null);
+ return wrap(XrCompositionLayerDepthInfoKHR.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrCompositionLayerDepthInfoKHR createSafe(long address) {
- return address == NULL ? null : new XrCompositionLayerDepthInfoKHR(address, null);
+ return address == NULL ? null : wrap(XrCompositionLayerDepthInfoKHR.class, address);
}
/**
@@ -231,7 +222,7 @@ public static XrCompositionLayerDepthInfoKHR createSafe(long address) {
* @param capacity the buffer capacity
*/
public static XrCompositionLayerDepthInfoKHR.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -240,7 +231,7 @@ public static XrCompositionLayerDepthInfoKHR.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrCompositionLayerDepthInfoKHR.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -250,7 +241,7 @@ public static XrCompositionLayerDepthInfoKHR.Buffer calloc(int capacity) {
*/
public static XrCompositionLayerDepthInfoKHR.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -260,13 +251,13 @@ public static XrCompositionLayerDepthInfoKHR.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrCompositionLayerDepthInfoKHR.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrCompositionLayerDepthInfoKHR.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
@@ -275,7 +266,7 @@ public static XrCompositionLayerDepthInfoKHR.Buffer createSafe(long address, int
* @param stack the stack from which to allocate
*/
public static XrCompositionLayerDepthInfoKHR malloc(MemoryStack stack) {
- return new XrCompositionLayerDepthInfoKHR(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrCompositionLayerDepthInfoKHR.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -284,7 +275,7 @@ public static XrCompositionLayerDepthInfoKHR malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrCompositionLayerDepthInfoKHR calloc(MemoryStack stack) {
- return new XrCompositionLayerDepthInfoKHR(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrCompositionLayerDepthInfoKHR.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -294,7 +285,7 @@ public static XrCompositionLayerDepthInfoKHR calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrCompositionLayerDepthInfoKHR.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -304,40 +295,40 @@ public static XrCompositionLayerDepthInfoKHR.Buffer malloc(int capacity, MemoryS
* @param capacity the buffer capacity
*/
public static XrCompositionLayerDepthInfoKHR.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerDepthInfoKHR.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerDepthInfoKHR.NEXT); }
- /** Unsafe version of {@link #subImage}. */
- public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerDepthInfoKHR.SUBIMAGE); }
- /** Unsafe version of {@link #minDepth}. */
- public static float nminDepth(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerDepthInfoKHR.MINDEPTH); }
- /** Unsafe version of {@link #maxDepth}. */
- public static float nmaxDepth(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerDepthInfoKHR.MAXDEPTH); }
- /** Unsafe version of {@link #nearZ}. */
- public static float nnearZ(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerDepthInfoKHR.NEARZ); }
- /** Unsafe version of {@link #farZ}. */
- public static float nfarZ(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerDepthInfoKHR.FARZ); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerDepthInfoKHR.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerDepthInfoKHR.NEXT, value); }
- /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */
- public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerDepthInfoKHR.SUBIMAGE, XrSwapchainSubImage.SIZEOF); }
- /** Unsafe version of {@link #minDepth(float) minDepth}. */
- public static void nminDepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerDepthInfoKHR.MINDEPTH, value); }
- /** Unsafe version of {@link #maxDepth(float) maxDepth}. */
- public static void nmaxDepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerDepthInfoKHR.MAXDEPTH, value); }
- /** Unsafe version of {@link #nearZ(float) nearZ}. */
- public static void nnearZ(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerDepthInfoKHR.NEARZ, value); }
- /** Unsafe version of {@link #farZ(float) farZ}. */
- public static void nfarZ(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerDepthInfoKHR.FARZ, value); }
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerDepthInfoKHR.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerDepthInfoKHR.NEXT); }
+ /** Unsafe version of {@link #subImage}. */
+ public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerDepthInfoKHR.SUBIMAGE); }
+ /** Unsafe version of {@link #minDepth}. */
+ public static float nminDepth(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerDepthInfoKHR.MINDEPTH); }
+ /** Unsafe version of {@link #maxDepth}. */
+ public static float nmaxDepth(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerDepthInfoKHR.MAXDEPTH); }
+ /** Unsafe version of {@link #nearZ}. */
+ public static float nnearZ(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerDepthInfoKHR.NEARZ); }
+ /** Unsafe version of {@link #farZ}. */
+ public static float nfarZ(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerDepthInfoKHR.FARZ); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerDepthInfoKHR.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerDepthInfoKHR.NEXT, value); }
+ /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */
+ public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerDepthInfoKHR.SUBIMAGE, XrSwapchainSubImage.SIZEOF); }
+ /** Unsafe version of {@link #minDepth(float) minDepth}. */
+ public static void nminDepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerDepthInfoKHR.MINDEPTH, value); }
+ /** Unsafe version of {@link #maxDepth(float) maxDepth}. */
+ public static void nmaxDepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerDepthInfoKHR.MAXDEPTH, value); }
+ /** Unsafe version of {@link #nearZ(float) nearZ}. */
+ public static void nnearZ(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerDepthInfoKHR.NEARZ, value); }
+ /** Unsafe version of {@link #farZ(float) farZ}. */
+ public static void nfarZ(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerDepthInfoKHR.FARZ, value); }
/**
* Validates pointer members that should not be {@code NULL}.
@@ -346,9 +337,9 @@ public static XrCompositionLayerDepthInfoKHR.Buffer calloc(int capacity, MemoryS
*/
public static void validate(long struct) {
XrSwapchainSubImage.validate(struct + XrCompositionLayerDepthInfoKHR.SUBIMAGE);
- }
+ }
- // -----------------------------------
+ // -----------------------------------
/** An array of {@link XrCompositionLayerDepthInfoKHR} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -358,9 +349,9 @@ public static class Buffer extends StructBufferChanges to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrCompositionLayerDepthInfoKHR#SIZEOF}, and its mark will be undefined.
+ * by {@link XrCompositionLayerDepthInfoKHR#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -385,42 +376,42 @@ protected Buffer self() {
protected XrCompositionLayerDepthInfoKHR getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrCompositionLayerDepthInfoKHR.ntype(address()); }
- /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#next} field. */
- @NativeType("void const *")
- public long next() { return XrCompositionLayerDepthInfoKHR.nnext(address()); }
- /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerDepthInfoKHR#subImage} field. */
- public XrSwapchainSubImage subImage() { return XrCompositionLayerDepthInfoKHR.nsubImage(address()); }
- /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#minDepth} field. */
- public float minDepth() { return XrCompositionLayerDepthInfoKHR.nminDepth(address()); }
- /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#maxDepth} field. */
- public float maxDepth() { return XrCompositionLayerDepthInfoKHR.nmaxDepth(address()); }
- /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#nearZ} field. */
- public float nearZ() { return XrCompositionLayerDepthInfoKHR.nnearZ(address()); }
- /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#farZ} field. */
- public float farZ() { return XrCompositionLayerDepthInfoKHR.nfarZ(address()); }
-
- /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#type} field. */
- public XrCompositionLayerDepthInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerDepthInfoKHR.ntype(address(), value); return this; }
- /** Sets the {@link KHRCompositionLayerDepth#XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR} value to the {@link XrCompositionLayerDepthInfoKHR#type} field. */
- public XrCompositionLayerDepthInfoKHR.Buffer type$Default() { return type(KHRCompositionLayerDepth.XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR); }
- /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#next} field. */
- public XrCompositionLayerDepthInfoKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerDepthInfoKHR.nnext(address(), value); return this; }
- /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerDepthInfoKHR#subImage} field. */
- public XrCompositionLayerDepthInfoKHR.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerDepthInfoKHR.nsubImage(address(), value); return this; }
- /** Passes the {@link XrCompositionLayerDepthInfoKHR#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrCompositionLayerDepthInfoKHR.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#minDepth} field. */
- public XrCompositionLayerDepthInfoKHR.Buffer minDepth(float value) { XrCompositionLayerDepthInfoKHR.nminDepth(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#maxDepth} field. */
- public XrCompositionLayerDepthInfoKHR.Buffer maxDepth(float value) { XrCompositionLayerDepthInfoKHR.nmaxDepth(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#nearZ} field. */
- public XrCompositionLayerDepthInfoKHR.Buffer nearZ(float value) { XrCompositionLayerDepthInfoKHR.nnearZ(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#farZ} field. */
- public XrCompositionLayerDepthInfoKHR.Buffer farZ(float value) { XrCompositionLayerDepthInfoKHR.nfarZ(address(), value); return this; }
+
+ /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrCompositionLayerDepthInfoKHR.ntype(address()); }
+ /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#next} field. */
+ @NativeType("void const *")
+ public long next() { return XrCompositionLayerDepthInfoKHR.nnext(address()); }
+ /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerDepthInfoKHR#subImage} field. */
+ public XrSwapchainSubImage subImage() { return XrCompositionLayerDepthInfoKHR.nsubImage(address()); }
+ /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#minDepth} field. */
+ public float minDepth() { return XrCompositionLayerDepthInfoKHR.nminDepth(address()); }
+ /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#maxDepth} field. */
+ public float maxDepth() { return XrCompositionLayerDepthInfoKHR.nmaxDepth(address()); }
+ /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#nearZ} field. */
+ public float nearZ() { return XrCompositionLayerDepthInfoKHR.nnearZ(address()); }
+ /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#farZ} field. */
+ public float farZ() { return XrCompositionLayerDepthInfoKHR.nfarZ(address()); }
+
+ /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#type} field. */
+ public XrCompositionLayerDepthInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerDepthInfoKHR.ntype(address(), value); return this; }
+ /** Sets the {@link KHRCompositionLayerDepth#XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR} value to the {@link XrCompositionLayerDepthInfoKHR#type} field. */
+ public XrCompositionLayerDepthInfoKHR.Buffer type$Default() { return type(KHRCompositionLayerDepth.XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR); }
+ /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#next} field. */
+ public XrCompositionLayerDepthInfoKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerDepthInfoKHR.nnext(address(), value); return this; }
+ /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerDepthInfoKHR#subImage} field. */
+ public XrCompositionLayerDepthInfoKHR.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerDepthInfoKHR.nsubImage(address(), value); return this; }
+ /** Passes the {@link XrCompositionLayerDepthInfoKHR#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrCompositionLayerDepthInfoKHR.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#minDepth} field. */
+ public XrCompositionLayerDepthInfoKHR.Buffer minDepth(float value) { XrCompositionLayerDepthInfoKHR.nminDepth(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#maxDepth} field. */
+ public XrCompositionLayerDepthInfoKHR.Buffer maxDepth(float value) { XrCompositionLayerDepthInfoKHR.nmaxDepth(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#nearZ} field. */
+ public XrCompositionLayerDepthInfoKHR.Buffer nearZ(float value) { XrCompositionLayerDepthInfoKHR.nnearZ(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#farZ} field. */
+ public XrCompositionLayerDepthInfoKHR.Buffer farZ(float value) { XrCompositionLayerDepthInfoKHR.nfarZ(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthTestFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthTestFB.java
index a46cfb161b..7f235762fc 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthTestFB.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthTestFB.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* specifies depth test for composition layer.
*
@@ -44,8 +44,8 @@
* XrBool32 {@link #depthMask};
* XrCompareOpFB {@link #compareOp};
* }
- */
-public class XrCompositionLayerDepthTestFB extends Struct implements NativeResource {
+ */
+public class XrCompositionLayerDepthTestFB extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -55,35 +55,26 @@ public class XrCompositionLayerDepthTestFB extends Struct implements NativeResource {
@@ -291,9 +282,9 @@ public static class Buffer extends StructBufferChanges to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrCompositionLayerDepthTestFB#SIZEOF}, and its mark will be undefined.
+ * by {@link XrCompositionLayerDepthTestFB#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -318,30 +309,30 @@ protected Buffer self() {
protected XrCompositionLayerDepthTestFB getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrCompositionLayerDepthTestFB#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrCompositionLayerDepthTestFB.ntype(address()); }
- /** @return the value of the {@link XrCompositionLayerDepthTestFB#next} field. */
- @NativeType("void const *")
- public long next() { return XrCompositionLayerDepthTestFB.nnext(address()); }
- /** @return the value of the {@link XrCompositionLayerDepthTestFB#depthMask} field. */
- @NativeType("XrBool32")
- public boolean depthMask() { return XrCompositionLayerDepthTestFB.ndepthMask(address()) != 0; }
- /** @return the value of the {@link XrCompositionLayerDepthTestFB#compareOp} field. */
- @NativeType("XrCompareOpFB")
- public int compareOp() { return XrCompositionLayerDepthTestFB.ncompareOp(address()); }
-
- /** Sets the specified value to the {@link XrCompositionLayerDepthTestFB#type} field. */
- public XrCompositionLayerDepthTestFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerDepthTestFB.ntype(address(), value); return this; }
- /** Sets the {@link FBCompositionLayerDepthTest#XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB} value to the {@link XrCompositionLayerDepthTestFB#type} field. */
- public XrCompositionLayerDepthTestFB.Buffer type$Default() { return type(FBCompositionLayerDepthTest.XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB); }
- /** Sets the specified value to the {@link XrCompositionLayerDepthTestFB#next} field. */
- public XrCompositionLayerDepthTestFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerDepthTestFB.nnext(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerDepthTestFB#depthMask} field. */
- public XrCompositionLayerDepthTestFB.Buffer depthMask(@NativeType("XrBool32") boolean value) { XrCompositionLayerDepthTestFB.ndepthMask(address(), value ? 1 : 0); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerDepthTestFB#compareOp} field. */
- public XrCompositionLayerDepthTestFB.Buffer compareOp(@NativeType("XrCompareOpFB") int value) { XrCompositionLayerDepthTestFB.ncompareOp(address(), value); return this; }
+
+ /** @return the value of the {@link XrCompositionLayerDepthTestFB#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrCompositionLayerDepthTestFB.ntype(address()); }
+ /** @return the value of the {@link XrCompositionLayerDepthTestFB#next} field. */
+ @NativeType("void const *")
+ public long next() { return XrCompositionLayerDepthTestFB.nnext(address()); }
+ /** @return the value of the {@link XrCompositionLayerDepthTestFB#depthMask} field. */
+ @NativeType("XrBool32")
+ public boolean depthMask() { return XrCompositionLayerDepthTestFB.ndepthMask(address()) != 0; }
+ /** @return the value of the {@link XrCompositionLayerDepthTestFB#compareOp} field. */
+ @NativeType("XrCompareOpFB")
+ public int compareOp() { return XrCompositionLayerDepthTestFB.ncompareOp(address()); }
+
+ /** Sets the specified value to the {@link XrCompositionLayerDepthTestFB#type} field. */
+ public XrCompositionLayerDepthTestFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerDepthTestFB.ntype(address(), value); return this; }
+ /** Sets the {@link FBCompositionLayerDepthTest#XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB} value to the {@link XrCompositionLayerDepthTestFB#type} field. */
+ public XrCompositionLayerDepthTestFB.Buffer type$Default() { return type(FBCompositionLayerDepthTest.XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB); }
+ /** Sets the specified value to the {@link XrCompositionLayerDepthTestFB#next} field. */
+ public XrCompositionLayerDepthTestFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerDepthTestFB.nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerDepthTestFB#depthMask} field. */
+ public XrCompositionLayerDepthTestFB.Buffer depthMask(@NativeType("XrBool32") boolean value) { XrCompositionLayerDepthTestFB.ndepthMask(address(), value ? 1 : 0); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerDepthTestFB#compareOp} field. */
+ public XrCompositionLayerDepthTestFB.Buffer compareOp(@NativeType("XrCompareOpFB") int value) { XrCompositionLayerDepthTestFB.ncompareOp(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthTestVARJO.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthTestVARJO.java
index ebbe32303b..ad686ffddd 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthTestVARJO.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthTestVARJO.java
@@ -4,17 +4,17 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* The structure to be passed when submitting layers to enable depth testing.
*
@@ -39,8 +39,8 @@
* float {@link #depthTestRangeNearZ};
* float {@link #depthTestRangeFarZ};
* }
- */
-public class XrCompositionLayerDepthTestVARJO extends Struct implements NativeResource {
+ */
+public class XrCompositionLayerDepthTestVARJO extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -50,35 +50,26 @@ public class XrCompositionLayerDepthTestVARJO extends Struct implements NativeResource {
@@ -284,9 +275,9 @@ public static class Buffer extends StructBufferChanges to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrCompositionLayerDepthTestVARJO#SIZEOF}, and its mark will be undefined.
+ * by {@link XrCompositionLayerDepthTestVARJO#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -311,28 +302,28 @@ protected Buffer self() {
protected XrCompositionLayerDepthTestVARJO getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrCompositionLayerDepthTestVARJO#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrCompositionLayerDepthTestVARJO.ntype(address()); }
- /** @return the value of the {@link XrCompositionLayerDepthTestVARJO#next} field. */
- @NativeType("void const *")
- public long next() { return XrCompositionLayerDepthTestVARJO.nnext(address()); }
- /** @return the value of the {@link XrCompositionLayerDepthTestVARJO#depthTestRangeNearZ} field. */
- public float depthTestRangeNearZ() { return XrCompositionLayerDepthTestVARJO.ndepthTestRangeNearZ(address()); }
- /** @return the value of the {@link XrCompositionLayerDepthTestVARJO#depthTestRangeFarZ} field. */
- public float depthTestRangeFarZ() { return XrCompositionLayerDepthTestVARJO.ndepthTestRangeFarZ(address()); }
-
- /** Sets the specified value to the {@link XrCompositionLayerDepthTestVARJO#type} field. */
- public XrCompositionLayerDepthTestVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerDepthTestVARJO.ntype(address(), value); return this; }
- /** Sets the {@link VARJOCompositionLayerDepthTest#XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO} value to the {@link XrCompositionLayerDepthTestVARJO#type} field. */
- public XrCompositionLayerDepthTestVARJO.Buffer type$Default() { return type(VARJOCompositionLayerDepthTest.XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO); }
- /** Sets the specified value to the {@link XrCompositionLayerDepthTestVARJO#next} field. */
- public XrCompositionLayerDepthTestVARJO.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerDepthTestVARJO.nnext(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerDepthTestVARJO#depthTestRangeNearZ} field. */
- public XrCompositionLayerDepthTestVARJO.Buffer depthTestRangeNearZ(float value) { XrCompositionLayerDepthTestVARJO.ndepthTestRangeNearZ(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerDepthTestVARJO#depthTestRangeFarZ} field. */
- public XrCompositionLayerDepthTestVARJO.Buffer depthTestRangeFarZ(float value) { XrCompositionLayerDepthTestVARJO.ndepthTestRangeFarZ(address(), value); return this; }
+
+ /** @return the value of the {@link XrCompositionLayerDepthTestVARJO#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrCompositionLayerDepthTestVARJO.ntype(address()); }
+ /** @return the value of the {@link XrCompositionLayerDepthTestVARJO#next} field. */
+ @NativeType("void const *")
+ public long next() { return XrCompositionLayerDepthTestVARJO.nnext(address()); }
+ /** @return the value of the {@link XrCompositionLayerDepthTestVARJO#depthTestRangeNearZ} field. */
+ public float depthTestRangeNearZ() { return XrCompositionLayerDepthTestVARJO.ndepthTestRangeNearZ(address()); }
+ /** @return the value of the {@link XrCompositionLayerDepthTestVARJO#depthTestRangeFarZ} field. */
+ public float depthTestRangeFarZ() { return XrCompositionLayerDepthTestVARJO.ndepthTestRangeFarZ(address()); }
+
+ /** Sets the specified value to the {@link XrCompositionLayerDepthTestVARJO#type} field. */
+ public XrCompositionLayerDepthTestVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerDepthTestVARJO.ntype(address(), value); return this; }
+ /** Sets the {@link VARJOCompositionLayerDepthTest#XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO} value to the {@link XrCompositionLayerDepthTestVARJO#type} field. */
+ public XrCompositionLayerDepthTestVARJO.Buffer type$Default() { return type(VARJOCompositionLayerDepthTest.XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO); }
+ /** Sets the specified value to the {@link XrCompositionLayerDepthTestVARJO#next} field. */
+ public XrCompositionLayerDepthTestVARJO.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerDepthTestVARJO.nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerDepthTestVARJO#depthTestRangeNearZ} field. */
+ public XrCompositionLayerDepthTestVARJO.Buffer depthTestRangeNearZ(float value) { XrCompositionLayerDepthTestVARJO.ndepthTestRangeNearZ(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerDepthTestVARJO#depthTestRangeFarZ} field. */
+ public XrCompositionLayerDepthTestVARJO.Buffer depthTestRangeFarZ(float value) { XrCompositionLayerDepthTestVARJO.ndepthTestRangeFarZ(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerEquirect2KHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerEquirect2KHR.java
index 1f7be11cbe..93d78b8209 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerEquirect2KHR.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerEquirect2KHR.java
@@ -4,18 +4,18 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Equirectangular layer composition info.
*
@@ -55,8 +55,8 @@
* float {@link #upperVerticalAngle};
* float {@link #lowerVerticalAngle};
* }
- */
-public class XrCompositionLayerEquirect2KHR extends Struct implements NativeResource {
+ */
+public class XrCompositionLayerEquirect2KHR extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -66,56 +66,47 @@ public class XrCompositionLayerEquirect2KHR extends Structmust have been created with a {@code faceCount} of 1. */
- public XrSwapchainSubImage subImage() { return nsubImage(address()); }
- /** an {@link XrPosef} defining the position and orientation of the center point of the sphere onto which the equirect image data is mapped, relative to the reference frame of the {@code space}. */
- public XrPosef pose() { return npose(address()); }
- /** the non-negative radius of the sphere onto which the equirect image data is mapped. Values of zero or floating point positive infinity are treated as an infinite sphere. */
- public float radius() { return nradius(address()); }
- /** defines the visible horizontal angle of the sphere, based at 0 radians, in the range of [0, 2π]
. It grows symmetrically around the 0 radian angle. */
- public float centralHorizontalAngle() { return ncentralHorizontalAngle(address()); }
- /** defines the upper vertical angle of the visible portion of the sphere, in the range of [-π/2, π/2]
. */
- public float upperVerticalAngle() { return nupperVerticalAngle(address()); }
- /** defines the lower vertical angle of the visible portion of the sphere, in the range of [-π/2, π/2]
. */
- public float lowerVerticalAngle() { return nlowerVerticalAngle(address()); }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrCompositionLayerEquirect2KHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link KHRCompositionLayerEquirect2#XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR} value to the {@link #type} field. */
- public XrCompositionLayerEquirect2KHR type$Default() { return type(KHRCompositionLayerEquirect2.XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR); }
- /** Sets the specified value to the {@link #next} field. */
- public XrCompositionLayerEquirect2KHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
- /** Sets the specified value to the {@link #layerFlags} field. */
- public XrCompositionLayerEquirect2KHR layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; }
- /** Sets the specified value to the {@link #space} field. */
- public XrCompositionLayerEquirect2KHR space(XrSpace value) { nspace(address(), value); return this; }
- /** Sets the specified value to the {@code eyeVisibility} field. */
- public XrCompositionLayerEquirect2KHR eyeVisibility(@NativeType("XrEyeVisibility") int value) { neyeVisibility(address(), value); return this; }
- /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */
- public XrCompositionLayerEquirect2KHR subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; }
- /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrCompositionLayerEquirect2KHR subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; }
- /** Copies the specified {@link XrPosef} to the {@link #pose} field. */
- public XrCompositionLayerEquirect2KHR pose(XrPosef value) { npose(address(), value); return this; }
- /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrCompositionLayerEquirect2KHR pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; }
- /** Sets the specified value to the {@link #radius} field. */
- public XrCompositionLayerEquirect2KHR radius(float value) { nradius(address(), value); return this; }
- /** Sets the specified value to the {@link #centralHorizontalAngle} field. */
- public XrCompositionLayerEquirect2KHR centralHorizontalAngle(float value) { ncentralHorizontalAngle(address(), value); return this; }
- /** Sets the specified value to the {@link #upperVerticalAngle} field. */
- public XrCompositionLayerEquirect2KHR upperVerticalAngle(float value) { nupperVerticalAngle(address(), value); return this; }
- /** Sets the specified value to the {@link #lowerVerticalAngle} field. */
- public XrCompositionLayerEquirect2KHR lowerVerticalAngle(float value) { nlowerVerticalAngle(address(), value); return this; }
+
+ /** the {@code XrStructureType} of this structure. */
+ @NativeType("XrStructureType")
+ public int type() { return ntype(address()); }
+ /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */
+ @NativeType("void const *")
+ public long next() { return nnext(address()); }
+ /** specifies options for the layer. */
+ @NativeType("XrCompositionLayerFlags")
+ public long layerFlags() { return nlayerFlags(address()); }
+ /** the {@code XrSpace} in which the {@code pose} of the equirect layer is evaluated over time. */
+ @NativeType("XrSpace")
+ public long space() { return nspace(address()); }
+ /** @return the value of the {@code eyeVisibility} field. */
+ @NativeType("XrEyeVisibility")
+ public int eyeVisibility() { return neyeVisibility(address()); }
+ /** identifies the image {@link XrSwapchainSubImage} to use. The swapchain must have been created with a {@code faceCount} of 1. */
+ public XrSwapchainSubImage subImage() { return nsubImage(address()); }
+ /** an {@link XrPosef} defining the position and orientation of the center point of the sphere onto which the equirect image data is mapped, relative to the reference frame of the {@code space}. */
+ public XrPosef pose() { return npose(address()); }
+ /** the non-negative radius of the sphere onto which the equirect image data is mapped. Values of zero or floating point positive infinity are treated as an infinite sphere. */
+ public float radius() { return nradius(address()); }
+ /** defines the visible horizontal angle of the sphere, based at 0 radians, in the range of [0, 2π]
. It grows symmetrically around the 0 radian angle. */
+ public float centralHorizontalAngle() { return ncentralHorizontalAngle(address()); }
+ /** defines the upper vertical angle of the visible portion of the sphere, in the range of [-π/2, π/2]
. */
+ public float upperVerticalAngle() { return nupperVerticalAngle(address()); }
+ /** defines the lower vertical angle of the visible portion of the sphere, in the range of [-π/2, π/2]
. */
+ public float lowerVerticalAngle() { return nlowerVerticalAngle(address()); }
+
+ /** Sets the specified value to the {@link #type} field. */
+ public XrCompositionLayerEquirect2KHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
+ /** Sets the {@link KHRCompositionLayerEquirect2#XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR} value to the {@link #type} field. */
+ public XrCompositionLayerEquirect2KHR type$Default() { return type(KHRCompositionLayerEquirect2.XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR); }
+ /** Sets the specified value to the {@link #next} field. */
+ public XrCompositionLayerEquirect2KHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link #layerFlags} field. */
+ public XrCompositionLayerEquirect2KHR layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; }
+ /** Sets the specified value to the {@link #space} field. */
+ public XrCompositionLayerEquirect2KHR space(XrSpace value) { nspace(address(), value); return this; }
+ /** Sets the specified value to the {@code eyeVisibility} field. */
+ public XrCompositionLayerEquirect2KHR eyeVisibility(@NativeType("XrEyeVisibility") int value) { neyeVisibility(address(), value); return this; }
+ /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */
+ public XrCompositionLayerEquirect2KHR subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; }
+ /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrCompositionLayerEquirect2KHR subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; }
+ /** Copies the specified {@link XrPosef} to the {@link #pose} field. */
+ public XrCompositionLayerEquirect2KHR pose(XrPosef value) { npose(address(), value); return this; }
+ /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrCompositionLayerEquirect2KHR pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; }
+ /** Sets the specified value to the {@link #radius} field. */
+ public XrCompositionLayerEquirect2KHR radius(float value) { nradius(address(), value); return this; }
+ /** Sets the specified value to the {@link #centralHorizontalAngle} field. */
+ public XrCompositionLayerEquirect2KHR centralHorizontalAngle(float value) { ncentralHorizontalAngle(address(), value); return this; }
+ /** Sets the specified value to the {@link #upperVerticalAngle} field. */
+ public XrCompositionLayerEquirect2KHR upperVerticalAngle(float value) { nupperVerticalAngle(address(), value); return this; }
+ /** Sets the specified value to the {@link #lowerVerticalAngle} field. */
+ public XrCompositionLayerEquirect2KHR lowerVerticalAngle(float value) { nlowerVerticalAngle(address(), value); return this; }
/** Initializes this struct with the specified values. */
public XrCompositionLayerEquirect2KHR set(
- int type,
- long next,
- long layerFlags,
- XrSpace space,
- int eyeVisibility,
- XrSwapchainSubImage subImage,
- XrPosef pose,
- float radius,
- float centralHorizontalAngle,
- float upperVerticalAngle,
+ int type,
+ long next,
+ long layerFlags,
+ XrSpace space,
+ int eyeVisibility,
+ XrSwapchainSubImage subImage,
+ XrPosef pose,
+ float radius,
+ float centralHorizontalAngle,
+ float upperVerticalAngle,
float lowerVerticalAngle
- ) {
- type(type);
- next(next);
- layerFlags(layerFlags);
- space(space);
- eyeVisibility(eyeVisibility);
- subImage(subImage);
- pose(pose);
- radius(radius);
- centralHorizontalAngle(centralHorizontalAngle);
- upperVerticalAngle(upperVerticalAngle);
- lowerVerticalAngle(lowerVerticalAngle);
+ ) {
+ type(type);
+ next(next);
+ layerFlags(layerFlags);
+ space(space);
+ eyeVisibility(eyeVisibility);
+ subImage(subImage);
+ pose(pose);
+ radius(radius);
+ centralHorizontalAngle(centralHorizontalAngle);
+ upperVerticalAngle(upperVerticalAngle);
+ lowerVerticalAngle(lowerVerticalAngle);
return this;
}
@@ -233,34 +224,34 @@ public XrCompositionLayerEquirect2KHR set(XrCompositionLayerEquirect2KHR src) {
/** Returns a new {@code XrCompositionLayerEquirect2KHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static XrCompositionLayerEquirect2KHR malloc() {
- return new XrCompositionLayerEquirect2KHR(nmemAllocChecked(SIZEOF), null);
+ return wrap(XrCompositionLayerEquirect2KHR.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code XrCompositionLayerEquirect2KHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static XrCompositionLayerEquirect2KHR calloc() {
- return new XrCompositionLayerEquirect2KHR(nmemCallocChecked(1, SIZEOF), null);
+ return wrap(XrCompositionLayerEquirect2KHR.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code XrCompositionLayerEquirect2KHR} instance allocated with {@link BufferUtils}. */
public static XrCompositionLayerEquirect2KHR create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
- return new XrCompositionLayerEquirect2KHR(memAddress(container), container);
+ return wrap(XrCompositionLayerEquirect2KHR.class, memAddress(container), container);
}
/** Returns a new {@code XrCompositionLayerEquirect2KHR} instance for the specified memory address. */
public static XrCompositionLayerEquirect2KHR create(long address) {
- return new XrCompositionLayerEquirect2KHR(address, null);
+ return wrap(XrCompositionLayerEquirect2KHR.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrCompositionLayerEquirect2KHR createSafe(long address) {
- return address == NULL ? null : new XrCompositionLayerEquirect2KHR(address, null);
+ return address == NULL ? null : wrap(XrCompositionLayerEquirect2KHR.class, address);
}
/** Downcasts the specified {@code XrCompositionLayerBaseHeader} instance to {@code XrCompositionLayerEquirect2KHR}. */
public static XrCompositionLayerEquirect2KHR create(XrCompositionLayerBaseHeader value) {
- return new XrCompositionLayerEquirect2KHR(value.address(), __getContainer(value));
+ return wrap(XrCompositionLayerEquirect2KHR.class, value);
}
/**
@@ -269,7 +260,7 @@ public static XrCompositionLayerEquirect2KHR create(XrCompositionLayerBaseHeader
* @param capacity the buffer capacity
*/
public static XrCompositionLayerEquirect2KHR.Buffer malloc(int capacity) {
- return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
+ return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
@@ -278,7 +269,7 @@ public static XrCompositionLayerEquirect2KHR.Buffer malloc(int capacity) {
* @param capacity the buffer capacity
*/
public static XrCompositionLayerEquirect2KHR.Buffer calloc(int capacity) {
- return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
@@ -288,7 +279,7 @@ public static XrCompositionLayerEquirect2KHR.Buffer calloc(int capacity) {
*/
public static XrCompositionLayerEquirect2KHR.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
- return new Buffer(memAddress(container), container, -1, 0, capacity, capacity);
+ return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
@@ -298,18 +289,18 @@ public static XrCompositionLayerEquirect2KHR.Buffer create(int capacity) {
* @param capacity the buffer capacity
*/
public static XrCompositionLayerEquirect2KHR.Buffer create(long address, int capacity) {
- return new Buffer(address, capacity);
+ return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static XrCompositionLayerEquirect2KHR.Buffer createSafe(long address, int capacity) {
- return address == NULL ? null : new Buffer(address, capacity);
+ return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/** Downcasts the specified {@code XrCompositionLayerBaseHeader.Buffer} instance to {@code XrCompositionLayerEquirect2KHR.Buffer}. */
public static XrCompositionLayerEquirect2KHR.Buffer create(XrCompositionLayerBaseHeader.Buffer value) {
- return new XrCompositionLayerEquirect2KHR.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining());
+ return wrap(Buffer.class, value);
}
/**
@@ -318,7 +309,7 @@ public static XrCompositionLayerEquirect2KHR.Buffer create(XrCompositionLayerBas
* @param stack the stack from which to allocate
*/
public static XrCompositionLayerEquirect2KHR malloc(MemoryStack stack) {
- return new XrCompositionLayerEquirect2KHR(stack.nmalloc(ALIGNOF, SIZEOF), null);
+ return wrap(XrCompositionLayerEquirect2KHR.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
@@ -327,7 +318,7 @@ public static XrCompositionLayerEquirect2KHR malloc(MemoryStack stack) {
* @param stack the stack from which to allocate
*/
public static XrCompositionLayerEquirect2KHR calloc(MemoryStack stack) {
- return new XrCompositionLayerEquirect2KHR(stack.ncalloc(ALIGNOF, 1, SIZEOF), null);
+ return wrap(XrCompositionLayerEquirect2KHR.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
@@ -337,7 +328,7 @@ public static XrCompositionLayerEquirect2KHR calloc(MemoryStack stack) {
* @param capacity the buffer capacity
*/
public static XrCompositionLayerEquirect2KHR.Buffer malloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
+ return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
@@ -347,56 +338,56 @@ public static XrCompositionLayerEquirect2KHR.Buffer malloc(int capacity, MemoryS
* @param capacity the buffer capacity
*/
public static XrCompositionLayerEquirect2KHR.Buffer calloc(int capacity, MemoryStack stack) {
- return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
+ return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
-
- /** Unsafe version of {@link #type}. */
- public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerEquirect2KHR.TYPE); }
- /** Unsafe version of {@link #next}. */
- public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerEquirect2KHR.NEXT); }
- /** Unsafe version of {@link #layerFlags}. */
- public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerEquirect2KHR.LAYERFLAGS); }
- /** Unsafe version of {@link #space}. */
- public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerEquirect2KHR.SPACE); }
- /** Unsafe version of {@link #eyeVisibility}. */
- public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerEquirect2KHR.EYEVISIBILITY); }
- /** Unsafe version of {@link #subImage}. */
- public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerEquirect2KHR.SUBIMAGE); }
- /** Unsafe version of {@link #pose}. */
- public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerEquirect2KHR.POSE); }
- /** Unsafe version of {@link #radius}. */
- public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirect2KHR.RADIUS); }
- /** Unsafe version of {@link #centralHorizontalAngle}. */
- public static float ncentralHorizontalAngle(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirect2KHR.CENTRALHORIZONTALANGLE); }
- /** Unsafe version of {@link #upperVerticalAngle}. */
- public static float nupperVerticalAngle(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirect2KHR.UPPERVERTICALANGLE); }
- /** Unsafe version of {@link #lowerVerticalAngle}. */
- public static float nlowerVerticalAngle(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirect2KHR.LOWERVERTICALANGLE); }
-
- /** Unsafe version of {@link #type(int) type}. */
- public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerEquirect2KHR.TYPE, value); }
- /** Unsafe version of {@link #next(long) next}. */
- public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerEquirect2KHR.NEXT, value); }
- /** Unsafe version of {@link #layerFlags(long) layerFlags}. */
- public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerEquirect2KHR.LAYERFLAGS, value); }
- /** Unsafe version of {@link #space(XrSpace) space}. */
- public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerEquirect2KHR.SPACE, value.address()); }
- /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */
- public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerEquirect2KHR.EYEVISIBILITY, value); }
- /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */
- public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerEquirect2KHR.SUBIMAGE, XrSwapchainSubImage.SIZEOF); }
- /** Unsafe version of {@link #pose(XrPosef) pose}. */
- public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerEquirect2KHR.POSE, XrPosef.SIZEOF); }
- /** Unsafe version of {@link #radius(float) radius}. */
- public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirect2KHR.RADIUS, value); }
- /** Unsafe version of {@link #centralHorizontalAngle(float) centralHorizontalAngle}. */
- public static void ncentralHorizontalAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirect2KHR.CENTRALHORIZONTALANGLE, value); }
- /** Unsafe version of {@link #upperVerticalAngle(float) upperVerticalAngle}. */
- public static void nupperVerticalAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirect2KHR.UPPERVERTICALANGLE, value); }
- /** Unsafe version of {@link #lowerVerticalAngle(float) lowerVerticalAngle}. */
- public static void nlowerVerticalAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirect2KHR.LOWERVERTICALANGLE, value); }
+
+ /** Unsafe version of {@link #type}. */
+ public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerEquirect2KHR.TYPE); }
+ /** Unsafe version of {@link #next}. */
+ public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerEquirect2KHR.NEXT); }
+ /** Unsafe version of {@link #layerFlags}. */
+ public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerEquirect2KHR.LAYERFLAGS); }
+ /** Unsafe version of {@link #space}. */
+ public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerEquirect2KHR.SPACE); }
+ /** Unsafe version of {@link #eyeVisibility}. */
+ public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerEquirect2KHR.EYEVISIBILITY); }
+ /** Unsafe version of {@link #subImage}. */
+ public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerEquirect2KHR.SUBIMAGE); }
+ /** Unsafe version of {@link #pose}. */
+ public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerEquirect2KHR.POSE); }
+ /** Unsafe version of {@link #radius}. */
+ public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirect2KHR.RADIUS); }
+ /** Unsafe version of {@link #centralHorizontalAngle}. */
+ public static float ncentralHorizontalAngle(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirect2KHR.CENTRALHORIZONTALANGLE); }
+ /** Unsafe version of {@link #upperVerticalAngle}. */
+ public static float nupperVerticalAngle(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirect2KHR.UPPERVERTICALANGLE); }
+ /** Unsafe version of {@link #lowerVerticalAngle}. */
+ public static float nlowerVerticalAngle(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirect2KHR.LOWERVERTICALANGLE); }
+
+ /** Unsafe version of {@link #type(int) type}. */
+ public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerEquirect2KHR.TYPE, value); }
+ /** Unsafe version of {@link #next(long) next}. */
+ public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerEquirect2KHR.NEXT, value); }
+ /** Unsafe version of {@link #layerFlags(long) layerFlags}. */
+ public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerEquirect2KHR.LAYERFLAGS, value); }
+ /** Unsafe version of {@link #space(XrSpace) space}. */
+ public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerEquirect2KHR.SPACE, value.address()); }
+ /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */
+ public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerEquirect2KHR.EYEVISIBILITY, value); }
+ /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */
+ public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerEquirect2KHR.SUBIMAGE, XrSwapchainSubImage.SIZEOF); }
+ /** Unsafe version of {@link #pose(XrPosef) pose}. */
+ public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerEquirect2KHR.POSE, XrPosef.SIZEOF); }
+ /** Unsafe version of {@link #radius(float) radius}. */
+ public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirect2KHR.RADIUS, value); }
+ /** Unsafe version of {@link #centralHorizontalAngle(float) centralHorizontalAngle}. */
+ public static void ncentralHorizontalAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirect2KHR.CENTRALHORIZONTALANGLE, value); }
+ /** Unsafe version of {@link #upperVerticalAngle(float) upperVerticalAngle}. */
+ public static void nupperVerticalAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirect2KHR.UPPERVERTICALANGLE, value); }
+ /** Unsafe version of {@link #lowerVerticalAngle(float) lowerVerticalAngle}. */
+ public static void nlowerVerticalAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirect2KHR.LOWERVERTICALANGLE, value); }
/**
* Validates pointer members that should not be {@code NULL}.
@@ -406,9 +397,9 @@ public static XrCompositionLayerEquirect2KHR.Buffer calloc(int capacity, MemoryS
public static void validate(long struct) {
check(memGetAddress(struct + XrCompositionLayerEquirect2KHR.SPACE));
XrSwapchainSubImage.validate(struct + XrCompositionLayerEquirect2KHR.SUBIMAGE);
- }
+ }
- // -----------------------------------
+ // -----------------------------------
/** An array of {@link XrCompositionLayerEquirect2KHR} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
@@ -418,9 +409,9 @@ public static class Buffer extends StructBufferChanges to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
+ * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
* will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
- * by {@link XrCompositionLayerEquirect2KHR#SIZEOF}, and its mark will be undefined.
+ * by {@link XrCompositionLayerEquirect2KHR#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
@@ -445,63 +436,63 @@ protected Buffer self() {
protected XrCompositionLayerEquirect2KHR getElementFactory() {
return ELEMENT_FACTORY;
}
-
- /** @return the value of the {@link XrCompositionLayerEquirect2KHR#type} field. */
- @NativeType("XrStructureType")
- public int type() { return XrCompositionLayerEquirect2KHR.ntype(address()); }
- /** @return the value of the {@link XrCompositionLayerEquirect2KHR#next} field. */
- @NativeType("void const *")
- public long next() { return XrCompositionLayerEquirect2KHR.nnext(address()); }
- /** @return the value of the {@link XrCompositionLayerEquirect2KHR#layerFlags} field. */
- @NativeType("XrCompositionLayerFlags")
- public long layerFlags() { return XrCompositionLayerEquirect2KHR.nlayerFlags(address()); }
- /** @return the value of the {@link XrCompositionLayerEquirect2KHR#space} field. */
- @NativeType("XrSpace")
- public long space() { return XrCompositionLayerEquirect2KHR.nspace(address()); }
- /** @return the value of the {@code eyeVisibility} field. */
- @NativeType("XrEyeVisibility")
- public int eyeVisibility() { return XrCompositionLayerEquirect2KHR.neyeVisibility(address()); }
- /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerEquirect2KHR#subImage} field. */
- public XrSwapchainSubImage subImage() { return XrCompositionLayerEquirect2KHR.nsubImage(address()); }
- /** @return a {@link XrPosef} view of the {@link XrCompositionLayerEquirect2KHR#pose} field. */
- public XrPosef pose() { return XrCompositionLayerEquirect2KHR.npose(address()); }
- /** @return the value of the {@link XrCompositionLayerEquirect2KHR#radius} field. */
- public float radius() { return XrCompositionLayerEquirect2KHR.nradius(address()); }
- /** @return the value of the {@link XrCompositionLayerEquirect2KHR#centralHorizontalAngle} field. */
- public float centralHorizontalAngle() { return XrCompositionLayerEquirect2KHR.ncentralHorizontalAngle(address()); }
- /** @return the value of the {@link XrCompositionLayerEquirect2KHR#upperVerticalAngle} field. */
- public float upperVerticalAngle() { return XrCompositionLayerEquirect2KHR.nupperVerticalAngle(address()); }
- /** @return the value of the {@link XrCompositionLayerEquirect2KHR#lowerVerticalAngle} field. */
- public float lowerVerticalAngle() { return XrCompositionLayerEquirect2KHR.nlowerVerticalAngle(address()); }
-
- /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#type} field. */
- public XrCompositionLayerEquirect2KHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerEquirect2KHR.ntype(address(), value); return this; }
- /** Sets the {@link KHRCompositionLayerEquirect2#XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR} value to the {@link XrCompositionLayerEquirect2KHR#type} field. */
- public XrCompositionLayerEquirect2KHR.Buffer type$Default() { return type(KHRCompositionLayerEquirect2.XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR); }
- /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#next} field. */
- public XrCompositionLayerEquirect2KHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerEquirect2KHR.nnext(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#layerFlags} field. */
- public XrCompositionLayerEquirect2KHR.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerEquirect2KHR.nlayerFlags(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#space} field. */
- public XrCompositionLayerEquirect2KHR.Buffer space(XrSpace value) { XrCompositionLayerEquirect2KHR.nspace(address(), value); return this; }
- /** Sets the specified value to the {@code eyeVisibility} field. */
- public XrCompositionLayerEquirect2KHR.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerEquirect2KHR.neyeVisibility(address(), value); return this; }
- /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerEquirect2KHR#subImage} field. */
- public XrCompositionLayerEquirect2KHR.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerEquirect2KHR.nsubImage(address(), value); return this; }
- /** Passes the {@link XrCompositionLayerEquirect2KHR#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrCompositionLayerEquirect2KHR.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; }
- /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerEquirect2KHR#pose} field. */
- public XrCompositionLayerEquirect2KHR.Buffer pose(XrPosef value) { XrCompositionLayerEquirect2KHR.npose(address(), value); return this; }
- /** Passes the {@link XrCompositionLayerEquirect2KHR#pose} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrCompositionLayerEquirect2KHR.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#radius} field. */
- public XrCompositionLayerEquirect2KHR.Buffer radius(float value) { XrCompositionLayerEquirect2KHR.nradius(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#centralHorizontalAngle} field. */
- public XrCompositionLayerEquirect2KHR.Buffer centralHorizontalAngle(float value) { XrCompositionLayerEquirect2KHR.ncentralHorizontalAngle(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#upperVerticalAngle} field. */
- public XrCompositionLayerEquirect2KHR.Buffer upperVerticalAngle(float value) { XrCompositionLayerEquirect2KHR.nupperVerticalAngle(address(), value); return this; }
- /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#lowerVerticalAngle} field. */
- public XrCompositionLayerEquirect2KHR.Buffer lowerVerticalAngle(float value) { XrCompositionLayerEquirect2KHR.nlowerVerticalAngle(address(), value); return this; }
+
+ /** @return the value of the {@link XrCompositionLayerEquirect2KHR#type} field. */
+ @NativeType("XrStructureType")
+ public int type() { return XrCompositionLayerEquirect2KHR.ntype(address()); }
+ /** @return the value of the {@link XrCompositionLayerEquirect2KHR#next} field. */
+ @NativeType("void const *")
+ public long next() { return XrCompositionLayerEquirect2KHR.nnext(address()); }
+ /** @return the value of the {@link XrCompositionLayerEquirect2KHR#layerFlags} field. */
+ @NativeType("XrCompositionLayerFlags")
+ public long layerFlags() { return XrCompositionLayerEquirect2KHR.nlayerFlags(address()); }
+ /** @return the value of the {@link XrCompositionLayerEquirect2KHR#space} field. */
+ @NativeType("XrSpace")
+ public long space() { return XrCompositionLayerEquirect2KHR.nspace(address()); }
+ /** @return the value of the {@code eyeVisibility} field. */
+ @NativeType("XrEyeVisibility")
+ public int eyeVisibility() { return XrCompositionLayerEquirect2KHR.neyeVisibility(address()); }
+ /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerEquirect2KHR#subImage} field. */
+ public XrSwapchainSubImage subImage() { return XrCompositionLayerEquirect2KHR.nsubImage(address()); }
+ /** @return a {@link XrPosef} view of the {@link XrCompositionLayerEquirect2KHR#pose} field. */
+ public XrPosef pose() { return XrCompositionLayerEquirect2KHR.npose(address()); }
+ /** @return the value of the {@link XrCompositionLayerEquirect2KHR#radius} field. */
+ public float radius() { return XrCompositionLayerEquirect2KHR.nradius(address()); }
+ /** @return the value of the {@link XrCompositionLayerEquirect2KHR#centralHorizontalAngle} field. */
+ public float centralHorizontalAngle() { return XrCompositionLayerEquirect2KHR.ncentralHorizontalAngle(address()); }
+ /** @return the value of the {@link XrCompositionLayerEquirect2KHR#upperVerticalAngle} field. */
+ public float upperVerticalAngle() { return XrCompositionLayerEquirect2KHR.nupperVerticalAngle(address()); }
+ /** @return the value of the {@link XrCompositionLayerEquirect2KHR#lowerVerticalAngle} field. */
+ public float lowerVerticalAngle() { return XrCompositionLayerEquirect2KHR.nlowerVerticalAngle(address()); }
+
+ /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#type} field. */
+ public XrCompositionLayerEquirect2KHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerEquirect2KHR.ntype(address(), value); return this; }
+ /** Sets the {@link KHRCompositionLayerEquirect2#XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR} value to the {@link XrCompositionLayerEquirect2KHR#type} field. */
+ public XrCompositionLayerEquirect2KHR.Buffer type$Default() { return type(KHRCompositionLayerEquirect2.XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR); }
+ /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#next} field. */
+ public XrCompositionLayerEquirect2KHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerEquirect2KHR.nnext(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#layerFlags} field. */
+ public XrCompositionLayerEquirect2KHR.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerEquirect2KHR.nlayerFlags(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#space} field. */
+ public XrCompositionLayerEquirect2KHR.Buffer space(XrSpace value) { XrCompositionLayerEquirect2KHR.nspace(address(), value); return this; }
+ /** Sets the specified value to the {@code eyeVisibility} field. */
+ public XrCompositionLayerEquirect2KHR.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerEquirect2KHR.neyeVisibility(address(), value); return this; }
+ /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerEquirect2KHR#subImage} field. */
+ public XrCompositionLayerEquirect2KHR.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerEquirect2KHR.nsubImage(address(), value); return this; }
+ /** Passes the {@link XrCompositionLayerEquirect2KHR#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrCompositionLayerEquirect2KHR.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; }
+ /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerEquirect2KHR#pose} field. */
+ public XrCompositionLayerEquirect2KHR.Buffer pose(XrPosef value) { XrCompositionLayerEquirect2KHR.npose(address(), value); return this; }
+ /** Passes the {@link XrCompositionLayerEquirect2KHR#pose} field to the specified {@link java.util.function.Consumer Consumer}. */
+ public XrCompositionLayerEquirect2KHR.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#radius} field. */
+ public XrCompositionLayerEquirect2KHR.Buffer radius(float value) { XrCompositionLayerEquirect2KHR.nradius(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#centralHorizontalAngle} field. */
+ public XrCompositionLayerEquirect2KHR.Buffer centralHorizontalAngle(float value) { XrCompositionLayerEquirect2KHR.ncentralHorizontalAngle(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#upperVerticalAngle} field. */
+ public XrCompositionLayerEquirect2KHR.Buffer upperVerticalAngle(float value) { XrCompositionLayerEquirect2KHR.nupperVerticalAngle(address(), value); return this; }
+ /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#lowerVerticalAngle} field. */
+ public XrCompositionLayerEquirect2KHR.Buffer lowerVerticalAngle(float value) { XrCompositionLayerEquirect2KHR.nlowerVerticalAngle(address(), value); return this; }
}
diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerEquirectKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerEquirectKHR.java
index d6ddd5d74e..01347d6a1b 100644
--- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerEquirectKHR.java
+++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerEquirectKHR.java
@@ -4,18 +4,18 @@
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
-
+
import javax.annotation.*;
-
+
import java.nio.*;
-
-import org.lwjgl.*;
+
+import org.lwjgl.*;
import org.lwjgl.system.*;
-
-import static org.lwjgl.system.Checks.*;
-import static org.lwjgl.system.MemoryUtil.*;
-import static org.lwjgl.system.MemoryStack.*;
-
+
+import static org.lwjgl.system.Checks.*;
+import static org.lwjgl.system.MemoryUtil.*;
+import static org.lwjgl.system.MemoryStack.*;
+
/**
* Equirectangular layer composition info.
*
@@ -54,8 +54,8 @@
* {@link XrVector2f XrVector2f} {@link #scale};
* {@link XrVector2f XrVector2f} {@link #bias};
* }
- */
-public class XrCompositionLayerEquirectKHR extends Struct implements NativeResource {
+ */
+public class XrCompositionLayerEquirectKHR extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
@@ -65,53 +65,44 @@ public class XrCompositionLayerEquirectKHR extends Structmust have been created with a {@code faceCount} of 1. */
- public XrSwapchainSubImage subImage() { return nsubImage(address()); }
- /** an {@link XrPosef} defining the position and orientation of the center point of the sphere onto which the equirect image data is mapped, relative to the reference frame of the {@code space}. */
- public XrPosef pose() { return npose(address()); }
- /** the non-negative radius of the sphere onto which the equirect image data is mapped. Values of zero or floating point positive infinity are treated as an infinite sphere. */
- public float radius() { return nradius(address()); }
- /** an {@link XrVector2f} indicating a scale of the texture coordinates after the mapping to 2D. */
- public XrVector2f scale() { return nscale(address()); }
- /** an {@link XrVector2f} indicating a bias of the texture coordinates after the mapping to 2D. */
- public XrVector2f bias() { return nbias(address()); }
-
- /** Sets the specified value to the {@link #type} field. */
- public XrCompositionLayerEquirectKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; }
- /** Sets the {@link KHRCompositionLayerEquirect#XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR TYPE_COMPOSITION_LAYER_EQUIRECT_KHR} value to the {@link #type} field. */
- public XrCompositionLayerEquirectKHR type$Default() { return type(KHRCompositionLayerEquirect.XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR); }
- /** Sets the specified value to the {@link #next} field. */
- public XrCompositionLayerEquirectKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; }
- /** Sets the specified value to the {@link #layerFlags} field. */
- public XrCompositionLayerEquirectKHR layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; }
- /** Sets the specified value to the {@link #space} field. */
- public XrCompositionLayerEquirectKHR space(XrSpace value) { nspace(address(), value); return this; }
- /** Sets the specified value to the {@code eyeVisibility} field. */
- public XrCompositionLayerEquirectKHR eyeVisibility(@NativeType("XrEyeVisibility") int value) { neyeVisibility(address(), value); return this; }
- /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */
- public XrCompositionLayerEquirectKHR subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; }
- /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrCompositionLayerEquirectKHR subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; }
- /** Copies the specified {@link XrPosef} to the {@link #pose} field. */
- public XrCompositionLayerEquirectKHR pose(XrPosef value) { npose(address(), value); return this; }
- /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrCompositionLayerEquirectKHR pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; }
- /** Sets the specified value to the {@link #radius} field. */
- public XrCompositionLayerEquirectKHR radius(float value) { nradius(address(), value); return this; }
- /** Copies the specified {@link XrVector2f} to the {@link #scale} field. */
- public XrCompositionLayerEquirectKHR scale(XrVector2f value) { nscale(address(), value); return this; }
- /** Passes the {@link #scale} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrCompositionLayerEquirectKHR scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; }
- /** Copies the specified {@link XrVector2f} to the {@link #bias} field. */
- public XrCompositionLayerEquirectKHR bias(XrVector2f value) { nbias(address(), value); return this; }
- /** Passes the {@link #bias} field to the specified {@link java.util.function.Consumer Consumer}. */
- public XrCompositionLayerEquirectKHR bias(java.util.function.Consumer