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 { * - */ - 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 { * - */ + */ 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 @@ * - */ -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 @@ * - */ -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 { * - */ - 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 { * - */ - 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 { * - */ - 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 consumer) { consumer.accept(bias()); 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()); } + /** 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 consumer) { consumer.accept(bias()); return this; } /** Initializes this struct with the specified values. */ public XrCompositionLayerEquirectKHR set( - int type, - long next, - long layerFlags, - XrSpace space, - int eyeVisibility, - XrSwapchainSubImage subImage, - XrPosef pose, - float radius, - XrVector2f scale, + int type, + long next, + long layerFlags, + XrSpace space, + int eyeVisibility, + XrSwapchainSubImage subImage, + XrPosef pose, + float radius, + XrVector2f scale, XrVector2f bias - ) { - type(type); - next(next); - layerFlags(layerFlags); - space(space); - eyeVisibility(eyeVisibility); - subImage(subImage); - pose(pose); - radius(radius); - scale(scale); - bias(bias); + ) { + type(type); + next(next); + layerFlags(layerFlags); + space(space); + eyeVisibility(eyeVisibility); + subImage(subImage); + pose(pose); + radius(radius); + scale(scale); + bias(bias); return this; } @@ -227,34 +218,34 @@ public XrCompositionLayerEquirectKHR set(XrCompositionLayerEquirectKHR src) { /** Returns a new {@code XrCompositionLayerEquirectKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrCompositionLayerEquirectKHR malloc() { - return new XrCompositionLayerEquirectKHR(nmemAllocChecked(SIZEOF), null); + return wrap(XrCompositionLayerEquirectKHR.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrCompositionLayerEquirectKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrCompositionLayerEquirectKHR calloc() { - return new XrCompositionLayerEquirectKHR(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrCompositionLayerEquirectKHR.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrCompositionLayerEquirectKHR} instance allocated with {@link BufferUtils}. */ public static XrCompositionLayerEquirectKHR create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrCompositionLayerEquirectKHR(memAddress(container), container); + return wrap(XrCompositionLayerEquirectKHR.class, memAddress(container), container); } /** Returns a new {@code XrCompositionLayerEquirectKHR} instance for the specified memory address. */ public static XrCompositionLayerEquirectKHR create(long address) { - return new XrCompositionLayerEquirectKHR(address, null); + return wrap(XrCompositionLayerEquirectKHR.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrCompositionLayerEquirectKHR createSafe(long address) { - return address == NULL ? null : new XrCompositionLayerEquirectKHR(address, null); + return address == NULL ? null : wrap(XrCompositionLayerEquirectKHR.class, address); } /** Downcasts the specified {@code XrCompositionLayerBaseHeader} instance to {@code XrCompositionLayerEquirectKHR}. */ public static XrCompositionLayerEquirectKHR create(XrCompositionLayerBaseHeader value) { - return new XrCompositionLayerEquirectKHR(value.address(), __getContainer(value)); + return wrap(XrCompositionLayerEquirectKHR.class, value); } /** @@ -263,7 +254,7 @@ public static XrCompositionLayerEquirectKHR create(XrCompositionLayerBaseHeader * @param capacity the buffer capacity */ public static XrCompositionLayerEquirectKHR.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 XrCompositionLayerEquirectKHR.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrCompositionLayerEquirectKHR.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 XrCompositionLayerEquirectKHR.Buffer calloc(int capacity) { */ public static XrCompositionLayerEquirectKHR.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,18 +283,18 @@ public static XrCompositionLayerEquirectKHR.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrCompositionLayerEquirectKHR.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 XrCompositionLayerEquirectKHR.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 XrCompositionLayerEquirectKHR.Buffer}. */ public static XrCompositionLayerEquirectKHR.Buffer create(XrCompositionLayerBaseHeader.Buffer value) { - return new XrCompositionLayerEquirectKHR.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** @@ -312,7 +303,7 @@ public static XrCompositionLayerEquirectKHR.Buffer create(XrCompositionLayerBase * @param stack the stack from which to allocate */ public static XrCompositionLayerEquirectKHR malloc(MemoryStack stack) { - return new XrCompositionLayerEquirectKHR(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrCompositionLayerEquirectKHR.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -321,7 +312,7 @@ public static XrCompositionLayerEquirectKHR malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrCompositionLayerEquirectKHR calloc(MemoryStack stack) { - return new XrCompositionLayerEquirectKHR(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrCompositionLayerEquirectKHR.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -331,7 +322,7 @@ public static XrCompositionLayerEquirectKHR calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrCompositionLayerEquirectKHR.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); } /** @@ -341,52 +332,52 @@ public static XrCompositionLayerEquirectKHR.Buffer malloc(int capacity, MemorySt * @param capacity the buffer capacity */ public static XrCompositionLayerEquirectKHR.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 + XrCompositionLayerEquirectKHR.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerEquirectKHR.NEXT); } - /** Unsafe version of {@link #layerFlags}. */ - public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerEquirectKHR.LAYERFLAGS); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerEquirectKHR.SPACE); } - /** Unsafe version of {@link #eyeVisibility}. */ - public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerEquirectKHR.EYEVISIBILITY); } - /** Unsafe version of {@link #subImage}. */ - public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerEquirectKHR.SUBIMAGE); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerEquirectKHR.POSE); } - /** Unsafe version of {@link #radius}. */ - public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirectKHR.RADIUS); } - /** Unsafe version of {@link #scale}. */ - public static XrVector2f nscale(long struct) { return XrVector2f.create(struct + XrCompositionLayerEquirectKHR.SCALE); } - /** Unsafe version of {@link #bias}. */ - public static XrVector2f nbias(long struct) { return XrVector2f.create(struct + XrCompositionLayerEquirectKHR.BIAS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerEquirectKHR.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerEquirectKHR.NEXT, value); } - /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ - public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerEquirectKHR.LAYERFLAGS, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerEquirectKHR.SPACE, value.address()); } - /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */ - public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerEquirectKHR.EYEVISIBILITY, value); } - /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */ - public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerEquirectKHR.SUBIMAGE, XrSwapchainSubImage.SIZEOF); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerEquirectKHR.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #radius(float) radius}. */ - public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirectKHR.RADIUS, value); } - /** Unsafe version of {@link #scale(XrVector2f) scale}. */ - public static void nscale(long struct, XrVector2f value) { memCopy(value.address(), struct + XrCompositionLayerEquirectKHR.SCALE, XrVector2f.SIZEOF); } - /** Unsafe version of {@link #bias(XrVector2f) bias}. */ - public static void nbias(long struct, XrVector2f value) { memCopy(value.address(), struct + XrCompositionLayerEquirectKHR.BIAS, XrVector2f.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerEquirectKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerEquirectKHR.NEXT); } + /** Unsafe version of {@link #layerFlags}. */ + public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerEquirectKHR.LAYERFLAGS); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerEquirectKHR.SPACE); } + /** Unsafe version of {@link #eyeVisibility}. */ + public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerEquirectKHR.EYEVISIBILITY); } + /** Unsafe version of {@link #subImage}. */ + public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerEquirectKHR.SUBIMAGE); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerEquirectKHR.POSE); } + /** Unsafe version of {@link #radius}. */ + public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirectKHR.RADIUS); } + /** Unsafe version of {@link #scale}. */ + public static XrVector2f nscale(long struct) { return XrVector2f.create(struct + XrCompositionLayerEquirectKHR.SCALE); } + /** Unsafe version of {@link #bias}. */ + public static XrVector2f nbias(long struct) { return XrVector2f.create(struct + XrCompositionLayerEquirectKHR.BIAS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerEquirectKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerEquirectKHR.NEXT, value); } + /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ + public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerEquirectKHR.LAYERFLAGS, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerEquirectKHR.SPACE, value.address()); } + /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */ + public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerEquirectKHR.EYEVISIBILITY, value); } + /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */ + public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerEquirectKHR.SUBIMAGE, XrSwapchainSubImage.SIZEOF); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerEquirectKHR.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #radius(float) radius}. */ + public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirectKHR.RADIUS, value); } + /** Unsafe version of {@link #scale(XrVector2f) scale}. */ + public static void nscale(long struct, XrVector2f value) { memCopy(value.address(), struct + XrCompositionLayerEquirectKHR.SCALE, XrVector2f.SIZEOF); } + /** Unsafe version of {@link #bias(XrVector2f) bias}. */ + public static void nbias(long struct, XrVector2f value) { memCopy(value.address(), struct + XrCompositionLayerEquirectKHR.BIAS, XrVector2f.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -396,9 +387,9 @@ public static XrCompositionLayerEquirectKHR.Buffer calloc(int capacity, MemorySt public static void validate(long struct) { check(memGetAddress(struct + XrCompositionLayerEquirectKHR.SPACE)); XrSwapchainSubImage.validate(struct + XrCompositionLayerEquirectKHR.SUBIMAGE); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrCompositionLayerEquirectKHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -408,9 +399,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 XrCompositionLayerEquirectKHR#SIZEOF}, and its mark will be undefined.

    + * by {@link XrCompositionLayerEquirectKHR#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -435,63 +426,63 @@ protected Buffer self() { protected XrCompositionLayerEquirectKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerEquirectKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerEquirectKHR.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerEquirectKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerEquirectKHR.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerEquirectKHR#layerFlags} field. */ - @NativeType("XrCompositionLayerFlags") - public long layerFlags() { return XrCompositionLayerEquirectKHR.nlayerFlags(address()); } - /** @return the value of the {@link XrCompositionLayerEquirectKHR#space} field. */ - @NativeType("XrSpace") - public long space() { return XrCompositionLayerEquirectKHR.nspace(address()); } - /** @return the value of the {@code eyeVisibility} field. */ - @NativeType("XrEyeVisibility") - public int eyeVisibility() { return XrCompositionLayerEquirectKHR.neyeVisibility(address()); } - /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerEquirectKHR#subImage} field. */ - public XrSwapchainSubImage subImage() { return XrCompositionLayerEquirectKHR.nsubImage(address()); } - /** @return a {@link XrPosef} view of the {@link XrCompositionLayerEquirectKHR#pose} field. */ - public XrPosef pose() { return XrCompositionLayerEquirectKHR.npose(address()); } - /** @return the value of the {@link XrCompositionLayerEquirectKHR#radius} field. */ - public float radius() { return XrCompositionLayerEquirectKHR.nradius(address()); } - /** @return a {@link XrVector2f} view of the {@link XrCompositionLayerEquirectKHR#scale} field. */ - public XrVector2f scale() { return XrCompositionLayerEquirectKHR.nscale(address()); } - /** @return a {@link XrVector2f} view of the {@link XrCompositionLayerEquirectKHR#bias} field. */ - public XrVector2f bias() { return XrCompositionLayerEquirectKHR.nbias(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#type} field. */ - public XrCompositionLayerEquirectKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerEquirectKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRCompositionLayerEquirect#XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR TYPE_COMPOSITION_LAYER_EQUIRECT_KHR} value to the {@link XrCompositionLayerEquirectKHR#type} field. */ - public XrCompositionLayerEquirectKHR.Buffer type$Default() { return type(KHRCompositionLayerEquirect.XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR); } - /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#next} field. */ - public XrCompositionLayerEquirectKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerEquirectKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#layerFlags} field. */ - public XrCompositionLayerEquirectKHR.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerEquirectKHR.nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#space} field. */ - public XrCompositionLayerEquirectKHR.Buffer space(XrSpace value) { XrCompositionLayerEquirectKHR.nspace(address(), value); return this; } - /** Sets the specified value to the {@code eyeVisibility} field. */ - public XrCompositionLayerEquirectKHR.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerEquirectKHR.neyeVisibility(address(), value); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerEquirectKHR#subImage} field. */ - public XrCompositionLayerEquirectKHR.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerEquirectKHR.nsubImage(address(), value); return this; } - /** Passes the {@link XrCompositionLayerEquirectKHR#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerEquirectKHR.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerEquirectKHR#pose} field. */ - public XrCompositionLayerEquirectKHR.Buffer pose(XrPosef value) { XrCompositionLayerEquirectKHR.npose(address(), value); return this; } - /** Passes the {@link XrCompositionLayerEquirectKHR#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerEquirectKHR.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#radius} field. */ - public XrCompositionLayerEquirectKHR.Buffer radius(float value) { XrCompositionLayerEquirectKHR.nradius(address(), value); return this; } - /** Copies the specified {@link XrVector2f} to the {@link XrCompositionLayerEquirectKHR#scale} field. */ - public XrCompositionLayerEquirectKHR.Buffer scale(XrVector2f value) { XrCompositionLayerEquirectKHR.nscale(address(), value); return this; } - /** Passes the {@link XrCompositionLayerEquirectKHR#scale} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerEquirectKHR.Buffer scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } - /** Copies the specified {@link XrVector2f} to the {@link XrCompositionLayerEquirectKHR#bias} field. */ - public XrCompositionLayerEquirectKHR.Buffer bias(XrVector2f value) { XrCompositionLayerEquirectKHR.nbias(address(), value); return this; } - /** Passes the {@link XrCompositionLayerEquirectKHR#bias} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerEquirectKHR.Buffer bias(java.util.function.Consumer consumer) { consumer.accept(bias()); return this; } + + /** @return the value of the {@link XrCompositionLayerEquirectKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerEquirectKHR.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerEquirectKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerEquirectKHR.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerEquirectKHR#layerFlags} field. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return XrCompositionLayerEquirectKHR.nlayerFlags(address()); } + /** @return the value of the {@link XrCompositionLayerEquirectKHR#space} field. */ + @NativeType("XrSpace") + public long space() { return XrCompositionLayerEquirectKHR.nspace(address()); } + /** @return the value of the {@code eyeVisibility} field. */ + @NativeType("XrEyeVisibility") + public int eyeVisibility() { return XrCompositionLayerEquirectKHR.neyeVisibility(address()); } + /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerEquirectKHR#subImage} field. */ + public XrSwapchainSubImage subImage() { return XrCompositionLayerEquirectKHR.nsubImage(address()); } + /** @return a {@link XrPosef} view of the {@link XrCompositionLayerEquirectKHR#pose} field. */ + public XrPosef pose() { return XrCompositionLayerEquirectKHR.npose(address()); } + /** @return the value of the {@link XrCompositionLayerEquirectKHR#radius} field. */ + public float radius() { return XrCompositionLayerEquirectKHR.nradius(address()); } + /** @return a {@link XrVector2f} view of the {@link XrCompositionLayerEquirectKHR#scale} field. */ + public XrVector2f scale() { return XrCompositionLayerEquirectKHR.nscale(address()); } + /** @return a {@link XrVector2f} view of the {@link XrCompositionLayerEquirectKHR#bias} field. */ + public XrVector2f bias() { return XrCompositionLayerEquirectKHR.nbias(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#type} field. */ + public XrCompositionLayerEquirectKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerEquirectKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRCompositionLayerEquirect#XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR TYPE_COMPOSITION_LAYER_EQUIRECT_KHR} value to the {@link XrCompositionLayerEquirectKHR#type} field. */ + public XrCompositionLayerEquirectKHR.Buffer type$Default() { return type(KHRCompositionLayerEquirect.XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR); } + /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#next} field. */ + public XrCompositionLayerEquirectKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerEquirectKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#layerFlags} field. */ + public XrCompositionLayerEquirectKHR.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerEquirectKHR.nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#space} field. */ + public XrCompositionLayerEquirectKHR.Buffer space(XrSpace value) { XrCompositionLayerEquirectKHR.nspace(address(), value); return this; } + /** Sets the specified value to the {@code eyeVisibility} field. */ + public XrCompositionLayerEquirectKHR.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerEquirectKHR.neyeVisibility(address(), value); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerEquirectKHR#subImage} field. */ + public XrCompositionLayerEquirectKHR.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerEquirectKHR.nsubImage(address(), value); return this; } + /** Passes the {@link XrCompositionLayerEquirectKHR#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerEquirectKHR.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerEquirectKHR#pose} field. */ + public XrCompositionLayerEquirectKHR.Buffer pose(XrPosef value) { XrCompositionLayerEquirectKHR.npose(address(), value); return this; } + /** Passes the {@link XrCompositionLayerEquirectKHR#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerEquirectKHR.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#radius} field. */ + public XrCompositionLayerEquirectKHR.Buffer radius(float value) { XrCompositionLayerEquirectKHR.nradius(address(), value); return this; } + /** Copies the specified {@link XrVector2f} to the {@link XrCompositionLayerEquirectKHR#scale} field. */ + public XrCompositionLayerEquirectKHR.Buffer scale(XrVector2f value) { XrCompositionLayerEquirectKHR.nscale(address(), value); return this; } + /** Passes the {@link XrCompositionLayerEquirectKHR#scale} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerEquirectKHR.Buffer scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } + /** Copies the specified {@link XrVector2f} to the {@link XrCompositionLayerEquirectKHR#bias} field. */ + public XrCompositionLayerEquirectKHR.Buffer bias(XrVector2f value) { XrCompositionLayerEquirectKHR.nbias(address(), value); return this; } + /** Passes the {@link XrCompositionLayerEquirectKHR#bias} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerEquirectKHR.Buffer bias(java.util.function.Consumer consumer) { consumer.accept(bias()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerImageLayoutFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerImageLayoutFB.java index c9111232c5..dcad5ba0f6 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerImageLayoutFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerImageLayoutFB.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 image layout for composition layers. * @@ -45,8 +45,8 @@ * void * {@link #next}; * XrCompositionLayerImageLayoutFlagsFB {@link #flags}; * } - */ -public class XrCompositionLayerImageLayoutFB extends Struct implements NativeResource { + */ +public class XrCompositionLayerImageLayoutFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,32 +56,23 @@ public class XrCompositionLayerImageLayoutFB extends Struct implements NativeResource { @@ -278,9 +269,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 XrCompositionLayerImageLayoutFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrCompositionLayerImageLayoutFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -305,25 +296,25 @@ protected Buffer self() { protected XrCompositionLayerImageLayoutFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerImageLayoutFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerImageLayoutFB.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerImageLayoutFB#next} field. */ - @NativeType("void *") - public long next() { return XrCompositionLayerImageLayoutFB.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerImageLayoutFB#flags} field. */ - @NativeType("XrCompositionLayerImageLayoutFlagsFB") - public long flags() { return XrCompositionLayerImageLayoutFB.nflags(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerImageLayoutFB#type} field. */ - public XrCompositionLayerImageLayoutFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerImageLayoutFB.ntype(address(), value); return this; } - /** Sets the {@link FBCompositionLayerImageLayout#XR_TYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FB TYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FB} value to the {@link XrCompositionLayerImageLayoutFB#type} field. */ - public XrCompositionLayerImageLayoutFB.Buffer type$Default() { return type(FBCompositionLayerImageLayout.XR_TYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FB); } - /** Sets the specified value to the {@link XrCompositionLayerImageLayoutFB#next} field. */ - public XrCompositionLayerImageLayoutFB.Buffer next(@NativeType("void *") long value) { XrCompositionLayerImageLayoutFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerImageLayoutFB#flags} field. */ - public XrCompositionLayerImageLayoutFB.Buffer flags(@NativeType("XrCompositionLayerImageLayoutFlagsFB") long value) { XrCompositionLayerImageLayoutFB.nflags(address(), value); return this; } + + /** @return the value of the {@link XrCompositionLayerImageLayoutFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerImageLayoutFB.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerImageLayoutFB#next} field. */ + @NativeType("void *") + public long next() { return XrCompositionLayerImageLayoutFB.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerImageLayoutFB#flags} field. */ + @NativeType("XrCompositionLayerImageLayoutFlagsFB") + public long flags() { return XrCompositionLayerImageLayoutFB.nflags(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerImageLayoutFB#type} field. */ + public XrCompositionLayerImageLayoutFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerImageLayoutFB.ntype(address(), value); return this; } + /** Sets the {@link FBCompositionLayerImageLayout#XR_TYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FB TYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FB} value to the {@link XrCompositionLayerImageLayoutFB#type} field. */ + public XrCompositionLayerImageLayoutFB.Buffer type$Default() { return type(FBCompositionLayerImageLayout.XR_TYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FB); } + /** Sets the specified value to the {@link XrCompositionLayerImageLayoutFB#next} field. */ + public XrCompositionLayerImageLayoutFB.Buffer next(@NativeType("void *") long value) { XrCompositionLayerImageLayoutFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerImageLayoutFB#flags} field. */ + public XrCompositionLayerImageLayoutFB.Buffer flags(@NativeType("XrCompositionLayerImageLayoutFlagsFB") long value) { XrCompositionLayerImageLayoutFB.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerPassthroughFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerPassthroughFB.java index 0b83d0b4c5..ac568f620f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerPassthroughFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerPassthroughFB.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.*; + /** * A composition layer for passthrough. * @@ -56,8 +56,8 @@ * XrSpace space; * XrPassthroughLayerFB layerHandle; * } - */ -public class XrCompositionLayerPassthroughFB extends Struct implements NativeResource { + */ +public class XrCompositionLayerPassthroughFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -67,38 +67,29 @@ public class XrCompositionLayerPassthroughFB extends Struct implements NativeResource { @@ -327,9 +318,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 XrCompositionLayerPassthroughFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrCompositionLayerPassthroughFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -354,35 +345,35 @@ protected Buffer self() { protected XrCompositionLayerPassthroughFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerPassthroughFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerPassthroughFB.nnext(address()); } - /** @return the value of the {@code flags} field. */ - @NativeType("XrCompositionLayerFlags") - public long flags() { return XrCompositionLayerPassthroughFB.nflags(address()); } - /** @return the value of the {@code space} field. */ - @NativeType("XrSpace") - public long space() { return XrCompositionLayerPassthroughFB.nspace(address()); } - /** @return the value of the {@code layerHandle} field. */ - @NativeType("XrPassthroughLayerFB") - public long layerHandle() { return XrCompositionLayerPassthroughFB.nlayerHandle(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrCompositionLayerPassthroughFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerPassthroughFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_FB TYPE_COMPOSITION_LAYER_PASSTHROUGH_FB} value to the {@code type} field. */ - public XrCompositionLayerPassthroughFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrCompositionLayerPassthroughFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerPassthroughFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@code flags} field. */ - public XrCompositionLayerPassthroughFB.Buffer flags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerPassthroughFB.nflags(address(), value); return this; } - /** Sets the specified value to the {@code space} field. */ - public XrCompositionLayerPassthroughFB.Buffer space(XrSpace value) { XrCompositionLayerPassthroughFB.nspace(address(), value); return this; } - /** Sets the specified value to the {@code layerHandle} field. */ - public XrCompositionLayerPassthroughFB.Buffer layerHandle(XrPassthroughLayerFB value) { XrCompositionLayerPassthroughFB.nlayerHandle(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerPassthroughFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerPassthroughFB.nnext(address()); } + /** @return the value of the {@code flags} field. */ + @NativeType("XrCompositionLayerFlags") + public long flags() { return XrCompositionLayerPassthroughFB.nflags(address()); } + /** @return the value of the {@code space} field. */ + @NativeType("XrSpace") + public long space() { return XrCompositionLayerPassthroughFB.nspace(address()); } + /** @return the value of the {@code layerHandle} field. */ + @NativeType("XrPassthroughLayerFB") + public long layerHandle() { return XrCompositionLayerPassthroughFB.nlayerHandle(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrCompositionLayerPassthroughFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerPassthroughFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_FB TYPE_COMPOSITION_LAYER_PASSTHROUGH_FB} value to the {@code type} field. */ + public XrCompositionLayerPassthroughFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrCompositionLayerPassthroughFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerPassthroughFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@code flags} field. */ + public XrCompositionLayerPassthroughFB.Buffer flags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerPassthroughFB.nflags(address(), value); return this; } + /** Sets the specified value to the {@code space} field. */ + public XrCompositionLayerPassthroughFB.Buffer space(XrSpace value) { XrCompositionLayerPassthroughFB.nspace(address(), value); return this; } + /** Sets the specified value to the {@code layerHandle} field. */ + public XrCompositionLayerPassthroughFB.Buffer layerHandle(XrPassthroughLayerFB value) { XrCompositionLayerPassthroughFB.nlayerHandle(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerPassthroughHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerPassthroughHTC.java index 82ae11b867..ca4f30490a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerPassthroughHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerPassthroughHTC.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.*; + /** * A composition layer for passthrough. * @@ -54,8 +54,8 @@ * XrPassthroughHTC {@link #passthrough}; * {@link XrPassthroughColorHTC XrPassthroughColorHTC} {@link #color}; * } - */ -public class XrCompositionLayerPassthroughHTC extends Struct implements NativeResource { + */ +public class XrCompositionLayerPassthroughHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -65,41 +65,32 @@ public class XrCompositionLayerPassthroughHTC extends Structmust be {@link XR10#XR_NULL_HANDLE NULL_HANDLE}. */ - @NativeType("XrSpace") - public long space() { return nspace(address()); } - /** the {@code XrPassthroughHTC} previously created by {@link HTCPassthrough#xrCreatePassthroughHTC CreatePassthroughHTC}. */ - @NativeType("XrPassthroughHTC") - public long passthrough() { return npassthrough(address()); } - /** the {@link XrPassthroughColorHTC} describing the color information with the alpha value of the passthrough layer. */ - public XrPassthroughColorHTC color() { return ncolor(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrCompositionLayerPassthroughHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link HTCPassthrough#XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC} value to the {@link #type} field. */ - public XrCompositionLayerPassthroughHTC type$Default() { return type(HTCPassthrough.XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC); } - /** Sets the specified value to the {@link #next} field. */ - public XrCompositionLayerPassthroughHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrPassthroughMeshTransformInfoHTC} value to the {@code next} chain. */ - public XrCompositionLayerPassthroughHTC next(XrPassthroughMeshTransformInfoHTC value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #layerFlags} field. */ - public XrCompositionLayerPassthroughHTC layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link #space} field. */ - public XrCompositionLayerPassthroughHTC space(XrSpace value) { nspace(address(), value); return this; } - /** Sets the specified value to the {@link #passthrough} field. */ - public XrCompositionLayerPassthroughHTC passthrough(XrPassthroughHTC value) { npassthrough(address(), value); return this; } - /** Copies the specified {@link XrPassthroughColorHTC} to the {@link #color} field. */ - public XrCompositionLayerPassthroughHTC color(XrPassthroughColorHTC value) { ncolor(address(), value); return this; } - /** Passes the {@link #color} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerPassthroughHTC color(java.util.function.Consumer consumer) { consumer.accept(color()); 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, such as {@link XrPassthroughMeshTransformInfoHTC}. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a bitmask of {@code XrCompositionLayerFlagBits} describing flags to apply to the layer. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return nlayerFlags(address()); } + /** the {@code XrSpace} that specifies the layer’s space - must be {@link XR10#XR_NULL_HANDLE NULL_HANDLE}. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the {@code XrPassthroughHTC} previously created by {@link HTCPassthrough#xrCreatePassthroughHTC CreatePassthroughHTC}. */ + @NativeType("XrPassthroughHTC") + public long passthrough() { return npassthrough(address()); } + /** the {@link XrPassthroughColorHTC} describing the color information with the alpha value of the passthrough layer. */ + public XrPassthroughColorHTC color() { return ncolor(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrCompositionLayerPassthroughHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link HTCPassthrough#XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC} value to the {@link #type} field. */ + public XrCompositionLayerPassthroughHTC type$Default() { return type(HTCPassthrough.XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC); } + /** Sets the specified value to the {@link #next} field. */ + public XrCompositionLayerPassthroughHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrPassthroughMeshTransformInfoHTC} value to the {@code next} chain. */ + public XrCompositionLayerPassthroughHTC next(XrPassthroughMeshTransformInfoHTC value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #layerFlags} field. */ + public XrCompositionLayerPassthroughHTC layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrCompositionLayerPassthroughHTC space(XrSpace value) { nspace(address(), value); return this; } + /** Sets the specified value to the {@link #passthrough} field. */ + public XrCompositionLayerPassthroughHTC passthrough(XrPassthroughHTC value) { npassthrough(address(), value); return this; } + /** Copies the specified {@link XrPassthroughColorHTC} to the {@link #color} field. */ + public XrCompositionLayerPassthroughHTC color(XrPassthroughColorHTC value) { ncolor(address(), value); return this; } + /** Passes the {@link #color} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerPassthroughHTC color(java.util.function.Consumer consumer) { consumer.accept(color()); return this; } /** Initializes this struct with the specified values. */ public XrCompositionLayerPassthroughHTC set( - int type, - long next, - long layerFlags, - XrSpace space, - XrPassthroughHTC passthrough, + int type, + long next, + long layerFlags, + XrSpace space, + XrPassthroughHTC passthrough, XrPassthroughColorHTC color - ) { - type(type); - next(next); - layerFlags(layerFlags); - space(space); - passthrough(passthrough); - color(color); + ) { + type(type); + next(next); + layerFlags(layerFlags); + space(space); + passthrough(passthrough); + color(color); return this; } @@ -187,34 +178,34 @@ public XrCompositionLayerPassthroughHTC set(XrCompositionLayerPassthroughHTC src /** Returns a new {@code XrCompositionLayerPassthroughHTC} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrCompositionLayerPassthroughHTC malloc() { - return new XrCompositionLayerPassthroughHTC(nmemAllocChecked(SIZEOF), null); + return wrap(XrCompositionLayerPassthroughHTC.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrCompositionLayerPassthroughHTC} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrCompositionLayerPassthroughHTC calloc() { - return new XrCompositionLayerPassthroughHTC(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrCompositionLayerPassthroughHTC.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrCompositionLayerPassthroughHTC} instance allocated with {@link BufferUtils}. */ public static XrCompositionLayerPassthroughHTC create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrCompositionLayerPassthroughHTC(memAddress(container), container); + return wrap(XrCompositionLayerPassthroughHTC.class, memAddress(container), container); } /** Returns a new {@code XrCompositionLayerPassthroughHTC} instance for the specified memory address. */ public static XrCompositionLayerPassthroughHTC create(long address) { - return new XrCompositionLayerPassthroughHTC(address, null); + return wrap(XrCompositionLayerPassthroughHTC.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrCompositionLayerPassthroughHTC createSafe(long address) { - return address == NULL ? null : new XrCompositionLayerPassthroughHTC(address, null); + return address == NULL ? null : wrap(XrCompositionLayerPassthroughHTC.class, address); } /** Downcasts the specified {@code XrCompositionLayerBaseHeader} instance to {@code XrCompositionLayerPassthroughHTC}. */ public static XrCompositionLayerPassthroughHTC create(XrCompositionLayerBaseHeader value) { - return new XrCompositionLayerPassthroughHTC(value.address(), __getContainer(value)); + return wrap(XrCompositionLayerPassthroughHTC.class, value); } /** @@ -223,7 +214,7 @@ public static XrCompositionLayerPassthroughHTC create(XrCompositionLayerBaseHead * @param capacity the buffer capacity */ public static XrCompositionLayerPassthroughHTC.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -232,7 +223,7 @@ public static XrCompositionLayerPassthroughHTC.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrCompositionLayerPassthroughHTC.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -242,7 +233,7 @@ public static XrCompositionLayerPassthroughHTC.Buffer calloc(int capacity) { */ public static XrCompositionLayerPassthroughHTC.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); } /** @@ -252,18 +243,18 @@ public static XrCompositionLayerPassthroughHTC.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrCompositionLayerPassthroughHTC.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 XrCompositionLayerPassthroughHTC.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 XrCompositionLayerPassthroughHTC.Buffer}. */ public static XrCompositionLayerPassthroughHTC.Buffer create(XrCompositionLayerBaseHeader.Buffer value) { - return new XrCompositionLayerPassthroughHTC.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** @@ -272,7 +263,7 @@ public static XrCompositionLayerPassthroughHTC.Buffer create(XrCompositionLayerB * @param stack the stack from which to allocate */ public static XrCompositionLayerPassthroughHTC malloc(MemoryStack stack) { - return new XrCompositionLayerPassthroughHTC(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrCompositionLayerPassthroughHTC.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -281,7 +272,7 @@ public static XrCompositionLayerPassthroughHTC malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrCompositionLayerPassthroughHTC calloc(MemoryStack stack) { - return new XrCompositionLayerPassthroughHTC(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrCompositionLayerPassthroughHTC.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -291,7 +282,7 @@ public static XrCompositionLayerPassthroughHTC calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrCompositionLayerPassthroughHTC.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); } /** @@ -301,36 +292,36 @@ public static XrCompositionLayerPassthroughHTC.Buffer malloc(int capacity, Memor * @param capacity the buffer capacity */ public static XrCompositionLayerPassthroughHTC.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 + XrCompositionLayerPassthroughHTC.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerPassthroughHTC.NEXT); } - /** Unsafe version of {@link #layerFlags}. */ - public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerPassthroughHTC.LAYERFLAGS); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerPassthroughHTC.SPACE); } - /** Unsafe version of {@link #passthrough}. */ - public static long npassthrough(long struct) { return memGetAddress(struct + XrCompositionLayerPassthroughHTC.PASSTHROUGH); } - /** Unsafe version of {@link #color}. */ - public static XrPassthroughColorHTC ncolor(long struct) { return XrPassthroughColorHTC.create(struct + XrCompositionLayerPassthroughHTC.COLOR); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerPassthroughHTC.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerPassthroughHTC.NEXT, value); } - /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ - public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerPassthroughHTC.LAYERFLAGS, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerPassthroughHTC.SPACE, value.address()); } - /** Unsafe version of {@link #passthrough(XrPassthroughHTC) passthrough}. */ - public static void npassthrough(long struct, XrPassthroughHTC value) { memPutAddress(struct + XrCompositionLayerPassthroughHTC.PASSTHROUGH, value.address()); } - /** Unsafe version of {@link #color(XrPassthroughColorHTC) color}. */ - public static void ncolor(long struct, XrPassthroughColorHTC value) { memCopy(value.address(), struct + XrCompositionLayerPassthroughHTC.COLOR, XrPassthroughColorHTC.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerPassthroughHTC.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerPassthroughHTC.NEXT); } + /** Unsafe version of {@link #layerFlags}. */ + public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerPassthroughHTC.LAYERFLAGS); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerPassthroughHTC.SPACE); } + /** Unsafe version of {@link #passthrough}. */ + public static long npassthrough(long struct) { return memGetAddress(struct + XrCompositionLayerPassthroughHTC.PASSTHROUGH); } + /** Unsafe version of {@link #color}. */ + public static XrPassthroughColorHTC ncolor(long struct) { return XrPassthroughColorHTC.create(struct + XrCompositionLayerPassthroughHTC.COLOR); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerPassthroughHTC.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerPassthroughHTC.NEXT, value); } + /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ + public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerPassthroughHTC.LAYERFLAGS, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerPassthroughHTC.SPACE, value.address()); } + /** Unsafe version of {@link #passthrough(XrPassthroughHTC) passthrough}. */ + public static void npassthrough(long struct, XrPassthroughHTC value) { memPutAddress(struct + XrCompositionLayerPassthroughHTC.PASSTHROUGH, value.address()); } + /** Unsafe version of {@link #color(XrPassthroughColorHTC) color}. */ + public static void ncolor(long struct, XrPassthroughColorHTC value) { memCopy(value.address(), struct + XrCompositionLayerPassthroughHTC.COLOR, XrPassthroughColorHTC.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -340,9 +331,9 @@ public static XrCompositionLayerPassthroughHTC.Buffer calloc(int capacity, Memor public static void validate(long struct) { check(memGetAddress(struct + XrCompositionLayerPassthroughHTC.SPACE)); check(memGetAddress(struct + XrCompositionLayerPassthroughHTC.PASSTHROUGH)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrCompositionLayerPassthroughHTC} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -352,9 +343,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 XrCompositionLayerPassthroughHTC#SIZEOF}, and its mark will be undefined.

    + * by {@link XrCompositionLayerPassthroughHTC#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -379,43 +370,43 @@ protected Buffer self() { protected XrCompositionLayerPassthroughHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerPassthroughHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerPassthroughHTC.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerPassthroughHTC#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerPassthroughHTC.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerPassthroughHTC#layerFlags} field. */ - @NativeType("XrCompositionLayerFlags") - public long layerFlags() { return XrCompositionLayerPassthroughHTC.nlayerFlags(address()); } - /** @return the value of the {@link XrCompositionLayerPassthroughHTC#space} field. */ - @NativeType("XrSpace") - public long space() { return XrCompositionLayerPassthroughHTC.nspace(address()); } - /** @return the value of the {@link XrCompositionLayerPassthroughHTC#passthrough} field. */ - @NativeType("XrPassthroughHTC") - public long passthrough() { return XrCompositionLayerPassthroughHTC.npassthrough(address()); } - /** @return a {@link XrPassthroughColorHTC} view of the {@link XrCompositionLayerPassthroughHTC#color} field. */ - public XrPassthroughColorHTC color() { return XrCompositionLayerPassthroughHTC.ncolor(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#type} field. */ - public XrCompositionLayerPassthroughHTC.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerPassthroughHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCPassthrough#XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC} value to the {@link XrCompositionLayerPassthroughHTC#type} field. */ - public XrCompositionLayerPassthroughHTC.Buffer type$Default() { return type(HTCPassthrough.XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC); } - /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#next} field. */ - public XrCompositionLayerPassthroughHTC.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerPassthroughHTC.nnext(address(), value); return this; } - /** Prepends the specified {@link XrPassthroughMeshTransformInfoHTC} value to the {@code next} chain. */ - public XrCompositionLayerPassthroughHTC.Buffer next(XrPassthroughMeshTransformInfoHTC value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#layerFlags} field. */ - public XrCompositionLayerPassthroughHTC.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerPassthroughHTC.nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#space} field. */ - public XrCompositionLayerPassthroughHTC.Buffer space(XrSpace value) { XrCompositionLayerPassthroughHTC.nspace(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#passthrough} field. */ - public XrCompositionLayerPassthroughHTC.Buffer passthrough(XrPassthroughHTC value) { XrCompositionLayerPassthroughHTC.npassthrough(address(), value); return this; } - /** Copies the specified {@link XrPassthroughColorHTC} to the {@link XrCompositionLayerPassthroughHTC#color} field. */ - public XrCompositionLayerPassthroughHTC.Buffer color(XrPassthroughColorHTC value) { XrCompositionLayerPassthroughHTC.ncolor(address(), value); return this; } - /** Passes the {@link XrCompositionLayerPassthroughHTC#color} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerPassthroughHTC.Buffer color(java.util.function.Consumer consumer) { consumer.accept(color()); return this; } + + /** @return the value of the {@link XrCompositionLayerPassthroughHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerPassthroughHTC.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerPassthroughHTC#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerPassthroughHTC.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerPassthroughHTC#layerFlags} field. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return XrCompositionLayerPassthroughHTC.nlayerFlags(address()); } + /** @return the value of the {@link XrCompositionLayerPassthroughHTC#space} field. */ + @NativeType("XrSpace") + public long space() { return XrCompositionLayerPassthroughHTC.nspace(address()); } + /** @return the value of the {@link XrCompositionLayerPassthroughHTC#passthrough} field. */ + @NativeType("XrPassthroughHTC") + public long passthrough() { return XrCompositionLayerPassthroughHTC.npassthrough(address()); } + /** @return a {@link XrPassthroughColorHTC} view of the {@link XrCompositionLayerPassthroughHTC#color} field. */ + public XrPassthroughColorHTC color() { return XrCompositionLayerPassthroughHTC.ncolor(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#type} field. */ + public XrCompositionLayerPassthroughHTC.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerPassthroughHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCPassthrough#XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC} value to the {@link XrCompositionLayerPassthroughHTC#type} field. */ + public XrCompositionLayerPassthroughHTC.Buffer type$Default() { return type(HTCPassthrough.XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC); } + /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#next} field. */ + public XrCompositionLayerPassthroughHTC.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerPassthroughHTC.nnext(address(), value); return this; } + /** Prepends the specified {@link XrPassthroughMeshTransformInfoHTC} value to the {@code next} chain. */ + public XrCompositionLayerPassthroughHTC.Buffer next(XrPassthroughMeshTransformInfoHTC value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#layerFlags} field. */ + public XrCompositionLayerPassthroughHTC.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerPassthroughHTC.nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#space} field. */ + public XrCompositionLayerPassthroughHTC.Buffer space(XrSpace value) { XrCompositionLayerPassthroughHTC.nspace(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#passthrough} field. */ + public XrCompositionLayerPassthroughHTC.Buffer passthrough(XrPassthroughHTC value) { XrCompositionLayerPassthroughHTC.npassthrough(address(), value); return this; } + /** Copies the specified {@link XrPassthroughColorHTC} to the {@link XrCompositionLayerPassthroughHTC#color} field. */ + public XrCompositionLayerPassthroughHTC.Buffer color(XrPassthroughColorHTC value) { XrCompositionLayerPassthroughHTC.ncolor(address(), value); return this; } + /** Passes the {@link XrCompositionLayerPassthroughHTC#color} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerPassthroughHTC.Buffer color(java.util.function.Consumer consumer) { consumer.accept(color()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerProjection.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerProjection.java index d01ebb9bae..1a112caa65 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerProjection.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerProjection.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 for projection. * @@ -52,8 +52,8 @@ * uint32_t {@link #viewCount}; * {@link XrCompositionLayerProjectionView XrCompositionLayerProjectionView} const * {@link #views}; * } - */ -public class XrCompositionLayerProjection extends Struct implements NativeResource { + */ +public class XrCompositionLayerProjection extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -63,41 +63,32 @@ public class XrCompositionLayerProjection extends Structmust be equal to the number of view poses returned by {@link XR10#xrLocateViews LocateViews}. */ - @NativeType("uint32_t") - public int viewCount() { return nviewCount(address()); } - /** the array of type {@link XrCompositionLayerProjectionView} containing each projection layer view. */ - @NativeType("XrCompositionLayerProjectionView const *") - public XrCompositionLayerProjectionView.Buffer views() { return nviews(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrCompositionLayerProjection type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_PROJECTION TYPE_COMPOSITION_LAYER_PROJECTION} value to the {@link #type} field. */ - public XrCompositionLayerProjection type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_PROJECTION); } - /** Sets the specified value to the {@link #next} field. */ - public XrCompositionLayerProjection next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrCompositionLayerDepthTestVARJO} value to the {@code next} chain. */ - public XrCompositionLayerProjection next(XrCompositionLayerDepthTestVARJO value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrCompositionLayerReprojectionInfoMSFT} value to the {@code next} chain. */ - public XrCompositionLayerProjection next(XrCompositionLayerReprojectionInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrCompositionLayerReprojectionPlaneOverrideMSFT} value to the {@code next} chain. */ - public XrCompositionLayerProjection next(XrCompositionLayerReprojectionPlaneOverrideMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #layerFlags} field. */ - public XrCompositionLayerProjection layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link #space} field. */ - public XrCompositionLayerProjection space(XrSpace value) { nspace(address(), value); return this; } - /** Sets the address of the specified {@link XrCompositionLayerProjectionView.Buffer} to the {@link #views} field. */ - public XrCompositionLayerProjection views(@NativeType("XrCompositionLayerProjectionView const *") XrCompositionLayerProjectionView.Buffer value) { nviews(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()); } + /** a bitmask of {@code XrCompositionLayerFlagBits} describing flags to apply to the layer. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return nlayerFlags(address()); } + /** the {@code XrSpace} in which the {@code pose} of each {@link XrCompositionLayerProjectionView} is evaluated over time by the compositor. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the count of views in the {@code views} array. This must be equal to the number of view poses returned by {@link XR10#xrLocateViews LocateViews}. */ + @NativeType("uint32_t") + public int viewCount() { return nviewCount(address()); } + /** the array of type {@link XrCompositionLayerProjectionView} containing each projection layer view. */ + @NativeType("XrCompositionLayerProjectionView const *") + public XrCompositionLayerProjectionView.Buffer views() { return nviews(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrCompositionLayerProjection type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_PROJECTION TYPE_COMPOSITION_LAYER_PROJECTION} value to the {@link #type} field. */ + public XrCompositionLayerProjection type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_PROJECTION); } + /** Sets the specified value to the {@link #next} field. */ + public XrCompositionLayerProjection next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrCompositionLayerDepthTestVARJO} value to the {@code next} chain. */ + public XrCompositionLayerProjection next(XrCompositionLayerDepthTestVARJO value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrCompositionLayerReprojectionInfoMSFT} value to the {@code next} chain. */ + public XrCompositionLayerProjection next(XrCompositionLayerReprojectionInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrCompositionLayerReprojectionPlaneOverrideMSFT} value to the {@code next} chain. */ + public XrCompositionLayerProjection next(XrCompositionLayerReprojectionPlaneOverrideMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #layerFlags} field. */ + public XrCompositionLayerProjection layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrCompositionLayerProjection space(XrSpace value) { nspace(address(), value); return this; } + /** Sets the address of the specified {@link XrCompositionLayerProjectionView.Buffer} to the {@link #views} field. */ + public XrCompositionLayerProjection views(@NativeType("XrCompositionLayerProjectionView const *") XrCompositionLayerProjectionView.Buffer value) { nviews(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrCompositionLayerProjection set( - int type, - long next, - long layerFlags, - XrSpace space, + int type, + long next, + long layerFlags, + XrSpace space, XrCompositionLayerProjectionView.Buffer views - ) { - type(type); - next(next); - layerFlags(layerFlags); - space(space); - views(views); + ) { + type(type); + next(next); + layerFlags(layerFlags); + space(space); + views(views); return this; } @@ -184,34 +175,34 @@ public XrCompositionLayerProjection set(XrCompositionLayerProjection src) { /** Returns a new {@code XrCompositionLayerProjection} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrCompositionLayerProjection malloc() { - return new XrCompositionLayerProjection(nmemAllocChecked(SIZEOF), null); + return wrap(XrCompositionLayerProjection.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrCompositionLayerProjection} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrCompositionLayerProjection calloc() { - return new XrCompositionLayerProjection(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrCompositionLayerProjection.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrCompositionLayerProjection} instance allocated with {@link BufferUtils}. */ public static XrCompositionLayerProjection create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrCompositionLayerProjection(memAddress(container), container); + return wrap(XrCompositionLayerProjection.class, memAddress(container), container); } /** Returns a new {@code XrCompositionLayerProjection} instance for the specified memory address. */ public static XrCompositionLayerProjection create(long address) { - return new XrCompositionLayerProjection(address, null); + return wrap(XrCompositionLayerProjection.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrCompositionLayerProjection createSafe(long address) { - return address == NULL ? null : new XrCompositionLayerProjection(address, null); + return address == NULL ? null : wrap(XrCompositionLayerProjection.class, address); } /** Downcasts the specified {@code XrCompositionLayerBaseHeader} instance to {@code XrCompositionLayerProjection}. */ public static XrCompositionLayerProjection create(XrCompositionLayerBaseHeader value) { - return new XrCompositionLayerProjection(value.address(), __getContainer(value)); + return wrap(XrCompositionLayerProjection.class, value); } /** @@ -220,7 +211,7 @@ public static XrCompositionLayerProjection create(XrCompositionLayerBaseHeader v * @param capacity the buffer capacity */ public static XrCompositionLayerProjection.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -229,7 +220,7 @@ public static XrCompositionLayerProjection.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrCompositionLayerProjection.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -239,7 +230,7 @@ public static XrCompositionLayerProjection.Buffer calloc(int capacity) { */ public static XrCompositionLayerProjection.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); } /** @@ -249,18 +240,18 @@ public static XrCompositionLayerProjection.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrCompositionLayerProjection.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 XrCompositionLayerProjection.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 XrCompositionLayerProjection.Buffer}. */ public static XrCompositionLayerProjection.Buffer create(XrCompositionLayerBaseHeader.Buffer value) { - return new XrCompositionLayerProjection.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** @@ -269,7 +260,7 @@ public static XrCompositionLayerProjection.Buffer create(XrCompositionLayerBaseH * @param stack the stack from which to allocate */ public static XrCompositionLayerProjection malloc(MemoryStack stack) { - return new XrCompositionLayerProjection(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrCompositionLayerProjection.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -278,7 +269,7 @@ public static XrCompositionLayerProjection malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrCompositionLayerProjection calloc(MemoryStack stack) { - return new XrCompositionLayerProjection(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrCompositionLayerProjection.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -288,7 +279,7 @@ public static XrCompositionLayerProjection calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrCompositionLayerProjection.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); } /** @@ -298,36 +289,36 @@ public static XrCompositionLayerProjection.Buffer malloc(int capacity, MemorySta * @param capacity the buffer capacity */ public static XrCompositionLayerProjection.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 + XrCompositionLayerProjection.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerProjection.NEXT); } - /** Unsafe version of {@link #layerFlags}. */ - public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerProjection.LAYERFLAGS); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerProjection.SPACE); } - /** Unsafe version of {@link #viewCount}. */ - public static int nviewCount(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerProjection.VIEWCOUNT); } - /** Unsafe version of {@link #views}. */ - public static XrCompositionLayerProjectionView.Buffer nviews(long struct) { return XrCompositionLayerProjectionView.create(memGetAddress(struct + XrCompositionLayerProjection.VIEWS), nviewCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerProjection.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerProjection.NEXT, value); } - /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ - public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerProjection.LAYERFLAGS, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerProjection.SPACE, value.address()); } - /** Sets the specified value to the {@code viewCount} field of the specified {@code struct}. */ - public static void nviewCount(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerProjection.VIEWCOUNT, value); } - /** Unsafe version of {@link #views(XrCompositionLayerProjectionView.Buffer) views}. */ - public static void nviews(long struct, XrCompositionLayerProjectionView.Buffer value) { memPutAddress(struct + XrCompositionLayerProjection.VIEWS, value.address()); nviewCount(struct, value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerProjection.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerProjection.NEXT); } + /** Unsafe version of {@link #layerFlags}. */ + public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerProjection.LAYERFLAGS); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerProjection.SPACE); } + /** Unsafe version of {@link #viewCount}. */ + public static int nviewCount(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerProjection.VIEWCOUNT); } + /** Unsafe version of {@link #views}. */ + public static XrCompositionLayerProjectionView.Buffer nviews(long struct) { return XrCompositionLayerProjectionView.create(memGetAddress(struct + XrCompositionLayerProjection.VIEWS), nviewCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerProjection.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerProjection.NEXT, value); } + /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ + public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerProjection.LAYERFLAGS, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerProjection.SPACE, value.address()); } + /** Sets the specified value to the {@code viewCount} field of the specified {@code struct}. */ + public static void nviewCount(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerProjection.VIEWCOUNT, value); } + /** Unsafe version of {@link #views(XrCompositionLayerProjectionView.Buffer) views}. */ + public static void nviews(long struct, XrCompositionLayerProjectionView.Buffer value) { memPutAddress(struct + XrCompositionLayerProjection.VIEWS, value.address()); nviewCount(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -340,9 +331,9 @@ public static void validate(long struct) { long views = memGetAddress(struct + XrCompositionLayerProjection.VIEWS); check(views); validate(views, viewCount, XrCompositionLayerProjectionView.SIZEOF, XrCompositionLayerProjectionView::validate); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrCompositionLayerProjection} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -352,9 +343,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 XrCompositionLayerProjection#SIZEOF}, and its mark will be undefined.

    + * by {@link XrCompositionLayerProjection#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -379,44 +370,44 @@ protected Buffer self() { protected XrCompositionLayerProjection getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerProjection#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerProjection.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerProjection#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerProjection.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerProjection#layerFlags} field. */ - @NativeType("XrCompositionLayerFlags") - public long layerFlags() { return XrCompositionLayerProjection.nlayerFlags(address()); } - /** @return the value of the {@link XrCompositionLayerProjection#space} field. */ - @NativeType("XrSpace") - public long space() { return XrCompositionLayerProjection.nspace(address()); } - /** @return the value of the {@link XrCompositionLayerProjection#viewCount} field. */ - @NativeType("uint32_t") - public int viewCount() { return XrCompositionLayerProjection.nviewCount(address()); } - /** @return a {@link XrCompositionLayerProjectionView.Buffer} view of the struct array pointed to by the {@link XrCompositionLayerProjection#views} field. */ - @NativeType("XrCompositionLayerProjectionView const *") - public XrCompositionLayerProjectionView.Buffer views() { return XrCompositionLayerProjection.nviews(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerProjection#type} field. */ - public XrCompositionLayerProjection.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerProjection.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_PROJECTION TYPE_COMPOSITION_LAYER_PROJECTION} value to the {@link XrCompositionLayerProjection#type} field. */ - public XrCompositionLayerProjection.Buffer type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_PROJECTION); } - /** Sets the specified value to the {@link XrCompositionLayerProjection#next} field. */ - public XrCompositionLayerProjection.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerProjection.nnext(address(), value); return this; } - /** Prepends the specified {@link XrCompositionLayerDepthTestVARJO} value to the {@code next} chain. */ - public XrCompositionLayerProjection.Buffer next(XrCompositionLayerDepthTestVARJO value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrCompositionLayerReprojectionInfoMSFT} value to the {@code next} chain. */ - public XrCompositionLayerProjection.Buffer next(XrCompositionLayerReprojectionInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrCompositionLayerReprojectionPlaneOverrideMSFT} value to the {@code next} chain. */ - public XrCompositionLayerProjection.Buffer next(XrCompositionLayerReprojectionPlaneOverrideMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrCompositionLayerProjection#layerFlags} field. */ - public XrCompositionLayerProjection.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerProjection.nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerProjection#space} field. */ - public XrCompositionLayerProjection.Buffer space(XrSpace value) { XrCompositionLayerProjection.nspace(address(), value); return this; } - /** Sets the address of the specified {@link XrCompositionLayerProjectionView.Buffer} to the {@link XrCompositionLayerProjection#views} field. */ - public XrCompositionLayerProjection.Buffer views(@NativeType("XrCompositionLayerProjectionView const *") XrCompositionLayerProjectionView.Buffer value) { XrCompositionLayerProjection.nviews(address(), value); return this; } + + /** @return the value of the {@link XrCompositionLayerProjection#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerProjection.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerProjection#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerProjection.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerProjection#layerFlags} field. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return XrCompositionLayerProjection.nlayerFlags(address()); } + /** @return the value of the {@link XrCompositionLayerProjection#space} field. */ + @NativeType("XrSpace") + public long space() { return XrCompositionLayerProjection.nspace(address()); } + /** @return the value of the {@link XrCompositionLayerProjection#viewCount} field. */ + @NativeType("uint32_t") + public int viewCount() { return XrCompositionLayerProjection.nviewCount(address()); } + /** @return a {@link XrCompositionLayerProjectionView.Buffer} view of the struct array pointed to by the {@link XrCompositionLayerProjection#views} field. */ + @NativeType("XrCompositionLayerProjectionView const *") + public XrCompositionLayerProjectionView.Buffer views() { return XrCompositionLayerProjection.nviews(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerProjection#type} field. */ + public XrCompositionLayerProjection.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerProjection.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_PROJECTION TYPE_COMPOSITION_LAYER_PROJECTION} value to the {@link XrCompositionLayerProjection#type} field. */ + public XrCompositionLayerProjection.Buffer type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_PROJECTION); } + /** Sets the specified value to the {@link XrCompositionLayerProjection#next} field. */ + public XrCompositionLayerProjection.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerProjection.nnext(address(), value); return this; } + /** Prepends the specified {@link XrCompositionLayerDepthTestVARJO} value to the {@code next} chain. */ + public XrCompositionLayerProjection.Buffer next(XrCompositionLayerDepthTestVARJO value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrCompositionLayerReprojectionInfoMSFT} value to the {@code next} chain. */ + public XrCompositionLayerProjection.Buffer next(XrCompositionLayerReprojectionInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrCompositionLayerReprojectionPlaneOverrideMSFT} value to the {@code next} chain. */ + public XrCompositionLayerProjection.Buffer next(XrCompositionLayerReprojectionPlaneOverrideMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrCompositionLayerProjection#layerFlags} field. */ + public XrCompositionLayerProjection.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerProjection.nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerProjection#space} field. */ + public XrCompositionLayerProjection.Buffer space(XrSpace value) { XrCompositionLayerProjection.nspace(address(), value); return this; } + /** Sets the address of the specified {@link XrCompositionLayerProjectionView.Buffer} to the {@link XrCompositionLayerProjection#views} field. */ + public XrCompositionLayerProjection.Buffer views(@NativeType("XrCompositionLayerProjectionView const *") XrCompositionLayerProjectionView.Buffer value) { XrCompositionLayerProjection.nviews(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerProjectionView.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerProjectionView.java index 1fcc5b194e..2b6812a5ed 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerProjectionView.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerProjectionView.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.*; + /** * Projection layer element. * @@ -44,8 +44,8 @@ * {@link XrFovf XrFovf} {@link #fov}; * {@link XrSwapchainSubImage XrSwapchainSubImage} {@link #subImage}; * } - */ -public class XrCompositionLayerProjectionView extends Struct implements NativeResource { + */ +public class XrCompositionLayerProjectionView extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,38 +55,29 @@ public class XrCompositionLayerProjectionView extends Structmust have been created with a {@code faceCount} of 1. */ - public XrSwapchainSubImage subImage() { return nsubImage(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrCompositionLayerProjectionView type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW TYPE_COMPOSITION_LAYER_PROJECTION_VIEW} value to the {@link #type} field. */ - public XrCompositionLayerProjectionView type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW); } - /** Sets the specified value to the {@link #next} field. */ - public XrCompositionLayerProjectionView next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrCompositionLayerDepthInfoKHR} value to the {@code next} chain. */ - public XrCompositionLayerProjectionView next(XrCompositionLayerDepthInfoKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrCompositionLayerSpaceWarpInfoFB} value to the {@code next} chain. */ - public XrCompositionLayerProjectionView next(XrCompositionLayerSpaceWarpInfoFB value) { return this.next(value.next(this.next()).address()); } - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrCompositionLayerProjectionView pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerProjectionView pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrFovf} to the {@link #fov} field. */ - public XrCompositionLayerProjectionView fov(XrFovf value) { nfov(address(), value); return this; } - /** Passes the {@link #fov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerProjectionView fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */ - public XrCompositionLayerProjectionView subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; } - /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerProjectionView subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); 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 {@link XrPosef} defining the location and orientation of this projection element in the {@code space} of the corresponding {@link XrCompositionLayerProjectionView}. */ + public XrPosef pose() { return npose(address()); } + /** the {@link XrFovf} for this projection element. */ + public XrFovf fov() { return nfov(address()); } + /** the image layer {@link XrSwapchainSubImage} to use. The swapchain must have been created with a {@code faceCount} of 1. */ + public XrSwapchainSubImage subImage() { return nsubImage(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrCompositionLayerProjectionView type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW TYPE_COMPOSITION_LAYER_PROJECTION_VIEW} value to the {@link #type} field. */ + public XrCompositionLayerProjectionView type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW); } + /** Sets the specified value to the {@link #next} field. */ + public XrCompositionLayerProjectionView next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrCompositionLayerDepthInfoKHR} value to the {@code next} chain. */ + public XrCompositionLayerProjectionView next(XrCompositionLayerDepthInfoKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrCompositionLayerSpaceWarpInfoFB} value to the {@code next} chain. */ + public XrCompositionLayerProjectionView next(XrCompositionLayerSpaceWarpInfoFB value) { return this.next(value.next(this.next()).address()); } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrCompositionLayerProjectionView pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerProjectionView pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrFovf} to the {@link #fov} field. */ + public XrCompositionLayerProjectionView fov(XrFovf value) { nfov(address(), value); return this; } + /** Passes the {@link #fov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerProjectionView fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */ + public XrCompositionLayerProjectionView subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; } + /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerProjectionView subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } /** Initializes this struct with the specified values. */ public XrCompositionLayerProjectionView set( - int type, - long next, - XrPosef pose, - XrFovf fov, + int type, + long next, + XrPosef pose, + XrFovf fov, XrSwapchainSubImage subImage - ) { - type(type); - next(next); - pose(pose); - fov(fov); - subImage(subImage); + ) { + type(type); + next(next); + pose(pose); + fov(fov); + subImage(subImage); return this; } @@ -171,29 +162,29 @@ public XrCompositionLayerProjectionView set(XrCompositionLayerProjectionView src /** Returns a new {@code XrCompositionLayerProjectionView} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrCompositionLayerProjectionView malloc() { - return new XrCompositionLayerProjectionView(nmemAllocChecked(SIZEOF), null); + return wrap(XrCompositionLayerProjectionView.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrCompositionLayerProjectionView} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrCompositionLayerProjectionView calloc() { - return new XrCompositionLayerProjectionView(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrCompositionLayerProjectionView.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrCompositionLayerProjectionView} instance allocated with {@link BufferUtils}. */ public static XrCompositionLayerProjectionView create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrCompositionLayerProjectionView(memAddress(container), container); + return wrap(XrCompositionLayerProjectionView.class, memAddress(container), container); } /** Returns a new {@code XrCompositionLayerProjectionView} instance for the specified memory address. */ public static XrCompositionLayerProjectionView create(long address) { - return new XrCompositionLayerProjectionView(address, null); + return wrap(XrCompositionLayerProjectionView.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrCompositionLayerProjectionView createSafe(long address) { - return address == NULL ? null : new XrCompositionLayerProjectionView(address, null); + return address == NULL ? null : wrap(XrCompositionLayerProjectionView.class, address); } /** @@ -202,7 +193,7 @@ public static XrCompositionLayerProjectionView createSafe(long address) { * @param capacity the buffer capacity */ public static XrCompositionLayerProjectionView.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -211,7 +202,7 @@ public static XrCompositionLayerProjectionView.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrCompositionLayerProjectionView.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -221,7 +212,7 @@ public static XrCompositionLayerProjectionView.Buffer calloc(int capacity) { */ public static XrCompositionLayerProjectionView.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); } /** @@ -231,13 +222,13 @@ public static XrCompositionLayerProjectionView.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrCompositionLayerProjectionView.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 XrCompositionLayerProjectionView.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -246,7 +237,7 @@ public static XrCompositionLayerProjectionView.Buffer createSafe(long address, i * @param stack the stack from which to allocate */ public static XrCompositionLayerProjectionView malloc(MemoryStack stack) { - return new XrCompositionLayerProjectionView(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrCompositionLayerProjectionView.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -255,7 +246,7 @@ public static XrCompositionLayerProjectionView malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrCompositionLayerProjectionView calloc(MemoryStack stack) { - return new XrCompositionLayerProjectionView(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrCompositionLayerProjectionView.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -265,7 +256,7 @@ public static XrCompositionLayerProjectionView calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrCompositionLayerProjectionView.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); } /** @@ -275,32 +266,32 @@ public static XrCompositionLayerProjectionView.Buffer malloc(int capacity, Memor * @param capacity the buffer capacity */ public static XrCompositionLayerProjectionView.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 + XrCompositionLayerProjectionView.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerProjectionView.NEXT); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerProjectionView.POSE); } - /** Unsafe version of {@link #fov}. */ - public static XrFovf nfov(long struct) { return XrFovf.create(struct + XrCompositionLayerProjectionView.FOV); } - /** Unsafe version of {@link #subImage}. */ - public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerProjectionView.SUBIMAGE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerProjectionView.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerProjectionView.NEXT, value); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerProjectionView.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #fov(XrFovf) fov}. */ - public static void nfov(long struct, XrFovf value) { memCopy(value.address(), struct + XrCompositionLayerProjectionView.FOV, XrFovf.SIZEOF); } - /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */ - public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerProjectionView.SUBIMAGE, XrSwapchainSubImage.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerProjectionView.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerProjectionView.NEXT); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerProjectionView.POSE); } + /** Unsafe version of {@link #fov}. */ + public static XrFovf nfov(long struct) { return XrFovf.create(struct + XrCompositionLayerProjectionView.FOV); } + /** Unsafe version of {@link #subImage}. */ + public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerProjectionView.SUBIMAGE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerProjectionView.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerProjectionView.NEXT, value); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerProjectionView.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #fov(XrFovf) fov}. */ + public static void nfov(long struct, XrFovf value) { memCopy(value.address(), struct + XrCompositionLayerProjectionView.FOV, XrFovf.SIZEOF); } + /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */ + public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerProjectionView.SUBIMAGE, XrSwapchainSubImage.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -309,9 +300,9 @@ public static XrCompositionLayerProjectionView.Buffer calloc(int capacity, Memor */ public static void validate(long struct) { XrSwapchainSubImage.validate(struct + XrCompositionLayerProjectionView.SUBIMAGE); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrCompositionLayerProjectionView} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -321,9 +312,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 XrCompositionLayerProjectionView#SIZEOF}, and its mark will be undefined.

    + * by {@link XrCompositionLayerProjectionView#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -348,42 +339,42 @@ protected Buffer self() { protected XrCompositionLayerProjectionView getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerProjectionView#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerProjectionView.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerProjectionView#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerProjectionView.nnext(address()); } - /** @return a {@link XrPosef} view of the {@link XrCompositionLayerProjectionView#pose} field. */ - public XrPosef pose() { return XrCompositionLayerProjectionView.npose(address()); } - /** @return a {@link XrFovf} view of the {@link XrCompositionLayerProjectionView#fov} field. */ - public XrFovf fov() { return XrCompositionLayerProjectionView.nfov(address()); } - /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerProjectionView#subImage} field. */ - public XrSwapchainSubImage subImage() { return XrCompositionLayerProjectionView.nsubImage(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerProjectionView#type} field. */ - public XrCompositionLayerProjectionView.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerProjectionView.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW TYPE_COMPOSITION_LAYER_PROJECTION_VIEW} value to the {@link XrCompositionLayerProjectionView#type} field. */ - public XrCompositionLayerProjectionView.Buffer type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW); } - /** Sets the specified value to the {@link XrCompositionLayerProjectionView#next} field. */ - public XrCompositionLayerProjectionView.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerProjectionView.nnext(address(), value); return this; } - /** Prepends the specified {@link XrCompositionLayerDepthInfoKHR} value to the {@code next} chain. */ - public XrCompositionLayerProjectionView.Buffer next(XrCompositionLayerDepthInfoKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrCompositionLayerSpaceWarpInfoFB} value to the {@code next} chain. */ - public XrCompositionLayerProjectionView.Buffer next(XrCompositionLayerSpaceWarpInfoFB value) { return this.next(value.next(this.next()).address()); } - /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerProjectionView#pose} field. */ - public XrCompositionLayerProjectionView.Buffer pose(XrPosef value) { XrCompositionLayerProjectionView.npose(address(), value); return this; } - /** Passes the {@link XrCompositionLayerProjectionView#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerProjectionView.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrFovf} to the {@link XrCompositionLayerProjectionView#fov} field. */ - public XrCompositionLayerProjectionView.Buffer fov(XrFovf value) { XrCompositionLayerProjectionView.nfov(address(), value); return this; } - /** Passes the {@link XrCompositionLayerProjectionView#fov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerProjectionView.Buffer fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerProjectionView#subImage} field. */ - public XrCompositionLayerProjectionView.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerProjectionView.nsubImage(address(), value); return this; } - /** Passes the {@link XrCompositionLayerProjectionView#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerProjectionView.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } + + /** @return the value of the {@link XrCompositionLayerProjectionView#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerProjectionView.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerProjectionView#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerProjectionView.nnext(address()); } + /** @return a {@link XrPosef} view of the {@link XrCompositionLayerProjectionView#pose} field. */ + public XrPosef pose() { return XrCompositionLayerProjectionView.npose(address()); } + /** @return a {@link XrFovf} view of the {@link XrCompositionLayerProjectionView#fov} field. */ + public XrFovf fov() { return XrCompositionLayerProjectionView.nfov(address()); } + /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerProjectionView#subImage} field. */ + public XrSwapchainSubImage subImage() { return XrCompositionLayerProjectionView.nsubImage(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerProjectionView#type} field. */ + public XrCompositionLayerProjectionView.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerProjectionView.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW TYPE_COMPOSITION_LAYER_PROJECTION_VIEW} value to the {@link XrCompositionLayerProjectionView#type} field. */ + public XrCompositionLayerProjectionView.Buffer type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW); } + /** Sets the specified value to the {@link XrCompositionLayerProjectionView#next} field. */ + public XrCompositionLayerProjectionView.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerProjectionView.nnext(address(), value); return this; } + /** Prepends the specified {@link XrCompositionLayerDepthInfoKHR} value to the {@code next} chain. */ + public XrCompositionLayerProjectionView.Buffer next(XrCompositionLayerDepthInfoKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrCompositionLayerSpaceWarpInfoFB} value to the {@code next} chain. */ + public XrCompositionLayerProjectionView.Buffer next(XrCompositionLayerSpaceWarpInfoFB value) { return this.next(value.next(this.next()).address()); } + /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerProjectionView#pose} field. */ + public XrCompositionLayerProjectionView.Buffer pose(XrPosef value) { XrCompositionLayerProjectionView.npose(address(), value); return this; } + /** Passes the {@link XrCompositionLayerProjectionView#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerProjectionView.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrFovf} to the {@link XrCompositionLayerProjectionView#fov} field. */ + public XrCompositionLayerProjectionView.Buffer fov(XrFovf value) { XrCompositionLayerProjectionView.nfov(address(), value); return this; } + /** Passes the {@link XrCompositionLayerProjectionView#fov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerProjectionView.Buffer fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerProjectionView#subImage} field. */ + public XrCompositionLayerProjectionView.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerProjectionView.nsubImage(address(), value); return this; } + /** Passes the {@link XrCompositionLayerProjectionView#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerProjectionView.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerQuad.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerQuad.java index f8ccdd1c76..9f9f540698 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerQuad.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerQuad.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.*; + /** * Quad composition layer. * @@ -51,8 +51,8 @@ * {@link XrPosef XrPosef} {@link #pose}; * {@link XrExtent2Df XrExtent2Df} {@link #size}; * } - */ -public class XrCompositionLayerQuad extends Struct implements NativeResource { + */ +public class XrCompositionLayerQuad extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -62,47 +62,38 @@ public class XrCompositionLayerQuad extends Struct imple /** The struct member offsets. */ public static final int - TYPE, - NEXT, - LAYERFLAGS, - SPACE, - EYEVISIBILITY, - SUBIMAGE, - POSE, - SIZE; + TYPE, + NEXT, + LAYERFLAGS, + SPACE, + EYEVISIBILITY, + SUBIMAGE, + POSE, + SIZE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(POINTER_SIZE), - __member(4), - __member(XrSwapchainSubImage.SIZEOF, XrSwapchainSubImage.ALIGNOF), - __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(POINTER_SIZE), + __member(4), + __member(XrSwapchainSubImage.SIZEOF, XrSwapchainSubImage.ALIGNOF), + __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), __member(XrExtent2Df.SIZEOF, XrExtent2Df.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); - SUBIMAGE = layout.offsetof(5); - POSE = layout.offsetof(6); - SIZE = layout.offsetof(7); - } - - protected XrCompositionLayerQuad(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrCompositionLayerQuad create(long address, @Nullable ByteBuffer container) { - return new XrCompositionLayerQuad(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + LAYERFLAGS = layout.offsetof(2); + SPACE = layout.offsetof(3); + EYEVISIBILITY = layout.offsetof(4); + SUBIMAGE = layout.offsetof(5); + POSE = layout.offsetof(6); + SIZE = layout.offsetof(7); } /** @@ -117,73 +108,73 @@ public XrCompositionLayerQuad(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 bitmask of {@code XrCompositionLayerFlagBits} describing flags to apply to the layer. */ - @NativeType("XrCompositionLayerFlags") - public long layerFlags() { return nlayerFlags(address()); } - /** the {@code XrSpace} in which the {@code pose} of the quad layer is evaluated over time. */ - @NativeType("XrSpace") - public long space() { return nspace(address()); } - /** the {@code XrEyeVisibility} for this layer. */ - @NativeType("XrEyeVisibility") - public int eyeVisibility() { return neyeVisibility(address()); } - /** the image layer {@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 quad in the reference frame of the {@code space}. */ - public XrPosef pose() { return npose(address()); } - /** the width and height of the quad in meters. */ - public XrExtent2Df size() { return nsize(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrCompositionLayerQuad type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_QUAD TYPE_COMPOSITION_LAYER_QUAD} value to the {@link #type} field. */ - public XrCompositionLayerQuad type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_QUAD); } - /** Sets the specified value to the {@link #next} field. */ - public XrCompositionLayerQuad next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #layerFlags} field. */ - public XrCompositionLayerQuad layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link #space} field. */ - public XrCompositionLayerQuad space(XrSpace value) { nspace(address(), value); return this; } - /** Sets the specified value to the {@link #eyeVisibility} field. */ - public XrCompositionLayerQuad eyeVisibility(@NativeType("XrEyeVisibility") int value) { neyeVisibility(address(), value); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */ - public XrCompositionLayerQuad subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; } - /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerQuad subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrCompositionLayerQuad pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerQuad pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrExtent2Df} to the {@link #size} field. */ - public XrCompositionLayerQuad size(XrExtent2Df value) { nsize(address(), value); return this; } - /** Passes the {@link #size} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerQuad size(java.util.function.Consumer consumer) { consumer.accept(size()); 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 bitmask of {@code XrCompositionLayerFlagBits} describing flags to apply to the layer. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return nlayerFlags(address()); } + /** the {@code XrSpace} in which the {@code pose} of the quad layer is evaluated over time. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the {@code XrEyeVisibility} for this layer. */ + @NativeType("XrEyeVisibility") + public int eyeVisibility() { return neyeVisibility(address()); } + /** the image layer {@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 quad in the reference frame of the {@code space}. */ + public XrPosef pose() { return npose(address()); } + /** the width and height of the quad in meters. */ + public XrExtent2Df size() { return nsize(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrCompositionLayerQuad type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_QUAD TYPE_COMPOSITION_LAYER_QUAD} value to the {@link #type} field. */ + public XrCompositionLayerQuad type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_QUAD); } + /** Sets the specified value to the {@link #next} field. */ + public XrCompositionLayerQuad next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #layerFlags} field. */ + public XrCompositionLayerQuad layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrCompositionLayerQuad space(XrSpace value) { nspace(address(), value); return this; } + /** Sets the specified value to the {@link #eyeVisibility} field. */ + public XrCompositionLayerQuad eyeVisibility(@NativeType("XrEyeVisibility") int value) { neyeVisibility(address(), value); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */ + public XrCompositionLayerQuad subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; } + /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerQuad subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrCompositionLayerQuad pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerQuad pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrExtent2Df} to the {@link #size} field. */ + public XrCompositionLayerQuad size(XrExtent2Df value) { nsize(address(), value); return this; } + /** Passes the {@link #size} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerQuad size(java.util.function.Consumer consumer) { consumer.accept(size()); return this; } /** Initializes this struct with the specified values. */ public XrCompositionLayerQuad set( - int type, - long next, - long layerFlags, - XrSpace space, - int eyeVisibility, - XrSwapchainSubImage subImage, - XrPosef pose, + int type, + long next, + long layerFlags, + XrSpace space, + int eyeVisibility, + XrSwapchainSubImage subImage, + XrPosef pose, XrExtent2Df size - ) { - type(type); - next(next); - layerFlags(layerFlags); - space(space); - eyeVisibility(eyeVisibility); - subImage(subImage); - pose(pose); - size(size); + ) { + type(type); + next(next); + layerFlags(layerFlags); + space(space); + eyeVisibility(eyeVisibility); + subImage(subImage); + pose(pose); + size(size); return this; } @@ -204,34 +195,34 @@ public XrCompositionLayerQuad set(XrCompositionLayerQuad src) { /** Returns a new {@code XrCompositionLayerQuad} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrCompositionLayerQuad malloc() { - return new XrCompositionLayerQuad(nmemAllocChecked(SIZEOF), null); + return wrap(XrCompositionLayerQuad.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrCompositionLayerQuad} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrCompositionLayerQuad calloc() { - return new XrCompositionLayerQuad(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrCompositionLayerQuad.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrCompositionLayerQuad} instance allocated with {@link BufferUtils}. */ public static XrCompositionLayerQuad create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrCompositionLayerQuad(memAddress(container), container); + return wrap(XrCompositionLayerQuad.class, memAddress(container), container); } /** Returns a new {@code XrCompositionLayerQuad} instance for the specified memory address. */ public static XrCompositionLayerQuad create(long address) { - return new XrCompositionLayerQuad(address, null); + return wrap(XrCompositionLayerQuad.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrCompositionLayerQuad createSafe(long address) { - return address == NULL ? null : new XrCompositionLayerQuad(address, null); + return address == NULL ? null : wrap(XrCompositionLayerQuad.class, address); } /** Downcasts the specified {@code XrCompositionLayerBaseHeader} instance to {@code XrCompositionLayerQuad}. */ public static XrCompositionLayerQuad create(XrCompositionLayerBaseHeader value) { - return new XrCompositionLayerQuad(value.address(), __getContainer(value)); + return wrap(XrCompositionLayerQuad.class, value); } /** @@ -240,7 +231,7 @@ public static XrCompositionLayerQuad create(XrCompositionLayerBaseHeader value) * @param capacity the buffer capacity */ public static XrCompositionLayerQuad.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 XrCompositionLayerQuad.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrCompositionLayerQuad.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 XrCompositionLayerQuad.Buffer calloc(int capacity) { */ public static XrCompositionLayerQuad.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 XrCompositionLayerQuad.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrCompositionLayerQuad.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 XrCompositionLayerQuad.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 XrCompositionLayerQuad.Buffer}. */ public static XrCompositionLayerQuad.Buffer create(XrCompositionLayerBaseHeader.Buffer value) { - return new XrCompositionLayerQuad.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** @@ -289,7 +280,7 @@ public static XrCompositionLayerQuad.Buffer create(XrCompositionLayerBaseHeader. * @param stack the stack from which to allocate */ public static XrCompositionLayerQuad malloc(MemoryStack stack) { - return new XrCompositionLayerQuad(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrCompositionLayerQuad.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -298,7 +289,7 @@ public static XrCompositionLayerQuad malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrCompositionLayerQuad calloc(MemoryStack stack) { - return new XrCompositionLayerQuad(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrCompositionLayerQuad.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -308,7 +299,7 @@ public static XrCompositionLayerQuad calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrCompositionLayerQuad.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 XrCompositionLayerQuad.Buffer malloc(int capacity, MemoryStack sta * @param capacity the buffer capacity */ public static XrCompositionLayerQuad.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 + XrCompositionLayerQuad.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerQuad.NEXT); } - /** Unsafe version of {@link #layerFlags}. */ - public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerQuad.LAYERFLAGS); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerQuad.SPACE); } - /** Unsafe version of {@link #eyeVisibility}. */ - public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerQuad.EYEVISIBILITY); } - /** Unsafe version of {@link #subImage}. */ - public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerQuad.SUBIMAGE); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerQuad.POSE); } - /** Unsafe version of {@link #size}. */ - public static XrExtent2Df nsize(long struct) { return XrExtent2Df.create(struct + XrCompositionLayerQuad.SIZE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerQuad.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerQuad.NEXT, value); } - /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ - public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerQuad.LAYERFLAGS, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerQuad.SPACE, value.address()); } - /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */ - public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerQuad.EYEVISIBILITY, value); } - /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */ - public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerQuad.SUBIMAGE, XrSwapchainSubImage.SIZEOF); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerQuad.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #size(XrExtent2Df) size}. */ - public static void nsize(long struct, XrExtent2Df value) { memCopy(value.address(), struct + XrCompositionLayerQuad.SIZE, XrExtent2Df.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerQuad.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerQuad.NEXT); } + /** Unsafe version of {@link #layerFlags}. */ + public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerQuad.LAYERFLAGS); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerQuad.SPACE); } + /** Unsafe version of {@link #eyeVisibility}. */ + public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerQuad.EYEVISIBILITY); } + /** Unsafe version of {@link #subImage}. */ + public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerQuad.SUBIMAGE); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerQuad.POSE); } + /** Unsafe version of {@link #size}. */ + public static XrExtent2Df nsize(long struct) { return XrExtent2Df.create(struct + XrCompositionLayerQuad.SIZE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerQuad.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerQuad.NEXT, value); } + /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ + public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerQuad.LAYERFLAGS, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerQuad.SPACE, value.address()); } + /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */ + public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerQuad.EYEVISIBILITY, value); } + /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */ + public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerQuad.SUBIMAGE, XrSwapchainSubImage.SIZEOF); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerQuad.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #size(XrExtent2Df) size}. */ + public static void nsize(long struct, XrExtent2Df value) { memCopy(value.address(), struct + XrCompositionLayerQuad.SIZE, XrExtent2Df.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -365,9 +356,9 @@ public static XrCompositionLayerQuad.Buffer calloc(int capacity, MemoryStack sta public static void validate(long struct) { check(memGetAddress(struct + XrCompositionLayerQuad.SPACE)); XrSwapchainSubImage.validate(struct + XrCompositionLayerQuad.SUBIMAGE); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrCompositionLayerQuad} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -377,9 +368,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrCompositionLayerQuad.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 XrCompositionLayerQuad#SIZEOF}, and its mark will be undefined.

    + * by {@link XrCompositionLayerQuad#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -404,53 +395,53 @@ protected Buffer self() { protected XrCompositionLayerQuad getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerQuad#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerQuad.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerQuad#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerQuad.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerQuad#layerFlags} field. */ - @NativeType("XrCompositionLayerFlags") - public long layerFlags() { return XrCompositionLayerQuad.nlayerFlags(address()); } - /** @return the value of the {@link XrCompositionLayerQuad#space} field. */ - @NativeType("XrSpace") - public long space() { return XrCompositionLayerQuad.nspace(address()); } - /** @return the value of the {@link XrCompositionLayerQuad#eyeVisibility} field. */ - @NativeType("XrEyeVisibility") - public int eyeVisibility() { return XrCompositionLayerQuad.neyeVisibility(address()); } - /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerQuad#subImage} field. */ - public XrSwapchainSubImage subImage() { return XrCompositionLayerQuad.nsubImage(address()); } - /** @return a {@link XrPosef} view of the {@link XrCompositionLayerQuad#pose} field. */ - public XrPosef pose() { return XrCompositionLayerQuad.npose(address()); } - /** @return a {@link XrExtent2Df} view of the {@link XrCompositionLayerQuad#size} field. */ - public XrExtent2Df size() { return XrCompositionLayerQuad.nsize(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerQuad#type} field. */ - public XrCompositionLayerQuad.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerQuad.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_QUAD TYPE_COMPOSITION_LAYER_QUAD} value to the {@link XrCompositionLayerQuad#type} field. */ - public XrCompositionLayerQuad.Buffer type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_QUAD); } - /** Sets the specified value to the {@link XrCompositionLayerQuad#next} field. */ - public XrCompositionLayerQuad.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerQuad.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerQuad#layerFlags} field. */ - public XrCompositionLayerQuad.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerQuad.nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerQuad#space} field. */ - public XrCompositionLayerQuad.Buffer space(XrSpace value) { XrCompositionLayerQuad.nspace(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerQuad#eyeVisibility} field. */ - public XrCompositionLayerQuad.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerQuad.neyeVisibility(address(), value); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerQuad#subImage} field. */ - public XrCompositionLayerQuad.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerQuad.nsubImage(address(), value); return this; } - /** Passes the {@link XrCompositionLayerQuad#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerQuad.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerQuad#pose} field. */ - public XrCompositionLayerQuad.Buffer pose(XrPosef value) { XrCompositionLayerQuad.npose(address(), value); return this; } - /** Passes the {@link XrCompositionLayerQuad#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerQuad.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrExtent2Df} to the {@link XrCompositionLayerQuad#size} field. */ - public XrCompositionLayerQuad.Buffer size(XrExtent2Df value) { XrCompositionLayerQuad.nsize(address(), value); return this; } - /** Passes the {@link XrCompositionLayerQuad#size} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerQuad.Buffer size(java.util.function.Consumer consumer) { consumer.accept(size()); return this; } + + /** @return the value of the {@link XrCompositionLayerQuad#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerQuad.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerQuad#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerQuad.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerQuad#layerFlags} field. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return XrCompositionLayerQuad.nlayerFlags(address()); } + /** @return the value of the {@link XrCompositionLayerQuad#space} field. */ + @NativeType("XrSpace") + public long space() { return XrCompositionLayerQuad.nspace(address()); } + /** @return the value of the {@link XrCompositionLayerQuad#eyeVisibility} field. */ + @NativeType("XrEyeVisibility") + public int eyeVisibility() { return XrCompositionLayerQuad.neyeVisibility(address()); } + /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerQuad#subImage} field. */ + public XrSwapchainSubImage subImage() { return XrCompositionLayerQuad.nsubImage(address()); } + /** @return a {@link XrPosef} view of the {@link XrCompositionLayerQuad#pose} field. */ + public XrPosef pose() { return XrCompositionLayerQuad.npose(address()); } + /** @return a {@link XrExtent2Df} view of the {@link XrCompositionLayerQuad#size} field. */ + public XrExtent2Df size() { return XrCompositionLayerQuad.nsize(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerQuad#type} field. */ + public XrCompositionLayerQuad.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerQuad.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_QUAD TYPE_COMPOSITION_LAYER_QUAD} value to the {@link XrCompositionLayerQuad#type} field. */ + public XrCompositionLayerQuad.Buffer type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_QUAD); } + /** Sets the specified value to the {@link XrCompositionLayerQuad#next} field. */ + public XrCompositionLayerQuad.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerQuad.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerQuad#layerFlags} field. */ + public XrCompositionLayerQuad.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerQuad.nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerQuad#space} field. */ + public XrCompositionLayerQuad.Buffer space(XrSpace value) { XrCompositionLayerQuad.nspace(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerQuad#eyeVisibility} field. */ + public XrCompositionLayerQuad.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerQuad.neyeVisibility(address(), value); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerQuad#subImage} field. */ + public XrCompositionLayerQuad.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerQuad.nsubImage(address(), value); return this; } + /** Passes the {@link XrCompositionLayerQuad#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerQuad.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerQuad#pose} field. */ + public XrCompositionLayerQuad.Buffer pose(XrPosef value) { XrCompositionLayerQuad.npose(address(), value); return this; } + /** Passes the {@link XrCompositionLayerQuad#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerQuad.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrExtent2Df} to the {@link XrCompositionLayerQuad#size} field. */ + public XrCompositionLayerQuad.Buffer size(XrExtent2Df value) { XrCompositionLayerQuad.nsize(address(), value); return this; } + /** Passes the {@link XrCompositionLayerQuad#size} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerQuad.Buffer size(java.util.function.Consumer consumer) { consumer.accept(size()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerReprojectionInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerReprojectionInfoMSFT.java index 31ecb368da..330589e5c6 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerReprojectionInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerReprojectionInfoMSFT.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 information to help reprojection of a projection layer. * @@ -43,8 +43,8 @@ * void const * {@link #next}; * XrReprojectionModeMSFT {@link #reprojectionMode}; * } - */ -public class XrCompositionLayerReprojectionInfoMSFT extends Struct implements NativeResource { + */ +public class XrCompositionLayerReprojectionInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,32 +54,23 @@ public class XrCompositionLayerReprojectionInfoMSFT extends Struct implements NativeResource { @@ -276,9 +267,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 XrCompositionLayerReprojectionInfoMSFT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrCompositionLayerReprojectionInfoMSFT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -303,25 +294,25 @@ protected Buffer self() { protected XrCompositionLayerReprojectionInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerReprojectionInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerReprojectionInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerReprojectionInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerReprojectionInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerReprojectionInfoMSFT#reprojectionMode} field. */ - @NativeType("XrReprojectionModeMSFT") - public int reprojectionMode() { return XrCompositionLayerReprojectionInfoMSFT.nreprojectionMode(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerReprojectionInfoMSFT#type} field. */ - public XrCompositionLayerReprojectionInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerReprojectionInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTCompositionLayerReprojection#XR_TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT} value to the {@link XrCompositionLayerReprojectionInfoMSFT#type} field. */ - public XrCompositionLayerReprojectionInfoMSFT.Buffer type$Default() { return type(MSFTCompositionLayerReprojection.XR_TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT); } - /** Sets the specified value to the {@link XrCompositionLayerReprojectionInfoMSFT#next} field. */ - public XrCompositionLayerReprojectionInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerReprojectionInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerReprojectionInfoMSFT#reprojectionMode} field. */ - public XrCompositionLayerReprojectionInfoMSFT.Buffer reprojectionMode(@NativeType("XrReprojectionModeMSFT") int value) { XrCompositionLayerReprojectionInfoMSFT.nreprojectionMode(address(), value); return this; } + + /** @return the value of the {@link XrCompositionLayerReprojectionInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerReprojectionInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerReprojectionInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerReprojectionInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerReprojectionInfoMSFT#reprojectionMode} field. */ + @NativeType("XrReprojectionModeMSFT") + public int reprojectionMode() { return XrCompositionLayerReprojectionInfoMSFT.nreprojectionMode(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerReprojectionInfoMSFT#type} field. */ + public XrCompositionLayerReprojectionInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerReprojectionInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTCompositionLayerReprojection#XR_TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT} value to the {@link XrCompositionLayerReprojectionInfoMSFT#type} field. */ + public XrCompositionLayerReprojectionInfoMSFT.Buffer type$Default() { return type(MSFTCompositionLayerReprojection.XR_TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT); } + /** Sets the specified value to the {@link XrCompositionLayerReprojectionInfoMSFT#next} field. */ + public XrCompositionLayerReprojectionInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerReprojectionInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerReprojectionInfoMSFT#reprojectionMode} field. */ + public XrCompositionLayerReprojectionInfoMSFT.Buffer reprojectionMode(@NativeType("XrReprojectionModeMSFT") int value) { XrCompositionLayerReprojectionInfoMSFT.nreprojectionMode(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerReprojectionPlaneOverrideMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerReprojectionPlaneOverrideMSFT.java index 43f153ee54..04de39990f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerReprojectionPlaneOverrideMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerReprojectionPlaneOverrideMSFT.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.*; + /** * Describe the parameters to override the reprojection plane. * @@ -48,8 +48,8 @@ * {@link XrVector3f XrVector3f} {@link #normal}; * {@link XrVector3f XrVector3f} {@link #velocity}; * } - */ -public class XrCompositionLayerReprojectionPlaneOverrideMSFT extends Struct implements NativeResource { + */ +public class XrCompositionLayerReprojectionPlaneOverrideMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -59,38 +59,29 @@ public class XrCompositionLayerReprojectionPlaneOverrideMSFT extends Struct consumer) { consumer.accept(position$()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #normal} field. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT normal(XrVector3f value) { nnormal(address(), value); return this; } - /** Passes the {@link #normal} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT normal(java.util.function.Consumer consumer) { consumer.accept(normal()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #velocity} field. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT velocity(XrVector3f value) { nvelocity(address(), value); return this; } - /** Passes the {@link #velocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT velocity(java.util.function.Consumer consumer) { consumer.accept(velocity()); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** describes the position of the focus plane represented in the corresponding {@link XrCompositionLayerProjection}{@code ::space}. */ + public XrVector3f position$() { return nposition$(address()); } + /** a unit vector describes the focus plane normal represented in the corresponding {@link XrCompositionLayerProjection}{@code ::space}. */ + public XrVector3f normal() { return nnormal(address()); } + /** a velocity of the position in the corresponding {@link XrCompositionLayerProjection}{@code ::space} measured in meters per second. */ + public XrVector3f velocity() { return nvelocity(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTCompositionLayerReprojection#XR_TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT} value to the {@code type} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT type$Default() { return type(MSFTCompositionLayerReprojection.XR_TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT); } + /** Sets the specified value to the {@code next} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #position$} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT position$(XrVector3f value) { nposition$(address(), value); return this; } + /** Passes the {@link #position$} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #normal} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT normal(XrVector3f value) { nnormal(address(), value); return this; } + /** Passes the {@link #normal} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT normal(java.util.function.Consumer consumer) { consumer.accept(normal()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #velocity} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT velocity(XrVector3f value) { nvelocity(address(), value); return this; } + /** Passes the {@link #velocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT velocity(java.util.function.Consumer consumer) { consumer.accept(velocity()); return this; } /** Initializes this struct with the specified values. */ public XrCompositionLayerReprojectionPlaneOverrideMSFT set( - int type, - long next, - XrVector3f position$, - XrVector3f normal, + int type, + long next, + XrVector3f position$, + XrVector3f normal, XrVector3f velocity - ) { - type(type); - next(next); - position$(position$); - normal(normal); - velocity(velocity); + ) { + type(type); + next(next); + position$(position$); + normal(normal); + velocity(velocity); return this; } @@ -171,29 +162,29 @@ public XrCompositionLayerReprojectionPlaneOverrideMSFT set(XrCompositionLayerRep /** Returns a new {@code XrCompositionLayerReprojectionPlaneOverrideMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrCompositionLayerReprojectionPlaneOverrideMSFT malloc() { - return new XrCompositionLayerReprojectionPlaneOverrideMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrCompositionLayerReprojectionPlaneOverrideMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrCompositionLayerReprojectionPlaneOverrideMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrCompositionLayerReprojectionPlaneOverrideMSFT calloc() { - return new XrCompositionLayerReprojectionPlaneOverrideMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrCompositionLayerReprojectionPlaneOverrideMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrCompositionLayerReprojectionPlaneOverrideMSFT} instance allocated with {@link BufferUtils}. */ public static XrCompositionLayerReprojectionPlaneOverrideMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrCompositionLayerReprojectionPlaneOverrideMSFT(memAddress(container), container); + return wrap(XrCompositionLayerReprojectionPlaneOverrideMSFT.class, memAddress(container), container); } /** Returns a new {@code XrCompositionLayerReprojectionPlaneOverrideMSFT} instance for the specified memory address. */ public static XrCompositionLayerReprojectionPlaneOverrideMSFT create(long address) { - return new XrCompositionLayerReprojectionPlaneOverrideMSFT(address, null); + return wrap(XrCompositionLayerReprojectionPlaneOverrideMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrCompositionLayerReprojectionPlaneOverrideMSFT createSafe(long address) { - return address == NULL ? null : new XrCompositionLayerReprojectionPlaneOverrideMSFT(address, null); + return address == NULL ? null : wrap(XrCompositionLayerReprojectionPlaneOverrideMSFT.class, address); } /** @@ -202,7 +193,7 @@ public static XrCompositionLayerReprojectionPlaneOverrideMSFT createSafe(long ad * @param capacity the buffer capacity */ public static XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -211,7 +202,7 @@ public static XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer malloc(int * @param capacity the buffer capacity */ public static XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -221,7 +212,7 @@ public static XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer calloc(int */ public static XrCompositionLayerReprojectionPlaneOverrideMSFT.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); } /** @@ -231,13 +222,13 @@ public static XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer create(int * @param capacity the buffer capacity */ public static XrCompositionLayerReprojectionPlaneOverrideMSFT.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 XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -246,7 +237,7 @@ public static XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer createSafe( * @param stack the stack from which to allocate */ public static XrCompositionLayerReprojectionPlaneOverrideMSFT malloc(MemoryStack stack) { - return new XrCompositionLayerReprojectionPlaneOverrideMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrCompositionLayerReprojectionPlaneOverrideMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -255,7 +246,7 @@ public static XrCompositionLayerReprojectionPlaneOverrideMSFT malloc(MemoryStack * @param stack the stack from which to allocate */ public static XrCompositionLayerReprojectionPlaneOverrideMSFT calloc(MemoryStack stack) { - return new XrCompositionLayerReprojectionPlaneOverrideMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrCompositionLayerReprojectionPlaneOverrideMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -265,7 +256,7 @@ public static XrCompositionLayerReprojectionPlaneOverrideMSFT calloc(MemoryStack * @param capacity the buffer capacity */ public static XrCompositionLayerReprojectionPlaneOverrideMSFT.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); } /** @@ -275,34 +266,34 @@ public static XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer malloc(int * @param capacity the buffer capacity */ public static XrCompositionLayerReprojectionPlaneOverrideMSFT.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 + XrCompositionLayerReprojectionPlaneOverrideMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.NEXT); } - /** Unsafe version of {@link #position$}. */ - public static XrVector3f nposition$(long struct) { return XrVector3f.create(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.POSITION); } - /** Unsafe version of {@link #normal}. */ - public static XrVector3f nnormal(long struct) { return XrVector3f.create(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.NORMAL); } - /** Unsafe version of {@link #velocity}. */ - public static XrVector3f nvelocity(long struct) { return XrVector3f.create(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.VELOCITY); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.NEXT, value); } - /** Unsafe version of {@link #position$(XrVector3f) position$}. */ - public static void nposition$(long struct, XrVector3f value) { memCopy(value.address(), struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.POSITION, XrVector3f.SIZEOF); } - /** Unsafe version of {@link #normal(XrVector3f) normal}. */ - public static void nnormal(long struct, XrVector3f value) { memCopy(value.address(), struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.NORMAL, XrVector3f.SIZEOF); } - /** Unsafe version of {@link #velocity(XrVector3f) velocity}. */ - public static void nvelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.VELOCITY, XrVector3f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.NEXT); } + /** Unsafe version of {@link #position$}. */ + public static XrVector3f nposition$(long struct) { return XrVector3f.create(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.POSITION); } + /** Unsafe version of {@link #normal}. */ + public static XrVector3f nnormal(long struct) { return XrVector3f.create(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.NORMAL); } + /** Unsafe version of {@link #velocity}. */ + public static XrVector3f nvelocity(long struct) { return XrVector3f.create(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.VELOCITY); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.NEXT, value); } + /** Unsafe version of {@link #position$(XrVector3f) position$}. */ + public static void nposition$(long struct, XrVector3f value) { memCopy(value.address(), struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.POSITION, XrVector3f.SIZEOF); } + /** Unsafe version of {@link #normal(XrVector3f) normal}. */ + public static void nnormal(long struct, XrVector3f value) { memCopy(value.address(), struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.NORMAL, XrVector3f.SIZEOF); } + /** Unsafe version of {@link #velocity(XrVector3f) velocity}. */ + public static void nvelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.VELOCITY, XrVector3f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrCompositionLayerReprojectionPlaneOverrideMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -312,9 +303,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 XrCompositionLayerReprojectionPlaneOverrideMSFT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -339,38 +330,38 @@ protected Buffer self() { protected XrCompositionLayerReprojectionPlaneOverrideMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.nnext(address()); } - /** @return a {@link XrVector3f} view of the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#position$} field. */ - public XrVector3f position$() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.nposition$(address()); } - /** @return a {@link XrVector3f} view of the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#normal} field. */ - public XrVector3f normal() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.nnormal(address()); } - /** @return a {@link XrVector3f} view of the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#velocity} field. */ - public XrVector3f velocity() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.nvelocity(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTCompositionLayerReprojection#XR_TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT} value to the {@code type} field. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer type$Default() { return type(MSFTCompositionLayerReprojection.XR_TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT); } - /** Sets the specified value to the {@code next} field. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.nnext(address(), value); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#position$} field. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer position$(XrVector3f value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.nposition$(address(), value); return this; } - /** Passes the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#position$} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#normal} field. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer normal(XrVector3f value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.nnormal(address(), value); return this; } - /** Passes the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#normal} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer normal(java.util.function.Consumer consumer) { consumer.accept(normal()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#velocity} field. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer velocity(XrVector3f value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.nvelocity(address(), value); return this; } - /** Passes the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#velocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer velocity(java.util.function.Consumer consumer) { consumer.accept(velocity()); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.nnext(address()); } + /** @return a {@link XrVector3f} view of the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#position$} field. */ + public XrVector3f position$() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.nposition$(address()); } + /** @return a {@link XrVector3f} view of the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#normal} field. */ + public XrVector3f normal() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.nnormal(address()); } + /** @return a {@link XrVector3f} view of the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#velocity} field. */ + public XrVector3f velocity() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.nvelocity(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTCompositionLayerReprojection#XR_TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT} value to the {@code type} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer type$Default() { return type(MSFTCompositionLayerReprojection.XR_TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT); } + /** Sets the specified value to the {@code next} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.nnext(address(), value); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#position$} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer position$(XrVector3f value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.nposition$(address(), value); return this; } + /** Passes the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#position$} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#normal} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer normal(XrVector3f value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.nnormal(address(), value); return this; } + /** Passes the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#normal} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer normal(java.util.function.Consumer consumer) { consumer.accept(normal()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#velocity} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer velocity(XrVector3f value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.nvelocity(address(), value); return this; } + /** Passes the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#velocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer velocity(java.util.function.Consumer consumer) { consumer.accept(velocity()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSecureContentFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSecureContentFB.java index 2c85be589b..55009364fe 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSecureContentFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSecureContentFB.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 secure content mode for composition layers. * @@ -48,8 +48,8 @@ * void const * {@link #next}; * XrCompositionLayerSecureContentFlagsFB {@link #flags}; * } - */ -public class XrCompositionLayerSecureContentFB extends Struct implements NativeResource { + */ +public class XrCompositionLayerSecureContentFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -59,32 +59,23 @@ public class XrCompositionLayerSecureContentFB 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 XrCompositionLayerSecureContentFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrCompositionLayerSecureContentFB#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 XrCompositionLayerSecureContentFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerSecureContentFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerSecureContentFB.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerSecureContentFB#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerSecureContentFB.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerSecureContentFB#flags} field. */ - @NativeType("XrCompositionLayerSecureContentFlagsFB") - public long flags() { return XrCompositionLayerSecureContentFB.nflags(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerSecureContentFB#type} field. */ - public XrCompositionLayerSecureContentFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerSecureContentFB.ntype(address(), value); return this; } - /** Sets the {@link FBCompositionLayerSecureContent#XR_TYPE_COMPOSITION_LAYER_SECURE_CONTENT_FB TYPE_COMPOSITION_LAYER_SECURE_CONTENT_FB} value to the {@link XrCompositionLayerSecureContentFB#type} field. */ - public XrCompositionLayerSecureContentFB.Buffer type$Default() { return type(FBCompositionLayerSecureContent.XR_TYPE_COMPOSITION_LAYER_SECURE_CONTENT_FB); } - /** Sets the specified value to the {@link XrCompositionLayerSecureContentFB#next} field. */ - public XrCompositionLayerSecureContentFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerSecureContentFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerSecureContentFB#flags} field. */ - public XrCompositionLayerSecureContentFB.Buffer flags(@NativeType("XrCompositionLayerSecureContentFlagsFB") long value) { XrCompositionLayerSecureContentFB.nflags(address(), value); return this; } + + /** @return the value of the {@link XrCompositionLayerSecureContentFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerSecureContentFB.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerSecureContentFB#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerSecureContentFB.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerSecureContentFB#flags} field. */ + @NativeType("XrCompositionLayerSecureContentFlagsFB") + public long flags() { return XrCompositionLayerSecureContentFB.nflags(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerSecureContentFB#type} field. */ + public XrCompositionLayerSecureContentFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerSecureContentFB.ntype(address(), value); return this; } + /** Sets the {@link FBCompositionLayerSecureContent#XR_TYPE_COMPOSITION_LAYER_SECURE_CONTENT_FB TYPE_COMPOSITION_LAYER_SECURE_CONTENT_FB} value to the {@link XrCompositionLayerSecureContentFB#type} field. */ + public XrCompositionLayerSecureContentFB.Buffer type$Default() { return type(FBCompositionLayerSecureContent.XR_TYPE_COMPOSITION_LAYER_SECURE_CONTENT_FB); } + /** Sets the specified value to the {@link XrCompositionLayerSecureContentFB#next} field. */ + public XrCompositionLayerSecureContentFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerSecureContentFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerSecureContentFB#flags} field. */ + public XrCompositionLayerSecureContentFB.Buffer flags(@NativeType("XrCompositionLayerSecureContentFlagsFB") long value) { XrCompositionLayerSecureContentFB.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSettingsFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSettingsFB.java index e083e10b7e..c75a1a5054 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSettingsFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSettingsFB.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 processing options for composition layers. * @@ -50,8 +50,8 @@ * void const * {@link #next}; * XrCompositionLayerSettingsFlagsFB layerFlags; * } - */ -public class XrCompositionLayerSettingsFB extends Struct implements NativeResource { + */ +public class XrCompositionLayerSettingsFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -61,32 +61,23 @@ public class XrCompositionLayerSettingsFB extends Struct implements NativeResource { @@ -283,9 +274,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 XrCompositionLayerSettingsFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrCompositionLayerSettingsFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -310,25 +301,25 @@ protected Buffer self() { protected XrCompositionLayerSettingsFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerSettingsFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerSettingsFB.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerSettingsFB#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerSettingsFB.nnext(address()); } - /** @return the value of the {@code layerFlags} field. */ - @NativeType("XrCompositionLayerSettingsFlagsFB") - public long layerFlags() { return XrCompositionLayerSettingsFB.nlayerFlags(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerSettingsFB#type} field. */ - public XrCompositionLayerSettingsFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerSettingsFB.ntype(address(), value); return this; } - /** Sets the {@link FBCompositionLayerSettings#XR_TYPE_COMPOSITION_LAYER_SETTINGS_FB TYPE_COMPOSITION_LAYER_SETTINGS_FB} value to the {@link XrCompositionLayerSettingsFB#type} field. */ - public XrCompositionLayerSettingsFB.Buffer type$Default() { return type(FBCompositionLayerSettings.XR_TYPE_COMPOSITION_LAYER_SETTINGS_FB); } - /** Sets the specified value to the {@link XrCompositionLayerSettingsFB#next} field. */ - public XrCompositionLayerSettingsFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerSettingsFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@code layerFlags} field. */ - public XrCompositionLayerSettingsFB.Buffer layerFlags(@NativeType("XrCompositionLayerSettingsFlagsFB") long value) { XrCompositionLayerSettingsFB.nlayerFlags(address(), value); return this; } + + /** @return the value of the {@link XrCompositionLayerSettingsFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerSettingsFB.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerSettingsFB#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerSettingsFB.nnext(address()); } + /** @return the value of the {@code layerFlags} field. */ + @NativeType("XrCompositionLayerSettingsFlagsFB") + public long layerFlags() { return XrCompositionLayerSettingsFB.nlayerFlags(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerSettingsFB#type} field. */ + public XrCompositionLayerSettingsFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerSettingsFB.ntype(address(), value); return this; } + /** Sets the {@link FBCompositionLayerSettings#XR_TYPE_COMPOSITION_LAYER_SETTINGS_FB TYPE_COMPOSITION_LAYER_SETTINGS_FB} value to the {@link XrCompositionLayerSettingsFB#type} field. */ + public XrCompositionLayerSettingsFB.Buffer type$Default() { return type(FBCompositionLayerSettings.XR_TYPE_COMPOSITION_LAYER_SETTINGS_FB); } + /** Sets the specified value to the {@link XrCompositionLayerSettingsFB#next} field. */ + public XrCompositionLayerSettingsFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerSettingsFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@code layerFlags} field. */ + public XrCompositionLayerSettingsFB.Buffer layerFlags(@NativeType("XrCompositionLayerSettingsFlagsFB") long value) { XrCompositionLayerSettingsFB.nlayerFlags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSpaceWarpInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSpaceWarpInfoFB.java index 7e2dfa80e9..90c35b0211 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSpaceWarpInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSpaceWarpInfoFB.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.*; + /** * Composition Layer Space Warp structure. * @@ -52,8 +52,8 @@ * float {@link #nearZ}; * float {@link #farZ}; * } - */ -public class XrCompositionLayerSpaceWarpInfoFB extends Struct implements NativeResource { + */ +public class XrCompositionLayerSpaceWarpInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -63,53 +63,44 @@ public class XrCompositionLayerSpaceWarpInfoFB extends Struct[0.0,1.0]. This is akin to min and max values of OpenGL’s {@code glDepthRange}, but with the requirement here that maxDepth ≥ minDepth. */ - public float minDepth() { return nminDepth(address()); } - /** see {@code minDepth} */ - public float maxDepth() { return nmaxDepth(address()); } - /** the positive distance in meters of the {@code minDepth} value in the depth swapchain. Applications may use a {@code nearZ} that is greater than {@code farZ} to indicate depth values are reversed. {@code nearZ} can be infinite. */ - public float nearZ() { return nnearZ(address()); } - /** the positive distance in meters of the {@code maxDepth} value in the depth swapchain. {@code farZ} can be infinite. */ - public float farZ() { return nfarZ(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrCompositionLayerSpaceWarpInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpaceWarp#XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB} value to the {@link #type} field. */ - public XrCompositionLayerSpaceWarpInfoFB type$Default() { return type(FBSpaceWarp.XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrCompositionLayerSpaceWarpInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #layerFlags} field. */ - public XrCompositionLayerSpaceWarpInfoFB layerFlags(@NativeType("XrCompositionLayerSpaceWarpInfoFlagsFB") long value) { nlayerFlags(address(), value); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link #motionVectorSubImage} field. */ - public XrCompositionLayerSpaceWarpInfoFB motionVectorSubImage(XrSwapchainSubImage value) { nmotionVectorSubImage(address(), value); return this; } - /** Passes the {@link #motionVectorSubImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerSpaceWarpInfoFB motionVectorSubImage(java.util.function.Consumer consumer) { consumer.accept(motionVectorSubImage()); return this; } - /** Copies the specified {@link XrPosef} to the {@link #appSpaceDeltaPose} field. */ - public XrCompositionLayerSpaceWarpInfoFB appSpaceDeltaPose(XrPosef value) { nappSpaceDeltaPose(address(), value); return this; } - /** Passes the {@link #appSpaceDeltaPose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerSpaceWarpInfoFB appSpaceDeltaPose(java.util.function.Consumer consumer) { consumer.accept(appSpaceDeltaPose()); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link #depthSubImage} field. */ - public XrCompositionLayerSpaceWarpInfoFB depthSubImage(XrSwapchainSubImage value) { ndepthSubImage(address(), value); return this; } - /** Passes the {@link #depthSubImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerSpaceWarpInfoFB depthSubImage(java.util.function.Consumer consumer) { consumer.accept(depthSubImage()); return this; } - /** Sets the specified value to the {@link #minDepth} field. */ - public XrCompositionLayerSpaceWarpInfoFB minDepth(float value) { nminDepth(address(), value); return this; } - /** Sets the specified value to the {@link #maxDepth} field. */ - public XrCompositionLayerSpaceWarpInfoFB maxDepth(float value) { nmaxDepth(address(), value); return this; } - /** Sets the specified value to the {@link #nearZ} field. */ - public XrCompositionLayerSpaceWarpInfoFB nearZ(float value) { nnearZ(address(), value); return this; } - /** Sets the specified value to the {@link #farZ} field. */ - public XrCompositionLayerSpaceWarpInfoFB 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. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a bitmask of {@code XrCompositionLayerSpaceWarpInfoFlagsFB}. */ + @NativeType("XrCompositionLayerSpaceWarpInfoFlagsFB") + public long layerFlags() { return nlayerFlags(address()); } + /** identifies the motion vector image {@link XrSwapchainSubImage} to be associated with the submitted layer {@link XrCompositionLayerProjection}. */ + public XrSwapchainSubImage motionVectorSubImage() { return nmotionVectorSubImage(address()); } + /** the incremental application-applied transform, if any, since the previous frame that affects the view. When artificial locomotion (scripted movement, teleportation, etc.) happens, the application might transform the whole {@link XrCompositionLayerProjection}::space from one application space pose to another pose between frames. The pose should be identity when there is no {@link XrCompositionLayerProjection}::space transformation in application. */ + public XrPosef appSpaceDeltaPose() { return nappSpaceDeltaPose(address()); } + /** identifies the depth image {@link XrSwapchainSubImage} to be associated with motionVectorSubImage. The swapchain should be created with {@link XR10#XR_SWAPCHAIN_USAGE_SAMPLED_BIT SWAPCHAIN_USAGE_SAMPLED_BIT} | {@link XR10#XR_SWAPCHAIN_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT SWAPCHAIN_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT}. */ + public XrSwapchainSubImage depthSubImage() { return ndepthSubImage(address()); } + /** {@code minDepth} and {@code maxDepth} are the range of depth values the {@code depthSwapchain} could have, in the range of [0.0,1.0]. This is akin to min and max values of OpenGL’s {@code glDepthRange}, but with the requirement here that maxDepth ≥ minDepth. */ + public float minDepth() { return nminDepth(address()); } + /** see {@code minDepth} */ + public float maxDepth() { return nmaxDepth(address()); } + /** the positive distance in meters of the {@code minDepth} value in the depth swapchain. Applications may use a {@code nearZ} that is greater than {@code farZ} to indicate depth values are reversed. {@code nearZ} can be infinite. */ + public float nearZ() { return nnearZ(address()); } + /** the positive distance in meters of the {@code maxDepth} value in the depth swapchain. {@code farZ} can be infinite. */ + public float farZ() { return nfarZ(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrCompositionLayerSpaceWarpInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpaceWarp#XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB} value to the {@link #type} field. */ + public XrCompositionLayerSpaceWarpInfoFB type$Default() { return type(FBSpaceWarp.XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrCompositionLayerSpaceWarpInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #layerFlags} field. */ + public XrCompositionLayerSpaceWarpInfoFB layerFlags(@NativeType("XrCompositionLayerSpaceWarpInfoFlagsFB") long value) { nlayerFlags(address(), value); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link #motionVectorSubImage} field. */ + public XrCompositionLayerSpaceWarpInfoFB motionVectorSubImage(XrSwapchainSubImage value) { nmotionVectorSubImage(address(), value); return this; } + /** Passes the {@link #motionVectorSubImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerSpaceWarpInfoFB motionVectorSubImage(java.util.function.Consumer consumer) { consumer.accept(motionVectorSubImage()); return this; } + /** Copies the specified {@link XrPosef} to the {@link #appSpaceDeltaPose} field. */ + public XrCompositionLayerSpaceWarpInfoFB appSpaceDeltaPose(XrPosef value) { nappSpaceDeltaPose(address(), value); return this; } + /** Passes the {@link #appSpaceDeltaPose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerSpaceWarpInfoFB appSpaceDeltaPose(java.util.function.Consumer consumer) { consumer.accept(appSpaceDeltaPose()); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link #depthSubImage} field. */ + public XrCompositionLayerSpaceWarpInfoFB depthSubImage(XrSwapchainSubImage value) { ndepthSubImage(address(), value); return this; } + /** Passes the {@link #depthSubImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerSpaceWarpInfoFB depthSubImage(java.util.function.Consumer consumer) { consumer.accept(depthSubImage()); return this; } + /** Sets the specified value to the {@link #minDepth} field. */ + public XrCompositionLayerSpaceWarpInfoFB minDepth(float value) { nminDepth(address(), value); return this; } + /** Sets the specified value to the {@link #maxDepth} field. */ + public XrCompositionLayerSpaceWarpInfoFB maxDepth(float value) { nmaxDepth(address(), value); return this; } + /** Sets the specified value to the {@link #nearZ} field. */ + public XrCompositionLayerSpaceWarpInfoFB nearZ(float value) { nnearZ(address(), value); return this; } + /** Sets the specified value to the {@link #farZ} field. */ + public XrCompositionLayerSpaceWarpInfoFB farZ(float value) { nfarZ(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrCompositionLayerSpaceWarpInfoFB set( - int type, - long next, - long layerFlags, - XrSwapchainSubImage motionVectorSubImage, - XrPosef appSpaceDeltaPose, - XrSwapchainSubImage depthSubImage, - float minDepth, - float maxDepth, - float nearZ, + int type, + long next, + long layerFlags, + XrSwapchainSubImage motionVectorSubImage, + XrPosef appSpaceDeltaPose, + XrSwapchainSubImage depthSubImage, + float minDepth, + float maxDepth, + float nearZ, float farZ - ) { - type(type); - next(next); - layerFlags(layerFlags); - motionVectorSubImage(motionVectorSubImage); - appSpaceDeltaPose(appSpaceDeltaPose); - depthSubImage(depthSubImage); - minDepth(minDepth); - maxDepth(maxDepth); - nearZ(nearZ); - farZ(farZ); + ) { + type(type); + next(next); + layerFlags(layerFlags); + motionVectorSubImage(motionVectorSubImage); + appSpaceDeltaPose(appSpaceDeltaPose); + depthSubImage(depthSubImage); + minDepth(minDepth); + maxDepth(maxDepth); + nearZ(nearZ); + farZ(farZ); return this; } @@ -221,29 +212,29 @@ public XrCompositionLayerSpaceWarpInfoFB set(XrCompositionLayerSpaceWarpInfoFB s /** Returns a new {@code XrCompositionLayerSpaceWarpInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrCompositionLayerSpaceWarpInfoFB malloc() { - return new XrCompositionLayerSpaceWarpInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrCompositionLayerSpaceWarpInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrCompositionLayerSpaceWarpInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrCompositionLayerSpaceWarpInfoFB calloc() { - return new XrCompositionLayerSpaceWarpInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrCompositionLayerSpaceWarpInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrCompositionLayerSpaceWarpInfoFB} instance allocated with {@link BufferUtils}. */ public static XrCompositionLayerSpaceWarpInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrCompositionLayerSpaceWarpInfoFB(memAddress(container), container); + return wrap(XrCompositionLayerSpaceWarpInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrCompositionLayerSpaceWarpInfoFB} instance for the specified memory address. */ public static XrCompositionLayerSpaceWarpInfoFB create(long address) { - return new XrCompositionLayerSpaceWarpInfoFB(address, null); + return wrap(XrCompositionLayerSpaceWarpInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrCompositionLayerSpaceWarpInfoFB createSafe(long address) { - return address == NULL ? null : new XrCompositionLayerSpaceWarpInfoFB(address, null); + return address == NULL ? null : wrap(XrCompositionLayerSpaceWarpInfoFB.class, address); } /** @@ -252,7 +243,7 @@ public static XrCompositionLayerSpaceWarpInfoFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrCompositionLayerSpaceWarpInfoFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -261,7 +252,7 @@ public static XrCompositionLayerSpaceWarpInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrCompositionLayerSpaceWarpInfoFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -271,7 +262,7 @@ public static XrCompositionLayerSpaceWarpInfoFB.Buffer calloc(int capacity) { */ public static XrCompositionLayerSpaceWarpInfoFB.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); } /** @@ -281,13 +272,13 @@ public static XrCompositionLayerSpaceWarpInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrCompositionLayerSpaceWarpInfoFB.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 XrCompositionLayerSpaceWarpInfoFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -296,7 +287,7 @@ public static XrCompositionLayerSpaceWarpInfoFB.Buffer createSafe(long address, * @param stack the stack from which to allocate */ public static XrCompositionLayerSpaceWarpInfoFB malloc(MemoryStack stack) { - return new XrCompositionLayerSpaceWarpInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrCompositionLayerSpaceWarpInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -305,7 +296,7 @@ public static XrCompositionLayerSpaceWarpInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrCompositionLayerSpaceWarpInfoFB calloc(MemoryStack stack) { - return new XrCompositionLayerSpaceWarpInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrCompositionLayerSpaceWarpInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -315,7 +306,7 @@ public static XrCompositionLayerSpaceWarpInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrCompositionLayerSpaceWarpInfoFB.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); } /** @@ -325,52 +316,52 @@ public static XrCompositionLayerSpaceWarpInfoFB.Buffer malloc(int capacity, Memo * @param capacity the buffer capacity */ public static XrCompositionLayerSpaceWarpInfoFB.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 + XrCompositionLayerSpaceWarpInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerSpaceWarpInfoFB.NEXT); } - /** Unsafe version of {@link #layerFlags}. */ - public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerSpaceWarpInfoFB.LAYERFLAGS); } - /** Unsafe version of {@link #motionVectorSubImage}. */ - public static XrSwapchainSubImage nmotionVectorSubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerSpaceWarpInfoFB.MOTIONVECTORSUBIMAGE); } - /** Unsafe version of {@link #appSpaceDeltaPose}. */ - public static XrPosef nappSpaceDeltaPose(long struct) { return XrPosef.create(struct + XrCompositionLayerSpaceWarpInfoFB.APPSPACEDELTAPOSE); } - /** Unsafe version of {@link #depthSubImage}. */ - public static XrSwapchainSubImage ndepthSubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerSpaceWarpInfoFB.DEPTHSUBIMAGE); } - /** Unsafe version of {@link #minDepth}. */ - public static float nminDepth(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.MINDEPTH); } - /** Unsafe version of {@link #maxDepth}. */ - public static float nmaxDepth(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.MAXDEPTH); } - /** Unsafe version of {@link #nearZ}. */ - public static float nnearZ(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.NEARZ); } - /** Unsafe version of {@link #farZ}. */ - public static float nfarZ(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.FARZ); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerSpaceWarpInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerSpaceWarpInfoFB.NEXT, value); } - /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ - public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerSpaceWarpInfoFB.LAYERFLAGS, value); } - /** Unsafe version of {@link #motionVectorSubImage(XrSwapchainSubImage) motionVectorSubImage}. */ - public static void nmotionVectorSubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerSpaceWarpInfoFB.MOTIONVECTORSUBIMAGE, XrSwapchainSubImage.SIZEOF); } - /** Unsafe version of {@link #appSpaceDeltaPose(XrPosef) appSpaceDeltaPose}. */ - public static void nappSpaceDeltaPose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerSpaceWarpInfoFB.APPSPACEDELTAPOSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #depthSubImage(XrSwapchainSubImage) depthSubImage}. */ - public static void ndepthSubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerSpaceWarpInfoFB.DEPTHSUBIMAGE, XrSwapchainSubImage.SIZEOF); } - /** Unsafe version of {@link #minDepth(float) minDepth}. */ - public static void nminDepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.MINDEPTH, value); } - /** Unsafe version of {@link #maxDepth(float) maxDepth}. */ - public static void nmaxDepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.MAXDEPTH, value); } - /** Unsafe version of {@link #nearZ(float) nearZ}. */ - public static void nnearZ(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.NEARZ, value); } - /** Unsafe version of {@link #farZ(float) farZ}. */ - public static void nfarZ(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.FARZ, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerSpaceWarpInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerSpaceWarpInfoFB.NEXT); } + /** Unsafe version of {@link #layerFlags}. */ + public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerSpaceWarpInfoFB.LAYERFLAGS); } + /** Unsafe version of {@link #motionVectorSubImage}. */ + public static XrSwapchainSubImage nmotionVectorSubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerSpaceWarpInfoFB.MOTIONVECTORSUBIMAGE); } + /** Unsafe version of {@link #appSpaceDeltaPose}. */ + public static XrPosef nappSpaceDeltaPose(long struct) { return XrPosef.create(struct + XrCompositionLayerSpaceWarpInfoFB.APPSPACEDELTAPOSE); } + /** Unsafe version of {@link #depthSubImage}. */ + public static XrSwapchainSubImage ndepthSubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerSpaceWarpInfoFB.DEPTHSUBIMAGE); } + /** Unsafe version of {@link #minDepth}. */ + public static float nminDepth(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.MINDEPTH); } + /** Unsafe version of {@link #maxDepth}. */ + public static float nmaxDepth(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.MAXDEPTH); } + /** Unsafe version of {@link #nearZ}. */ + public static float nnearZ(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.NEARZ); } + /** Unsafe version of {@link #farZ}. */ + public static float nfarZ(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.FARZ); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerSpaceWarpInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerSpaceWarpInfoFB.NEXT, value); } + /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ + public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerSpaceWarpInfoFB.LAYERFLAGS, value); } + /** Unsafe version of {@link #motionVectorSubImage(XrSwapchainSubImage) motionVectorSubImage}. */ + public static void nmotionVectorSubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerSpaceWarpInfoFB.MOTIONVECTORSUBIMAGE, XrSwapchainSubImage.SIZEOF); } + /** Unsafe version of {@link #appSpaceDeltaPose(XrPosef) appSpaceDeltaPose}. */ + public static void nappSpaceDeltaPose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerSpaceWarpInfoFB.APPSPACEDELTAPOSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #depthSubImage(XrSwapchainSubImage) depthSubImage}. */ + public static void ndepthSubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerSpaceWarpInfoFB.DEPTHSUBIMAGE, XrSwapchainSubImage.SIZEOF); } + /** Unsafe version of {@link #minDepth(float) minDepth}. */ + public static void nminDepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.MINDEPTH, value); } + /** Unsafe version of {@link #maxDepth(float) maxDepth}. */ + public static void nmaxDepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.MAXDEPTH, value); } + /** Unsafe version of {@link #nearZ(float) nearZ}. */ + public static void nnearZ(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.NEARZ, value); } + /** Unsafe version of {@link #farZ(float) farZ}. */ + public static void nfarZ(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.FARZ, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -380,9 +371,9 @@ public static XrCompositionLayerSpaceWarpInfoFB.Buffer calloc(int capacity, Memo public static void validate(long struct) { XrSwapchainSubImage.validate(struct + XrCompositionLayerSpaceWarpInfoFB.MOTIONVECTORSUBIMAGE); XrSwapchainSubImage.validate(struct + XrCompositionLayerSpaceWarpInfoFB.DEPTHSUBIMAGE); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrCompositionLayerSpaceWarpInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -392,9 +383,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 XrCompositionLayerSpaceWarpInfoFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrCompositionLayerSpaceWarpInfoFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -419,59 +410,59 @@ protected Buffer self() { protected XrCompositionLayerSpaceWarpInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerSpaceWarpInfoFB.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerSpaceWarpInfoFB.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#layerFlags} field. */ - @NativeType("XrCompositionLayerSpaceWarpInfoFlagsFB") - public long layerFlags() { return XrCompositionLayerSpaceWarpInfoFB.nlayerFlags(address()); } - /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerSpaceWarpInfoFB#motionVectorSubImage} field. */ - public XrSwapchainSubImage motionVectorSubImage() { return XrCompositionLayerSpaceWarpInfoFB.nmotionVectorSubImage(address()); } - /** @return a {@link XrPosef} view of the {@link XrCompositionLayerSpaceWarpInfoFB#appSpaceDeltaPose} field. */ - public XrPosef appSpaceDeltaPose() { return XrCompositionLayerSpaceWarpInfoFB.nappSpaceDeltaPose(address()); } - /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerSpaceWarpInfoFB#depthSubImage} field. */ - public XrSwapchainSubImage depthSubImage() { return XrCompositionLayerSpaceWarpInfoFB.ndepthSubImage(address()); } - /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#minDepth} field. */ - public float minDepth() { return XrCompositionLayerSpaceWarpInfoFB.nminDepth(address()); } - /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#maxDepth} field. */ - public float maxDepth() { return XrCompositionLayerSpaceWarpInfoFB.nmaxDepth(address()); } - /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#nearZ} field. */ - public float nearZ() { return XrCompositionLayerSpaceWarpInfoFB.nnearZ(address()); } - /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#farZ} field. */ - public float farZ() { return XrCompositionLayerSpaceWarpInfoFB.nfarZ(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#type} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerSpaceWarpInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpaceWarp#XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB} value to the {@link XrCompositionLayerSpaceWarpInfoFB#type} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer type$Default() { return type(FBSpaceWarp.XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB); } - /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#next} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerSpaceWarpInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#layerFlags} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer layerFlags(@NativeType("XrCompositionLayerSpaceWarpInfoFlagsFB") long value) { XrCompositionLayerSpaceWarpInfoFB.nlayerFlags(address(), value); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerSpaceWarpInfoFB#motionVectorSubImage} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer motionVectorSubImage(XrSwapchainSubImage value) { XrCompositionLayerSpaceWarpInfoFB.nmotionVectorSubImage(address(), value); return this; } - /** Passes the {@link XrCompositionLayerSpaceWarpInfoFB#motionVectorSubImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer motionVectorSubImage(java.util.function.Consumer consumer) { consumer.accept(motionVectorSubImage()); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerSpaceWarpInfoFB#appSpaceDeltaPose} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer appSpaceDeltaPose(XrPosef value) { XrCompositionLayerSpaceWarpInfoFB.nappSpaceDeltaPose(address(), value); return this; } - /** Passes the {@link XrCompositionLayerSpaceWarpInfoFB#appSpaceDeltaPose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer appSpaceDeltaPose(java.util.function.Consumer consumer) { consumer.accept(appSpaceDeltaPose()); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerSpaceWarpInfoFB#depthSubImage} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer depthSubImage(XrSwapchainSubImage value) { XrCompositionLayerSpaceWarpInfoFB.ndepthSubImage(address(), value); return this; } - /** Passes the {@link XrCompositionLayerSpaceWarpInfoFB#depthSubImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer depthSubImage(java.util.function.Consumer consumer) { consumer.accept(depthSubImage()); return this; } - /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#minDepth} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer minDepth(float value) { XrCompositionLayerSpaceWarpInfoFB.nminDepth(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#maxDepth} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer maxDepth(float value) { XrCompositionLayerSpaceWarpInfoFB.nmaxDepth(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#nearZ} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer nearZ(float value) { XrCompositionLayerSpaceWarpInfoFB.nnearZ(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#farZ} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer farZ(float value) { XrCompositionLayerSpaceWarpInfoFB.nfarZ(address(), value); return this; } + + /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerSpaceWarpInfoFB.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerSpaceWarpInfoFB.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#layerFlags} field. */ + @NativeType("XrCompositionLayerSpaceWarpInfoFlagsFB") + public long layerFlags() { return XrCompositionLayerSpaceWarpInfoFB.nlayerFlags(address()); } + /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerSpaceWarpInfoFB#motionVectorSubImage} field. */ + public XrSwapchainSubImage motionVectorSubImage() { return XrCompositionLayerSpaceWarpInfoFB.nmotionVectorSubImage(address()); } + /** @return a {@link XrPosef} view of the {@link XrCompositionLayerSpaceWarpInfoFB#appSpaceDeltaPose} field. */ + public XrPosef appSpaceDeltaPose() { return XrCompositionLayerSpaceWarpInfoFB.nappSpaceDeltaPose(address()); } + /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerSpaceWarpInfoFB#depthSubImage} field. */ + public XrSwapchainSubImage depthSubImage() { return XrCompositionLayerSpaceWarpInfoFB.ndepthSubImage(address()); } + /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#minDepth} field. */ + public float minDepth() { return XrCompositionLayerSpaceWarpInfoFB.nminDepth(address()); } + /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#maxDepth} field. */ + public float maxDepth() { return XrCompositionLayerSpaceWarpInfoFB.nmaxDepth(address()); } + /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#nearZ} field. */ + public float nearZ() { return XrCompositionLayerSpaceWarpInfoFB.nnearZ(address()); } + /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#farZ} field. */ + public float farZ() { return XrCompositionLayerSpaceWarpInfoFB.nfarZ(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#type} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerSpaceWarpInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpaceWarp#XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB} value to the {@link XrCompositionLayerSpaceWarpInfoFB#type} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer type$Default() { return type(FBSpaceWarp.XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB); } + /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#next} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerSpaceWarpInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#layerFlags} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer layerFlags(@NativeType("XrCompositionLayerSpaceWarpInfoFlagsFB") long value) { XrCompositionLayerSpaceWarpInfoFB.nlayerFlags(address(), value); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerSpaceWarpInfoFB#motionVectorSubImage} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer motionVectorSubImage(XrSwapchainSubImage value) { XrCompositionLayerSpaceWarpInfoFB.nmotionVectorSubImage(address(), value); return this; } + /** Passes the {@link XrCompositionLayerSpaceWarpInfoFB#motionVectorSubImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer motionVectorSubImage(java.util.function.Consumer consumer) { consumer.accept(motionVectorSubImage()); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerSpaceWarpInfoFB#appSpaceDeltaPose} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer appSpaceDeltaPose(XrPosef value) { XrCompositionLayerSpaceWarpInfoFB.nappSpaceDeltaPose(address(), value); return this; } + /** Passes the {@link XrCompositionLayerSpaceWarpInfoFB#appSpaceDeltaPose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer appSpaceDeltaPose(java.util.function.Consumer consumer) { consumer.accept(appSpaceDeltaPose()); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerSpaceWarpInfoFB#depthSubImage} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer depthSubImage(XrSwapchainSubImage value) { XrCompositionLayerSpaceWarpInfoFB.ndepthSubImage(address(), value); return this; } + /** Passes the {@link XrCompositionLayerSpaceWarpInfoFB#depthSubImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer depthSubImage(java.util.function.Consumer consumer) { consumer.accept(depthSubImage()); return this; } + /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#minDepth} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer minDepth(float value) { XrCompositionLayerSpaceWarpInfoFB.nminDepth(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#maxDepth} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer maxDepth(float value) { XrCompositionLayerSpaceWarpInfoFB.nmaxDepth(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#nearZ} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer nearZ(float value) { XrCompositionLayerSpaceWarpInfoFB.nnearZ(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#farZ} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer farZ(float value) { XrCompositionLayerSpaceWarpInfoFB.nfarZ(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelKeyStateMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelKeyStateMSFT.java index 0ecaae803b..14f166fcf0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelKeyStateMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelKeyStateMSFT.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 model key state for a controller. * @@ -44,8 +44,8 @@ * void * {@link #next}; * XrControllerModelKeyMSFT {@link #modelKey}; * } - */ -public class XrControllerModelKeyStateMSFT extends Struct implements NativeResource { + */ +public class XrControllerModelKeyStateMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,32 +55,23 @@ public class XrControllerModelKeyStateMSFT 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 XrControllerModelKeyStateMSFT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrControllerModelKeyStateMSFT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -304,25 +295,25 @@ protected Buffer self() { protected XrControllerModelKeyStateMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrControllerModelKeyStateMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrControllerModelKeyStateMSFT.ntype(address()); } - /** @return the value of the {@link XrControllerModelKeyStateMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrControllerModelKeyStateMSFT.nnext(address()); } - /** @return the value of the {@link XrControllerModelKeyStateMSFT#modelKey} field. */ - @NativeType("XrControllerModelKeyMSFT") - public long modelKey() { return XrControllerModelKeyStateMSFT.nmodelKey(address()); } - - /** Sets the specified value to the {@link XrControllerModelKeyStateMSFT#type} field. */ - public XrControllerModelKeyStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelKeyStateMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_KEY_STATE_MSFT TYPE_CONTROLLER_MODEL_KEY_STATE_MSFT} value to the {@link XrControllerModelKeyStateMSFT#type} field. */ - public XrControllerModelKeyStateMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_KEY_STATE_MSFT); } - /** Sets the specified value to the {@link XrControllerModelKeyStateMSFT#next} field. */ - public XrControllerModelKeyStateMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelKeyStateMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrControllerModelKeyStateMSFT#modelKey} field. */ - public XrControllerModelKeyStateMSFT.Buffer modelKey(@NativeType("XrControllerModelKeyMSFT") long value) { XrControllerModelKeyStateMSFT.nmodelKey(address(), value); return this; } + + /** @return the value of the {@link XrControllerModelKeyStateMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrControllerModelKeyStateMSFT.ntype(address()); } + /** @return the value of the {@link XrControllerModelKeyStateMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrControllerModelKeyStateMSFT.nnext(address()); } + /** @return the value of the {@link XrControllerModelKeyStateMSFT#modelKey} field. */ + @NativeType("XrControllerModelKeyMSFT") + public long modelKey() { return XrControllerModelKeyStateMSFT.nmodelKey(address()); } + + /** Sets the specified value to the {@link XrControllerModelKeyStateMSFT#type} field. */ + public XrControllerModelKeyStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelKeyStateMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_KEY_STATE_MSFT TYPE_CONTROLLER_MODEL_KEY_STATE_MSFT} value to the {@link XrControllerModelKeyStateMSFT#type} field. */ + public XrControllerModelKeyStateMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_KEY_STATE_MSFT); } + /** Sets the specified value to the {@link XrControllerModelKeyStateMSFT#next} field. */ + public XrControllerModelKeyStateMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelKeyStateMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrControllerModelKeyStateMSFT#modelKey} field. */ + public XrControllerModelKeyStateMSFT.Buffer modelKey(@NativeType("XrControllerModelKeyMSFT") long value) { XrControllerModelKeyStateMSFT.nmodelKey(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelNodePropertiesMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelNodePropertiesMSFT.java index 306a66e38d..56caf02c13 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelNodePropertiesMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelNodePropertiesMSFT.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.MSFTControllerModel.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.MSFTControllerModel.*; + /** * Describes the controller model node properties. * @@ -52,8 +52,8 @@ * char {@link #parentNodeName}[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]; * char {@link #nodeName}[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]; * } - */ -public class XrControllerModelNodePropertiesMSFT extends Struct implements NativeResource { + */ +public class XrControllerModelNodePropertiesMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -63,35 +63,26 @@ public class XrControllerModelNodePropertiesMSFT extends Structmay be empty if it should not be used to locate this node. */ - @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") - public ByteBuffer parentNodeName() { return nparentNodeName(address()); } - /** the name of the parent node in the provided glTF file. The parent name may be empty if it should not be used to locate this node. */ - @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") - public String parentNodeNameString() { return nparentNodeNameString(address()); } - /** the name of this node in the provided glTF file. */ - @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") - public ByteBuffer nodeName() { return nnodeName(address()); } - /** the name of this node in the provided glTF file. */ - @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") - public String nodeNameString() { return nnodeNameString(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrControllerModelNodePropertiesMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT} value to the {@link #type} field. */ - public XrControllerModelNodePropertiesMSFT type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrControllerModelNodePropertiesMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Copies the specified encoded string to the {@link #parentNodeName} field. */ - public XrControllerModelNodePropertiesMSFT parentNodeName(@NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") ByteBuffer value) { nparentNodeName(address(), value); return this; } - /** Copies the specified encoded string to the {@link #nodeName} field. */ - public XrControllerModelNodePropertiesMSFT nodeName(@NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") ByteBuffer value) { nnodeName(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 *") + public long next() { return nnext(address()); } + /** the name of the parent node in the provided glTF file. The parent name may be empty if it should not be used to locate this node. */ + @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") + public ByteBuffer parentNodeName() { return nparentNodeName(address()); } + /** the name of the parent node in the provided glTF file. The parent name may be empty if it should not be used to locate this node. */ + @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") + public String parentNodeNameString() { return nparentNodeNameString(address()); } + /** the name of this node in the provided glTF file. */ + @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") + public ByteBuffer nodeName() { return nnodeName(address()); } + /** the name of this node in the provided glTF file. */ + @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") + public String nodeNameString() { return nnodeNameString(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrControllerModelNodePropertiesMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT} value to the {@link #type} field. */ + public XrControllerModelNodePropertiesMSFT type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrControllerModelNodePropertiesMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Copies the specified encoded string to the {@link #parentNodeName} field. */ + public XrControllerModelNodePropertiesMSFT parentNodeName(@NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") ByteBuffer value) { nparentNodeName(address(), value); return this; } + /** Copies the specified encoded string to the {@link #nodeName} field. */ + public XrControllerModelNodePropertiesMSFT nodeName(@NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") ByteBuffer value) { nnodeName(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrControllerModelNodePropertiesMSFT set( - int type, - long next, - ByteBuffer parentNodeName, + int type, + long next, + ByteBuffer parentNodeName, ByteBuffer nodeName - ) { - type(type); - next(next); - parentNodeName(parentNodeName); - nodeName(nodeName); + ) { + type(type); + next(next); + parentNodeName(parentNodeName); + nodeName(nodeName); return this; } @@ -168,29 +159,29 @@ public XrControllerModelNodePropertiesMSFT set(XrControllerModelNodePropertiesMS /** Returns a new {@code XrControllerModelNodePropertiesMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrControllerModelNodePropertiesMSFT malloc() { - return new XrControllerModelNodePropertiesMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrControllerModelNodePropertiesMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrControllerModelNodePropertiesMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrControllerModelNodePropertiesMSFT calloc() { - return new XrControllerModelNodePropertiesMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrControllerModelNodePropertiesMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrControllerModelNodePropertiesMSFT} instance allocated with {@link BufferUtils}. */ public static XrControllerModelNodePropertiesMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrControllerModelNodePropertiesMSFT(memAddress(container), container); + return wrap(XrControllerModelNodePropertiesMSFT.class, memAddress(container), container); } /** Returns a new {@code XrControllerModelNodePropertiesMSFT} instance for the specified memory address. */ public static XrControllerModelNodePropertiesMSFT create(long address) { - return new XrControllerModelNodePropertiesMSFT(address, null); + return wrap(XrControllerModelNodePropertiesMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrControllerModelNodePropertiesMSFT createSafe(long address) { - return address == NULL ? null : new XrControllerModelNodePropertiesMSFT(address, null); + return address == NULL ? null : wrap(XrControllerModelNodePropertiesMSFT.class, address); } /** @@ -199,7 +190,7 @@ public static XrControllerModelNodePropertiesMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrControllerModelNodePropertiesMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -208,7 +199,7 @@ public static XrControllerModelNodePropertiesMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrControllerModelNodePropertiesMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -218,7 +209,7 @@ public static XrControllerModelNodePropertiesMSFT.Buffer calloc(int capacity) { */ public static XrControllerModelNodePropertiesMSFT.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); } /** @@ -228,13 +219,13 @@ public static XrControllerModelNodePropertiesMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrControllerModelNodePropertiesMSFT.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 XrControllerModelNodePropertiesMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -243,7 +234,7 @@ public static XrControllerModelNodePropertiesMSFT.Buffer createSafe(long address * @param stack the stack from which to allocate */ public static XrControllerModelNodePropertiesMSFT malloc(MemoryStack stack) { - return new XrControllerModelNodePropertiesMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrControllerModelNodePropertiesMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -252,7 +243,7 @@ public static XrControllerModelNodePropertiesMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrControllerModelNodePropertiesMSFT calloc(MemoryStack stack) { - return new XrControllerModelNodePropertiesMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrControllerModelNodePropertiesMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -262,7 +253,7 @@ public static XrControllerModelNodePropertiesMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrControllerModelNodePropertiesMSFT.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); } /** @@ -272,46 +263,46 @@ public static XrControllerModelNodePropertiesMSFT.Buffer malloc(int capacity, Me * @param capacity the buffer capacity */ public static XrControllerModelNodePropertiesMSFT.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 + XrControllerModelNodePropertiesMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrControllerModelNodePropertiesMSFT.NEXT); } + /** Unsafe version of {@link #parentNodeName}. */ + public static ByteBuffer nparentNodeName(long struct) { return memByteBuffer(struct + XrControllerModelNodePropertiesMSFT.PARENTNODENAME, XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT); } + /** Unsafe version of {@link #parentNodeNameString}. */ + public static String nparentNodeNameString(long struct) { return memUTF8(struct + XrControllerModelNodePropertiesMSFT.PARENTNODENAME); } + /** Unsafe version of {@link #nodeName}. */ + public static ByteBuffer nnodeName(long struct) { return memByteBuffer(struct + XrControllerModelNodePropertiesMSFT.NODENAME, XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT); } + /** Unsafe version of {@link #nodeNameString}. */ + public static String nnodeNameString(long struct) { return memUTF8(struct + XrControllerModelNodePropertiesMSFT.NODENAME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelNodePropertiesMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrControllerModelNodePropertiesMSFT.NEXT, value); } + /** Unsafe version of {@link #parentNodeName(ByteBuffer) parentNodeName}. */ + public static void nparentNodeName(long struct, ByteBuffer value) { + if (CHECKS) { + checkNT1(value); + checkGT(value, XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT); + } + memCopy(memAddress(value), struct + XrControllerModelNodePropertiesMSFT.PARENTNODENAME, value.remaining()); + } + /** Unsafe version of {@link #nodeName(ByteBuffer) nodeName}. */ + public static void nnodeName(long struct, ByteBuffer value) { + if (CHECKS) { + checkNT1(value); + checkGT(value, XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT); + } + memCopy(memAddress(value), struct + XrControllerModelNodePropertiesMSFT.NODENAME, value.remaining()); } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelNodePropertiesMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrControllerModelNodePropertiesMSFT.NEXT); } - /** Unsafe version of {@link #parentNodeName}. */ - public static ByteBuffer nparentNodeName(long struct) { return memByteBuffer(struct + XrControllerModelNodePropertiesMSFT.PARENTNODENAME, XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT); } - /** Unsafe version of {@link #parentNodeNameString}. */ - public static String nparentNodeNameString(long struct) { return memUTF8(struct + XrControllerModelNodePropertiesMSFT.PARENTNODENAME); } - /** Unsafe version of {@link #nodeName}. */ - public static ByteBuffer nnodeName(long struct) { return memByteBuffer(struct + XrControllerModelNodePropertiesMSFT.NODENAME, XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT); } - /** Unsafe version of {@link #nodeNameString}. */ - public static String nnodeNameString(long struct) { return memUTF8(struct + XrControllerModelNodePropertiesMSFT.NODENAME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelNodePropertiesMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrControllerModelNodePropertiesMSFT.NEXT, value); } - /** Unsafe version of {@link #parentNodeName(ByteBuffer) parentNodeName}. */ - public static void nparentNodeName(long struct, ByteBuffer value) { - if (CHECKS) { - checkNT1(value); - checkGT(value, XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT); - } - memCopy(memAddress(value), struct + XrControllerModelNodePropertiesMSFT.PARENTNODENAME, value.remaining()); - } - /** Unsafe version of {@link #nodeName(ByteBuffer) nodeName}. */ - public static void nnodeName(long struct, ByteBuffer value) { - if (CHECKS) { - checkNT1(value); - checkGT(value, XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT); - } - memCopy(memAddress(value), struct + XrControllerModelNodePropertiesMSFT.NODENAME, value.remaining()); - } - - // ----------------------------------- /** An array of {@link XrControllerModelNodePropertiesMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -321,9 +312,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 XrControllerModelNodePropertiesMSFT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrControllerModelNodePropertiesMSFT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -348,36 +339,36 @@ protected Buffer self() { protected XrControllerModelNodePropertiesMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrControllerModelNodePropertiesMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrControllerModelNodePropertiesMSFT.ntype(address()); } - /** @return the value of the {@link XrControllerModelNodePropertiesMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrControllerModelNodePropertiesMSFT.nnext(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrControllerModelNodePropertiesMSFT#parentNodeName} field. */ - @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") - public ByteBuffer parentNodeName() { return XrControllerModelNodePropertiesMSFT.nparentNodeName(address()); } - /** @return the null-terminated string stored in the {@link XrControllerModelNodePropertiesMSFT#parentNodeName} field. */ - @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") - public String parentNodeNameString() { return XrControllerModelNodePropertiesMSFT.nparentNodeNameString(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrControllerModelNodePropertiesMSFT#nodeName} field. */ - @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") - public ByteBuffer nodeName() { return XrControllerModelNodePropertiesMSFT.nnodeName(address()); } - /** @return the null-terminated string stored in the {@link XrControllerModelNodePropertiesMSFT#nodeName} field. */ - @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") - public String nodeNameString() { return XrControllerModelNodePropertiesMSFT.nnodeNameString(address()); } - - /** Sets the specified value to the {@link XrControllerModelNodePropertiesMSFT#type} field. */ - public XrControllerModelNodePropertiesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelNodePropertiesMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT} value to the {@link XrControllerModelNodePropertiesMSFT#type} field. */ - public XrControllerModelNodePropertiesMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT); } - /** Sets the specified value to the {@link XrControllerModelNodePropertiesMSFT#next} field. */ - public XrControllerModelNodePropertiesMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelNodePropertiesMSFT.nnext(address(), value); return this; } - /** Copies the specified encoded string to the {@link XrControllerModelNodePropertiesMSFT#parentNodeName} field. */ - public XrControllerModelNodePropertiesMSFT.Buffer parentNodeName(@NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") ByteBuffer value) { XrControllerModelNodePropertiesMSFT.nparentNodeName(address(), value); return this; } - /** Copies the specified encoded string to the {@link XrControllerModelNodePropertiesMSFT#nodeName} field. */ - public XrControllerModelNodePropertiesMSFT.Buffer nodeName(@NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") ByteBuffer value) { XrControllerModelNodePropertiesMSFT.nnodeName(address(), value); return this; } + + /** @return the value of the {@link XrControllerModelNodePropertiesMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrControllerModelNodePropertiesMSFT.ntype(address()); } + /** @return the value of the {@link XrControllerModelNodePropertiesMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrControllerModelNodePropertiesMSFT.nnext(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrControllerModelNodePropertiesMSFT#parentNodeName} field. */ + @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") + public ByteBuffer parentNodeName() { return XrControllerModelNodePropertiesMSFT.nparentNodeName(address()); } + /** @return the null-terminated string stored in the {@link XrControllerModelNodePropertiesMSFT#parentNodeName} field. */ + @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") + public String parentNodeNameString() { return XrControllerModelNodePropertiesMSFT.nparentNodeNameString(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrControllerModelNodePropertiesMSFT#nodeName} field. */ + @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") + public ByteBuffer nodeName() { return XrControllerModelNodePropertiesMSFT.nnodeName(address()); } + /** @return the null-terminated string stored in the {@link XrControllerModelNodePropertiesMSFT#nodeName} field. */ + @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") + public String nodeNameString() { return XrControllerModelNodePropertiesMSFT.nnodeNameString(address()); } + + /** Sets the specified value to the {@link XrControllerModelNodePropertiesMSFT#type} field. */ + public XrControllerModelNodePropertiesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelNodePropertiesMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT} value to the {@link XrControllerModelNodePropertiesMSFT#type} field. */ + public XrControllerModelNodePropertiesMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT); } + /** Sets the specified value to the {@link XrControllerModelNodePropertiesMSFT#next} field. */ + public XrControllerModelNodePropertiesMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelNodePropertiesMSFT.nnext(address(), value); return this; } + /** Copies the specified encoded string to the {@link XrControllerModelNodePropertiesMSFT#parentNodeName} field. */ + public XrControllerModelNodePropertiesMSFT.Buffer parentNodeName(@NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") ByteBuffer value) { XrControllerModelNodePropertiesMSFT.nparentNodeName(address(), value); return this; } + /** Copies the specified encoded string to the {@link XrControllerModelNodePropertiesMSFT#nodeName} field. */ + public XrControllerModelNodePropertiesMSFT.Buffer nodeName(@NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") ByteBuffer value) { XrControllerModelNodePropertiesMSFT.nnodeName(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelNodeStateMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelNodeStateMSFT.java index d80885eb8f..b4763c7547 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelNodeStateMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelNodeStateMSFT.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 state of a node in a controller model. * @@ -44,8 +44,8 @@ * void * {@link #next}; * {@link XrPosef XrPosef} {@link #nodePose}; * } - */ -public class XrControllerModelNodeStateMSFT extends Struct implements NativeResource { + */ +public class XrControllerModelNodeStateMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,32 +55,23 @@ public class XrControllerModelNodeStateMSFT extends Struct consumer) { consumer.accept(nodePose()); 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 *") + public long next() { return nnext(address()); } + /** an {@link XrPosef} of the node in its parent node space. */ + public XrPosef nodePose() { return nnodePose(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrControllerModelNodeStateMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT} value to the {@link #type} field. */ + public XrControllerModelNodeStateMSFT type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrControllerModelNodeStateMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #nodePose} field. */ + public XrControllerModelNodeStateMSFT nodePose(XrPosef value) { nnodePose(address(), value); return this; } + /** Passes the {@link #nodePose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrControllerModelNodeStateMSFT nodePose(java.util.function.Consumer consumer) { consumer.accept(nodePose()); return this; } /** Initializes this struct with the specified values. */ public XrControllerModelNodeStateMSFT set( - int type, - long next, + int type, + long next, XrPosef nodePose - ) { - type(type); - next(next); - nodePose(nodePose); + ) { + type(type); + next(next); + nodePose(nodePose); return this; } @@ -145,29 +136,29 @@ public XrControllerModelNodeStateMSFT set(XrControllerModelNodeStateMSFT src) { /** Returns a new {@code XrControllerModelNodeStateMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrControllerModelNodeStateMSFT malloc() { - return new XrControllerModelNodeStateMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrControllerModelNodeStateMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrControllerModelNodeStateMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrControllerModelNodeStateMSFT calloc() { - return new XrControllerModelNodeStateMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrControllerModelNodeStateMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrControllerModelNodeStateMSFT} instance allocated with {@link BufferUtils}. */ public static XrControllerModelNodeStateMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrControllerModelNodeStateMSFT(memAddress(container), container); + return wrap(XrControllerModelNodeStateMSFT.class, memAddress(container), container); } /** Returns a new {@code XrControllerModelNodeStateMSFT} instance for the specified memory address. */ public static XrControllerModelNodeStateMSFT create(long address) { - return new XrControllerModelNodeStateMSFT(address, null); + return wrap(XrControllerModelNodeStateMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrControllerModelNodeStateMSFT createSafe(long address) { - return address == NULL ? null : new XrControllerModelNodeStateMSFT(address, null); + return address == NULL ? null : wrap(XrControllerModelNodeStateMSFT.class, address); } /** @@ -176,7 +167,7 @@ public static XrControllerModelNodeStateMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrControllerModelNodeStateMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -185,7 +176,7 @@ public static XrControllerModelNodeStateMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrControllerModelNodeStateMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -195,7 +186,7 @@ public static XrControllerModelNodeStateMSFT.Buffer calloc(int capacity) { */ public static XrControllerModelNodeStateMSFT.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); } /** @@ -205,13 +196,13 @@ public static XrControllerModelNodeStateMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrControllerModelNodeStateMSFT.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 XrControllerModelNodeStateMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -220,7 +211,7 @@ public static XrControllerModelNodeStateMSFT.Buffer createSafe(long address, int * @param stack the stack from which to allocate */ public static XrControllerModelNodeStateMSFT malloc(MemoryStack stack) { - return new XrControllerModelNodeStateMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrControllerModelNodeStateMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -229,7 +220,7 @@ public static XrControllerModelNodeStateMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrControllerModelNodeStateMSFT calloc(MemoryStack stack) { - return new XrControllerModelNodeStateMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrControllerModelNodeStateMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -239,7 +230,7 @@ public static XrControllerModelNodeStateMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrControllerModelNodeStateMSFT.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); } /** @@ -249,26 +240,26 @@ public static XrControllerModelNodeStateMSFT.Buffer malloc(int capacity, MemoryS * @param capacity the buffer capacity */ public static XrControllerModelNodeStateMSFT.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 + XrControllerModelNodeStateMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrControllerModelNodeStateMSFT.NEXT); } - /** Unsafe version of {@link #nodePose}. */ - public static XrPosef nnodePose(long struct) { return XrPosef.create(struct + XrControllerModelNodeStateMSFT.NODEPOSE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelNodeStateMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrControllerModelNodeStateMSFT.NEXT, value); } - /** Unsafe version of {@link #nodePose(XrPosef) nodePose}. */ - public static void nnodePose(long struct, XrPosef value) { memCopy(value.address(), struct + XrControllerModelNodeStateMSFT.NODEPOSE, XrPosef.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelNodeStateMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrControllerModelNodeStateMSFT.NEXT); } + /** Unsafe version of {@link #nodePose}. */ + public static XrPosef nnodePose(long struct) { return XrPosef.create(struct + XrControllerModelNodeStateMSFT.NODEPOSE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelNodeStateMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrControllerModelNodeStateMSFT.NEXT, value); } + /** Unsafe version of {@link #nodePose(XrPosef) nodePose}. */ + public static void nnodePose(long struct, XrPosef value) { memCopy(value.address(), struct + XrControllerModelNodeStateMSFT.NODEPOSE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrControllerModelNodeStateMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -278,9 +269,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 XrControllerModelNodeStateMSFT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrControllerModelNodeStateMSFT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -305,26 +296,26 @@ protected Buffer self() { protected XrControllerModelNodeStateMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrControllerModelNodeStateMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrControllerModelNodeStateMSFT.ntype(address()); } - /** @return the value of the {@link XrControllerModelNodeStateMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrControllerModelNodeStateMSFT.nnext(address()); } - /** @return a {@link XrPosef} view of the {@link XrControllerModelNodeStateMSFT#nodePose} field. */ - public XrPosef nodePose() { return XrControllerModelNodeStateMSFT.nnodePose(address()); } - - /** Sets the specified value to the {@link XrControllerModelNodeStateMSFT#type} field. */ - public XrControllerModelNodeStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelNodeStateMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT} value to the {@link XrControllerModelNodeStateMSFT#type} field. */ - public XrControllerModelNodeStateMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT); } - /** Sets the specified value to the {@link XrControllerModelNodeStateMSFT#next} field. */ - public XrControllerModelNodeStateMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelNodeStateMSFT.nnext(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrControllerModelNodeStateMSFT#nodePose} field. */ - public XrControllerModelNodeStateMSFT.Buffer nodePose(XrPosef value) { XrControllerModelNodeStateMSFT.nnodePose(address(), value); return this; } - /** Passes the {@link XrControllerModelNodeStateMSFT#nodePose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrControllerModelNodeStateMSFT.Buffer nodePose(java.util.function.Consumer consumer) { consumer.accept(nodePose()); return this; } + + /** @return the value of the {@link XrControllerModelNodeStateMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrControllerModelNodeStateMSFT.ntype(address()); } + /** @return the value of the {@link XrControllerModelNodeStateMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrControllerModelNodeStateMSFT.nnext(address()); } + /** @return a {@link XrPosef} view of the {@link XrControllerModelNodeStateMSFT#nodePose} field. */ + public XrPosef nodePose() { return XrControllerModelNodeStateMSFT.nnodePose(address()); } + + /** Sets the specified value to the {@link XrControllerModelNodeStateMSFT#type} field. */ + public XrControllerModelNodeStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelNodeStateMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT} value to the {@link XrControllerModelNodeStateMSFT#type} field. */ + public XrControllerModelNodeStateMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT); } + /** Sets the specified value to the {@link XrControllerModelNodeStateMSFT#next} field. */ + public XrControllerModelNodeStateMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelNodeStateMSFT.nnext(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrControllerModelNodeStateMSFT#nodePose} field. */ + public XrControllerModelNodeStateMSFT.Buffer nodePose(XrPosef value) { XrControllerModelNodeStateMSFT.nnodePose(address(), value); return this; } + /** Passes the {@link XrControllerModelNodeStateMSFT#nodePose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrControllerModelNodeStateMSFT.Buffer nodePose(java.util.function.Consumer consumer) { consumer.accept(nodePose()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelPropertiesMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelPropertiesMSFT.java index 4d202719a4..9964cf4135 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelPropertiesMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelPropertiesMSFT.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 properties of a controller model. * @@ -41,8 +41,8 @@ * uint32_t {@link #nodeCountOutput}; * {@link XrControllerModelNodePropertiesMSFT XrControllerModelNodePropertiesMSFT} * {@link #nodeProperties}; * } - */ -public class XrControllerModelPropertiesMSFT extends Struct implements NativeResource { + */ +public class XrControllerModelPropertiesMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,38 +52,29 @@ public class XrControllerModelPropertiesMSFT extends Structcan be {@code NULL} if {@code nodeCapacityInput} is 0. */ - @Nullable - @NativeType("XrControllerModelNodePropertiesMSFT *") - public XrControllerModelNodePropertiesMSFT.Buffer nodeProperties() { return nnodeProperties(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrControllerModelPropertiesMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT} value to the {@link #type} field. */ - public XrControllerModelPropertiesMSFT type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrControllerModelPropertiesMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #nodeCapacityInput} field. */ - public XrControllerModelPropertiesMSFT nodeCapacityInput(@NativeType("uint32_t") int value) { nnodeCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #nodeCountOutput} field. */ - public XrControllerModelPropertiesMSFT nodeCountOutput(@NativeType("uint32_t") int value) { nnodeCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrControllerModelNodePropertiesMSFT.Buffer} to the {@link #nodeProperties} field. */ - public XrControllerModelPropertiesMSFT nodeProperties(@Nullable @NativeType("XrControllerModelNodePropertiesMSFT *") XrControllerModelNodePropertiesMSFT.Buffer value) { nnodeProperties(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 *") + public long next() { return nnext(address()); } + /** the capacity of the {@code nodeProperties} array, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int nodeCapacityInput() { return nnodeCapacityInput(address()); } + /** filled in by the runtime with the count of elements in {@code nodeProperties} array, or returns the required capacity in the case that {@code nodeCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int nodeCountOutput() { return nnodeCountOutput(address()); } + /** a pointer to an application-allocated array that will be filled with the {@link XrControllerModelNodePropertiesMSFT} values. It can be {@code NULL} if {@code nodeCapacityInput} is 0. */ + @Nullable + @NativeType("XrControllerModelNodePropertiesMSFT *") + public XrControllerModelNodePropertiesMSFT.Buffer nodeProperties() { return nnodeProperties(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrControllerModelPropertiesMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT} value to the {@link #type} field. */ + public XrControllerModelPropertiesMSFT type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrControllerModelPropertiesMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #nodeCapacityInput} field. */ + public XrControllerModelPropertiesMSFT nodeCapacityInput(@NativeType("uint32_t") int value) { nnodeCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #nodeCountOutput} field. */ + public XrControllerModelPropertiesMSFT nodeCountOutput(@NativeType("uint32_t") int value) { nnodeCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrControllerModelNodePropertiesMSFT.Buffer} to the {@link #nodeProperties} field. */ + public XrControllerModelPropertiesMSFT nodeProperties(@Nullable @NativeType("XrControllerModelNodePropertiesMSFT *") XrControllerModelNodePropertiesMSFT.Buffer value) { nnodeProperties(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrControllerModelPropertiesMSFT set( - int type, - long next, - int nodeCapacityInput, - int nodeCountOutput, + int type, + long next, + int nodeCapacityInput, + int nodeCountOutput, @Nullable XrControllerModelNodePropertiesMSFT.Buffer nodeProperties - ) { - type(type); - next(next); - nodeCapacityInput(nodeCapacityInput); - nodeCountOutput(nodeCountOutput); - nodeProperties(nodeProperties); + ) { + type(type); + next(next); + nodeCapacityInput(nodeCapacityInput); + nodeCountOutput(nodeCountOutput); + nodeProperties(nodeProperties); return this; } @@ -162,29 +153,29 @@ public XrControllerModelPropertiesMSFT set(XrControllerModelPropertiesMSFT src) /** Returns a new {@code XrControllerModelPropertiesMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrControllerModelPropertiesMSFT malloc() { - return new XrControllerModelPropertiesMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrControllerModelPropertiesMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrControllerModelPropertiesMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrControllerModelPropertiesMSFT calloc() { - return new XrControllerModelPropertiesMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrControllerModelPropertiesMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrControllerModelPropertiesMSFT} instance allocated with {@link BufferUtils}. */ public static XrControllerModelPropertiesMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrControllerModelPropertiesMSFT(memAddress(container), container); + return wrap(XrControllerModelPropertiesMSFT.class, memAddress(container), container); } /** Returns a new {@code XrControllerModelPropertiesMSFT} instance for the specified memory address. */ public static XrControllerModelPropertiesMSFT create(long address) { - return new XrControllerModelPropertiesMSFT(address, null); + return wrap(XrControllerModelPropertiesMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrControllerModelPropertiesMSFT createSafe(long address) { - return address == NULL ? null : new XrControllerModelPropertiesMSFT(address, null); + return address == NULL ? null : wrap(XrControllerModelPropertiesMSFT.class, address); } /** @@ -193,7 +184,7 @@ public static XrControllerModelPropertiesMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrControllerModelPropertiesMSFT.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 XrControllerModelPropertiesMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrControllerModelPropertiesMSFT.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 XrControllerModelPropertiesMSFT.Buffer calloc(int capacity) { */ public static XrControllerModelPropertiesMSFT.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 XrControllerModelPropertiesMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrControllerModelPropertiesMSFT.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 XrControllerModelPropertiesMSFT.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 XrControllerModelPropertiesMSFT.Buffer createSafe(long address, in * @param stack the stack from which to allocate */ public static XrControllerModelPropertiesMSFT malloc(MemoryStack stack) { - return new XrControllerModelPropertiesMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrControllerModelPropertiesMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -246,7 +237,7 @@ public static XrControllerModelPropertiesMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrControllerModelPropertiesMSFT calloc(MemoryStack stack) { - return new XrControllerModelPropertiesMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrControllerModelPropertiesMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -256,7 +247,7 @@ public static XrControllerModelPropertiesMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrControllerModelPropertiesMSFT.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 XrControllerModelPropertiesMSFT.Buffer malloc(int capacity, Memory * @param capacity the buffer capacity */ public static XrControllerModelPropertiesMSFT.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 + XrControllerModelPropertiesMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrControllerModelPropertiesMSFT.NEXT); } - /** Unsafe version of {@link #nodeCapacityInput}. */ - public static int nnodeCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelPropertiesMSFT.NODECAPACITYINPUT); } - /** Unsafe version of {@link #nodeCountOutput}. */ - public static int nnodeCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelPropertiesMSFT.NODECOUNTOUTPUT); } - /** Unsafe version of {@link #nodeProperties}. */ - @Nullable public static XrControllerModelNodePropertiesMSFT.Buffer nnodeProperties(long struct) { return XrControllerModelNodePropertiesMSFT.createSafe(memGetAddress(struct + XrControllerModelPropertiesMSFT.NODEPROPERTIES), nnodeCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelPropertiesMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrControllerModelPropertiesMSFT.NEXT, value); } - /** Sets the specified value to the {@code nodeCapacityInput} field of the specified {@code struct}. */ - public static void nnodeCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelPropertiesMSFT.NODECAPACITYINPUT, value); } - /** Unsafe version of {@link #nodeCountOutput(int) nodeCountOutput}. */ - public static void nnodeCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelPropertiesMSFT.NODECOUNTOUTPUT, value); } - /** Unsafe version of {@link #nodeProperties(XrControllerModelNodePropertiesMSFT.Buffer) nodeProperties}. */ - public static void nnodeProperties(long struct, @Nullable XrControllerModelNodePropertiesMSFT.Buffer value) { memPutAddress(struct + XrControllerModelPropertiesMSFT.NODEPROPERTIES, memAddressSafe(value)); if (value != null) { nnodeCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelPropertiesMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrControllerModelPropertiesMSFT.NEXT); } + /** Unsafe version of {@link #nodeCapacityInput}. */ + public static int nnodeCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelPropertiesMSFT.NODECAPACITYINPUT); } + /** Unsafe version of {@link #nodeCountOutput}. */ + public static int nnodeCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelPropertiesMSFT.NODECOUNTOUTPUT); } + /** Unsafe version of {@link #nodeProperties}. */ + @Nullable public static XrControllerModelNodePropertiesMSFT.Buffer nnodeProperties(long struct) { return XrControllerModelNodePropertiesMSFT.createSafe(memGetAddress(struct + XrControllerModelPropertiesMSFT.NODEPROPERTIES), nnodeCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelPropertiesMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrControllerModelPropertiesMSFT.NEXT, value); } + /** Sets the specified value to the {@code nodeCapacityInput} field of the specified {@code struct}. */ + public static void nnodeCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelPropertiesMSFT.NODECAPACITYINPUT, value); } + /** Unsafe version of {@link #nodeCountOutput(int) nodeCountOutput}. */ + public static void nnodeCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelPropertiesMSFT.NODECOUNTOUTPUT, value); } + /** Unsafe version of {@link #nodeProperties(XrControllerModelNodePropertiesMSFT.Buffer) nodeProperties}. */ + public static void nnodeProperties(long struct, @Nullable XrControllerModelNodePropertiesMSFT.Buffer value) { memPutAddress(struct + XrControllerModelPropertiesMSFT.NODEPROPERTIES, memAddressSafe(value)); if (value != null) { nnodeCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrControllerModelPropertiesMSFT} 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 XrControllerModelPropertiesMSFT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrControllerModelPropertiesMSFT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -330,36 +321,36 @@ protected Buffer self() { protected XrControllerModelPropertiesMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrControllerModelPropertiesMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrControllerModelPropertiesMSFT.ntype(address()); } - /** @return the value of the {@link XrControllerModelPropertiesMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrControllerModelPropertiesMSFT.nnext(address()); } - /** @return the value of the {@link XrControllerModelPropertiesMSFT#nodeCapacityInput} field. */ - @NativeType("uint32_t") - public int nodeCapacityInput() { return XrControllerModelPropertiesMSFT.nnodeCapacityInput(address()); } - /** @return the value of the {@link XrControllerModelPropertiesMSFT#nodeCountOutput} field. */ - @NativeType("uint32_t") - public int nodeCountOutput() { return XrControllerModelPropertiesMSFT.nnodeCountOutput(address()); } - /** @return a {@link XrControllerModelNodePropertiesMSFT.Buffer} view of the struct array pointed to by the {@link XrControllerModelPropertiesMSFT#nodeProperties} field. */ - @Nullable - @NativeType("XrControllerModelNodePropertiesMSFT *") - public XrControllerModelNodePropertiesMSFT.Buffer nodeProperties() { return XrControllerModelPropertiesMSFT.nnodeProperties(address()); } - - /** Sets the specified value to the {@link XrControllerModelPropertiesMSFT#type} field. */ - public XrControllerModelPropertiesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelPropertiesMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT} value to the {@link XrControllerModelPropertiesMSFT#type} field. */ - public XrControllerModelPropertiesMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT); } - /** Sets the specified value to the {@link XrControllerModelPropertiesMSFT#next} field. */ - public XrControllerModelPropertiesMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelPropertiesMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrControllerModelPropertiesMSFT#nodeCapacityInput} field. */ - public XrControllerModelPropertiesMSFT.Buffer nodeCapacityInput(@NativeType("uint32_t") int value) { XrControllerModelPropertiesMSFT.nnodeCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrControllerModelPropertiesMSFT#nodeCountOutput} field. */ - public XrControllerModelPropertiesMSFT.Buffer nodeCountOutput(@NativeType("uint32_t") int value) { XrControllerModelPropertiesMSFT.nnodeCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrControllerModelNodePropertiesMSFT.Buffer} to the {@link XrControllerModelPropertiesMSFT#nodeProperties} field. */ - public XrControllerModelPropertiesMSFT.Buffer nodeProperties(@Nullable @NativeType("XrControllerModelNodePropertiesMSFT *") XrControllerModelNodePropertiesMSFT.Buffer value) { XrControllerModelPropertiesMSFT.nnodeProperties(address(), value); return this; } + + /** @return the value of the {@link XrControllerModelPropertiesMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrControllerModelPropertiesMSFT.ntype(address()); } + /** @return the value of the {@link XrControllerModelPropertiesMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrControllerModelPropertiesMSFT.nnext(address()); } + /** @return the value of the {@link XrControllerModelPropertiesMSFT#nodeCapacityInput} field. */ + @NativeType("uint32_t") + public int nodeCapacityInput() { return XrControllerModelPropertiesMSFT.nnodeCapacityInput(address()); } + /** @return the value of the {@link XrControllerModelPropertiesMSFT#nodeCountOutput} field. */ + @NativeType("uint32_t") + public int nodeCountOutput() { return XrControllerModelPropertiesMSFT.nnodeCountOutput(address()); } + /** @return a {@link XrControllerModelNodePropertiesMSFT.Buffer} view of the struct array pointed to by the {@link XrControllerModelPropertiesMSFT#nodeProperties} field. */ + @Nullable + @NativeType("XrControllerModelNodePropertiesMSFT *") + public XrControllerModelNodePropertiesMSFT.Buffer nodeProperties() { return XrControllerModelPropertiesMSFT.nnodeProperties(address()); } + + /** Sets the specified value to the {@link XrControllerModelPropertiesMSFT#type} field. */ + public XrControllerModelPropertiesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelPropertiesMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT} value to the {@link XrControllerModelPropertiesMSFT#type} field. */ + public XrControllerModelPropertiesMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT); } + /** Sets the specified value to the {@link XrControllerModelPropertiesMSFT#next} field. */ + public XrControllerModelPropertiesMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelPropertiesMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrControllerModelPropertiesMSFT#nodeCapacityInput} field. */ + public XrControllerModelPropertiesMSFT.Buffer nodeCapacityInput(@NativeType("uint32_t") int value) { XrControllerModelPropertiesMSFT.nnodeCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrControllerModelPropertiesMSFT#nodeCountOutput} field. */ + public XrControllerModelPropertiesMSFT.Buffer nodeCountOutput(@NativeType("uint32_t") int value) { XrControllerModelPropertiesMSFT.nnodeCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrControllerModelNodePropertiesMSFT.Buffer} to the {@link XrControllerModelPropertiesMSFT#nodeProperties} field. */ + public XrControllerModelPropertiesMSFT.Buffer nodeProperties(@Nullable @NativeType("XrControllerModelNodePropertiesMSFT *") XrControllerModelNodePropertiesMSFT.Buffer value) { XrControllerModelPropertiesMSFT.nnodeProperties(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelStateMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelStateMSFT.java index 8d94c09173..c43f821367 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelStateMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelStateMSFT.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 state of a controller model. * @@ -41,8 +41,8 @@ * uint32_t {@link #nodeCountOutput}; * {@link XrControllerModelNodeStateMSFT XrControllerModelNodeStateMSFT} * {@link #nodeStates}; * } - */ -public class XrControllerModelStateMSFT extends Struct implements NativeResource { + */ +public class XrControllerModelStateMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,38 +52,29 @@ public class XrControllerModelStateMSFT extends Structcan be {@code NULL} if {@code sourceCapacityInput} is 0. */ - @Nullable - @NativeType("XrControllerModelNodeStateMSFT *") - public XrControllerModelNodeStateMSFT.Buffer nodeStates() { return nnodeStates(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrControllerModelStateMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_STATE_MSFT TYPE_CONTROLLER_MODEL_STATE_MSFT} value to the {@link #type} field. */ - public XrControllerModelStateMSFT type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_STATE_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrControllerModelStateMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #nodeCapacityInput} field. */ - public XrControllerModelStateMSFT nodeCapacityInput(@NativeType("uint32_t") int value) { nnodeCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #nodeCountOutput} field. */ - public XrControllerModelStateMSFT nodeCountOutput(@NativeType("uint32_t") int value) { nnodeCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrControllerModelNodeStateMSFT.Buffer} to the {@link #nodeStates} field. */ - public XrControllerModelStateMSFT nodeStates(@Nullable @NativeType("XrControllerModelNodeStateMSFT *") XrControllerModelNodeStateMSFT.Buffer value) { nnodeStates(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 *") + public long next() { return nnext(address()); } + /** the capacity of the {@code nodeStates} array, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int nodeCapacityInput() { return nnodeCapacityInput(address()); } + /** filled in by the runtime with the count of elements in {@code nodeStates} array, or returns the required capacity in the case that {@code nodeCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int nodeCountOutput() { return nnodeCountOutput(address()); } + /** a pointer to an application-allocated array that will be filled with the {@link XrControllerModelNodeStateMSFT} values. It can be {@code NULL} if {@code sourceCapacityInput} is 0. */ + @Nullable + @NativeType("XrControllerModelNodeStateMSFT *") + public XrControllerModelNodeStateMSFT.Buffer nodeStates() { return nnodeStates(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrControllerModelStateMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_STATE_MSFT TYPE_CONTROLLER_MODEL_STATE_MSFT} value to the {@link #type} field. */ + public XrControllerModelStateMSFT type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_STATE_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrControllerModelStateMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #nodeCapacityInput} field. */ + public XrControllerModelStateMSFT nodeCapacityInput(@NativeType("uint32_t") int value) { nnodeCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #nodeCountOutput} field. */ + public XrControllerModelStateMSFT nodeCountOutput(@NativeType("uint32_t") int value) { nnodeCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrControllerModelNodeStateMSFT.Buffer} to the {@link #nodeStates} field. */ + public XrControllerModelStateMSFT nodeStates(@Nullable @NativeType("XrControllerModelNodeStateMSFT *") XrControllerModelNodeStateMSFT.Buffer value) { nnodeStates(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrControllerModelStateMSFT set( - int type, - long next, - int nodeCapacityInput, - int nodeCountOutput, + int type, + long next, + int nodeCapacityInput, + int nodeCountOutput, @Nullable XrControllerModelNodeStateMSFT.Buffer nodeStates - ) { - type(type); - next(next); - nodeCapacityInput(nodeCapacityInput); - nodeCountOutput(nodeCountOutput); - nodeStates(nodeStates); + ) { + type(type); + next(next); + nodeCapacityInput(nodeCapacityInput); + nodeCountOutput(nodeCountOutput); + nodeStates(nodeStates); return this; } @@ -162,29 +153,29 @@ public XrControllerModelStateMSFT set(XrControllerModelStateMSFT src) { /** Returns a new {@code XrControllerModelStateMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrControllerModelStateMSFT malloc() { - return new XrControllerModelStateMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrControllerModelStateMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrControllerModelStateMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrControllerModelStateMSFT calloc() { - return new XrControllerModelStateMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrControllerModelStateMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrControllerModelStateMSFT} instance allocated with {@link BufferUtils}. */ public static XrControllerModelStateMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrControllerModelStateMSFT(memAddress(container), container); + return wrap(XrControllerModelStateMSFT.class, memAddress(container), container); } /** Returns a new {@code XrControllerModelStateMSFT} instance for the specified memory address. */ public static XrControllerModelStateMSFT create(long address) { - return new XrControllerModelStateMSFT(address, null); + return wrap(XrControllerModelStateMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrControllerModelStateMSFT createSafe(long address) { - return address == NULL ? null : new XrControllerModelStateMSFT(address, null); + return address == NULL ? null : wrap(XrControllerModelStateMSFT.class, address); } /** @@ -193,7 +184,7 @@ public static XrControllerModelStateMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrControllerModelStateMSFT.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 XrControllerModelStateMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrControllerModelStateMSFT.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 XrControllerModelStateMSFT.Buffer calloc(int capacity) { */ public static XrControllerModelStateMSFT.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 XrControllerModelStateMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrControllerModelStateMSFT.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 XrControllerModelStateMSFT.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 XrControllerModelStateMSFT.Buffer createSafe(long address, int cap * @param stack the stack from which to allocate */ public static XrControllerModelStateMSFT malloc(MemoryStack stack) { - return new XrControllerModelStateMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrControllerModelStateMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -246,7 +237,7 @@ public static XrControllerModelStateMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrControllerModelStateMSFT calloc(MemoryStack stack) { - return new XrControllerModelStateMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrControllerModelStateMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -256,7 +247,7 @@ public static XrControllerModelStateMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrControllerModelStateMSFT.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 XrControllerModelStateMSFT.Buffer malloc(int capacity, MemoryStack * @param capacity the buffer capacity */ public static XrControllerModelStateMSFT.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 + XrControllerModelStateMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrControllerModelStateMSFT.NEXT); } - /** Unsafe version of {@link #nodeCapacityInput}. */ - public static int nnodeCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelStateMSFT.NODECAPACITYINPUT); } - /** Unsafe version of {@link #nodeCountOutput}. */ - public static int nnodeCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelStateMSFT.NODECOUNTOUTPUT); } - /** Unsafe version of {@link #nodeStates}. */ - @Nullable public static XrControllerModelNodeStateMSFT.Buffer nnodeStates(long struct) { return XrControllerModelNodeStateMSFT.createSafe(memGetAddress(struct + XrControllerModelStateMSFT.NODESTATES), nnodeCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelStateMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrControllerModelStateMSFT.NEXT, value); } - /** Sets the specified value to the {@code nodeCapacityInput} field of the specified {@code struct}. */ - public static void nnodeCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelStateMSFT.NODECAPACITYINPUT, value); } - /** Unsafe version of {@link #nodeCountOutput(int) nodeCountOutput}. */ - public static void nnodeCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelStateMSFT.NODECOUNTOUTPUT, value); } - /** Unsafe version of {@link #nodeStates(XrControllerModelNodeStateMSFT.Buffer) nodeStates}. */ - public static void nnodeStates(long struct, @Nullable XrControllerModelNodeStateMSFT.Buffer value) { memPutAddress(struct + XrControllerModelStateMSFT.NODESTATES, memAddressSafe(value)); if (value != null) { nnodeCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelStateMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrControllerModelStateMSFT.NEXT); } + /** Unsafe version of {@link #nodeCapacityInput}. */ + public static int nnodeCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelStateMSFT.NODECAPACITYINPUT); } + /** Unsafe version of {@link #nodeCountOutput}. */ + public static int nnodeCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelStateMSFT.NODECOUNTOUTPUT); } + /** Unsafe version of {@link #nodeStates}. */ + @Nullable public static XrControllerModelNodeStateMSFT.Buffer nnodeStates(long struct) { return XrControllerModelNodeStateMSFT.createSafe(memGetAddress(struct + XrControllerModelStateMSFT.NODESTATES), nnodeCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelStateMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrControllerModelStateMSFT.NEXT, value); } + /** Sets the specified value to the {@code nodeCapacityInput} field of the specified {@code struct}. */ + public static void nnodeCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelStateMSFT.NODECAPACITYINPUT, value); } + /** Unsafe version of {@link #nodeCountOutput(int) nodeCountOutput}. */ + public static void nnodeCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelStateMSFT.NODECOUNTOUTPUT, value); } + /** Unsafe version of {@link #nodeStates(XrControllerModelNodeStateMSFT.Buffer) nodeStates}. */ + public static void nnodeStates(long struct, @Nullable XrControllerModelNodeStateMSFT.Buffer value) { memPutAddress(struct + XrControllerModelStateMSFT.NODESTATES, memAddressSafe(value)); if (value != null) { nnodeCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrControllerModelStateMSFT} 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 XrControllerModelStateMSFT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrControllerModelStateMSFT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -330,36 +321,36 @@ protected Buffer self() { protected XrControllerModelStateMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrControllerModelStateMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrControllerModelStateMSFT.ntype(address()); } - /** @return the value of the {@link XrControllerModelStateMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrControllerModelStateMSFT.nnext(address()); } - /** @return the value of the {@link XrControllerModelStateMSFT#nodeCapacityInput} field. */ - @NativeType("uint32_t") - public int nodeCapacityInput() { return XrControllerModelStateMSFT.nnodeCapacityInput(address()); } - /** @return the value of the {@link XrControllerModelStateMSFT#nodeCountOutput} field. */ - @NativeType("uint32_t") - public int nodeCountOutput() { return XrControllerModelStateMSFT.nnodeCountOutput(address()); } - /** @return a {@link XrControllerModelNodeStateMSFT.Buffer} view of the struct array pointed to by the {@link XrControllerModelStateMSFT#nodeStates} field. */ - @Nullable - @NativeType("XrControllerModelNodeStateMSFT *") - public XrControllerModelNodeStateMSFT.Buffer nodeStates() { return XrControllerModelStateMSFT.nnodeStates(address()); } - - /** Sets the specified value to the {@link XrControllerModelStateMSFT#type} field. */ - public XrControllerModelStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelStateMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_STATE_MSFT TYPE_CONTROLLER_MODEL_STATE_MSFT} value to the {@link XrControllerModelStateMSFT#type} field. */ - public XrControllerModelStateMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_STATE_MSFT); } - /** Sets the specified value to the {@link XrControllerModelStateMSFT#next} field. */ - public XrControllerModelStateMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelStateMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrControllerModelStateMSFT#nodeCapacityInput} field. */ - public XrControllerModelStateMSFT.Buffer nodeCapacityInput(@NativeType("uint32_t") int value) { XrControllerModelStateMSFT.nnodeCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrControllerModelStateMSFT#nodeCountOutput} field. */ - public XrControllerModelStateMSFT.Buffer nodeCountOutput(@NativeType("uint32_t") int value) { XrControllerModelStateMSFT.nnodeCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrControllerModelNodeStateMSFT.Buffer} to the {@link XrControllerModelStateMSFT#nodeStates} field. */ - public XrControllerModelStateMSFT.Buffer nodeStates(@Nullable @NativeType("XrControllerModelNodeStateMSFT *") XrControllerModelNodeStateMSFT.Buffer value) { XrControllerModelStateMSFT.nnodeStates(address(), value); return this; } + + /** @return the value of the {@link XrControllerModelStateMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrControllerModelStateMSFT.ntype(address()); } + /** @return the value of the {@link XrControllerModelStateMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrControllerModelStateMSFT.nnext(address()); } + /** @return the value of the {@link XrControllerModelStateMSFT#nodeCapacityInput} field. */ + @NativeType("uint32_t") + public int nodeCapacityInput() { return XrControllerModelStateMSFT.nnodeCapacityInput(address()); } + /** @return the value of the {@link XrControllerModelStateMSFT#nodeCountOutput} field. */ + @NativeType("uint32_t") + public int nodeCountOutput() { return XrControllerModelStateMSFT.nnodeCountOutput(address()); } + /** @return a {@link XrControllerModelNodeStateMSFT.Buffer} view of the struct array pointed to by the {@link XrControllerModelStateMSFT#nodeStates} field. */ + @Nullable + @NativeType("XrControllerModelNodeStateMSFT *") + public XrControllerModelNodeStateMSFT.Buffer nodeStates() { return XrControllerModelStateMSFT.nnodeStates(address()); } + + /** Sets the specified value to the {@link XrControllerModelStateMSFT#type} field. */ + public XrControllerModelStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelStateMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_STATE_MSFT TYPE_CONTROLLER_MODEL_STATE_MSFT} value to the {@link XrControllerModelStateMSFT#type} field. */ + public XrControllerModelStateMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_STATE_MSFT); } + /** Sets the specified value to the {@link XrControllerModelStateMSFT#next} field. */ + public XrControllerModelStateMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelStateMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrControllerModelStateMSFT#nodeCapacityInput} field. */ + public XrControllerModelStateMSFT.Buffer nodeCapacityInput(@NativeType("uint32_t") int value) { XrControllerModelStateMSFT.nnodeCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrControllerModelStateMSFT#nodeCountOutput} field. */ + public XrControllerModelStateMSFT.Buffer nodeCountOutput(@NativeType("uint32_t") int value) { XrControllerModelStateMSFT.nnodeCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrControllerModelNodeStateMSFT.Buffer} to the {@link XrControllerModelStateMSFT#nodeStates} field. */ + public XrControllerModelStateMSFT.Buffer nodeStates(@Nullable @NativeType("XrControllerModelNodeStateMSFT *") XrControllerModelNodeStateMSFT.Buffer value) { XrControllerModelStateMSFT.nnodeStates(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCoordinateSpaceCreateInfoML.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCoordinateSpaceCreateInfoML.java index d093abd804..ae5820c93a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCoordinateSpaceCreateInfoML.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCoordinateSpaceCreateInfoML.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.*; + /** * Structure used to create an XrSpace from a cfuid. * @@ -44,8 +44,8 @@ * {@link MLCoordinateFrameUID MLCoordinateFrameUID} {@link #cfuid}; * {@link XrPosef XrPosef} {@link #poseInCoordinateSpace}; * } - */ -public class XrCoordinateSpaceCreateInfoML extends Struct implements NativeResource { + */ +public class XrCoordinateSpaceCreateInfoML extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,35 +55,26 @@ public class XrCoordinateSpaceCreateInfoML extends Struct consumer) { consumer.accept(poseInCoordinateSpace()); 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()); } + /** the {@code MLCoordinateFrameUID} as generated by the non-OpenXR API in the Magic Leap SDK. */ + public MLCoordinateFrameUID cfuid() { return ncfuid(address()); } + /** an {@link XrPosef} defining the position and orientation of the new space’s origin within the natural reference frame of the {@code cfuid}. */ + public XrPosef poseInCoordinateSpace() { return nposeInCoordinateSpace(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrCoordinateSpaceCreateInfoML type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MLCompat#XR_TYPE_COORDINATE_SPACE_CREATE_INFO_ML TYPE_COORDINATE_SPACE_CREATE_INFO_ML} value to the {@link #type} field. */ + public XrCoordinateSpaceCreateInfoML type$Default() { return type(MLCompat.XR_TYPE_COORDINATE_SPACE_CREATE_INFO_ML); } + /** Sets the specified value to the {@link #next} field. */ + public XrCoordinateSpaceCreateInfoML next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link MLCoordinateFrameUID} to the {@link #cfuid} field. */ + public XrCoordinateSpaceCreateInfoML cfuid(MLCoordinateFrameUID value) { ncfuid(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #poseInCoordinateSpace} field. */ + public XrCoordinateSpaceCreateInfoML poseInCoordinateSpace(XrPosef value) { nposeInCoordinateSpace(address(), value); return this; } + /** Passes the {@link #poseInCoordinateSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCoordinateSpaceCreateInfoML poseInCoordinateSpace(java.util.function.Consumer consumer) { consumer.accept(poseInCoordinateSpace()); return this; } /** Initializes this struct with the specified values. */ public XrCoordinateSpaceCreateInfoML set( - int type, - long next, - MLCoordinateFrameUID cfuid, + int type, + long next, + MLCoordinateFrameUID cfuid, XrPosef poseInCoordinateSpace - ) { - type(type); - next(next); - cfuid(cfuid); - poseInCoordinateSpace(poseInCoordinateSpace); + ) { + type(type); + next(next); + cfuid(cfuid); + poseInCoordinateSpace(poseInCoordinateSpace); return this; } @@ -154,29 +145,29 @@ public XrCoordinateSpaceCreateInfoML set(XrCoordinateSpaceCreateInfoML src) { /** Returns a new {@code XrCoordinateSpaceCreateInfoML} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrCoordinateSpaceCreateInfoML malloc() { - return new XrCoordinateSpaceCreateInfoML(nmemAllocChecked(SIZEOF), null); + return wrap(XrCoordinateSpaceCreateInfoML.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrCoordinateSpaceCreateInfoML} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrCoordinateSpaceCreateInfoML calloc() { - return new XrCoordinateSpaceCreateInfoML(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrCoordinateSpaceCreateInfoML.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrCoordinateSpaceCreateInfoML} instance allocated with {@link BufferUtils}. */ public static XrCoordinateSpaceCreateInfoML create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrCoordinateSpaceCreateInfoML(memAddress(container), container); + return wrap(XrCoordinateSpaceCreateInfoML.class, memAddress(container), container); } /** Returns a new {@code XrCoordinateSpaceCreateInfoML} instance for the specified memory address. */ public static XrCoordinateSpaceCreateInfoML create(long address) { - return new XrCoordinateSpaceCreateInfoML(address, null); + return wrap(XrCoordinateSpaceCreateInfoML.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrCoordinateSpaceCreateInfoML createSafe(long address) { - return address == NULL ? null : new XrCoordinateSpaceCreateInfoML(address, null); + return address == NULL ? null : wrap(XrCoordinateSpaceCreateInfoML.class, address); } /** @@ -185,7 +176,7 @@ public static XrCoordinateSpaceCreateInfoML createSafe(long address) { * @param capacity the buffer capacity */ public static XrCoordinateSpaceCreateInfoML.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 XrCoordinateSpaceCreateInfoML.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrCoordinateSpaceCreateInfoML.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 XrCoordinateSpaceCreateInfoML.Buffer calloc(int capacity) { */ public static XrCoordinateSpaceCreateInfoML.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 XrCoordinateSpaceCreateInfoML.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrCoordinateSpaceCreateInfoML.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 XrCoordinateSpaceCreateInfoML.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 XrCoordinateSpaceCreateInfoML.Buffer createSafe(long address, int * @param stack the stack from which to allocate */ public static XrCoordinateSpaceCreateInfoML malloc(MemoryStack stack) { - return new XrCoordinateSpaceCreateInfoML(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrCoordinateSpaceCreateInfoML.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -238,7 +229,7 @@ public static XrCoordinateSpaceCreateInfoML malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrCoordinateSpaceCreateInfoML calloc(MemoryStack stack) { - return new XrCoordinateSpaceCreateInfoML(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrCoordinateSpaceCreateInfoML.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -248,7 +239,7 @@ public static XrCoordinateSpaceCreateInfoML calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrCoordinateSpaceCreateInfoML.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,30 +249,30 @@ public static XrCoordinateSpaceCreateInfoML.Buffer malloc(int capacity, MemorySt * @param capacity the buffer capacity */ public static XrCoordinateSpaceCreateInfoML.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 + XrCoordinateSpaceCreateInfoML.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCoordinateSpaceCreateInfoML.NEXT); } - /** Unsafe version of {@link #cfuid}. */ - public static MLCoordinateFrameUID ncfuid(long struct) { return MLCoordinateFrameUID.create(struct + XrCoordinateSpaceCreateInfoML.CFUID); } - /** Unsafe version of {@link #poseInCoordinateSpace}. */ - public static XrPosef nposeInCoordinateSpace(long struct) { return XrPosef.create(struct + XrCoordinateSpaceCreateInfoML.POSEINCOORDINATESPACE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCoordinateSpaceCreateInfoML.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCoordinateSpaceCreateInfoML.NEXT, value); } - /** Unsafe version of {@link #cfuid(MLCoordinateFrameUID) cfuid}. */ - public static void ncfuid(long struct, MLCoordinateFrameUID value) { memCopy(value.address(), struct + XrCoordinateSpaceCreateInfoML.CFUID, MLCoordinateFrameUID.SIZEOF); } - /** Unsafe version of {@link #poseInCoordinateSpace(XrPosef) poseInCoordinateSpace}. */ - public static void nposeInCoordinateSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrCoordinateSpaceCreateInfoML.POSEINCOORDINATESPACE, XrPosef.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCoordinateSpaceCreateInfoML.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCoordinateSpaceCreateInfoML.NEXT); } + /** Unsafe version of {@link #cfuid}. */ + public static MLCoordinateFrameUID ncfuid(long struct) { return MLCoordinateFrameUID.create(struct + XrCoordinateSpaceCreateInfoML.CFUID); } + /** Unsafe version of {@link #poseInCoordinateSpace}. */ + public static XrPosef nposeInCoordinateSpace(long struct) { return XrPosef.create(struct + XrCoordinateSpaceCreateInfoML.POSEINCOORDINATESPACE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCoordinateSpaceCreateInfoML.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCoordinateSpaceCreateInfoML.NEXT, value); } + /** Unsafe version of {@link #cfuid(MLCoordinateFrameUID) cfuid}. */ + public static void ncfuid(long struct, MLCoordinateFrameUID value) { memCopy(value.address(), struct + XrCoordinateSpaceCreateInfoML.CFUID, MLCoordinateFrameUID.SIZEOF); } + /** Unsafe version of {@link #poseInCoordinateSpace(XrPosef) poseInCoordinateSpace}. */ + public static void nposeInCoordinateSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrCoordinateSpaceCreateInfoML.POSEINCOORDINATESPACE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrCoordinateSpaceCreateInfoML} structs. */ public static class Buffer extends StructBuffer 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 XrCoordinateSpaceCreateInfoML#SIZEOF}, and its mark will be undefined.

    + * by {@link XrCoordinateSpaceCreateInfoML#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 XrCoordinateSpaceCreateInfoML getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCoordinateSpaceCreateInfoML#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCoordinateSpaceCreateInfoML.ntype(address()); } - /** @return the value of the {@link XrCoordinateSpaceCreateInfoML#next} field. */ - @NativeType("void const *") - public long next() { return XrCoordinateSpaceCreateInfoML.nnext(address()); } - /** @return a {@link MLCoordinateFrameUID} view of the {@link XrCoordinateSpaceCreateInfoML#cfuid} field. */ - public MLCoordinateFrameUID cfuid() { return XrCoordinateSpaceCreateInfoML.ncfuid(address()); } - /** @return a {@link XrPosef} view of the {@link XrCoordinateSpaceCreateInfoML#poseInCoordinateSpace} field. */ - public XrPosef poseInCoordinateSpace() { return XrCoordinateSpaceCreateInfoML.nposeInCoordinateSpace(address()); } - - /** Sets the specified value to the {@link XrCoordinateSpaceCreateInfoML#type} field. */ - public XrCoordinateSpaceCreateInfoML.Buffer type(@NativeType("XrStructureType") int value) { XrCoordinateSpaceCreateInfoML.ntype(address(), value); return this; } - /** Sets the {@link MLCompat#XR_TYPE_COORDINATE_SPACE_CREATE_INFO_ML TYPE_COORDINATE_SPACE_CREATE_INFO_ML} value to the {@link XrCoordinateSpaceCreateInfoML#type} field. */ - public XrCoordinateSpaceCreateInfoML.Buffer type$Default() { return type(MLCompat.XR_TYPE_COORDINATE_SPACE_CREATE_INFO_ML); } - /** Sets the specified value to the {@link XrCoordinateSpaceCreateInfoML#next} field. */ - public XrCoordinateSpaceCreateInfoML.Buffer next(@NativeType("void const *") long value) { XrCoordinateSpaceCreateInfoML.nnext(address(), value); return this; } - /** Copies the specified {@link MLCoordinateFrameUID} to the {@link XrCoordinateSpaceCreateInfoML#cfuid} field. */ - public XrCoordinateSpaceCreateInfoML.Buffer cfuid(MLCoordinateFrameUID value) { XrCoordinateSpaceCreateInfoML.ncfuid(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrCoordinateSpaceCreateInfoML#poseInCoordinateSpace} field. */ - public XrCoordinateSpaceCreateInfoML.Buffer poseInCoordinateSpace(XrPosef value) { XrCoordinateSpaceCreateInfoML.nposeInCoordinateSpace(address(), value); return this; } - /** Passes the {@link XrCoordinateSpaceCreateInfoML#poseInCoordinateSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCoordinateSpaceCreateInfoML.Buffer poseInCoordinateSpace(java.util.function.Consumer consumer) { consumer.accept(poseInCoordinateSpace()); return this; } + + /** @return the value of the {@link XrCoordinateSpaceCreateInfoML#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCoordinateSpaceCreateInfoML.ntype(address()); } + /** @return the value of the {@link XrCoordinateSpaceCreateInfoML#next} field. */ + @NativeType("void const *") + public long next() { return XrCoordinateSpaceCreateInfoML.nnext(address()); } + /** @return a {@link MLCoordinateFrameUID} view of the {@link XrCoordinateSpaceCreateInfoML#cfuid} field. */ + public MLCoordinateFrameUID cfuid() { return XrCoordinateSpaceCreateInfoML.ncfuid(address()); } + /** @return a {@link XrPosef} view of the {@link XrCoordinateSpaceCreateInfoML#poseInCoordinateSpace} field. */ + public XrPosef poseInCoordinateSpace() { return XrCoordinateSpaceCreateInfoML.nposeInCoordinateSpace(address()); } + + /** Sets the specified value to the {@link XrCoordinateSpaceCreateInfoML#type} field. */ + public XrCoordinateSpaceCreateInfoML.Buffer type(@NativeType("XrStructureType") int value) { XrCoordinateSpaceCreateInfoML.ntype(address(), value); return this; } + /** Sets the {@link MLCompat#XR_TYPE_COORDINATE_SPACE_CREATE_INFO_ML TYPE_COORDINATE_SPACE_CREATE_INFO_ML} value to the {@link XrCoordinateSpaceCreateInfoML#type} field. */ + public XrCoordinateSpaceCreateInfoML.Buffer type$Default() { return type(MLCompat.XR_TYPE_COORDINATE_SPACE_CREATE_INFO_ML); } + /** Sets the specified value to the {@link XrCoordinateSpaceCreateInfoML#next} field. */ + public XrCoordinateSpaceCreateInfoML.Buffer next(@NativeType("void const *") long value) { XrCoordinateSpaceCreateInfoML.nnext(address(), value); return this; } + /** Copies the specified {@link MLCoordinateFrameUID} to the {@link XrCoordinateSpaceCreateInfoML#cfuid} field. */ + public XrCoordinateSpaceCreateInfoML.Buffer cfuid(MLCoordinateFrameUID value) { XrCoordinateSpaceCreateInfoML.ncfuid(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrCoordinateSpaceCreateInfoML#poseInCoordinateSpace} field. */ + public XrCoordinateSpaceCreateInfoML.Buffer poseInCoordinateSpace(XrPosef value) { XrCoordinateSpaceCreateInfoML.nposeInCoordinateSpace(address(), value); return this; } + /** Passes the {@link XrCoordinateSpaceCreateInfoML#poseInCoordinateSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCoordinateSpaceCreateInfoML.Buffer poseInCoordinateSpace(java.util.function.Consumer consumer) { consumer.accept(poseInCoordinateSpace()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsLabelEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsLabelEXT.java index b6786349e7..60fd2c68d4 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsLabelEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsLabelEXT.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.*; + /** * Debug Utils Label. * @@ -40,8 +40,8 @@ * void const * {@link #next}; * char const * {@link #labelName}; * } - */ -public class XrDebugUtilsLabelEXT extends Struct implements NativeResource { + */ +public class XrDebugUtilsLabelEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,32 +51,23 @@ public class XrDebugUtilsLabelEXT extends Struct implement /** The struct member offsets. */ public static final int - TYPE, - NEXT, - LABELNAME; + TYPE, + NEXT, + LABELNAME; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - LABELNAME = layout.offsetof(2); - } - - protected XrDebugUtilsLabelEXT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrDebugUtilsLabelEXT create(long address, @Nullable ByteBuffer container) { - return new XrDebugUtilsLabelEXT(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + LABELNAME = layout.offsetof(2); } /** @@ -91,38 +82,38 @@ public XrDebugUtilsLabelEXT(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()); } - /** a {@code NULL} terminated UTF-8 string specifying the label name. */ - @NativeType("char const *") - public ByteBuffer labelName() { return nlabelName(address()); } - /** a {@code NULL} terminated UTF-8 string specifying the label name. */ - @NativeType("char const *") - public String labelNameString() { return nlabelNameString(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrDebugUtilsLabelEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_LABEL_EXT TYPE_DEBUG_UTILS_LABEL_EXT} value to the {@link #type} field. */ - public XrDebugUtilsLabelEXT type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_LABEL_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrDebugUtilsLabelEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link #labelName} field. */ - public XrDebugUtilsLabelEXT labelName(@NativeType("char const *") ByteBuffer value) { nlabelName(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()); } + /** a {@code NULL} terminated UTF-8 string specifying the label name. */ + @NativeType("char const *") + public ByteBuffer labelName() { return nlabelName(address()); } + /** a {@code NULL} terminated UTF-8 string specifying the label name. */ + @NativeType("char const *") + public String labelNameString() { return nlabelNameString(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrDebugUtilsLabelEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_LABEL_EXT TYPE_DEBUG_UTILS_LABEL_EXT} value to the {@link #type} field. */ + public XrDebugUtilsLabelEXT type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_LABEL_EXT); } + /** Sets the specified value to the {@link #next} field. */ + public XrDebugUtilsLabelEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified encoded string to the {@link #labelName} field. */ + public XrDebugUtilsLabelEXT labelName(@NativeType("char const *") ByteBuffer value) { nlabelName(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrDebugUtilsLabelEXT set( - int type, - long next, + int type, + long next, ByteBuffer labelName - ) { - type(type); - next(next); - labelName(labelName); + ) { + type(type); + next(next); + labelName(labelName); return this; } @@ -143,29 +134,29 @@ public XrDebugUtilsLabelEXT set(XrDebugUtilsLabelEXT src) { /** Returns a new {@code XrDebugUtilsLabelEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrDebugUtilsLabelEXT malloc() { - return new XrDebugUtilsLabelEXT(nmemAllocChecked(SIZEOF), null); + return wrap(XrDebugUtilsLabelEXT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrDebugUtilsLabelEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrDebugUtilsLabelEXT calloc() { - return new XrDebugUtilsLabelEXT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrDebugUtilsLabelEXT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrDebugUtilsLabelEXT} instance allocated with {@link BufferUtils}. */ public static XrDebugUtilsLabelEXT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrDebugUtilsLabelEXT(memAddress(container), container); + return wrap(XrDebugUtilsLabelEXT.class, memAddress(container), container); } /** Returns a new {@code XrDebugUtilsLabelEXT} instance for the specified memory address. */ public static XrDebugUtilsLabelEXT create(long address) { - return new XrDebugUtilsLabelEXT(address, null); + return wrap(XrDebugUtilsLabelEXT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrDebugUtilsLabelEXT createSafe(long address) { - return address == NULL ? null : new XrDebugUtilsLabelEXT(address, null); + return address == NULL ? null : wrap(XrDebugUtilsLabelEXT.class, address); } /** @@ -174,7 +165,7 @@ public static XrDebugUtilsLabelEXT createSafe(long address) { * @param capacity the buffer capacity */ public static XrDebugUtilsLabelEXT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -183,7 +174,7 @@ public static XrDebugUtilsLabelEXT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrDebugUtilsLabelEXT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -193,7 +184,7 @@ public static XrDebugUtilsLabelEXT.Buffer calloc(int capacity) { */ public static XrDebugUtilsLabelEXT.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); } /** @@ -203,13 +194,13 @@ public static XrDebugUtilsLabelEXT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrDebugUtilsLabelEXT.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 XrDebugUtilsLabelEXT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -218,7 +209,7 @@ public static XrDebugUtilsLabelEXT.Buffer createSafe(long address, int capacity) * @param stack the stack from which to allocate */ public static XrDebugUtilsLabelEXT malloc(MemoryStack stack) { - return new XrDebugUtilsLabelEXT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrDebugUtilsLabelEXT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -227,7 +218,7 @@ public static XrDebugUtilsLabelEXT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrDebugUtilsLabelEXT calloc(MemoryStack stack) { - return new XrDebugUtilsLabelEXT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrDebugUtilsLabelEXT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -237,7 +228,7 @@ public static XrDebugUtilsLabelEXT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrDebugUtilsLabelEXT.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); } /** @@ -247,29 +238,29 @@ public static XrDebugUtilsLabelEXT.Buffer malloc(int capacity, MemoryStack stack * @param capacity the buffer capacity */ public static XrDebugUtilsLabelEXT.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 + XrDebugUtilsLabelEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrDebugUtilsLabelEXT.NEXT); } - /** Unsafe version of {@link #labelName}. */ - public static ByteBuffer nlabelName(long struct) { return memByteBufferNT1(memGetAddress(struct + XrDebugUtilsLabelEXT.LABELNAME)); } - /** Unsafe version of {@link #labelNameString}. */ - public static String nlabelNameString(long struct) { return memUTF8(memGetAddress(struct + XrDebugUtilsLabelEXT.LABELNAME)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrDebugUtilsLabelEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrDebugUtilsLabelEXT.NEXT, value); } - /** Unsafe version of {@link #labelName(ByteBuffer) labelName}. */ - public static void nlabelName(long struct, ByteBuffer value) { - if (CHECKS) { checkNT1(value); } - memPutAddress(struct + XrDebugUtilsLabelEXT.LABELNAME, memAddress(value)); - } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrDebugUtilsLabelEXT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrDebugUtilsLabelEXT.NEXT); } + /** Unsafe version of {@link #labelName}. */ + public static ByteBuffer nlabelName(long struct) { return memByteBufferNT1(memGetAddress(struct + XrDebugUtilsLabelEXT.LABELNAME)); } + /** Unsafe version of {@link #labelNameString}. */ + public static String nlabelNameString(long struct) { return memUTF8(memGetAddress(struct + XrDebugUtilsLabelEXT.LABELNAME)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrDebugUtilsLabelEXT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrDebugUtilsLabelEXT.NEXT, value); } + /** Unsafe version of {@link #labelName(ByteBuffer) labelName}. */ + public static void nlabelName(long struct, ByteBuffer value) { + if (CHECKS) { checkNT1(value); } + memPutAddress(struct + XrDebugUtilsLabelEXT.LABELNAME, memAddress(value)); + } /** * Validates pointer members that should not be {@code NULL}. @@ -278,9 +269,9 @@ public static void nlabelName(long struct, ByteBuffer value) { */ public static void validate(long struct) { check(memGetAddress(struct + XrDebugUtilsLabelEXT.LABELNAME)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrDebugUtilsLabelEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -290,9 +281,9 @@ public static class Buffer extends StructBuffer im /** * Creates a new {@code XrDebugUtilsLabelEXT.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 XrDebugUtilsLabelEXT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrDebugUtilsLabelEXT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -317,28 +308,28 @@ protected Buffer self() { protected XrDebugUtilsLabelEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrDebugUtilsLabelEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrDebugUtilsLabelEXT.ntype(address()); } - /** @return the value of the {@link XrDebugUtilsLabelEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrDebugUtilsLabelEXT.nnext(address()); } - /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsLabelEXT#labelName} field. */ - @NativeType("char const *") - public ByteBuffer labelName() { return XrDebugUtilsLabelEXT.nlabelName(address()); } - /** @return the null-terminated string pointed to by the {@link XrDebugUtilsLabelEXT#labelName} field. */ - @NativeType("char const *") - public String labelNameString() { return XrDebugUtilsLabelEXT.nlabelNameString(address()); } - - /** Sets the specified value to the {@link XrDebugUtilsLabelEXT#type} field. */ - public XrDebugUtilsLabelEXT.Buffer type(@NativeType("XrStructureType") int value) { XrDebugUtilsLabelEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_LABEL_EXT TYPE_DEBUG_UTILS_LABEL_EXT} value to the {@link XrDebugUtilsLabelEXT#type} field. */ - public XrDebugUtilsLabelEXT.Buffer type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_LABEL_EXT); } - /** Sets the specified value to the {@link XrDebugUtilsLabelEXT#next} field. */ - public XrDebugUtilsLabelEXT.Buffer next(@NativeType("void const *") long value) { XrDebugUtilsLabelEXT.nnext(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link XrDebugUtilsLabelEXT#labelName} field. */ - public XrDebugUtilsLabelEXT.Buffer labelName(@NativeType("char const *") ByteBuffer value) { XrDebugUtilsLabelEXT.nlabelName(address(), value); return this; } + + /** @return the value of the {@link XrDebugUtilsLabelEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrDebugUtilsLabelEXT.ntype(address()); } + /** @return the value of the {@link XrDebugUtilsLabelEXT#next} field. */ + @NativeType("void const *") + public long next() { return XrDebugUtilsLabelEXT.nnext(address()); } + /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsLabelEXT#labelName} field. */ + @NativeType("char const *") + public ByteBuffer labelName() { return XrDebugUtilsLabelEXT.nlabelName(address()); } + /** @return the null-terminated string pointed to by the {@link XrDebugUtilsLabelEXT#labelName} field. */ + @NativeType("char const *") + public String labelNameString() { return XrDebugUtilsLabelEXT.nlabelNameString(address()); } + + /** Sets the specified value to the {@link XrDebugUtilsLabelEXT#type} field. */ + public XrDebugUtilsLabelEXT.Buffer type(@NativeType("XrStructureType") int value) { XrDebugUtilsLabelEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_LABEL_EXT TYPE_DEBUG_UTILS_LABEL_EXT} value to the {@link XrDebugUtilsLabelEXT#type} field. */ + public XrDebugUtilsLabelEXT.Buffer type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_LABEL_EXT); } + /** Sets the specified value to the {@link XrDebugUtilsLabelEXT#next} field. */ + public XrDebugUtilsLabelEXT.Buffer next(@NativeType("void const *") long value) { XrDebugUtilsLabelEXT.nnext(address(), value); return this; } + /** Sets the address of the specified encoded string to the {@link XrDebugUtilsLabelEXT#labelName} field. */ + public XrDebugUtilsLabelEXT.Buffer labelName(@NativeType("char const *") ByteBuffer value) { XrDebugUtilsLabelEXT.nlabelName(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackDataEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackDataEXT.java index 6f65c1088d..ba9f10ebf5 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackDataEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackDataEXT.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.*; + /** * Debug utils messenger callback data. * @@ -57,8 +57,8 @@ * uint32_t {@link #sessionLabelCount}; * {@link XrDebugUtilsLabelEXT XrDebugUtilsLabelEXT} * {@link #sessionLabels}; * } - */ -public class XrDebugUtilsMessengerCallbackDataEXT extends Struct implements NativeResource { + */ +public class XrDebugUtilsMessengerCallbackDataEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -68,50 +68,41 @@ public class XrDebugUtilsMessengerCallbackDataEXT extends Structmay be {@code NULL} if no unique message identifier is associated with the message. */ - @NativeType("char const *") - public ByteBuffer messageId() { return nmessageId(address()); } - /** a {@code NULL} terminated string that identifies the message in a unique way. If the callback is triggered by a validation layer, this string corresponds the Valid Usage ID (VUID) that can be used to jump to the appropriate location in the OpenXR specification. This value may be {@code NULL} if no unique message identifier is associated with the message. */ - @NativeType("char const *") - public String messageIdString() { return nmessageIdString(address()); } - /** a {@code NULL} terminated string that identifies the OpenXR function that was executing at the time the message callback was triggered. This value may be {@code NULL} in cases where it is difficult to determine the originating OpenXR function. */ - @NativeType("char const *") - public ByteBuffer functionName() { return nfunctionName(address()); } - /** a {@code NULL} terminated string that identifies the OpenXR function that was executing at the time the message callback was triggered. This value may be {@code NULL} in cases where it is difficult to determine the originating OpenXR function. */ - @NativeType("char const *") - public String functionNameString() { return nfunctionNameString(address()); } - /** a {@code NULL} terminated string detailing the trigger conditions. */ - @NativeType("char const *") - public ByteBuffer message() { return nmessage(address()); } - /** a {@code NULL} terminated string detailing the trigger conditions. */ - @NativeType("char const *") - public String messageString() { return nmessageString(address()); } - /** a count of items contained in the {@code objects} array. This may be 0. */ - @NativeType("uint32_t") - public int objectCount() { return nobjectCount(address()); } - /** a pointer to an array of {@link XrDebugUtilsObjectNameInfoEXT} objects related to the detected issue. The array is roughly in order or importance, but the 0th element is always guaranteed to be the most important object for this message. */ - @Nullable - @NativeType("XrDebugUtilsObjectNameInfoEXT *") - public XrDebugUtilsObjectNameInfoEXT.Buffer objects() { return nobjects(address()); } - /** a count of items contained in the {@code sessionLabels} array. This may be 0. */ - @NativeType("uint32_t") - public int sessionLabelCount() { return nsessionLabelCount(address()); } + + /** 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()); } + /** a {@code NULL} terminated string that identifies the message in a unique way. If the callback is triggered by a validation layer, this string corresponds the Valid Usage ID (VUID) that can be used to jump to the appropriate location in the OpenXR specification. This value may be {@code NULL} if no unique message identifier is associated with the message. */ + @NativeType("char const *") + public ByteBuffer messageId() { return nmessageId(address()); } + /** a {@code NULL} terminated string that identifies the message in a unique way. If the callback is triggered by a validation layer, this string corresponds the Valid Usage ID (VUID) that can be used to jump to the appropriate location in the OpenXR specification. This value may be {@code NULL} if no unique message identifier is associated with the message. */ + @NativeType("char const *") + public String messageIdString() { return nmessageIdString(address()); } + /** a {@code NULL} terminated string that identifies the OpenXR function that was executing at the time the message callback was triggered. This value may be {@code NULL} in cases where it is difficult to determine the originating OpenXR function. */ + @NativeType("char const *") + public ByteBuffer functionName() { return nfunctionName(address()); } + /** a {@code NULL} terminated string that identifies the OpenXR function that was executing at the time the message callback was triggered. This value may be {@code NULL} in cases where it is difficult to determine the originating OpenXR function. */ + @NativeType("char const *") + public String functionNameString() { return nfunctionNameString(address()); } + /** a {@code NULL} terminated string detailing the trigger conditions. */ + @NativeType("char const *") + public ByteBuffer message() { return nmessage(address()); } + /** a {@code NULL} terminated string detailing the trigger conditions. */ + @NativeType("char const *") + public String messageString() { return nmessageString(address()); } + /** a count of items contained in the {@code objects} array. This may be 0. */ + @NativeType("uint32_t") + public int objectCount() { return nobjectCount(address()); } + /** a pointer to an array of {@link XrDebugUtilsObjectNameInfoEXT} objects related to the detected issue. The array is roughly in order or importance, but the 0th element is always guaranteed to be the most important object for this message. */ + @Nullable + @NativeType("XrDebugUtilsObjectNameInfoEXT *") + public XrDebugUtilsObjectNameInfoEXT.Buffer objects() { return nobjects(address()); } + /** a count of items contained in the {@code sessionLabels} array. This may be 0. */ + @NativeType("uint32_t") + public int sessionLabelCount() { return nsessionLabelCount(address()); } /** * a pointer to an array of {@link XrDebugUtilsLabelEXT} objects related to the detected issue. The array is roughly in order or importance, but the 0th element is always guaranteed to be the most important object for this message. * *

    NULL or a pointer to an array of {@link XrDebugUtilsLabelEXT} active in the current {@code XrSession} at the time the callback was triggered. Refer to Session Labels for more information.

    - */ - @Nullable - @NativeType("XrDebugUtilsLabelEXT *") - public XrDebugUtilsLabelEXT.Buffer sessionLabels() { return nsessionLabels(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrDebugUtilsMessengerCallbackDataEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT} value to the {@link #type} field. */ - public XrDebugUtilsMessengerCallbackDataEXT type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrDebugUtilsMessengerCallbackDataEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link #messageId} field. */ - public XrDebugUtilsMessengerCallbackDataEXT messageId(@NativeType("char const *") ByteBuffer value) { nmessageId(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link #functionName} field. */ - public XrDebugUtilsMessengerCallbackDataEXT functionName(@NativeType("char const *") ByteBuffer value) { nfunctionName(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link #message} field. */ - public XrDebugUtilsMessengerCallbackDataEXT message(@NativeType("char const *") ByteBuffer value) { nmessage(address(), value); return this; } - /** Sets the specified value to the {@link #objectCount} field. */ - public XrDebugUtilsMessengerCallbackDataEXT objectCount(@NativeType("uint32_t") int value) { nobjectCount(address(), value); return this; } - /** Sets the address of the specified {@link XrDebugUtilsObjectNameInfoEXT.Buffer} to the {@link #objects} field. */ - public XrDebugUtilsMessengerCallbackDataEXT objects(@Nullable @NativeType("XrDebugUtilsObjectNameInfoEXT *") XrDebugUtilsObjectNameInfoEXT.Buffer value) { nobjects(address(), value); return this; } - /** Sets the specified value to the {@link #sessionLabelCount} field. */ - public XrDebugUtilsMessengerCallbackDataEXT sessionLabelCount(@NativeType("uint32_t") int value) { nsessionLabelCount(address(), value); return this; } - /** Sets the address of the specified {@link XrDebugUtilsLabelEXT.Buffer} to the {@link #sessionLabels} field. */ - public XrDebugUtilsMessengerCallbackDataEXT sessionLabels(@Nullable @NativeType("XrDebugUtilsLabelEXT *") XrDebugUtilsLabelEXT.Buffer value) { nsessionLabels(address(), value); return this; } + */ + @Nullable + @NativeType("XrDebugUtilsLabelEXT *") + public XrDebugUtilsLabelEXT.Buffer sessionLabels() { return nsessionLabels(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrDebugUtilsMessengerCallbackDataEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT} value to the {@link #type} field. */ + public XrDebugUtilsMessengerCallbackDataEXT type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT); } + /** Sets the specified value to the {@link #next} field. */ + public XrDebugUtilsMessengerCallbackDataEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified encoded string to the {@link #messageId} field. */ + public XrDebugUtilsMessengerCallbackDataEXT messageId(@NativeType("char const *") ByteBuffer value) { nmessageId(address(), value); return this; } + /** Sets the address of the specified encoded string to the {@link #functionName} field. */ + public XrDebugUtilsMessengerCallbackDataEXT functionName(@NativeType("char const *") ByteBuffer value) { nfunctionName(address(), value); return this; } + /** Sets the address of the specified encoded string to the {@link #message} field. */ + public XrDebugUtilsMessengerCallbackDataEXT message(@NativeType("char const *") ByteBuffer value) { nmessage(address(), value); return this; } + /** Sets the specified value to the {@link #objectCount} field. */ + public XrDebugUtilsMessengerCallbackDataEXT objectCount(@NativeType("uint32_t") int value) { nobjectCount(address(), value); return this; } + /** Sets the address of the specified {@link XrDebugUtilsObjectNameInfoEXT.Buffer} to the {@link #objects} field. */ + public XrDebugUtilsMessengerCallbackDataEXT objects(@Nullable @NativeType("XrDebugUtilsObjectNameInfoEXT *") XrDebugUtilsObjectNameInfoEXT.Buffer value) { nobjects(address(), value); return this; } + /** Sets the specified value to the {@link #sessionLabelCount} field. */ + public XrDebugUtilsMessengerCallbackDataEXT sessionLabelCount(@NativeType("uint32_t") int value) { nsessionLabelCount(address(), value); return this; } + /** Sets the address of the specified {@link XrDebugUtilsLabelEXT.Buffer} to the {@link #sessionLabels} field. */ + public XrDebugUtilsMessengerCallbackDataEXT sessionLabels(@Nullable @NativeType("XrDebugUtilsLabelEXT *") XrDebugUtilsLabelEXT.Buffer value) { nsessionLabels(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrDebugUtilsMessengerCallbackDataEXT set( - int type, - long next, - ByteBuffer messageId, - ByteBuffer functionName, - ByteBuffer message, - int objectCount, - @Nullable XrDebugUtilsObjectNameInfoEXT.Buffer objects, - int sessionLabelCount, + int type, + long next, + ByteBuffer messageId, + ByteBuffer functionName, + ByteBuffer message, + int objectCount, + @Nullable XrDebugUtilsObjectNameInfoEXT.Buffer objects, + int sessionLabelCount, @Nullable XrDebugUtilsLabelEXT.Buffer sessionLabels - ) { - type(type); - next(next); - messageId(messageId); - functionName(functionName); - message(message); - objectCount(objectCount); - objects(objects); - sessionLabelCount(sessionLabelCount); - sessionLabels(sessionLabels); + ) { + type(type); + next(next); + messageId(messageId); + functionName(functionName); + message(message); + objectCount(objectCount); + objects(objects); + sessionLabelCount(sessionLabelCount); + sessionLabels(sessionLabels); return this; } @@ -232,29 +223,29 @@ public XrDebugUtilsMessengerCallbackDataEXT set(XrDebugUtilsMessengerCallbackDat /** Returns a new {@code XrDebugUtilsMessengerCallbackDataEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrDebugUtilsMessengerCallbackDataEXT malloc() { - return new XrDebugUtilsMessengerCallbackDataEXT(nmemAllocChecked(SIZEOF), null); + return wrap(XrDebugUtilsMessengerCallbackDataEXT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrDebugUtilsMessengerCallbackDataEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrDebugUtilsMessengerCallbackDataEXT calloc() { - return new XrDebugUtilsMessengerCallbackDataEXT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrDebugUtilsMessengerCallbackDataEXT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrDebugUtilsMessengerCallbackDataEXT} instance allocated with {@link BufferUtils}. */ public static XrDebugUtilsMessengerCallbackDataEXT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrDebugUtilsMessengerCallbackDataEXT(memAddress(container), container); + return wrap(XrDebugUtilsMessengerCallbackDataEXT.class, memAddress(container), container); } /** Returns a new {@code XrDebugUtilsMessengerCallbackDataEXT} instance for the specified memory address. */ public static XrDebugUtilsMessengerCallbackDataEXT create(long address) { - return new XrDebugUtilsMessengerCallbackDataEXT(address, null); + return wrap(XrDebugUtilsMessengerCallbackDataEXT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrDebugUtilsMessengerCallbackDataEXT createSafe(long address) { - return address == NULL ? null : new XrDebugUtilsMessengerCallbackDataEXT(address, null); + return address == NULL ? null : wrap(XrDebugUtilsMessengerCallbackDataEXT.class, address); } /** @@ -263,7 +254,7 @@ public static XrDebugUtilsMessengerCallbackDataEXT createSafe(long address) { * @param capacity the buffer capacity */ public static XrDebugUtilsMessengerCallbackDataEXT.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 XrDebugUtilsMessengerCallbackDataEXT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrDebugUtilsMessengerCallbackDataEXT.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 XrDebugUtilsMessengerCallbackDataEXT.Buffer calloc(int capacity) { */ public static XrDebugUtilsMessengerCallbackDataEXT.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 XrDebugUtilsMessengerCallbackDataEXT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrDebugUtilsMessengerCallbackDataEXT.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 XrDebugUtilsMessengerCallbackDataEXT.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 XrDebugUtilsMessengerCallbackDataEXT.Buffer createSafe(long addres * @param stack the stack from which to allocate */ public static XrDebugUtilsMessengerCallbackDataEXT malloc(MemoryStack stack) { - return new XrDebugUtilsMessengerCallbackDataEXT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrDebugUtilsMessengerCallbackDataEXT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -316,7 +307,7 @@ public static XrDebugUtilsMessengerCallbackDataEXT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrDebugUtilsMessengerCallbackDataEXT calloc(MemoryStack stack) { - return new XrDebugUtilsMessengerCallbackDataEXT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrDebugUtilsMessengerCallbackDataEXT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -326,7 +317,7 @@ public static XrDebugUtilsMessengerCallbackDataEXT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrDebugUtilsMessengerCallbackDataEXT.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,63 +327,63 @@ public static XrDebugUtilsMessengerCallbackDataEXT.Buffer malloc(int capacity, M * @param capacity the buffer capacity */ public static XrDebugUtilsMessengerCallbackDataEXT.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 + XrDebugUtilsMessengerCallbackDataEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.NEXT); } - /** Unsafe version of {@link #messageId}. */ - public static ByteBuffer nmessageId(long struct) { return memByteBufferNT1(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGEID)); } - /** Unsafe version of {@link #messageIdString}. */ - public static String nmessageIdString(long struct) { return memUTF8(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGEID)); } - /** Unsafe version of {@link #functionName}. */ - public static ByteBuffer nfunctionName(long struct) { return memByteBufferNT1(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.FUNCTIONNAME)); } - /** Unsafe version of {@link #functionNameString}. */ - public static String nfunctionNameString(long struct) { return memUTF8(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.FUNCTIONNAME)); } - /** Unsafe version of {@link #message}. */ - public static ByteBuffer nmessage(long struct) { return memByteBufferNT1(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGE)); } - /** Unsafe version of {@link #messageString}. */ - public static String nmessageString(long struct) { return memUTF8(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGE)); } - /** Unsafe version of {@link #objectCount}. */ - public static int nobjectCount(long struct) { return UNSAFE.getInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.OBJECTCOUNT); } - /** Unsafe version of {@link #objects}. */ - @Nullable public static XrDebugUtilsObjectNameInfoEXT.Buffer nobjects(long struct) { return XrDebugUtilsObjectNameInfoEXT.createSafe(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.OBJECTS), nobjectCount(struct)); } - /** Unsafe version of {@link #sessionLabelCount}. */ - public static int nsessionLabelCount(long struct) { return UNSAFE.getInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.SESSIONLABELCOUNT); } - /** Unsafe version of {@link #sessionLabels}. */ - @Nullable public static XrDebugUtilsLabelEXT.Buffer nsessionLabels(long struct) { return XrDebugUtilsLabelEXT.createSafe(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.SESSIONLABELS), nsessionLabelCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.NEXT, value); } - /** Unsafe version of {@link #messageId(ByteBuffer) messageId}. */ - public static void nmessageId(long struct, ByteBuffer value) { - if (CHECKS) { checkNT1(value); } - memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGEID, memAddress(value)); - } - /** Unsafe version of {@link #functionName(ByteBuffer) functionName}. */ - public static void nfunctionName(long struct, ByteBuffer value) { - if (CHECKS) { checkNT1(value); } - memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.FUNCTIONNAME, memAddress(value)); - } - /** Unsafe version of {@link #message(ByteBuffer) message}. */ - public static void nmessage(long struct, ByteBuffer value) { - if (CHECKS) { checkNT1(value); } - memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGE, memAddress(value)); - } - /** Sets the specified value to the {@code objectCount} field of the specified {@code struct}. */ - public static void nobjectCount(long struct, int value) { UNSAFE.putInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.OBJECTCOUNT, value); } - /** Unsafe version of {@link #objects(XrDebugUtilsObjectNameInfoEXT.Buffer) objects}. */ - public static void nobjects(long struct, @Nullable XrDebugUtilsObjectNameInfoEXT.Buffer value) { memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.OBJECTS, memAddressSafe(value)); if (value != null) { nobjectCount(struct, value.remaining()); } } - /** Sets the specified value to the {@code sessionLabelCount} field of the specified {@code struct}. */ - public static void nsessionLabelCount(long struct, int value) { UNSAFE.putInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.SESSIONLABELCOUNT, value); } - /** Unsafe version of {@link #sessionLabels(XrDebugUtilsLabelEXT.Buffer) sessionLabels}. */ - public static void nsessionLabels(long struct, @Nullable XrDebugUtilsLabelEXT.Buffer value) { memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.SESSIONLABELS, memAddressSafe(value)); if (value != null) { nsessionLabelCount(struct, value.remaining()); } } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.NEXT); } + /** Unsafe version of {@link #messageId}. */ + public static ByteBuffer nmessageId(long struct) { return memByteBufferNT1(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGEID)); } + /** Unsafe version of {@link #messageIdString}. */ + public static String nmessageIdString(long struct) { return memUTF8(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGEID)); } + /** Unsafe version of {@link #functionName}. */ + public static ByteBuffer nfunctionName(long struct) { return memByteBufferNT1(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.FUNCTIONNAME)); } + /** Unsafe version of {@link #functionNameString}. */ + public static String nfunctionNameString(long struct) { return memUTF8(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.FUNCTIONNAME)); } + /** Unsafe version of {@link #message}. */ + public static ByteBuffer nmessage(long struct) { return memByteBufferNT1(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGE)); } + /** Unsafe version of {@link #messageString}. */ + public static String nmessageString(long struct) { return memUTF8(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGE)); } + /** Unsafe version of {@link #objectCount}. */ + public static int nobjectCount(long struct) { return UNSAFE.getInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.OBJECTCOUNT); } + /** Unsafe version of {@link #objects}. */ + @Nullable public static XrDebugUtilsObjectNameInfoEXT.Buffer nobjects(long struct) { return XrDebugUtilsObjectNameInfoEXT.createSafe(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.OBJECTS), nobjectCount(struct)); } + /** Unsafe version of {@link #sessionLabelCount}. */ + public static int nsessionLabelCount(long struct) { return UNSAFE.getInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.SESSIONLABELCOUNT); } + /** Unsafe version of {@link #sessionLabels}. */ + @Nullable public static XrDebugUtilsLabelEXT.Buffer nsessionLabels(long struct) { return XrDebugUtilsLabelEXT.createSafe(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.SESSIONLABELS), nsessionLabelCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.NEXT, value); } + /** Unsafe version of {@link #messageId(ByteBuffer) messageId}. */ + public static void nmessageId(long struct, ByteBuffer value) { + if (CHECKS) { checkNT1(value); } + memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGEID, memAddress(value)); + } + /** Unsafe version of {@link #functionName(ByteBuffer) functionName}. */ + public static void nfunctionName(long struct, ByteBuffer value) { + if (CHECKS) { checkNT1(value); } + memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.FUNCTIONNAME, memAddress(value)); + } + /** Unsafe version of {@link #message(ByteBuffer) message}. */ + public static void nmessage(long struct, ByteBuffer value) { + if (CHECKS) { checkNT1(value); } + memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGE, memAddress(value)); + } + /** Sets the specified value to the {@code objectCount} field of the specified {@code struct}. */ + public static void nobjectCount(long struct, int value) { UNSAFE.putInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.OBJECTCOUNT, value); } + /** Unsafe version of {@link #objects(XrDebugUtilsObjectNameInfoEXT.Buffer) objects}. */ + public static void nobjects(long struct, @Nullable XrDebugUtilsObjectNameInfoEXT.Buffer value) { memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.OBJECTS, memAddressSafe(value)); if (value != null) { nobjectCount(struct, value.remaining()); } } + /** Sets the specified value to the {@code sessionLabelCount} field of the specified {@code struct}. */ + public static void nsessionLabelCount(long struct, int value) { UNSAFE.putInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.SESSIONLABELCOUNT, value); } + /** Unsafe version of {@link #sessionLabels(XrDebugUtilsLabelEXT.Buffer) sessionLabels}. */ + public static void nsessionLabels(long struct, @Nullable XrDebugUtilsLabelEXT.Buffer value) { memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.SESSIONLABELS, memAddressSafe(value)); if (value != null) { nsessionLabelCount(struct, value.remaining()); } } /** * Validates pointer members that should not be {@code NULL}. @@ -403,9 +394,9 @@ public static void validate(long struct) { check(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGEID)); check(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.FUNCTIONNAME)); check(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrDebugUtilsMessengerCallbackDataEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -415,9 +406,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 XrDebugUtilsMessengerCallbackDataEXT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrDebugUtilsMessengerCallbackDataEXT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -442,66 +433,66 @@ protected Buffer self() { protected XrDebugUtilsMessengerCallbackDataEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrDebugUtilsMessengerCallbackDataEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrDebugUtilsMessengerCallbackDataEXT.ntype(address()); } - /** @return the value of the {@link XrDebugUtilsMessengerCallbackDataEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrDebugUtilsMessengerCallbackDataEXT.nnext(address()); } - /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#messageId} field. */ - @NativeType("char const *") - public ByteBuffer messageId() { return XrDebugUtilsMessengerCallbackDataEXT.nmessageId(address()); } - /** @return the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#messageId} field. */ - @NativeType("char const *") - public String messageIdString() { return XrDebugUtilsMessengerCallbackDataEXT.nmessageIdString(address()); } - /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#functionName} field. */ - @NativeType("char const *") - public ByteBuffer functionName() { return XrDebugUtilsMessengerCallbackDataEXT.nfunctionName(address()); } - /** @return the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#functionName} field. */ - @NativeType("char const *") - public String functionNameString() { return XrDebugUtilsMessengerCallbackDataEXT.nfunctionNameString(address()); } - /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#message} field. */ - @NativeType("char const *") - public ByteBuffer message() { return XrDebugUtilsMessengerCallbackDataEXT.nmessage(address()); } - /** @return the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#message} field. */ - @NativeType("char const *") - public String messageString() { return XrDebugUtilsMessengerCallbackDataEXT.nmessageString(address()); } - /** @return the value of the {@link XrDebugUtilsMessengerCallbackDataEXT#objectCount} field. */ - @NativeType("uint32_t") - public int objectCount() { return XrDebugUtilsMessengerCallbackDataEXT.nobjectCount(address()); } - /** @return a {@link XrDebugUtilsObjectNameInfoEXT.Buffer} view of the struct array pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#objects} field. */ - @Nullable - @NativeType("XrDebugUtilsObjectNameInfoEXT *") - public XrDebugUtilsObjectNameInfoEXT.Buffer objects() { return XrDebugUtilsMessengerCallbackDataEXT.nobjects(address()); } - /** @return the value of the {@link XrDebugUtilsMessengerCallbackDataEXT#sessionLabelCount} field. */ - @NativeType("uint32_t") - public int sessionLabelCount() { return XrDebugUtilsMessengerCallbackDataEXT.nsessionLabelCount(address()); } - /** @return a {@link XrDebugUtilsLabelEXT.Buffer} view of the struct array pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#sessionLabels} field. */ - @Nullable - @NativeType("XrDebugUtilsLabelEXT *") - public XrDebugUtilsLabelEXT.Buffer sessionLabels() { return XrDebugUtilsMessengerCallbackDataEXT.nsessionLabels(address()); } - - /** Sets the specified value to the {@link XrDebugUtilsMessengerCallbackDataEXT#type} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer type(@NativeType("XrStructureType") int value) { XrDebugUtilsMessengerCallbackDataEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT} value to the {@link XrDebugUtilsMessengerCallbackDataEXT#type} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT); } - /** Sets the specified value to the {@link XrDebugUtilsMessengerCallbackDataEXT#next} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer next(@NativeType("void const *") long value) { XrDebugUtilsMessengerCallbackDataEXT.nnext(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link XrDebugUtilsMessengerCallbackDataEXT#messageId} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer messageId(@NativeType("char const *") ByteBuffer value) { XrDebugUtilsMessengerCallbackDataEXT.nmessageId(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link XrDebugUtilsMessengerCallbackDataEXT#functionName} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer functionName(@NativeType("char const *") ByteBuffer value) { XrDebugUtilsMessengerCallbackDataEXT.nfunctionName(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link XrDebugUtilsMessengerCallbackDataEXT#message} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer message(@NativeType("char const *") ByteBuffer value) { XrDebugUtilsMessengerCallbackDataEXT.nmessage(address(), value); return this; } - /** Sets the specified value to the {@link XrDebugUtilsMessengerCallbackDataEXT#objectCount} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer objectCount(@NativeType("uint32_t") int value) { XrDebugUtilsMessengerCallbackDataEXT.nobjectCount(address(), value); return this; } - /** Sets the address of the specified {@link XrDebugUtilsObjectNameInfoEXT.Buffer} to the {@link XrDebugUtilsMessengerCallbackDataEXT#objects} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer objects(@Nullable @NativeType("XrDebugUtilsObjectNameInfoEXT *") XrDebugUtilsObjectNameInfoEXT.Buffer value) { XrDebugUtilsMessengerCallbackDataEXT.nobjects(address(), value); return this; } - /** Sets the specified value to the {@link XrDebugUtilsMessengerCallbackDataEXT#sessionLabelCount} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer sessionLabelCount(@NativeType("uint32_t") int value) { XrDebugUtilsMessengerCallbackDataEXT.nsessionLabelCount(address(), value); return this; } - /** Sets the address of the specified {@link XrDebugUtilsLabelEXT.Buffer} to the {@link XrDebugUtilsMessengerCallbackDataEXT#sessionLabels} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer sessionLabels(@Nullable @NativeType("XrDebugUtilsLabelEXT *") XrDebugUtilsLabelEXT.Buffer value) { XrDebugUtilsMessengerCallbackDataEXT.nsessionLabels(address(), value); return this; } + + /** @return the value of the {@link XrDebugUtilsMessengerCallbackDataEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrDebugUtilsMessengerCallbackDataEXT.ntype(address()); } + /** @return the value of the {@link XrDebugUtilsMessengerCallbackDataEXT#next} field. */ + @NativeType("void const *") + public long next() { return XrDebugUtilsMessengerCallbackDataEXT.nnext(address()); } + /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#messageId} field. */ + @NativeType("char const *") + public ByteBuffer messageId() { return XrDebugUtilsMessengerCallbackDataEXT.nmessageId(address()); } + /** @return the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#messageId} field. */ + @NativeType("char const *") + public String messageIdString() { return XrDebugUtilsMessengerCallbackDataEXT.nmessageIdString(address()); } + /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#functionName} field. */ + @NativeType("char const *") + public ByteBuffer functionName() { return XrDebugUtilsMessengerCallbackDataEXT.nfunctionName(address()); } + /** @return the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#functionName} field. */ + @NativeType("char const *") + public String functionNameString() { return XrDebugUtilsMessengerCallbackDataEXT.nfunctionNameString(address()); } + /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#message} field. */ + @NativeType("char const *") + public ByteBuffer message() { return XrDebugUtilsMessengerCallbackDataEXT.nmessage(address()); } + /** @return the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#message} field. */ + @NativeType("char const *") + public String messageString() { return XrDebugUtilsMessengerCallbackDataEXT.nmessageString(address()); } + /** @return the value of the {@link XrDebugUtilsMessengerCallbackDataEXT#objectCount} field. */ + @NativeType("uint32_t") + public int objectCount() { return XrDebugUtilsMessengerCallbackDataEXT.nobjectCount(address()); } + /** @return a {@link XrDebugUtilsObjectNameInfoEXT.Buffer} view of the struct array pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#objects} field. */ + @Nullable + @NativeType("XrDebugUtilsObjectNameInfoEXT *") + public XrDebugUtilsObjectNameInfoEXT.Buffer objects() { return XrDebugUtilsMessengerCallbackDataEXT.nobjects(address()); } + /** @return the value of the {@link XrDebugUtilsMessengerCallbackDataEXT#sessionLabelCount} field. */ + @NativeType("uint32_t") + public int sessionLabelCount() { return XrDebugUtilsMessengerCallbackDataEXT.nsessionLabelCount(address()); } + /** @return a {@link XrDebugUtilsLabelEXT.Buffer} view of the struct array pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#sessionLabels} field. */ + @Nullable + @NativeType("XrDebugUtilsLabelEXT *") + public XrDebugUtilsLabelEXT.Buffer sessionLabels() { return XrDebugUtilsMessengerCallbackDataEXT.nsessionLabels(address()); } + + /** Sets the specified value to the {@link XrDebugUtilsMessengerCallbackDataEXT#type} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer type(@NativeType("XrStructureType") int value) { XrDebugUtilsMessengerCallbackDataEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT} value to the {@link XrDebugUtilsMessengerCallbackDataEXT#type} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT); } + /** Sets the specified value to the {@link XrDebugUtilsMessengerCallbackDataEXT#next} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer next(@NativeType("void const *") long value) { XrDebugUtilsMessengerCallbackDataEXT.nnext(address(), value); return this; } + /** Sets the address of the specified encoded string to the {@link XrDebugUtilsMessengerCallbackDataEXT#messageId} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer messageId(@NativeType("char const *") ByteBuffer value) { XrDebugUtilsMessengerCallbackDataEXT.nmessageId(address(), value); return this; } + /** Sets the address of the specified encoded string to the {@link XrDebugUtilsMessengerCallbackDataEXT#functionName} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer functionName(@NativeType("char const *") ByteBuffer value) { XrDebugUtilsMessengerCallbackDataEXT.nfunctionName(address(), value); return this; } + /** Sets the address of the specified encoded string to the {@link XrDebugUtilsMessengerCallbackDataEXT#message} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer message(@NativeType("char const *") ByteBuffer value) { XrDebugUtilsMessengerCallbackDataEXT.nmessage(address(), value); return this; } + /** Sets the specified value to the {@link XrDebugUtilsMessengerCallbackDataEXT#objectCount} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer objectCount(@NativeType("uint32_t") int value) { XrDebugUtilsMessengerCallbackDataEXT.nobjectCount(address(), value); return this; } + /** Sets the address of the specified {@link XrDebugUtilsObjectNameInfoEXT.Buffer} to the {@link XrDebugUtilsMessengerCallbackDataEXT#objects} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer objects(@Nullable @NativeType("XrDebugUtilsObjectNameInfoEXT *") XrDebugUtilsObjectNameInfoEXT.Buffer value) { XrDebugUtilsMessengerCallbackDataEXT.nobjects(address(), value); return this; } + /** Sets the specified value to the {@link XrDebugUtilsMessengerCallbackDataEXT#sessionLabelCount} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer sessionLabelCount(@NativeType("uint32_t") int value) { XrDebugUtilsMessengerCallbackDataEXT.nsessionLabelCount(address(), value); return this; } + /** Sets the address of the specified {@link XrDebugUtilsLabelEXT.Buffer} to the {@link XrDebugUtilsMessengerCallbackDataEXT#sessionLabels} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer sessionLabels(@Nullable @NativeType("XrDebugUtilsLabelEXT *") XrDebugUtilsLabelEXT.Buffer value) { XrDebugUtilsMessengerCallbackDataEXT.nsessionLabels(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackEXT.java index abc766db33..3c0b42d01f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackEXT.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; import org.lwjgl.system.*; @@ -46,8 +46,8 @@ * XrDebugUtilsMessengerCallbackDataEXT const *callbackData, * void *userData * ) - */ -public abstract class XrDebugUtilsMessengerCallbackEXT extends Callback implements XrDebugUtilsMessengerCallbackEXTI { + */ +public abstract class XrDebugUtilsMessengerCallbackEXT extends Callback implements XrDebugUtilsMessengerCallbackEXTI { /** * Creates a {@code XrDebugUtilsMessengerCallbackEXT} instance from the specified function pointer. diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackEXTI.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackEXTI.java index 04cf86e047..431a0664a2 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackEXTI.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackEXTI.java @@ -4,14 +4,14 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; + +import org.lwjgl.system.*; import org.lwjgl.system.libffi.*; - -import static org.lwjgl.system.APIUtil.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.libffi.LibFFI.*; - + +import static org.lwjgl.system.APIUtil.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.libffi.LibFFI.*; + /** * Type of callback function invoked by the debug utils. * @@ -47,7 +47,7 @@ * XrDebugUtilsMessengerCallbackDataEXT const *callbackData, * void *userData * ) - */ + */ @FunctionalInterface @NativeType("PFN_xrDebugUtilsMessengerCallbackEXT") public interface XrDebugUtilsMessengerCallbackEXTI extends CallbackI { @@ -71,7 +71,7 @@ default void callback(long ret, long args) { ); apiClosureRet(ret, __result); } - + /** * Type of callback function invoked by the debug utils. * diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCreateInfoEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCreateInfoEXT.java index 752322ef1c..6ae5c6599e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCreateInfoEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCreateInfoEXT.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.*; + /** * Debug utils messenger create info. * @@ -65,8 +65,8 @@ * {@link XrDebugUtilsMessengerCallbackEXTI PFN_xrDebugUtilsMessengerCallbackEXT} {@link #userCallback}; * void * {@link #userData}; * } - */ -public class XrDebugUtilsMessengerCreateInfoEXT extends Struct implements NativeResource { + */ +public class XrDebugUtilsMessengerCreateInfoEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -76,41 +76,32 @@ public class XrDebugUtilsMessengerCreateInfoEXT extends Struct implements NativeResource { @@ -349,9 +340,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 XrDebugUtilsMessengerCreateInfoEXT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrDebugUtilsMessengerCreateInfoEXT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -376,40 +367,40 @@ protected Buffer self() { protected XrDebugUtilsMessengerCreateInfoEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrDebugUtilsMessengerCreateInfoEXT.ntype(address()); } - /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrDebugUtilsMessengerCreateInfoEXT.nnext(address()); } - /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#messageSeverities} field. */ - @NativeType("XrDebugUtilsMessageSeverityFlagsEXT") - public long messageSeverities() { return XrDebugUtilsMessengerCreateInfoEXT.nmessageSeverities(address()); } - /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#messageTypes} field. */ - @NativeType("XrDebugUtilsMessageTypeFlagsEXT") - public long messageTypes() { return XrDebugUtilsMessengerCreateInfoEXT.nmessageTypes(address()); } - /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#userCallback} field. */ - @NativeType("PFN_xrDebugUtilsMessengerCallbackEXT") - public XrDebugUtilsMessengerCallbackEXT userCallback() { return XrDebugUtilsMessengerCreateInfoEXT.nuserCallback(address()); } - /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#userData} field. */ - @NativeType("void *") - public long userData() { return XrDebugUtilsMessengerCreateInfoEXT.nuserData(address()); } - - /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#type} field. */ - public XrDebugUtilsMessengerCreateInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrDebugUtilsMessengerCreateInfoEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT} value to the {@link XrDebugUtilsMessengerCreateInfoEXT#type} field. */ - public XrDebugUtilsMessengerCreateInfoEXT.Buffer type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT); } - /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#next} field. */ - public XrDebugUtilsMessengerCreateInfoEXT.Buffer next(@NativeType("void const *") long value) { XrDebugUtilsMessengerCreateInfoEXT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#messageSeverities} field. */ - public XrDebugUtilsMessengerCreateInfoEXT.Buffer messageSeverities(@NativeType("XrDebugUtilsMessageSeverityFlagsEXT") long value) { XrDebugUtilsMessengerCreateInfoEXT.nmessageSeverities(address(), value); return this; } - /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#messageTypes} field. */ - public XrDebugUtilsMessengerCreateInfoEXT.Buffer messageTypes(@NativeType("XrDebugUtilsMessageTypeFlagsEXT") long value) { XrDebugUtilsMessengerCreateInfoEXT.nmessageTypes(address(), value); return this; } - /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#userCallback} field. */ - public XrDebugUtilsMessengerCreateInfoEXT.Buffer userCallback(@NativeType("PFN_xrDebugUtilsMessengerCallbackEXT") XrDebugUtilsMessengerCallbackEXTI value) { XrDebugUtilsMessengerCreateInfoEXT.nuserCallback(address(), value); return this; } - /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#userData} field. */ - public XrDebugUtilsMessengerCreateInfoEXT.Buffer userData(@NativeType("void *") long value) { XrDebugUtilsMessengerCreateInfoEXT.nuserData(address(), value); return this; } + + /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrDebugUtilsMessengerCreateInfoEXT.ntype(address()); } + /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#next} field. */ + @NativeType("void const *") + public long next() { return XrDebugUtilsMessengerCreateInfoEXT.nnext(address()); } + /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#messageSeverities} field. */ + @NativeType("XrDebugUtilsMessageSeverityFlagsEXT") + public long messageSeverities() { return XrDebugUtilsMessengerCreateInfoEXT.nmessageSeverities(address()); } + /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#messageTypes} field. */ + @NativeType("XrDebugUtilsMessageTypeFlagsEXT") + public long messageTypes() { return XrDebugUtilsMessengerCreateInfoEXT.nmessageTypes(address()); } + /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#userCallback} field. */ + @NativeType("PFN_xrDebugUtilsMessengerCallbackEXT") + public XrDebugUtilsMessengerCallbackEXT userCallback() { return XrDebugUtilsMessengerCreateInfoEXT.nuserCallback(address()); } + /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#userData} field. */ + @NativeType("void *") + public long userData() { return XrDebugUtilsMessengerCreateInfoEXT.nuserData(address()); } + + /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#type} field. */ + public XrDebugUtilsMessengerCreateInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrDebugUtilsMessengerCreateInfoEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT} value to the {@link XrDebugUtilsMessengerCreateInfoEXT#type} field. */ + public XrDebugUtilsMessengerCreateInfoEXT.Buffer type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT); } + /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#next} field. */ + public XrDebugUtilsMessengerCreateInfoEXT.Buffer next(@NativeType("void const *") long value) { XrDebugUtilsMessengerCreateInfoEXT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#messageSeverities} field. */ + public XrDebugUtilsMessengerCreateInfoEXT.Buffer messageSeverities(@NativeType("XrDebugUtilsMessageSeverityFlagsEXT") long value) { XrDebugUtilsMessengerCreateInfoEXT.nmessageSeverities(address(), value); return this; } + /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#messageTypes} field. */ + public XrDebugUtilsMessengerCreateInfoEXT.Buffer messageTypes(@NativeType("XrDebugUtilsMessageTypeFlagsEXT") long value) { XrDebugUtilsMessengerCreateInfoEXT.nmessageTypes(address(), value); return this; } + /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#userCallback} field. */ + public XrDebugUtilsMessengerCreateInfoEXT.Buffer userCallback(@NativeType("PFN_xrDebugUtilsMessengerCallbackEXT") XrDebugUtilsMessengerCallbackEXTI value) { XrDebugUtilsMessengerCreateInfoEXT.nuserCallback(address(), value); return this; } + /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#userData} field. */ + public XrDebugUtilsMessengerCreateInfoEXT.Buffer userData(@NativeType("void *") long value) { XrDebugUtilsMessengerCreateInfoEXT.nuserData(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerEXT.java index 55ea74a1b5..fe002b02a3 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerEXT.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrDebugUtilsMessengerEXT} handle. */ + +/** Wraps an {@code XrDebugUtilsMessengerEXT} handle. */ public class XrDebugUtilsMessengerEXT 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/XrDebugUtilsObjectNameInfoEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsObjectNameInfoEXT.java index abfa1b085d..1c1d8c87cf 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsObjectNameInfoEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsObjectNameInfoEXT.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.*; + /** * Debug utils object name info. * @@ -50,8 +50,8 @@ * uint64_t {@link #objectHandle}; * char const * {@link #objectName}; * } - */ -public class XrDebugUtilsObjectNameInfoEXT extends Struct implements NativeResource { + */ +public class XrDebugUtilsObjectNameInfoEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -61,38 +61,29 @@ public class XrDebugUtilsObjectNameInfoEXT extends Struct implements NativeResource { @@ -321,9 +312,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 XrDebugUtilsObjectNameInfoEXT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrDebugUtilsObjectNameInfoEXT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -348,40 +339,40 @@ protected Buffer self() { protected XrDebugUtilsObjectNameInfoEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrDebugUtilsObjectNameInfoEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrDebugUtilsObjectNameInfoEXT.ntype(address()); } - /** @return the value of the {@link XrDebugUtilsObjectNameInfoEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrDebugUtilsObjectNameInfoEXT.nnext(address()); } - /** @return the value of the {@link XrDebugUtilsObjectNameInfoEXT#objectType} field. */ - @NativeType("XrObjectType") - public int objectType() { return XrDebugUtilsObjectNameInfoEXT.nobjectType(address()); } - /** @return the value of the {@link XrDebugUtilsObjectNameInfoEXT#objectHandle} field. */ - @NativeType("uint64_t") - public long objectHandle() { return XrDebugUtilsObjectNameInfoEXT.nobjectHandle(address()); } - /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsObjectNameInfoEXT#objectName} field. */ - @Nullable - @NativeType("char const *") - public ByteBuffer objectName() { return XrDebugUtilsObjectNameInfoEXT.nobjectName(address()); } - /** @return the null-terminated string pointed to by the {@link XrDebugUtilsObjectNameInfoEXT#objectName} field. */ - @Nullable - @NativeType("char const *") - public String objectNameString() { return XrDebugUtilsObjectNameInfoEXT.nobjectNameString(address()); } - - /** Sets the specified value to the {@link XrDebugUtilsObjectNameInfoEXT#type} field. */ - public XrDebugUtilsObjectNameInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrDebugUtilsObjectNameInfoEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT} value to the {@link XrDebugUtilsObjectNameInfoEXT#type} field. */ - public XrDebugUtilsObjectNameInfoEXT.Buffer type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT); } - /** Sets the specified value to the {@link XrDebugUtilsObjectNameInfoEXT#next} field. */ - public XrDebugUtilsObjectNameInfoEXT.Buffer next(@NativeType("void const *") long value) { XrDebugUtilsObjectNameInfoEXT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrDebugUtilsObjectNameInfoEXT#objectType} field. */ - public XrDebugUtilsObjectNameInfoEXT.Buffer objectType(@NativeType("XrObjectType") int value) { XrDebugUtilsObjectNameInfoEXT.nobjectType(address(), value); return this; } - /** Sets the specified value to the {@link XrDebugUtilsObjectNameInfoEXT#objectHandle} field. */ - public XrDebugUtilsObjectNameInfoEXT.Buffer objectHandle(@NativeType("uint64_t") long value) { XrDebugUtilsObjectNameInfoEXT.nobjectHandle(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link XrDebugUtilsObjectNameInfoEXT#objectName} field. */ - public XrDebugUtilsObjectNameInfoEXT.Buffer objectName(@Nullable @NativeType("char const *") ByteBuffer value) { XrDebugUtilsObjectNameInfoEXT.nobjectName(address(), value); return this; } + + /** @return the value of the {@link XrDebugUtilsObjectNameInfoEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrDebugUtilsObjectNameInfoEXT.ntype(address()); } + /** @return the value of the {@link XrDebugUtilsObjectNameInfoEXT#next} field. */ + @NativeType("void const *") + public long next() { return XrDebugUtilsObjectNameInfoEXT.nnext(address()); } + /** @return the value of the {@link XrDebugUtilsObjectNameInfoEXT#objectType} field. */ + @NativeType("XrObjectType") + public int objectType() { return XrDebugUtilsObjectNameInfoEXT.nobjectType(address()); } + /** @return the value of the {@link XrDebugUtilsObjectNameInfoEXT#objectHandle} field. */ + @NativeType("uint64_t") + public long objectHandle() { return XrDebugUtilsObjectNameInfoEXT.nobjectHandle(address()); } + /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsObjectNameInfoEXT#objectName} field. */ + @Nullable + @NativeType("char const *") + public ByteBuffer objectName() { return XrDebugUtilsObjectNameInfoEXT.nobjectName(address()); } + /** @return the null-terminated string pointed to by the {@link XrDebugUtilsObjectNameInfoEXT#objectName} field. */ + @Nullable + @NativeType("char const *") + public String objectNameString() { return XrDebugUtilsObjectNameInfoEXT.nobjectNameString(address()); } + + /** Sets the specified value to the {@link XrDebugUtilsObjectNameInfoEXT#type} field. */ + public XrDebugUtilsObjectNameInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrDebugUtilsObjectNameInfoEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT} value to the {@link XrDebugUtilsObjectNameInfoEXT#type} field. */ + public XrDebugUtilsObjectNameInfoEXT.Buffer type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT); } + /** Sets the specified value to the {@link XrDebugUtilsObjectNameInfoEXT#next} field. */ + public XrDebugUtilsObjectNameInfoEXT.Buffer next(@NativeType("void const *") long value) { XrDebugUtilsObjectNameInfoEXT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrDebugUtilsObjectNameInfoEXT#objectType} field. */ + public XrDebugUtilsObjectNameInfoEXT.Buffer objectType(@NativeType("XrObjectType") int value) { XrDebugUtilsObjectNameInfoEXT.nobjectType(address(), value); return this; } + /** Sets the specified value to the {@link XrDebugUtilsObjectNameInfoEXT#objectHandle} field. */ + public XrDebugUtilsObjectNameInfoEXT.Buffer objectHandle(@NativeType("uint64_t") long value) { XrDebugUtilsObjectNameInfoEXT.nobjectHandle(address(), value); return this; } + /** Sets the address of the specified encoded string to the {@link XrDebugUtilsObjectNameInfoEXT#objectName} field. */ + public XrDebugUtilsObjectNameInfoEXT.Buffer objectName(@Nullable @NativeType("char const *") ByteBuffer value) { XrDebugUtilsObjectNameInfoEXT.nobjectName(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDeserializeSceneFragmentMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDeserializeSceneFragmentMSFT.java index 8e2ef4b7fc..2eff34b7b0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDeserializeSceneFragmentMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDeserializeSceneFragmentMSFT.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.*; + /** * Deserialize Scene Fragment. * @@ -36,8 +36,8 @@ * uint32_t {@link #bufferSize}; * uint8_t const * {@link #buffer}; * } - */ -public class XrDeserializeSceneFragmentMSFT extends Struct implements NativeResource { + */ +public class XrDeserializeSceneFragmentMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -47,29 +47,20 @@ public class XrDeserializeSceneFragmentMSFT extends Struct implements NativeResource { @@ -254,9 +245,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 XrDeserializeSceneFragmentMSFT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrDeserializeSceneFragmentMSFT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -281,19 +272,19 @@ protected Buffer self() { protected XrDeserializeSceneFragmentMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrDeserializeSceneFragmentMSFT#bufferSize} field. */ - @NativeType("uint32_t") - public int bufferSize() { return XrDeserializeSceneFragmentMSFT.nbufferSize(address()); } - /** @return a {@link ByteBuffer} view of the data pointed to by the {@link XrDeserializeSceneFragmentMSFT#buffer} field. */ - @Nullable - @NativeType("uint8_t const *") - public ByteBuffer buffer() { return XrDeserializeSceneFragmentMSFT.nbuffer(address()); } - - /** Sets the specified value to the {@link XrDeserializeSceneFragmentMSFT#bufferSize} field. */ - public XrDeserializeSceneFragmentMSFT.Buffer bufferSize(@NativeType("uint32_t") int value) { XrDeserializeSceneFragmentMSFT.nbufferSize(address(), value); return this; } - /** Sets the address of the specified {@link ByteBuffer} to the {@link XrDeserializeSceneFragmentMSFT#buffer} field. */ - public XrDeserializeSceneFragmentMSFT.Buffer buffer(@Nullable @NativeType("uint8_t const *") ByteBuffer value) { XrDeserializeSceneFragmentMSFT.nbuffer(address(), value); return this; } + + /** @return the value of the {@link XrDeserializeSceneFragmentMSFT#bufferSize} field. */ + @NativeType("uint32_t") + public int bufferSize() { return XrDeserializeSceneFragmentMSFT.nbufferSize(address()); } + /** @return a {@link ByteBuffer} view of the data pointed to by the {@link XrDeserializeSceneFragmentMSFT#buffer} field. */ + @Nullable + @NativeType("uint8_t const *") + public ByteBuffer buffer() { return XrDeserializeSceneFragmentMSFT.nbuffer(address()); } + + /** Sets the specified value to the {@link XrDeserializeSceneFragmentMSFT#bufferSize} field. */ + public XrDeserializeSceneFragmentMSFT.Buffer bufferSize(@NativeType("uint32_t") int value) { XrDeserializeSceneFragmentMSFT.nbufferSize(address(), value); return this; } + /** Sets the address of the specified {@link ByteBuffer} to the {@link XrDeserializeSceneFragmentMSFT#buffer} field. */ + public XrDeserializeSceneFragmentMSFT.Buffer buffer(@Nullable @NativeType("uint8_t const *") ByteBuffer value) { XrDeserializeSceneFragmentMSFT.nbuffer(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDevicePcmSampleRateGetInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDevicePcmSampleRateGetInfoFB.java index 7ca541cd58..98f6740f86 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDevicePcmSampleRateGetInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDevicePcmSampleRateGetInfoFB.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.*; + /** * See {@link XrDevicePcmSampleRateStateFB}. * @@ -26,8 +26,8 @@ * void * next; * float sampleRate; * } - */ -public class XrDevicePcmSampleRateGetInfoFB extends XrDevicePcmSampleRateStateFB { + */ +public class XrDevicePcmSampleRateGetInfoFB extends XrDevicePcmSampleRateStateFB { /** * Creates a {@code XrDevicePcmSampleRateGetInfoFB} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be @@ -38,30 +38,30 @@ public class XrDevicePcmSampleRateGetInfoFB extends XrDevicePcmSampleRateStateFB public XrDevicePcmSampleRateGetInfoFB(ByteBuffer container) { super(container); } - - /** Sets the specified value to the {@code type} field. */ - @Override - public XrDevicePcmSampleRateGetInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBHapticPcm#XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB} value to the {@code type} field. */ - @Override - public XrDevicePcmSampleRateGetInfoFB type$Default() { return type(FBHapticPcm.XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB); } - /** Sets the specified value to the {@code next} field. */ - @Override - public XrDevicePcmSampleRateGetInfoFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@code sampleRate} field. */ - @Override - public XrDevicePcmSampleRateGetInfoFB sampleRate(float value) { nsampleRate(address(), value); return this; } + + /** Sets the specified value to the {@code type} field. */ + @Override + public XrDevicePcmSampleRateGetInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBHapticPcm#XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB} value to the {@code type} field. */ + @Override + public XrDevicePcmSampleRateGetInfoFB type$Default() { return type(FBHapticPcm.XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB); } + /** Sets the specified value to the {@code next} field. */ + @Override + public XrDevicePcmSampleRateGetInfoFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@code sampleRate} field. */ + @Override + public XrDevicePcmSampleRateGetInfoFB sampleRate(float value) { nsampleRate(address(), value); return this; } /** Initializes this struct with the specified values. */ @Override public XrDevicePcmSampleRateGetInfoFB set( - int type, - long next, + int type, + long next, float sampleRate - ) { - type(type); - next(next); - sampleRate(sampleRate); + ) { + type(type); + next(next); + sampleRate(sampleRate); return this; } @@ -189,7 +189,7 @@ public static XrDevicePcmSampleRateGetInfoFB.Buffer calloc(int capacity, MemoryS return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrDevicePcmSampleRateGetInfoFB} structs. */ public static class Buffer extends XrDevicePcmSampleRateStateFB.Buffer { @@ -226,19 +226,19 @@ protected Buffer self() { protected XrDevicePcmSampleRateGetInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** Sets the specified value to the {@code type} field. */ - @Override - public XrDevicePcmSampleRateGetInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrDevicePcmSampleRateGetInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBHapticPcm#XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB} value to the {@code type} field. */ - @Override - public XrDevicePcmSampleRateGetInfoFB.Buffer type$Default() { return type(FBHapticPcm.XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB); } - /** Sets the specified value to the {@code next} field. */ - @Override - public XrDevicePcmSampleRateGetInfoFB.Buffer next(@NativeType("void *") long value) { XrDevicePcmSampleRateGetInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@code sampleRate} field. */ - @Override - public XrDevicePcmSampleRateGetInfoFB.Buffer sampleRate(float value) { XrDevicePcmSampleRateGetInfoFB.nsampleRate(address(), value); return this; } + + /** Sets the specified value to the {@code type} field. */ + @Override + public XrDevicePcmSampleRateGetInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrDevicePcmSampleRateGetInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBHapticPcm#XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB} value to the {@code type} field. */ + @Override + public XrDevicePcmSampleRateGetInfoFB.Buffer type$Default() { return type(FBHapticPcm.XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB); } + /** Sets the specified value to the {@code next} field. */ + @Override + public XrDevicePcmSampleRateGetInfoFB.Buffer next(@NativeType("void *") long value) { XrDevicePcmSampleRateGetInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@code sampleRate} field. */ + @Override + public XrDevicePcmSampleRateGetInfoFB.Buffer sampleRate(float value) { XrDevicePcmSampleRateGetInfoFB.nsampleRate(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDevicePcmSampleRateStateFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDevicePcmSampleRateStateFB.java index c9adfb52bc..e5a9f04abd 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDevicePcmSampleRateStateFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDevicePcmSampleRateStateFB.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 about the device sample rate. * @@ -38,8 +38,8 @@ * void * {@link #next}; * float {@link #sampleRate}; * } - */ -public class XrDevicePcmSampleRateStateFB extends Struct implements NativeResource { + */ +public class XrDevicePcmSampleRateStateFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,32 +49,23 @@ public class XrDevicePcmSampleRateStateFB extends Struct implements NativeResource { @@ -270,9 +261,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 XrDevicePcmSampleRateStateFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrDevicePcmSampleRateStateFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -297,24 +288,24 @@ protected Buffer self() { protected XrDevicePcmSampleRateStateFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrDevicePcmSampleRateStateFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrDevicePcmSampleRateStateFB.ntype(address()); } - /** @return the value of the {@link XrDevicePcmSampleRateStateFB#next} field. */ - @NativeType("void *") - public long next() { return XrDevicePcmSampleRateStateFB.nnext(address()); } - /** @return the value of the {@link XrDevicePcmSampleRateStateFB#sampleRate} field. */ - public float sampleRate() { return XrDevicePcmSampleRateStateFB.nsampleRate(address()); } - - /** Sets the specified value to the {@link XrDevicePcmSampleRateStateFB#type} field. */ - public XrDevicePcmSampleRateStateFB.Buffer type(@NativeType("XrStructureType") int value) { XrDevicePcmSampleRateStateFB.ntype(address(), value); return this; } - /** Sets the {@link FBHapticPcm#XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB} value to the {@link XrDevicePcmSampleRateStateFB#type} field. */ - public XrDevicePcmSampleRateStateFB.Buffer type$Default() { return type(FBHapticPcm.XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB); } - /** Sets the specified value to the {@link XrDevicePcmSampleRateStateFB#next} field. */ - public XrDevicePcmSampleRateStateFB.Buffer next(@NativeType("void *") long value) { XrDevicePcmSampleRateStateFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrDevicePcmSampleRateStateFB#sampleRate} field. */ - public XrDevicePcmSampleRateStateFB.Buffer sampleRate(float value) { XrDevicePcmSampleRateStateFB.nsampleRate(address(), value); return this; } + + /** @return the value of the {@link XrDevicePcmSampleRateStateFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrDevicePcmSampleRateStateFB.ntype(address()); } + /** @return the value of the {@link XrDevicePcmSampleRateStateFB#next} field. */ + @NativeType("void *") + public long next() { return XrDevicePcmSampleRateStateFB.nnext(address()); } + /** @return the value of the {@link XrDevicePcmSampleRateStateFB#sampleRate} field. */ + public float sampleRate() { return XrDevicePcmSampleRateStateFB.nsampleRate(address()); } + + /** Sets the specified value to the {@link XrDevicePcmSampleRateStateFB#type} field. */ + public XrDevicePcmSampleRateStateFB.Buffer type(@NativeType("XrStructureType") int value) { XrDevicePcmSampleRateStateFB.ntype(address(), value); return this; } + /** Sets the {@link FBHapticPcm#XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB} value to the {@link XrDevicePcmSampleRateStateFB#type} field. */ + public XrDevicePcmSampleRateStateFB.Buffer type$Default() { return type(FBHapticPcm.XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB); } + /** Sets the specified value to the {@link XrDevicePcmSampleRateStateFB#next} field. */ + public XrDevicePcmSampleRateStateFB.Buffer next(@NativeType("void *") long value) { XrDevicePcmSampleRateStateFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrDevicePcmSampleRateStateFB#sampleRate} field. */ + public XrDevicePcmSampleRateStateFB.Buffer sampleRate(float value) { XrDevicePcmSampleRateStateFB.nsampleRate(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDigitalLensControlALMALENCE.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDigitalLensControlALMALENCE.java index 6ff85a0082..5189f455d0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDigitalLensControlALMALENCE.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDigitalLensControlALMALENCE.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 digital lens control structure to be passed to change state of DLVR API Layer. * @@ -40,8 +40,8 @@ * void const * {@link #next}; * XrDigitalLensControlFlagsALMALENCE {@link #flags}; * } - */ -public class XrDigitalLensControlALMALENCE extends Struct implements NativeResource { + */ +public class XrDigitalLensControlALMALENCE extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,32 +51,23 @@ public class XrDigitalLensControlALMALENCE extends Struct implements NativeResource { @@ -273,9 +264,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 XrDigitalLensControlALMALENCE#SIZEOF}, and its mark will be undefined.

    + * by {@link XrDigitalLensControlALMALENCE#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -300,25 +291,25 @@ protected Buffer self() { protected XrDigitalLensControlALMALENCE getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrDigitalLensControlALMALENCE#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrDigitalLensControlALMALENCE.ntype(address()); } - /** @return the value of the {@link XrDigitalLensControlALMALENCE#next} field. */ - @NativeType("void const *") - public long next() { return XrDigitalLensControlALMALENCE.nnext(address()); } - /** @return the value of the {@link XrDigitalLensControlALMALENCE#flags} field. */ - @NativeType("XrDigitalLensControlFlagsALMALENCE") - public long flags() { return XrDigitalLensControlALMALENCE.nflags(address()); } - - /** Sets the specified value to the {@link XrDigitalLensControlALMALENCE#type} field. */ - public XrDigitalLensControlALMALENCE.Buffer type(@NativeType("XrStructureType") int value) { XrDigitalLensControlALMALENCE.ntype(address(), value); return this; } - /** Sets the {@link ALMALENCEDigitalLensControl#XR_TYPE_DIGITAL_LENS_CONTROL_ALMALENCE TYPE_DIGITAL_LENS_CONTROL_ALMALENCE} value to the {@link XrDigitalLensControlALMALENCE#type} field. */ - public XrDigitalLensControlALMALENCE.Buffer type$Default() { return type(ALMALENCEDigitalLensControl.XR_TYPE_DIGITAL_LENS_CONTROL_ALMALENCE); } - /** Sets the specified value to the {@link XrDigitalLensControlALMALENCE#next} field. */ - public XrDigitalLensControlALMALENCE.Buffer next(@NativeType("void const *") long value) { XrDigitalLensControlALMALENCE.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrDigitalLensControlALMALENCE#flags} field. */ - public XrDigitalLensControlALMALENCE.Buffer flags(@NativeType("XrDigitalLensControlFlagsALMALENCE") long value) { XrDigitalLensControlALMALENCE.nflags(address(), value); return this; } + + /** @return the value of the {@link XrDigitalLensControlALMALENCE#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrDigitalLensControlALMALENCE.ntype(address()); } + /** @return the value of the {@link XrDigitalLensControlALMALENCE#next} field. */ + @NativeType("void const *") + public long next() { return XrDigitalLensControlALMALENCE.nnext(address()); } + /** @return the value of the {@link XrDigitalLensControlALMALENCE#flags} field. */ + @NativeType("XrDigitalLensControlFlagsALMALENCE") + public long flags() { return XrDigitalLensControlALMALENCE.nflags(address()); } + + /** Sets the specified value to the {@link XrDigitalLensControlALMALENCE#type} field. */ + public XrDigitalLensControlALMALENCE.Buffer type(@NativeType("XrStructureType") int value) { XrDigitalLensControlALMALENCE.ntype(address(), value); return this; } + /** Sets the {@link ALMALENCEDigitalLensControl#XR_TYPE_DIGITAL_LENS_CONTROL_ALMALENCE TYPE_DIGITAL_LENS_CONTROL_ALMALENCE} value to the {@link XrDigitalLensControlALMALENCE#type} field. */ + public XrDigitalLensControlALMALENCE.Buffer type$Default() { return type(ALMALENCEDigitalLensControl.XR_TYPE_DIGITAL_LENS_CONTROL_ALMALENCE); } + /** Sets the specified value to the {@link XrDigitalLensControlALMALENCE#next} field. */ + public XrDigitalLensControlALMALENCE.Buffer next(@NativeType("void const *") long value) { XrDigitalLensControlALMALENCE.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrDigitalLensControlALMALENCE#flags} field. */ + public XrDigitalLensControlALMALENCE.Buffer flags(@NativeType("XrDigitalLensControlFlagsALMALENCE") long value) { XrDigitalLensControlALMALENCE.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataBaseHeader.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataBaseHeader.java index ea5a0f0cab..82d3ac0539 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataBaseHeader.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataBaseHeader.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 header for an event. * @@ -42,8 +42,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrEventDataBaseHeader extends Struct implements NativeResource { + */ +public class XrEventDataBaseHeader extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,29 +53,20 @@ public class XrEventDataBaseHeader extends Struct impleme /** 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 XrEventDataBaseHeader(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrEventDataBaseHeader create(long address, @Nullable ByteBuffer container) { - return new XrEventDataBaseHeader(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); } /** @@ -90,26 +81,26 @@ public XrEventDataBaseHeader(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("void const *") - public long next() { return nnext(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrEventDataBaseHeader type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the specified value to the {@link #next} field. */ - public XrEventDataBaseHeader next(@NativeType("void const *") long 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("void const *") + public long next() { return nnext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrEventDataBaseHeader type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the specified value to the {@link #next} field. */ + public XrEventDataBaseHeader next(@NativeType("void const *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrEventDataBaseHeader set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -130,124 +121,124 @@ public XrEventDataBaseHeader set(XrEventDataBaseHeader src) { /** Returns a new {@code XrEventDataBaseHeader} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrEventDataBaseHeader malloc() { - return new XrEventDataBaseHeader(nmemAllocChecked(SIZEOF), null); + return wrap(XrEventDataBaseHeader.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrEventDataBaseHeader} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrEventDataBaseHeader calloc() { - return new XrEventDataBaseHeader(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrEventDataBaseHeader.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrEventDataBaseHeader} instance allocated with {@link BufferUtils}. */ public static XrEventDataBaseHeader create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrEventDataBaseHeader(memAddress(container), container); + return wrap(XrEventDataBaseHeader.class, memAddress(container), container); } /** Returns a new {@code XrEventDataBaseHeader} instance for the specified memory address. */ public static XrEventDataBaseHeader create(long address) { - return new XrEventDataBaseHeader(address, null); + return wrap(XrEventDataBaseHeader.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrEventDataBaseHeader createSafe(long address) { - return address == NULL ? null : new XrEventDataBaseHeader(address, null); + return address == NULL ? null : wrap(XrEventDataBaseHeader.class, address); } /** Upcasts the specified {@code XrEventDataEventsLost} instance to {@code XrEventDataBaseHeader}. */ public static XrEventDataBaseHeader create(XrEventDataEventsLost value) { - return new XrEventDataBaseHeader(value.address(), __getContainer(value)); + return wrap(XrEventDataBaseHeader.class, value); } /** Upcasts the specified {@code XrEventDataInstanceLossPending} instance to {@code XrEventDataBaseHeader}. */ public static XrEventDataBaseHeader create(XrEventDataInstanceLossPending value) { - return new XrEventDataBaseHeader(value.address(), __getContainer(value)); + return wrap(XrEventDataBaseHeader.class, value); } /** Upcasts the specified {@code XrEventDataSessionStateChanged} instance to {@code XrEventDataBaseHeader}. */ public static XrEventDataBaseHeader create(XrEventDataSessionStateChanged value) { - return new XrEventDataBaseHeader(value.address(), __getContainer(value)); + return wrap(XrEventDataBaseHeader.class, value); } /** Upcasts the specified {@code XrEventDataReferenceSpaceChangePending} instance to {@code XrEventDataBaseHeader}. */ public static XrEventDataBaseHeader create(XrEventDataReferenceSpaceChangePending value) { - return new XrEventDataBaseHeader(value.address(), __getContainer(value)); + return wrap(XrEventDataBaseHeader.class, value); } /** Upcasts the specified {@code XrEventDataInteractionProfileChanged} instance to {@code XrEventDataBaseHeader}. */ public static XrEventDataBaseHeader create(XrEventDataInteractionProfileChanged value) { - return new XrEventDataBaseHeader(value.address(), __getContainer(value)); + return wrap(XrEventDataBaseHeader.class, value); } /** Upcasts the specified {@code XrEventDataPerfSettingsEXT} instance to {@code XrEventDataBaseHeader}. */ public static XrEventDataBaseHeader create(XrEventDataPerfSettingsEXT value) { - return new XrEventDataBaseHeader(value.address(), __getContainer(value)); + return wrap(XrEventDataBaseHeader.class, value); } /** Upcasts the specified {@code XrEventDataVisibilityMaskChangedKHR} instance to {@code XrEventDataBaseHeader}. */ public static XrEventDataBaseHeader create(XrEventDataVisibilityMaskChangedKHR value) { - return new XrEventDataBaseHeader(value.address(), __getContainer(value)); + return wrap(XrEventDataBaseHeader.class, value); } /** Upcasts the specified {@code XrEventDataMainSessionVisibilityChangedEXTX} instance to {@code XrEventDataBaseHeader}. */ public static XrEventDataBaseHeader create(XrEventDataMainSessionVisibilityChangedEXTX value) { - return new XrEventDataBaseHeader(value.address(), __getContainer(value)); + return wrap(XrEventDataBaseHeader.class, value); } /** Upcasts the specified {@code XrEventDataDisplayRefreshRateChangedFB} instance to {@code XrEventDataBaseHeader}. */ public static XrEventDataBaseHeader create(XrEventDataDisplayRefreshRateChangedFB value) { - return new XrEventDataBaseHeader(value.address(), __getContainer(value)); + return wrap(XrEventDataBaseHeader.class, value); } /** Upcasts the specified {@code XrEventDataViveTrackerConnectedHTCX} instance to {@code XrEventDataBaseHeader}. */ public static XrEventDataBaseHeader create(XrEventDataViveTrackerConnectedHTCX value) { - return new XrEventDataBaseHeader(value.address(), __getContainer(value)); + return wrap(XrEventDataBaseHeader.class, value); } /** Upcasts the specified {@code XrEventDataSpatialAnchorCreateCompleteFB} instance to {@code XrEventDataBaseHeader}. */ public static XrEventDataBaseHeader create(XrEventDataSpatialAnchorCreateCompleteFB value) { - return new XrEventDataBaseHeader(value.address(), __getContainer(value)); + return wrap(XrEventDataBaseHeader.class, value); } /** Upcasts the specified {@code XrEventDataSpaceSetStatusCompleteFB} instance to {@code XrEventDataBaseHeader}. */ public static XrEventDataBaseHeader create(XrEventDataSpaceSetStatusCompleteFB value) { - return new XrEventDataBaseHeader(value.address(), __getContainer(value)); + return wrap(XrEventDataBaseHeader.class, value); } /** Upcasts the specified {@code XrEventDataMarkerTrackingUpdateVARJO} instance to {@code XrEventDataBaseHeader}. */ public static XrEventDataBaseHeader create(XrEventDataMarkerTrackingUpdateVARJO value) { - return new XrEventDataBaseHeader(value.address(), __getContainer(value)); + return wrap(XrEventDataBaseHeader.class, value); } /** Upcasts the specified {@code XrEventDataSpaceQueryResultsAvailableFB} instance to {@code XrEventDataBaseHeader}. */ public static XrEventDataBaseHeader create(XrEventDataSpaceQueryResultsAvailableFB value) { - return new XrEventDataBaseHeader(value.address(), __getContainer(value)); + return wrap(XrEventDataBaseHeader.class, value); } /** Upcasts the specified {@code XrEventDataSpaceQueryCompleteFB} instance to {@code XrEventDataBaseHeader}. */ public static XrEventDataBaseHeader create(XrEventDataSpaceQueryCompleteFB value) { - return new XrEventDataBaseHeader(value.address(), __getContainer(value)); + return wrap(XrEventDataBaseHeader.class, value); } /** Upcasts the specified {@code XrEventDataSpaceSaveCompleteFB} instance to {@code XrEventDataBaseHeader}. */ public static XrEventDataBaseHeader create(XrEventDataSpaceSaveCompleteFB value) { - return new XrEventDataBaseHeader(value.address(), __getContainer(value)); + return wrap(XrEventDataBaseHeader.class, value); } /** Upcasts the specified {@code XrEventDataSpaceEraseCompleteFB} instance to {@code XrEventDataBaseHeader}. */ public static XrEventDataBaseHeader create(XrEventDataSpaceEraseCompleteFB value) { - return new XrEventDataBaseHeader(value.address(), __getContainer(value)); + return wrap(XrEventDataBaseHeader.class, value); } /** Upcasts the specified {@code XrEventDataSpaceShareCompleteFB} instance to {@code XrEventDataBaseHeader}. */ public static XrEventDataBaseHeader create(XrEventDataSpaceShareCompleteFB value) { - return new XrEventDataBaseHeader(value.address(), __getContainer(value)); + return wrap(XrEventDataBaseHeader.class, value); } /** Upcasts the specified {@code XrEventDataSpaceListSaveCompleteFB} instance to {@code XrEventDataBaseHeader}. */ public static XrEventDataBaseHeader create(XrEventDataSpaceListSaveCompleteFB value) { - return new XrEventDataBaseHeader(value.address(), __getContainer(value)); + return wrap(XrEventDataBaseHeader.class, value); } /** @@ -256,7 +247,7 @@ public static XrEventDataBaseHeader create(XrEventDataSpaceListSaveCompleteFB va * @param capacity the buffer capacity */ public static XrEventDataBaseHeader.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -265,7 +256,7 @@ public static XrEventDataBaseHeader.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrEventDataBaseHeader.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -275,7 +266,7 @@ public static XrEventDataBaseHeader.Buffer calloc(int capacity) { */ public static XrEventDataBaseHeader.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); } /** @@ -285,108 +276,108 @@ public static XrEventDataBaseHeader.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrEventDataBaseHeader.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 XrEventDataBaseHeader.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** Upcasts the specified {@code XrEventDataEventsLost.Buffer} instance to {@code XrEventDataBaseHeader.Buffer}. */ public static XrEventDataBaseHeader.Buffer create(XrEventDataEventsLost.Buffer value) { - return new XrEventDataBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrEventDataInstanceLossPending.Buffer} instance to {@code XrEventDataBaseHeader.Buffer}. */ public static XrEventDataBaseHeader.Buffer create(XrEventDataInstanceLossPending.Buffer value) { - return new XrEventDataBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrEventDataSessionStateChanged.Buffer} instance to {@code XrEventDataBaseHeader.Buffer}. */ public static XrEventDataBaseHeader.Buffer create(XrEventDataSessionStateChanged.Buffer value) { - return new XrEventDataBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrEventDataReferenceSpaceChangePending.Buffer} instance to {@code XrEventDataBaseHeader.Buffer}. */ public static XrEventDataBaseHeader.Buffer create(XrEventDataReferenceSpaceChangePending.Buffer value) { - return new XrEventDataBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrEventDataInteractionProfileChanged.Buffer} instance to {@code XrEventDataBaseHeader.Buffer}. */ public static XrEventDataBaseHeader.Buffer create(XrEventDataInteractionProfileChanged.Buffer value) { - return new XrEventDataBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrEventDataPerfSettingsEXT.Buffer} instance to {@code XrEventDataBaseHeader.Buffer}. */ public static XrEventDataBaseHeader.Buffer create(XrEventDataPerfSettingsEXT.Buffer value) { - return new XrEventDataBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrEventDataVisibilityMaskChangedKHR.Buffer} instance to {@code XrEventDataBaseHeader.Buffer}. */ public static XrEventDataBaseHeader.Buffer create(XrEventDataVisibilityMaskChangedKHR.Buffer value) { - return new XrEventDataBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrEventDataMainSessionVisibilityChangedEXTX.Buffer} instance to {@code XrEventDataBaseHeader.Buffer}. */ public static XrEventDataBaseHeader.Buffer create(XrEventDataMainSessionVisibilityChangedEXTX.Buffer value) { - return new XrEventDataBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrEventDataDisplayRefreshRateChangedFB.Buffer} instance to {@code XrEventDataBaseHeader.Buffer}. */ public static XrEventDataBaseHeader.Buffer create(XrEventDataDisplayRefreshRateChangedFB.Buffer value) { - return new XrEventDataBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrEventDataViveTrackerConnectedHTCX.Buffer} instance to {@code XrEventDataBaseHeader.Buffer}. */ public static XrEventDataBaseHeader.Buffer create(XrEventDataViveTrackerConnectedHTCX.Buffer value) { - return new XrEventDataBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrEventDataSpatialAnchorCreateCompleteFB.Buffer} instance to {@code XrEventDataBaseHeader.Buffer}. */ public static XrEventDataBaseHeader.Buffer create(XrEventDataSpatialAnchorCreateCompleteFB.Buffer value) { - return new XrEventDataBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrEventDataSpaceSetStatusCompleteFB.Buffer} instance to {@code XrEventDataBaseHeader.Buffer}. */ public static XrEventDataBaseHeader.Buffer create(XrEventDataSpaceSetStatusCompleteFB.Buffer value) { - return new XrEventDataBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrEventDataMarkerTrackingUpdateVARJO.Buffer} instance to {@code XrEventDataBaseHeader.Buffer}. */ public static XrEventDataBaseHeader.Buffer create(XrEventDataMarkerTrackingUpdateVARJO.Buffer value) { - return new XrEventDataBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrEventDataSpaceQueryResultsAvailableFB.Buffer} instance to {@code XrEventDataBaseHeader.Buffer}. */ public static XrEventDataBaseHeader.Buffer create(XrEventDataSpaceQueryResultsAvailableFB.Buffer value) { - return new XrEventDataBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrEventDataSpaceQueryCompleteFB.Buffer} instance to {@code XrEventDataBaseHeader.Buffer}. */ public static XrEventDataBaseHeader.Buffer create(XrEventDataSpaceQueryCompleteFB.Buffer value) { - return new XrEventDataBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrEventDataSpaceSaveCompleteFB.Buffer} instance to {@code XrEventDataBaseHeader.Buffer}. */ public static XrEventDataBaseHeader.Buffer create(XrEventDataSpaceSaveCompleteFB.Buffer value) { - return new XrEventDataBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrEventDataSpaceEraseCompleteFB.Buffer} instance to {@code XrEventDataBaseHeader.Buffer}. */ public static XrEventDataBaseHeader.Buffer create(XrEventDataSpaceEraseCompleteFB.Buffer value) { - return new XrEventDataBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrEventDataSpaceShareCompleteFB.Buffer} instance to {@code XrEventDataBaseHeader.Buffer}. */ public static XrEventDataBaseHeader.Buffer create(XrEventDataSpaceShareCompleteFB.Buffer value) { - return new XrEventDataBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrEventDataSpaceListSaveCompleteFB.Buffer} instance to {@code XrEventDataBaseHeader.Buffer}. */ public static XrEventDataBaseHeader.Buffer create(XrEventDataSpaceListSaveCompleteFB.Buffer value) { - return new XrEventDataBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** @@ -395,7 +386,7 @@ public static XrEventDataBaseHeader.Buffer create(XrEventDataSpaceListSaveComple * @param stack the stack from which to allocate */ public static XrEventDataBaseHeader malloc(MemoryStack stack) { - return new XrEventDataBaseHeader(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrEventDataBaseHeader.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -404,7 +395,7 @@ public static XrEventDataBaseHeader malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrEventDataBaseHeader calloc(MemoryStack stack) { - return new XrEventDataBaseHeader(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrEventDataBaseHeader.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -414,7 +405,7 @@ public static XrEventDataBaseHeader calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrEventDataBaseHeader.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); } /** @@ -424,22 +415,22 @@ public static XrEventDataBaseHeader.Buffer malloc(int capacity, MemoryStack stac * @param capacity the buffer capacity */ public static XrEventDataBaseHeader.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 + XrEventDataBaseHeader.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrEventDataBaseHeader.NEXT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEventDataBaseHeader.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrEventDataBaseHeader.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEventDataBaseHeader.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrEventDataBaseHeader.NEXT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEventDataBaseHeader.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrEventDataBaseHeader.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrEventDataBaseHeader} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -449,9 +440,9 @@ public static class Buffer extends StructBuffer i /** * Creates a new {@code XrEventDataBaseHeader.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 XrEventDataBaseHeader#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataBaseHeader#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -476,18 +467,18 @@ protected Buffer self() { protected XrEventDataBaseHeader getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataBaseHeader#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataBaseHeader.ntype(address()); } - /** @return the value of the {@link XrEventDataBaseHeader#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataBaseHeader.nnext(address()); } - - /** Sets the specified value to the {@link XrEventDataBaseHeader#type} field. */ - public XrEventDataBaseHeader.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataBaseHeader.ntype(address(), value); return this; } - /** Sets the specified value to the {@link XrEventDataBaseHeader#next} field. */ - public XrEventDataBaseHeader.Buffer next(@NativeType("void const *") long value) { XrEventDataBaseHeader.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataBaseHeader#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataBaseHeader.ntype(address()); } + /** @return the value of the {@link XrEventDataBaseHeader#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataBaseHeader.nnext(address()); } + + /** Sets the specified value to the {@link XrEventDataBaseHeader#type} field. */ + public XrEventDataBaseHeader.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataBaseHeader.ntype(address(), value); return this; } + /** Sets the specified value to the {@link XrEventDataBaseHeader#next} field. */ + public XrEventDataBaseHeader.Buffer next(@NativeType("void const *") long value) { XrEventDataBaseHeader.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataBuffer.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataBuffer.java index eea37aece7..0ff4d5fe63 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataBuffer.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataBuffer.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.*; + /** * Event buffer. * @@ -38,8 +38,8 @@ * void const * {@link #next}; * uint8_t {@link #varying}[4000]; * } - */ -public class XrEventDataBuffer extends Struct implements NativeResource { + */ +public class XrEventDataBuffer extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,32 +49,23 @@ public class XrEventDataBuffer extends Struct implements Nati /** The struct member offsets. */ public static final int - TYPE, - NEXT, - VARYING; + TYPE, + NEXT, + VARYING; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __array(1, 4000) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - VARYING = layout.offsetof(2); - } - - protected XrEventDataBuffer(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrEventDataBuffer create(long address, @Nullable ByteBuffer container) { - return new XrEventDataBuffer(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + VARYING = layout.offsetof(2); } /** @@ -89,40 +80,40 @@ public XrEventDataBuffer(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 fixed sized output buffer big enough to hold returned data elements for all specified event data types. */ - @NativeType("uint8_t[4000]") - public ByteBuffer varying() { return nvarying(address()); } - /** a fixed sized output buffer big enough to hold returned data elements for all specified event data types. */ - @NativeType("uint8_t") - public byte varying(int index) { return nvarying(address(), index); } - - /** Sets the specified value to the {@link #type} field. */ - public XrEventDataBuffer type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_BUFFER TYPE_EVENT_DATA_BUFFER} value to the {@link #type} field. */ - public XrEventDataBuffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_BUFFER); } - /** Sets the specified value to the {@link #next} field. */ - public XrEventDataBuffer next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Copies the specified {@link ByteBuffer} to the {@link #varying} field. */ - public XrEventDataBuffer varying(@NativeType("uint8_t[4000]") ByteBuffer value) { nvarying(address(), value); return this; } - /** Sets the specified value at the specified index of the {@link #varying} field. */ - public XrEventDataBuffer varying(int index, @NativeType("uint8_t") byte value) { nvarying(address(), index, 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()); } + /** a fixed sized output buffer big enough to hold returned data elements for all specified event data types. */ + @NativeType("uint8_t[4000]") + public ByteBuffer varying() { return nvarying(address()); } + /** a fixed sized output buffer big enough to hold returned data elements for all specified event data types. */ + @NativeType("uint8_t") + public byte varying(int index) { return nvarying(address(), index); } + + /** Sets the specified value to the {@link #type} field. */ + public XrEventDataBuffer type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_BUFFER TYPE_EVENT_DATA_BUFFER} value to the {@link #type} field. */ + public XrEventDataBuffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_BUFFER); } + /** Sets the specified value to the {@link #next} field. */ + public XrEventDataBuffer next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link ByteBuffer} to the {@link #varying} field. */ + public XrEventDataBuffer varying(@NativeType("uint8_t[4000]") ByteBuffer value) { nvarying(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link #varying} field. */ + public XrEventDataBuffer varying(int index, @NativeType("uint8_t") byte value) { nvarying(address(), index, value); return this; } /** Initializes this struct with the specified values. */ public XrEventDataBuffer set( - int type, - long next, + int type, + long next, ByteBuffer varying - ) { - type(type); - next(next); - varying(varying); + ) { + type(type); + next(next); + varying(varying); return this; } @@ -143,29 +134,29 @@ public XrEventDataBuffer set(XrEventDataBuffer src) { /** Returns a new {@code XrEventDataBuffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrEventDataBuffer malloc() { - return new XrEventDataBuffer(nmemAllocChecked(SIZEOF), null); + return wrap(XrEventDataBuffer.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrEventDataBuffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrEventDataBuffer calloc() { - return new XrEventDataBuffer(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrEventDataBuffer.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrEventDataBuffer} instance allocated with {@link BufferUtils}. */ public static XrEventDataBuffer create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrEventDataBuffer(memAddress(container), container); + return wrap(XrEventDataBuffer.class, memAddress(container), container); } /** Returns a new {@code XrEventDataBuffer} instance for the specified memory address. */ public static XrEventDataBuffer create(long address) { - return new XrEventDataBuffer(address, null); + return wrap(XrEventDataBuffer.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrEventDataBuffer createSafe(long address) { - return address == NULL ? null : new XrEventDataBuffer(address, null); + return address == NULL ? null : wrap(XrEventDataBuffer.class, address); } /** @@ -174,7 +165,7 @@ public static XrEventDataBuffer createSafe(long address) { * @param capacity the buffer capacity */ public static XrEventDataBuffer.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -183,7 +174,7 @@ public static XrEventDataBuffer.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrEventDataBuffer.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -193,7 +184,7 @@ public static XrEventDataBuffer.Buffer calloc(int capacity) { */ public static XrEventDataBuffer.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); } /** @@ -203,13 +194,13 @@ public static XrEventDataBuffer.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrEventDataBuffer.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 XrEventDataBuffer.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -218,7 +209,7 @@ public static XrEventDataBuffer.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrEventDataBuffer malloc(MemoryStack stack) { - return new XrEventDataBuffer(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrEventDataBuffer.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -227,7 +218,7 @@ public static XrEventDataBuffer malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrEventDataBuffer calloc(MemoryStack stack) { - return new XrEventDataBuffer(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrEventDataBuffer.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -237,7 +228,7 @@ public static XrEventDataBuffer calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrEventDataBuffer.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); } /** @@ -247,37 +238,37 @@ public static XrEventDataBuffer.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrEventDataBuffer.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 + XrEventDataBuffer.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrEventDataBuffer.NEXT); } - /** Unsafe version of {@link #varying}. */ - public static ByteBuffer nvarying(long struct) { return memByteBuffer(struct + XrEventDataBuffer.VARYING, 4000); } - /** Unsafe version of {@link #varying(int) varying}. */ - public static byte nvarying(long struct, int index) { + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEventDataBuffer.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrEventDataBuffer.NEXT); } + /** Unsafe version of {@link #varying}. */ + public static ByteBuffer nvarying(long struct) { return memByteBuffer(struct + XrEventDataBuffer.VARYING, 4000); } + /** Unsafe version of {@link #varying(int) varying}. */ + public static byte nvarying(long struct, int index) { return UNSAFE.getByte(null, struct + XrEventDataBuffer.VARYING + check(index, 4000) * 1); - } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEventDataBuffer.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrEventDataBuffer.NEXT, value); } - /** Unsafe version of {@link #varying(ByteBuffer) varying}. */ - public static void nvarying(long struct, ByteBuffer value) { - if (CHECKS) { checkGT(value, 4000); } - memCopy(memAddress(value), struct + XrEventDataBuffer.VARYING, value.remaining() * 1); - } - /** Unsafe version of {@link #varying(int, byte) varying}. */ - public static void nvarying(long struct, int index, byte value) { - UNSAFE.putByte(null, struct + XrEventDataBuffer.VARYING + check(index, 4000) * 1, value); - } - - // ----------------------------------- + } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEventDataBuffer.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrEventDataBuffer.NEXT, value); } + /** Unsafe version of {@link #varying(ByteBuffer) varying}. */ + public static void nvarying(long struct, ByteBuffer value) { + if (CHECKS) { checkGT(value, 4000); } + memCopy(memAddress(value), struct + XrEventDataBuffer.VARYING, value.remaining() * 1); + } + /** Unsafe version of {@link #varying(int, byte) varying}. */ + public static void nvarying(long struct, int index, byte value) { + UNSAFE.putByte(null, struct + XrEventDataBuffer.VARYING + check(index, 4000) * 1, value); + } + + // ----------------------------------- /** An array of {@link XrEventDataBuffer} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -287,9 +278,9 @@ public static class Buffer extends StructBuffer imple /** * Creates a new {@code XrEventDataBuffer.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 XrEventDataBuffer#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataBuffer#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -314,30 +305,30 @@ protected Buffer self() { protected XrEventDataBuffer getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataBuffer#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataBuffer.ntype(address()); } - /** @return the value of the {@link XrEventDataBuffer#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataBuffer.nnext(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrEventDataBuffer#varying} field. */ - @NativeType("uint8_t[4000]") - public ByteBuffer varying() { return XrEventDataBuffer.nvarying(address()); } - /** @return the value at the specified index of the {@link XrEventDataBuffer#varying} field. */ - @NativeType("uint8_t") - public byte varying(int index) { return XrEventDataBuffer.nvarying(address(), index); } - - /** Sets the specified value to the {@link XrEventDataBuffer#type} field. */ - public XrEventDataBuffer.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataBuffer.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_BUFFER TYPE_EVENT_DATA_BUFFER} value to the {@link XrEventDataBuffer#type} field. */ - public XrEventDataBuffer.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_BUFFER); } - /** Sets the specified value to the {@link XrEventDataBuffer#next} field. */ - public XrEventDataBuffer.Buffer next(@NativeType("void const *") long value) { XrEventDataBuffer.nnext(address(), value); return this; } - /** Copies the specified {@link ByteBuffer} to the {@link XrEventDataBuffer#varying} field. */ - public XrEventDataBuffer.Buffer varying(@NativeType("uint8_t[4000]") ByteBuffer value) { XrEventDataBuffer.nvarying(address(), value); return this; } - /** Sets the specified value at the specified index of the {@link XrEventDataBuffer#varying} field. */ - public XrEventDataBuffer.Buffer varying(int index, @NativeType("uint8_t") byte value) { XrEventDataBuffer.nvarying(address(), index, value); return this; } + + /** @return the value of the {@link XrEventDataBuffer#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataBuffer.ntype(address()); } + /** @return the value of the {@link XrEventDataBuffer#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataBuffer.nnext(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrEventDataBuffer#varying} field. */ + @NativeType("uint8_t[4000]") + public ByteBuffer varying() { return XrEventDataBuffer.nvarying(address()); } + /** @return the value at the specified index of the {@link XrEventDataBuffer#varying} field. */ + @NativeType("uint8_t") + public byte varying(int index) { return XrEventDataBuffer.nvarying(address(), index); } + + /** Sets the specified value to the {@link XrEventDataBuffer#type} field. */ + public XrEventDataBuffer.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataBuffer.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_BUFFER TYPE_EVENT_DATA_BUFFER} value to the {@link XrEventDataBuffer#type} field. */ + public XrEventDataBuffer.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_BUFFER); } + /** Sets the specified value to the {@link XrEventDataBuffer#next} field. */ + public XrEventDataBuffer.Buffer next(@NativeType("void const *") long value) { XrEventDataBuffer.nnext(address(), value); return this; } + /** Copies the specified {@link ByteBuffer} to the {@link XrEventDataBuffer#varying} field. */ + public XrEventDataBuffer.Buffer varying(@NativeType("uint8_t[4000]") ByteBuffer value) { XrEventDataBuffer.nvarying(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link XrEventDataBuffer#varying} field. */ + public XrEventDataBuffer.Buffer varying(int index, @NativeType("uint8_t") byte value) { XrEventDataBuffer.nvarying(address(), index, value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataDisplayRefreshRateChangedFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataDisplayRefreshRateChangedFB.java index 54a049b7e7..2b6241b4f2 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataDisplayRefreshRateChangedFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataDisplayRefreshRateChangedFB.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.*; + /** * Event representing display refresh rate change. * @@ -39,8 +39,8 @@ * float {@link #fromDisplayRefreshRate}; * float {@link #toDisplayRefreshRate}; * } - */ -public class XrEventDataDisplayRefreshRateChangedFB extends Struct implements NativeResource { + */ +public class XrEventDataDisplayRefreshRateChangedFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,35 +50,26 @@ public class XrEventDataDisplayRefreshRateChangedFB extends Struct implements NativeResource { @@ -282,9 +273,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 XrEventDataDisplayRefreshRateChangedFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataDisplayRefreshRateChangedFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -309,24 +300,24 @@ protected Buffer self() { protected XrEventDataDisplayRefreshRateChangedFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataDisplayRefreshRateChangedFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataDisplayRefreshRateChangedFB.ntype(address()); } - /** @return the value of the {@link XrEventDataDisplayRefreshRateChangedFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataDisplayRefreshRateChangedFB.nnext(address()); } - /** @return the value of the {@link XrEventDataDisplayRefreshRateChangedFB#fromDisplayRefreshRate} field. */ - public float fromDisplayRefreshRate() { return XrEventDataDisplayRefreshRateChangedFB.nfromDisplayRefreshRate(address()); } - /** @return the value of the {@link XrEventDataDisplayRefreshRateChangedFB#toDisplayRefreshRate} field. */ - public float toDisplayRefreshRate() { return XrEventDataDisplayRefreshRateChangedFB.ntoDisplayRefreshRate(address()); } - - /** Sets the specified value to the {@link XrEventDataDisplayRefreshRateChangedFB#type} field. */ - public XrEventDataDisplayRefreshRateChangedFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataDisplayRefreshRateChangedFB.ntype(address(), value); return this; } - /** Sets the {@link FBDisplayRefreshRate#XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB} value to the {@link XrEventDataDisplayRefreshRateChangedFB#type} field. */ - public XrEventDataDisplayRefreshRateChangedFB.Buffer type$Default() { return type(FBDisplayRefreshRate.XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB); } - /** Sets the specified value to the {@link XrEventDataDisplayRefreshRateChangedFB#next} field. */ - public XrEventDataDisplayRefreshRateChangedFB.Buffer next(@NativeType("void const *") long value) { XrEventDataDisplayRefreshRateChangedFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataDisplayRefreshRateChangedFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataDisplayRefreshRateChangedFB.ntype(address()); } + /** @return the value of the {@link XrEventDataDisplayRefreshRateChangedFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataDisplayRefreshRateChangedFB.nnext(address()); } + /** @return the value of the {@link XrEventDataDisplayRefreshRateChangedFB#fromDisplayRefreshRate} field. */ + public float fromDisplayRefreshRate() { return XrEventDataDisplayRefreshRateChangedFB.nfromDisplayRefreshRate(address()); } + /** @return the value of the {@link XrEventDataDisplayRefreshRateChangedFB#toDisplayRefreshRate} field. */ + public float toDisplayRefreshRate() { return XrEventDataDisplayRefreshRateChangedFB.ntoDisplayRefreshRate(address()); } + + /** Sets the specified value to the {@link XrEventDataDisplayRefreshRateChangedFB#type} field. */ + public XrEventDataDisplayRefreshRateChangedFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataDisplayRefreshRateChangedFB.ntype(address(), value); return this; } + /** Sets the {@link FBDisplayRefreshRate#XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB} value to the {@link XrEventDataDisplayRefreshRateChangedFB#type} field. */ + public XrEventDataDisplayRefreshRateChangedFB.Buffer type$Default() { return type(FBDisplayRefreshRate.XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB); } + /** Sets the specified value to the {@link XrEventDataDisplayRefreshRateChangedFB#next} field. */ + public XrEventDataDisplayRefreshRateChangedFB.Buffer next(@NativeType("void const *") long value) { XrEventDataDisplayRefreshRateChangedFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataEventsLost.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataEventsLost.java index a8eefad488..79b84f23ef 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataEventsLost.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataEventsLost.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.*; + /** * Event indicating events were lost. * @@ -41,8 +41,8 @@ * void const * {@link #next}; * uint32_t {@link #lostEventCount}; * } - */ -public class XrEventDataEventsLost extends Struct implements NativeResource { + */ +public class XrEventDataEventsLost extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,32 +52,23 @@ public class XrEventDataEventsLost extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - LOSTEVENTCOUNT; + TYPE, + NEXT, + LOSTEVENTCOUNT; 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); - LOSTEVENTCOUNT = layout.offsetof(2); - } - - protected XrEventDataEventsLost(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrEventDataEventsLost create(long address, @Nullable ByteBuffer container) { - return new XrEventDataEventsLost(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + LOSTEVENTCOUNT = layout.offsetof(2); } /** @@ -92,31 +83,31 @@ public XrEventDataEventsLost(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 number of events which have overflowed since the last call to {@link XR10#xrPollEvent PollEvent}. */ - @NativeType("uint32_t") - public int lostEventCount() { return nlostEventCount(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrEventDataEventsLost type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_EVENTS_LOST TYPE_EVENT_DATA_EVENTS_LOST} value to the {@link #type} field. */ - public XrEventDataEventsLost type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_EVENTS_LOST); } - /** Sets the specified value to the {@link #next} field. */ - public XrEventDataEventsLost next(@NativeType("void const *") 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 const *") + public long next() { return nnext(address()); } + /** the number of events which have overflowed since the last call to {@link XR10#xrPollEvent PollEvent}. */ + @NativeType("uint32_t") + public int lostEventCount() { return nlostEventCount(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrEventDataEventsLost type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_EVENTS_LOST TYPE_EVENT_DATA_EVENTS_LOST} value to the {@link #type} field. */ + public XrEventDataEventsLost type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_EVENTS_LOST); } + /** Sets the specified value to the {@link #next} field. */ + public XrEventDataEventsLost next(@NativeType("void const *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrEventDataEventsLost set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -137,34 +128,34 @@ public XrEventDataEventsLost set(XrEventDataEventsLost src) { /** Returns a new {@code XrEventDataEventsLost} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrEventDataEventsLost malloc() { - return new XrEventDataEventsLost(nmemAllocChecked(SIZEOF), null); + return wrap(XrEventDataEventsLost.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrEventDataEventsLost} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrEventDataEventsLost calloc() { - return new XrEventDataEventsLost(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrEventDataEventsLost.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrEventDataEventsLost} instance allocated with {@link BufferUtils}. */ public static XrEventDataEventsLost create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrEventDataEventsLost(memAddress(container), container); + return wrap(XrEventDataEventsLost.class, memAddress(container), container); } /** Returns a new {@code XrEventDataEventsLost} instance for the specified memory address. */ public static XrEventDataEventsLost create(long address) { - return new XrEventDataEventsLost(address, null); + return wrap(XrEventDataEventsLost.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrEventDataEventsLost createSafe(long address) { - return address == NULL ? null : new XrEventDataEventsLost(address, null); + return address == NULL ? null : wrap(XrEventDataEventsLost.class, address); } /** Downcasts the specified {@code XrEventDataBaseHeader} instance to {@code XrEventDataEventsLost}. */ public static XrEventDataEventsLost create(XrEventDataBaseHeader value) { - return new XrEventDataEventsLost(value.address(), __getContainer(value)); + return wrap(XrEventDataEventsLost.class, value); } /** @@ -173,7 +164,7 @@ public static XrEventDataEventsLost create(XrEventDataBaseHeader value) { * @param capacity the buffer capacity */ public static XrEventDataEventsLost.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -182,7 +173,7 @@ public static XrEventDataEventsLost.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrEventDataEventsLost.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -192,7 +183,7 @@ public static XrEventDataEventsLost.Buffer calloc(int capacity) { */ public static XrEventDataEventsLost.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); } /** @@ -202,18 +193,18 @@ public static XrEventDataEventsLost.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrEventDataEventsLost.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 XrEventDataEventsLost.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 XrEventDataBaseHeader.Buffer} instance to {@code XrEventDataEventsLost.Buffer}. */ public static XrEventDataEventsLost.Buffer create(XrEventDataBaseHeader.Buffer value) { - return new XrEventDataEventsLost.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** @@ -222,7 +213,7 @@ public static XrEventDataEventsLost.Buffer create(XrEventDataBaseHeader.Buffer v * @param stack the stack from which to allocate */ public static XrEventDataEventsLost malloc(MemoryStack stack) { - return new XrEventDataEventsLost(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrEventDataEventsLost.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -231,7 +222,7 @@ public static XrEventDataEventsLost malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrEventDataEventsLost calloc(MemoryStack stack) { - return new XrEventDataEventsLost(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrEventDataEventsLost.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -241,7 +232,7 @@ public static XrEventDataEventsLost calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrEventDataEventsLost.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); } /** @@ -251,24 +242,24 @@ public static XrEventDataEventsLost.Buffer malloc(int capacity, MemoryStack stac * @param capacity the buffer capacity */ public static XrEventDataEventsLost.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 + XrEventDataEventsLost.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrEventDataEventsLost.NEXT); } - /** Unsafe version of {@link #lostEventCount}. */ - public static int nlostEventCount(long struct) { return UNSAFE.getInt(null, struct + XrEventDataEventsLost.LOSTEVENTCOUNT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEventDataEventsLost.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrEventDataEventsLost.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEventDataEventsLost.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrEventDataEventsLost.NEXT); } + /** Unsafe version of {@link #lostEventCount}. */ + public static int nlostEventCount(long struct) { return UNSAFE.getInt(null, struct + XrEventDataEventsLost.LOSTEVENTCOUNT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEventDataEventsLost.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrEventDataEventsLost.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrEventDataEventsLost} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -278,9 +269,9 @@ public static class Buffer extends StructBuffer i /** * Creates a new {@code XrEventDataEventsLost.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 XrEventDataEventsLost#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataEventsLost#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -305,23 +296,23 @@ protected Buffer self() { protected XrEventDataEventsLost getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataEventsLost#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataEventsLost.ntype(address()); } - /** @return the value of the {@link XrEventDataEventsLost#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataEventsLost.nnext(address()); } - /** @return the value of the {@link XrEventDataEventsLost#lostEventCount} field. */ - @NativeType("uint32_t") - public int lostEventCount() { return XrEventDataEventsLost.nlostEventCount(address()); } - - /** Sets the specified value to the {@link XrEventDataEventsLost#type} field. */ - public XrEventDataEventsLost.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataEventsLost.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_EVENTS_LOST TYPE_EVENT_DATA_EVENTS_LOST} value to the {@link XrEventDataEventsLost#type} field. */ - public XrEventDataEventsLost.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_EVENTS_LOST); } - /** Sets the specified value to the {@link XrEventDataEventsLost#next} field. */ - public XrEventDataEventsLost.Buffer next(@NativeType("void const *") long value) { XrEventDataEventsLost.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataEventsLost#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataEventsLost.ntype(address()); } + /** @return the value of the {@link XrEventDataEventsLost#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataEventsLost.nnext(address()); } + /** @return the value of the {@link XrEventDataEventsLost#lostEventCount} field. */ + @NativeType("uint32_t") + public int lostEventCount() { return XrEventDataEventsLost.nlostEventCount(address()); } + + /** Sets the specified value to the {@link XrEventDataEventsLost#type} field. */ + public XrEventDataEventsLost.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataEventsLost.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_EVENTS_LOST TYPE_EVENT_DATA_EVENTS_LOST} value to the {@link XrEventDataEventsLost#type} field. */ + public XrEventDataEventsLost.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_EVENTS_LOST); } + /** Sets the specified value to the {@link XrEventDataEventsLost#next} field. */ + public XrEventDataEventsLost.Buffer next(@NativeType("void const *") long value) { XrEventDataEventsLost.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataInstanceLossPending.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataInstanceLossPending.java index dc49b0b4f4..c1653aa537 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataInstanceLossPending.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataInstanceLossPending.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.*; + /** * Event indicating instance loss will occur. * @@ -49,8 +49,8 @@ * void const * next; * XrTime lossTime; * } - */ -public class XrEventDataInstanceLossPending extends Struct implements NativeResource { + */ +public class XrEventDataInstanceLossPending extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -60,32 +60,23 @@ public class XrEventDataInstanceLossPending extends Struct implements NativeResource { @@ -286,9 +277,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 XrEventDataInstanceLossPending#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataInstanceLossPending#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -313,23 +304,23 @@ protected Buffer self() { protected XrEventDataInstanceLossPending getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataInstanceLossPending.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataInstanceLossPending.nnext(address()); } - /** @return the value of the {@code lossTime} field. */ - @NativeType("XrTime") - public long lossTime() { return XrEventDataInstanceLossPending.nlossTime(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrEventDataInstanceLossPending.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataInstanceLossPending.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING} value to the {@code type} field. */ - public XrEventDataInstanceLossPending.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING); } - /** Sets the specified value to the {@code next} field. */ - public XrEventDataInstanceLossPending.Buffer next(@NativeType("void const *") long value) { XrEventDataInstanceLossPending.nnext(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataInstanceLossPending.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataInstanceLossPending.nnext(address()); } + /** @return the value of the {@code lossTime} field. */ + @NativeType("XrTime") + public long lossTime() { return XrEventDataInstanceLossPending.nlossTime(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrEventDataInstanceLossPending.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataInstanceLossPending.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING} value to the {@code type} field. */ + public XrEventDataInstanceLossPending.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING); } + /** Sets the specified value to the {@code next} field. */ + public XrEventDataInstanceLossPending.Buffer next(@NativeType("void const *") long value) { XrEventDataInstanceLossPending.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataInteractionProfileChanged.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataInteractionProfileChanged.java index 06e1f42184..7460c6c30d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataInteractionProfileChanged.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataInteractionProfileChanged.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.*; + /** * Notifies the application than the active interaction profile has changed. * @@ -43,8 +43,8 @@ * void const * {@link #next}; * XrSession {@link #session}; * } - */ -public class XrEventDataInteractionProfileChanged extends Struct implements NativeResource { + */ +public class XrEventDataInteractionProfileChanged extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,32 +54,23 @@ public class XrEventDataInteractionProfileChanged extends Struct implements NativeResource { @@ -280,9 +271,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 XrEventDataInteractionProfileChanged#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataInteractionProfileChanged#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -307,23 +298,23 @@ protected Buffer self() { protected XrEventDataInteractionProfileChanged getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataInteractionProfileChanged#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataInteractionProfileChanged.ntype(address()); } - /** @return the value of the {@link XrEventDataInteractionProfileChanged#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataInteractionProfileChanged.nnext(address()); } - /** @return the value of the {@link XrEventDataInteractionProfileChanged#session} field. */ - @NativeType("XrSession") - public long session() { return XrEventDataInteractionProfileChanged.nsession(address()); } - - /** Sets the specified value to the {@link XrEventDataInteractionProfileChanged#type} field. */ - public XrEventDataInteractionProfileChanged.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataInteractionProfileChanged.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED} value to the {@link XrEventDataInteractionProfileChanged#type} field. */ - public XrEventDataInteractionProfileChanged.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED); } - /** Sets the specified value to the {@link XrEventDataInteractionProfileChanged#next} field. */ - public XrEventDataInteractionProfileChanged.Buffer next(@NativeType("void const *") long value) { XrEventDataInteractionProfileChanged.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataInteractionProfileChanged#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataInteractionProfileChanged.ntype(address()); } + /** @return the value of the {@link XrEventDataInteractionProfileChanged#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataInteractionProfileChanged.nnext(address()); } + /** @return the value of the {@link XrEventDataInteractionProfileChanged#session} field. */ + @NativeType("XrSession") + public long session() { return XrEventDataInteractionProfileChanged.nsession(address()); } + + /** Sets the specified value to the {@link XrEventDataInteractionProfileChanged#type} field. */ + public XrEventDataInteractionProfileChanged.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataInteractionProfileChanged.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED} value to the {@link XrEventDataInteractionProfileChanged#type} field. */ + public XrEventDataInteractionProfileChanged.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED); } + /** Sets the specified value to the {@link XrEventDataInteractionProfileChanged#next} field. */ + public XrEventDataInteractionProfileChanged.Buffer next(@NativeType("void const *") long value) { XrEventDataInteractionProfileChanged.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataMainSessionVisibilityChangedEXTX.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataMainSessionVisibilityChangedEXTX.java index 57348c61ed..b8ab60538b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataMainSessionVisibilityChangedEXTX.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataMainSessionVisibilityChangedEXTX.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.*; + /** * Event representing main session visibility change. * @@ -44,8 +44,8 @@ * XrBool32 visible; * XrOverlayMainSessionFlagsEXTX flags; * } - */ -public class XrEventDataMainSessionVisibilityChangedEXTX extends Struct implements NativeResource { + */ +public class XrEventDataMainSessionVisibilityChangedEXTX extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,35 +55,26 @@ public class XrEventDataMainSessionVisibilityChangedEXTX extends Struct implements NativeResource { @@ -289,9 +280,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 XrEventDataMainSessionVisibilityChangedEXTX#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataMainSessionVisibilityChangedEXTX#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -316,26 +307,26 @@ protected Buffer self() { protected XrEventDataMainSessionVisibilityChangedEXTX getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataMainSessionVisibilityChangedEXTX.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataMainSessionVisibilityChangedEXTX.nnext(address()); } - /** @return the value of the {@code visible} field. */ - @NativeType("XrBool32") - public boolean visible() { return XrEventDataMainSessionVisibilityChangedEXTX.nvisible(address()) != 0; } - /** @return the value of the {@code flags} field. */ - @NativeType("XrOverlayMainSessionFlagsEXTX") - public long flags() { return XrEventDataMainSessionVisibilityChangedEXTX.nflags(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrEventDataMainSessionVisibilityChangedEXTX.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataMainSessionVisibilityChangedEXTX.ntype(address(), value); return this; } - /** Sets the {@link EXTXOverlay#XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX} value to the {@code type} field. */ - public XrEventDataMainSessionVisibilityChangedEXTX.Buffer type$Default() { return type(EXTXOverlay.XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX); } - /** Sets the specified value to the {@code next} field. */ - public XrEventDataMainSessionVisibilityChangedEXTX.Buffer next(@NativeType("void const *") long value) { XrEventDataMainSessionVisibilityChangedEXTX.nnext(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataMainSessionVisibilityChangedEXTX.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataMainSessionVisibilityChangedEXTX.nnext(address()); } + /** @return the value of the {@code visible} field. */ + @NativeType("XrBool32") + public boolean visible() { return XrEventDataMainSessionVisibilityChangedEXTX.nvisible(address()) != 0; } + /** @return the value of the {@code flags} field. */ + @NativeType("XrOverlayMainSessionFlagsEXTX") + public long flags() { return XrEventDataMainSessionVisibilityChangedEXTX.nflags(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrEventDataMainSessionVisibilityChangedEXTX.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataMainSessionVisibilityChangedEXTX.ntype(address(), value); return this; } + /** Sets the {@link EXTXOverlay#XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX} value to the {@code type} field. */ + public XrEventDataMainSessionVisibilityChangedEXTX.Buffer type$Default() { return type(EXTXOverlay.XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX); } + /** Sets the specified value to the {@code next} field. */ + public XrEventDataMainSessionVisibilityChangedEXTX.Buffer next(@NativeType("void const *") long value) { XrEventDataMainSessionVisibilityChangedEXTX.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataMarkerTrackingUpdateVARJO.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataMarkerTrackingUpdateVARJO.java index 79bd0875fa..bb9a94c503 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataMarkerTrackingUpdateVARJO.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataMarkerTrackingUpdateVARJO.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.*; + /** * Structure representing marker tracking information. * @@ -45,8 +45,8 @@ * XrBool32 isPredicted; * XrTime {@link #time}; * } - */ -public class XrEventDataMarkerTrackingUpdateVARJO extends Struct implements NativeResource { + */ +public class XrEventDataMarkerTrackingUpdateVARJO extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,41 +56,32 @@ public class XrEventDataMarkerTrackingUpdateVARJO extends Struct implements NativeResource { @@ -306,9 +297,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 XrEventDataMarkerTrackingUpdateVARJO#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataMarkerTrackingUpdateVARJO#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -333,32 +324,32 @@ protected Buffer self() { protected XrEventDataMarkerTrackingUpdateVARJO getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataMarkerTrackingUpdateVARJO.ntype(address()); } - /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataMarkerTrackingUpdateVARJO.nnext(address()); } - /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#markerId} field. */ - @NativeType("uint64_t") - public long markerId() { return XrEventDataMarkerTrackingUpdateVARJO.nmarkerId(address()); } - /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#isActive} field. */ - @NativeType("XrBool32") - public boolean isActive() { return XrEventDataMarkerTrackingUpdateVARJO.nisActive(address()) != 0; } - /** @return the value of the {@code isPredicted} field. */ - @NativeType("XrBool32") - public boolean isPredicted() { return XrEventDataMarkerTrackingUpdateVARJO.nisPredicted(address()) != 0; } - /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#time} field. */ - @NativeType("XrTime") - public long time() { return XrEventDataMarkerTrackingUpdateVARJO.ntime(address()); } - - /** Sets the specified value to the {@link XrEventDataMarkerTrackingUpdateVARJO#type} field. */ - public XrEventDataMarkerTrackingUpdateVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataMarkerTrackingUpdateVARJO.ntype(address(), value); return this; } - /** Sets the {@link VARJOMarkerTracking#XR_TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO} value to the {@link XrEventDataMarkerTrackingUpdateVARJO#type} field. */ - public XrEventDataMarkerTrackingUpdateVARJO.Buffer type$Default() { return type(VARJOMarkerTracking.XR_TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO); } - /** Sets the specified value to the {@link XrEventDataMarkerTrackingUpdateVARJO#next} field. */ - public XrEventDataMarkerTrackingUpdateVARJO.Buffer next(@NativeType("void const *") long value) { XrEventDataMarkerTrackingUpdateVARJO.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataMarkerTrackingUpdateVARJO.ntype(address()); } + /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataMarkerTrackingUpdateVARJO.nnext(address()); } + /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#markerId} field. */ + @NativeType("uint64_t") + public long markerId() { return XrEventDataMarkerTrackingUpdateVARJO.nmarkerId(address()); } + /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#isActive} field. */ + @NativeType("XrBool32") + public boolean isActive() { return XrEventDataMarkerTrackingUpdateVARJO.nisActive(address()) != 0; } + /** @return the value of the {@code isPredicted} field. */ + @NativeType("XrBool32") + public boolean isPredicted() { return XrEventDataMarkerTrackingUpdateVARJO.nisPredicted(address()) != 0; } + /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#time} field. */ + @NativeType("XrTime") + public long time() { return XrEventDataMarkerTrackingUpdateVARJO.ntime(address()); } + + /** Sets the specified value to the {@link XrEventDataMarkerTrackingUpdateVARJO#type} field. */ + public XrEventDataMarkerTrackingUpdateVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataMarkerTrackingUpdateVARJO.ntype(address(), value); return this; } + /** Sets the {@link VARJOMarkerTracking#XR_TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO} value to the {@link XrEventDataMarkerTrackingUpdateVARJO#type} field. */ + public XrEventDataMarkerTrackingUpdateVARJO.Buffer type$Default() { return type(VARJOMarkerTracking.XR_TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO); } + /** Sets the specified value to the {@link XrEventDataMarkerTrackingUpdateVARJO#next} field. */ + public XrEventDataMarkerTrackingUpdateVARJO.Buffer next(@NativeType("void const *") long value) { XrEventDataMarkerTrackingUpdateVARJO.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataPassthroughStateChangedFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataPassthroughStateChangedFB.java index fa123546c2..c536e9e13d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataPassthroughStateChangedFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataPassthroughStateChangedFB.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.*; + /** * An event for passthrough state changes. * @@ -44,8 +44,8 @@ * void const * next; * XrPassthroughStateChangedFlagsFB flags; * } - */ -public class XrEventDataPassthroughStateChangedFB extends Struct implements NativeResource { + */ +public class XrEventDataPassthroughStateChangedFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,32 +55,23 @@ public class XrEventDataPassthroughStateChangedFB 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 XrEventDataPassthroughStateChangedFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataPassthroughStateChangedFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -304,25 +295,25 @@ protected Buffer self() { protected XrEventDataPassthroughStateChangedFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataPassthroughStateChangedFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataPassthroughStateChangedFB.nnext(address()); } - /** @return the value of the {@code flags} field. */ - @NativeType("XrPassthroughStateChangedFlagsFB") - public long flags() { return XrEventDataPassthroughStateChangedFB.nflags(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrEventDataPassthroughStateChangedFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataPassthroughStateChangedFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB} value to the {@code type} field. */ - public XrEventDataPassthroughStateChangedFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrEventDataPassthroughStateChangedFB.Buffer next(@NativeType("void const *") long value) { XrEventDataPassthroughStateChangedFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@code flags} field. */ - public XrEventDataPassthroughStateChangedFB.Buffer flags(@NativeType("XrPassthroughStateChangedFlagsFB") long value) { XrEventDataPassthroughStateChangedFB.nflags(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataPassthroughStateChangedFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataPassthroughStateChangedFB.nnext(address()); } + /** @return the value of the {@code flags} field. */ + @NativeType("XrPassthroughStateChangedFlagsFB") + public long flags() { return XrEventDataPassthroughStateChangedFB.nflags(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrEventDataPassthroughStateChangedFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataPassthroughStateChangedFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB} value to the {@code type} field. */ + public XrEventDataPassthroughStateChangedFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrEventDataPassthroughStateChangedFB.Buffer next(@NativeType("void const *") long value) { XrEventDataPassthroughStateChangedFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@code flags} field. */ + public XrEventDataPassthroughStateChangedFB.Buffer flags(@NativeType("XrPassthroughStateChangedFlagsFB") long value) { XrEventDataPassthroughStateChangedFB.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataPerfSettingsEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataPerfSettingsEXT.java index d1ee46a07b..03e5a5541e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataPerfSettingsEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataPerfSettingsEXT.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.*; + /** * XrEventDataPerfSettingsEXT. * @@ -37,8 +37,8 @@ * XrPerfSettingsNotificationLevelEXT {@link #fromLevel}; * XrPerfSettingsNotificationLevelEXT {@link #toLevel}; * } - */ -public class XrEventDataPerfSettingsEXT extends Struct implements NativeResource { + */ +public class XrEventDataPerfSettingsEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,41 +48,32 @@ public class XrEventDataPerfSettingsEXT extends Struct implements NativeResource { @@ -298,9 +289,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 XrEventDataPerfSettingsEXT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataPerfSettingsEXT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -325,32 +316,32 @@ protected Buffer self() { protected XrEventDataPerfSettingsEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataPerfSettingsEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataPerfSettingsEXT.ntype(address()); } - /** @return the value of the {@link XrEventDataPerfSettingsEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataPerfSettingsEXT.nnext(address()); } - /** @return the value of the {@link XrEventDataPerfSettingsEXT#domain} field. */ - @NativeType("XrPerfSettingsDomainEXT") - public int domain() { return XrEventDataPerfSettingsEXT.ndomain(address()); } - /** @return the value of the {@link XrEventDataPerfSettingsEXT#subDomain} field. */ - @NativeType("XrPerfSettingsSubDomainEXT") - public int subDomain() { return XrEventDataPerfSettingsEXT.nsubDomain(address()); } - /** @return the value of the {@link XrEventDataPerfSettingsEXT#fromLevel} field. */ - @NativeType("XrPerfSettingsNotificationLevelEXT") - public int fromLevel() { return XrEventDataPerfSettingsEXT.nfromLevel(address()); } - /** @return the value of the {@link XrEventDataPerfSettingsEXT#toLevel} field. */ - @NativeType("XrPerfSettingsNotificationLevelEXT") - public int toLevel() { return XrEventDataPerfSettingsEXT.ntoLevel(address()); } - - /** Sets the specified value to the {@link XrEventDataPerfSettingsEXT#type} field. */ - public XrEventDataPerfSettingsEXT.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataPerfSettingsEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTPerformanceSettings#XR_TYPE_EVENT_DATA_PERF_SETTINGS_EXT TYPE_EVENT_DATA_PERF_SETTINGS_EXT} value to the {@link XrEventDataPerfSettingsEXT#type} field. */ - public XrEventDataPerfSettingsEXT.Buffer type$Default() { return type(EXTPerformanceSettings.XR_TYPE_EVENT_DATA_PERF_SETTINGS_EXT); } - /** Sets the specified value to the {@link XrEventDataPerfSettingsEXT#next} field. */ - public XrEventDataPerfSettingsEXT.Buffer next(@NativeType("void const *") long value) { XrEventDataPerfSettingsEXT.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataPerfSettingsEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataPerfSettingsEXT.ntype(address()); } + /** @return the value of the {@link XrEventDataPerfSettingsEXT#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataPerfSettingsEXT.nnext(address()); } + /** @return the value of the {@link XrEventDataPerfSettingsEXT#domain} field. */ + @NativeType("XrPerfSettingsDomainEXT") + public int domain() { return XrEventDataPerfSettingsEXT.ndomain(address()); } + /** @return the value of the {@link XrEventDataPerfSettingsEXT#subDomain} field. */ + @NativeType("XrPerfSettingsSubDomainEXT") + public int subDomain() { return XrEventDataPerfSettingsEXT.nsubDomain(address()); } + /** @return the value of the {@link XrEventDataPerfSettingsEXT#fromLevel} field. */ + @NativeType("XrPerfSettingsNotificationLevelEXT") + public int fromLevel() { return XrEventDataPerfSettingsEXT.nfromLevel(address()); } + /** @return the value of the {@link XrEventDataPerfSettingsEXT#toLevel} field. */ + @NativeType("XrPerfSettingsNotificationLevelEXT") + public int toLevel() { return XrEventDataPerfSettingsEXT.ntoLevel(address()); } + + /** Sets the specified value to the {@link XrEventDataPerfSettingsEXT#type} field. */ + public XrEventDataPerfSettingsEXT.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataPerfSettingsEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTPerformanceSettings#XR_TYPE_EVENT_DATA_PERF_SETTINGS_EXT TYPE_EVENT_DATA_PERF_SETTINGS_EXT} value to the {@link XrEventDataPerfSettingsEXT#type} field. */ + public XrEventDataPerfSettingsEXT.Buffer type$Default() { return type(EXTPerformanceSettings.XR_TYPE_EVENT_DATA_PERF_SETTINGS_EXT); } + /** Sets the specified value to the {@link XrEventDataPerfSettingsEXT#next} field. */ + public XrEventDataPerfSettingsEXT.Buffer next(@NativeType("void const *") long value) { XrEventDataPerfSettingsEXT.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataReferenceSpaceChangePending.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataReferenceSpaceChangePending.java index ea463082e5..775a855cf6 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataReferenceSpaceChangePending.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataReferenceSpaceChangePending.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.*; + /** * Notifies the application that a reference space is changing. * @@ -41,8 +41,8 @@ * XrBool32 {@link #poseValid}; * {@link XrPosef XrPosef} {@link #poseInPreviousSpace}; * } - */ -public class XrEventDataReferenceSpaceChangePending extends Struct implements NativeResource { + */ +public class XrEventDataReferenceSpaceChangePending extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,44 +52,35 @@ public class XrEventDataReferenceSpaceChangePending extends Struct implements NativeResource { @@ -309,9 +300,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 XrEventDataReferenceSpaceChangePending#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataReferenceSpaceChangePending#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -336,34 +327,34 @@ protected Buffer self() { protected XrEventDataReferenceSpaceChangePending getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataReferenceSpaceChangePending.ntype(address()); } - /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataReferenceSpaceChangePending.nnext(address()); } - /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#session} field. */ - @NativeType("XrSession") - public long session() { return XrEventDataReferenceSpaceChangePending.nsession(address()); } - /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#referenceSpaceType} field. */ - @NativeType("XrReferenceSpaceType") - public int referenceSpaceType() { return XrEventDataReferenceSpaceChangePending.nreferenceSpaceType(address()); } - /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#changeTime} field. */ - @NativeType("XrTime") - public long changeTime() { return XrEventDataReferenceSpaceChangePending.nchangeTime(address()); } - /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#poseValid} field. */ - @NativeType("XrBool32") - public boolean poseValid() { return XrEventDataReferenceSpaceChangePending.nposeValid(address()) != 0; } - /** @return a {@link XrPosef} view of the {@link XrEventDataReferenceSpaceChangePending#poseInPreviousSpace} field. */ - public XrPosef poseInPreviousSpace() { return XrEventDataReferenceSpaceChangePending.nposeInPreviousSpace(address()); } - - /** Sets the specified value to the {@link XrEventDataReferenceSpaceChangePending#type} field. */ - public XrEventDataReferenceSpaceChangePending.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataReferenceSpaceChangePending.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING} value to the {@link XrEventDataReferenceSpaceChangePending#type} field. */ - public XrEventDataReferenceSpaceChangePending.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING); } - /** Sets the specified value to the {@link XrEventDataReferenceSpaceChangePending#next} field. */ - public XrEventDataReferenceSpaceChangePending.Buffer next(@NativeType("void const *") long value) { XrEventDataReferenceSpaceChangePending.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataReferenceSpaceChangePending.ntype(address()); } + /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataReferenceSpaceChangePending.nnext(address()); } + /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#session} field. */ + @NativeType("XrSession") + public long session() { return XrEventDataReferenceSpaceChangePending.nsession(address()); } + /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#referenceSpaceType} field. */ + @NativeType("XrReferenceSpaceType") + public int referenceSpaceType() { return XrEventDataReferenceSpaceChangePending.nreferenceSpaceType(address()); } + /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#changeTime} field. */ + @NativeType("XrTime") + public long changeTime() { return XrEventDataReferenceSpaceChangePending.nchangeTime(address()); } + /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#poseValid} field. */ + @NativeType("XrBool32") + public boolean poseValid() { return XrEventDataReferenceSpaceChangePending.nposeValid(address()) != 0; } + /** @return a {@link XrPosef} view of the {@link XrEventDataReferenceSpaceChangePending#poseInPreviousSpace} field. */ + public XrPosef poseInPreviousSpace() { return XrEventDataReferenceSpaceChangePending.nposeInPreviousSpace(address()); } + + /** Sets the specified value to the {@link XrEventDataReferenceSpaceChangePending#type} field. */ + public XrEventDataReferenceSpaceChangePending.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataReferenceSpaceChangePending.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING} value to the {@link XrEventDataReferenceSpaceChangePending#type} field. */ + public XrEventDataReferenceSpaceChangePending.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING); } + /** Sets the specified value to the {@link XrEventDataReferenceSpaceChangePending#next} field. */ + public XrEventDataReferenceSpaceChangePending.Buffer next(@NativeType("void const *") long value) { XrEventDataReferenceSpaceChangePending.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSceneCaptureCompleteFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSceneCaptureCompleteFB.java index 4ce64534f7..ac4ecc005c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSceneCaptureCompleteFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSceneCaptureCompleteFB.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.*; + /** * Event which occurs after a scene capture operation completes. * @@ -40,8 +40,8 @@ * XrAsyncRequestIdFB {@link #requestId}; * XrResult {@link #result}; * } - */ -public class XrEventDataSceneCaptureCompleteFB extends Struct implements NativeResource { + */ +public class XrEventDataSceneCaptureCompleteFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,35 +51,26 @@ public class XrEventDataSceneCaptureCompleteFB extends Struct implements NativeResource { @@ -287,9 +278,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 XrEventDataSceneCaptureCompleteFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataSceneCaptureCompleteFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -314,30 +305,30 @@ protected Buffer self() { protected XrEventDataSceneCaptureCompleteFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSceneCaptureCompleteFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSceneCaptureCompleteFB.ntype(address()); } - /** @return the value of the {@link XrEventDataSceneCaptureCompleteFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSceneCaptureCompleteFB.nnext(address()); } - /** @return the value of the {@link XrEventDataSceneCaptureCompleteFB#requestId} field. */ - @NativeType("XrAsyncRequestIdFB") - public long requestId() { return XrEventDataSceneCaptureCompleteFB.nrequestId(address()); } - /** @return the value of the {@link XrEventDataSceneCaptureCompleteFB#result} field. */ - @NativeType("XrResult") - public int result() { return XrEventDataSceneCaptureCompleteFB.nresult(address()); } - - /** Sets the specified value to the {@link XrEventDataSceneCaptureCompleteFB#type} field. */ - public XrEventDataSceneCaptureCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSceneCaptureCompleteFB.ntype(address(), value); return this; } - /** Sets the {@link FBSceneCapture#XR_TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB} value to the {@link XrEventDataSceneCaptureCompleteFB#type} field. */ - public XrEventDataSceneCaptureCompleteFB.Buffer type$Default() { return type(FBSceneCapture.XR_TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB); } - /** Sets the specified value to the {@link XrEventDataSceneCaptureCompleteFB#next} field. */ - public XrEventDataSceneCaptureCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSceneCaptureCompleteFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrEventDataSceneCaptureCompleteFB#requestId} field. */ - public XrEventDataSceneCaptureCompleteFB.Buffer requestId(@NativeType("XrAsyncRequestIdFB") long value) { XrEventDataSceneCaptureCompleteFB.nrequestId(address(), value); return this; } - /** Sets the specified value to the {@link XrEventDataSceneCaptureCompleteFB#result} field. */ - public XrEventDataSceneCaptureCompleteFB.Buffer result(@NativeType("XrResult") int value) { XrEventDataSceneCaptureCompleteFB.nresult(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSceneCaptureCompleteFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSceneCaptureCompleteFB.ntype(address()); } + /** @return the value of the {@link XrEventDataSceneCaptureCompleteFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSceneCaptureCompleteFB.nnext(address()); } + /** @return the value of the {@link XrEventDataSceneCaptureCompleteFB#requestId} field. */ + @NativeType("XrAsyncRequestIdFB") + public long requestId() { return XrEventDataSceneCaptureCompleteFB.nrequestId(address()); } + /** @return the value of the {@link XrEventDataSceneCaptureCompleteFB#result} field. */ + @NativeType("XrResult") + public int result() { return XrEventDataSceneCaptureCompleteFB.nresult(address()); } + + /** Sets the specified value to the {@link XrEventDataSceneCaptureCompleteFB#type} field. */ + public XrEventDataSceneCaptureCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSceneCaptureCompleteFB.ntype(address(), value); return this; } + /** Sets the {@link FBSceneCapture#XR_TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB} value to the {@link XrEventDataSceneCaptureCompleteFB#type} field. */ + public XrEventDataSceneCaptureCompleteFB.Buffer type$Default() { return type(FBSceneCapture.XR_TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB); } + /** Sets the specified value to the {@link XrEventDataSceneCaptureCompleteFB#next} field. */ + public XrEventDataSceneCaptureCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSceneCaptureCompleteFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrEventDataSceneCaptureCompleteFB#requestId} field. */ + public XrEventDataSceneCaptureCompleteFB.Buffer requestId(@NativeType("XrAsyncRequestIdFB") long value) { XrEventDataSceneCaptureCompleteFB.nrequestId(address(), value); return this; } + /** Sets the specified value to the {@link XrEventDataSceneCaptureCompleteFB#result} field. */ + public XrEventDataSceneCaptureCompleteFB.Buffer result(@NativeType("XrResult") int value) { XrEventDataSceneCaptureCompleteFB.nresult(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSessionStateChanged.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSessionStateChanged.java index ef87b71039..6613912f23 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSessionStateChanged.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSessionStateChanged.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.*; + /** * Event indicating session state changed. * @@ -43,8 +43,8 @@ * XrSessionState {@link #state}; * XrTime {@link #time}; * } - */ -public class XrEventDataSessionStateChanged extends Struct implements NativeResource { + */ +public class XrEventDataSessionStateChanged extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,38 +54,29 @@ public class XrEventDataSessionStateChanged extends Struct implements NativeResource { @@ -296,9 +287,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 XrEventDataSessionStateChanged#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataSessionStateChanged#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -323,29 +314,29 @@ protected Buffer self() { protected XrEventDataSessionStateChanged getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSessionStateChanged#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSessionStateChanged.ntype(address()); } - /** @return the value of the {@link XrEventDataSessionStateChanged#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSessionStateChanged.nnext(address()); } - /** @return the value of the {@link XrEventDataSessionStateChanged#session} field. */ - @NativeType("XrSession") - public long session() { return XrEventDataSessionStateChanged.nsession(address()); } - /** @return the value of the {@link XrEventDataSessionStateChanged#state} field. */ - @NativeType("XrSessionState") - public int state() { return XrEventDataSessionStateChanged.nstate(address()); } - /** @return the value of the {@link XrEventDataSessionStateChanged#time} field. */ - @NativeType("XrTime") - public long time() { return XrEventDataSessionStateChanged.ntime(address()); } - - /** Sets the specified value to the {@link XrEventDataSessionStateChanged#type} field. */ - public XrEventDataSessionStateChanged.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSessionStateChanged.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED TYPE_EVENT_DATA_SESSION_STATE_CHANGED} value to the {@link XrEventDataSessionStateChanged#type} field. */ - public XrEventDataSessionStateChanged.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED); } - /** Sets the specified value to the {@link XrEventDataSessionStateChanged#next} field. */ - public XrEventDataSessionStateChanged.Buffer next(@NativeType("void const *") long value) { XrEventDataSessionStateChanged.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSessionStateChanged#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSessionStateChanged.ntype(address()); } + /** @return the value of the {@link XrEventDataSessionStateChanged#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSessionStateChanged.nnext(address()); } + /** @return the value of the {@link XrEventDataSessionStateChanged#session} field. */ + @NativeType("XrSession") + public long session() { return XrEventDataSessionStateChanged.nsession(address()); } + /** @return the value of the {@link XrEventDataSessionStateChanged#state} field. */ + @NativeType("XrSessionState") + public int state() { return XrEventDataSessionStateChanged.nstate(address()); } + /** @return the value of the {@link XrEventDataSessionStateChanged#time} field. */ + @NativeType("XrTime") + public long time() { return XrEventDataSessionStateChanged.ntime(address()); } + + /** Sets the specified value to the {@link XrEventDataSessionStateChanged#type} field. */ + public XrEventDataSessionStateChanged.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSessionStateChanged.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED TYPE_EVENT_DATA_SESSION_STATE_CHANGED} value to the {@link XrEventDataSessionStateChanged#type} field. */ + public XrEventDataSessionStateChanged.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED); } + /** Sets the specified value to the {@link XrEventDataSessionStateChanged#next} field. */ + public XrEventDataSessionStateChanged.Buffer next(@NativeType("void const *") long value) { XrEventDataSessionStateChanged.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceEraseCompleteFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceEraseCompleteFB.java index f9f4723ac5..a1e3efcbfb 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceEraseCompleteFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceEraseCompleteFB.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 result of a save operation. * @@ -46,8 +46,8 @@ * {@link XrUuidEXT XrUuidEXT} {@link #uuid}; * XrSpaceStorageLocationFB {@link #location}; * } - */ -public class XrEventDataSpaceEraseCompleteFB extends Struct implements NativeResource { + */ +public class XrEventDataSpaceEraseCompleteFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,44 +57,35 @@ public class XrEventDataSpaceEraseCompleteFB extends Struct implements NativeResource { @@ -314,9 +305,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 XrEventDataSpaceEraseCompleteFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataSpaceEraseCompleteFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -341,34 +332,34 @@ protected Buffer self() { protected XrEventDataSpaceEraseCompleteFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSpaceEraseCompleteFB.ntype(address()); } - /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSpaceEraseCompleteFB.nnext(address()); } - /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#requestId} field. */ - @NativeType("XrAsyncRequestIdFB") - public long requestId() { return XrEventDataSpaceEraseCompleteFB.nrequestId(address()); } - /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#result} field. */ - @NativeType("XrResult") - public int result() { return XrEventDataSpaceEraseCompleteFB.nresult(address()); } - /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#space} field. */ - @NativeType("XrSpace") - public long space() { return XrEventDataSpaceEraseCompleteFB.nspace(address()); } - /** @return a {@link XrUuidEXT} view of the {@link XrEventDataSpaceEraseCompleteFB#uuid} field. */ - public XrUuidEXT uuid() { return XrEventDataSpaceEraseCompleteFB.nuuid(address()); } - /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#location} field. */ - @NativeType("XrSpaceStorageLocationFB") - public int location() { return XrEventDataSpaceEraseCompleteFB.nlocation(address()); } - - /** Sets the specified value to the {@link XrEventDataSpaceEraseCompleteFB#type} field. */ - public XrEventDataSpaceEraseCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceEraseCompleteFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB} value to the {@link XrEventDataSpaceEraseCompleteFB#type} field. */ - public XrEventDataSpaceEraseCompleteFB.Buffer type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB); } - /** Sets the specified value to the {@link XrEventDataSpaceEraseCompleteFB#next} field. */ - public XrEventDataSpaceEraseCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceEraseCompleteFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSpaceEraseCompleteFB.ntype(address()); } + /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSpaceEraseCompleteFB.nnext(address()); } + /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#requestId} field. */ + @NativeType("XrAsyncRequestIdFB") + public long requestId() { return XrEventDataSpaceEraseCompleteFB.nrequestId(address()); } + /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#result} field. */ + @NativeType("XrResult") + public int result() { return XrEventDataSpaceEraseCompleteFB.nresult(address()); } + /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#space} field. */ + @NativeType("XrSpace") + public long space() { return XrEventDataSpaceEraseCompleteFB.nspace(address()); } + /** @return a {@link XrUuidEXT} view of the {@link XrEventDataSpaceEraseCompleteFB#uuid} field. */ + public XrUuidEXT uuid() { return XrEventDataSpaceEraseCompleteFB.nuuid(address()); } + /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#location} field. */ + @NativeType("XrSpaceStorageLocationFB") + public int location() { return XrEventDataSpaceEraseCompleteFB.nlocation(address()); } + + /** Sets the specified value to the {@link XrEventDataSpaceEraseCompleteFB#type} field. */ + public XrEventDataSpaceEraseCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceEraseCompleteFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB} value to the {@link XrEventDataSpaceEraseCompleteFB#type} field. */ + public XrEventDataSpaceEraseCompleteFB.Buffer type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB); } + /** Sets the specified value to the {@link XrEventDataSpaceEraseCompleteFB#next} field. */ + public XrEventDataSpaceEraseCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceEraseCompleteFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceListSaveCompleteFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceListSaveCompleteFB.java index bbc12182fe..49a9cb7861 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceListSaveCompleteFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceListSaveCompleteFB.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 completion of a save list operation. * @@ -57,8 +57,8 @@ * XrAsyncRequestIdFB {@link #requestId}; * XrResult {@link #result}; * } - */ -public class XrEventDataSpaceListSaveCompleteFB extends Struct implements NativeResource { + */ +public class XrEventDataSpaceListSaveCompleteFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -68,35 +68,26 @@ public class XrEventDataSpaceListSaveCompleteFB extends Struct implements NativeResource { @@ -302,9 +293,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 XrEventDataSpaceListSaveCompleteFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataSpaceListSaveCompleteFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -329,26 +320,26 @@ protected Buffer self() { protected XrEventDataSpaceListSaveCompleteFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSpaceListSaveCompleteFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSpaceListSaveCompleteFB.ntype(address()); } - /** @return the value of the {@link XrEventDataSpaceListSaveCompleteFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSpaceListSaveCompleteFB.nnext(address()); } - /** @return the value of the {@link XrEventDataSpaceListSaveCompleteFB#requestId} field. */ - @NativeType("XrAsyncRequestIdFB") - public long requestId() { return XrEventDataSpaceListSaveCompleteFB.nrequestId(address()); } - /** @return the value of the {@link XrEventDataSpaceListSaveCompleteFB#result} field. */ - @NativeType("XrResult") - public int result() { return XrEventDataSpaceListSaveCompleteFB.nresult(address()); } - - /** Sets the specified value to the {@link XrEventDataSpaceListSaveCompleteFB#type} field. */ - public XrEventDataSpaceListSaveCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceListSaveCompleteFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityStorageBatch#XR_TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB} value to the {@link XrEventDataSpaceListSaveCompleteFB#type} field. */ - public XrEventDataSpaceListSaveCompleteFB.Buffer type$Default() { return type(FBSpatialEntityStorageBatch.XR_TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB); } - /** Sets the specified value to the {@link XrEventDataSpaceListSaveCompleteFB#next} field. */ - public XrEventDataSpaceListSaveCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceListSaveCompleteFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSpaceListSaveCompleteFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSpaceListSaveCompleteFB.ntype(address()); } + /** @return the value of the {@link XrEventDataSpaceListSaveCompleteFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSpaceListSaveCompleteFB.nnext(address()); } + /** @return the value of the {@link XrEventDataSpaceListSaveCompleteFB#requestId} field. */ + @NativeType("XrAsyncRequestIdFB") + public long requestId() { return XrEventDataSpaceListSaveCompleteFB.nrequestId(address()); } + /** @return the value of the {@link XrEventDataSpaceListSaveCompleteFB#result} field. */ + @NativeType("XrResult") + public int result() { return XrEventDataSpaceListSaveCompleteFB.nresult(address()); } + + /** Sets the specified value to the {@link XrEventDataSpaceListSaveCompleteFB#type} field. */ + public XrEventDataSpaceListSaveCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceListSaveCompleteFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityStorageBatch#XR_TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB} value to the {@link XrEventDataSpaceListSaveCompleteFB#type} field. */ + public XrEventDataSpaceListSaveCompleteFB.Buffer type$Default() { return type(FBSpatialEntityStorageBatch.XR_TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB); } + /** Sets the specified value to the {@link XrEventDataSpaceListSaveCompleteFB#next} field. */ + public XrEventDataSpaceListSaveCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceListSaveCompleteFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceQueryCompleteFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceQueryCompleteFB.java index 6468c6386e..7aa0677c3d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceQueryCompleteFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceQueryCompleteFB.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.*; + /** * Event indicating a query has finished. * @@ -39,8 +39,8 @@ * XrAsyncRequestIdFB {@link #requestId}; * XrResult {@link #result}; * } - */ -public class XrEventDataSpaceQueryCompleteFB extends Struct implements NativeResource { + */ +public class XrEventDataSpaceQueryCompleteFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,35 +50,26 @@ public class XrEventDataSpaceQueryCompleteFB 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 XrEventDataSpaceQueryCompleteFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataSpaceQueryCompleteFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -311,26 +302,26 @@ protected Buffer self() { protected XrEventDataSpaceQueryCompleteFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSpaceQueryCompleteFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSpaceQueryCompleteFB.ntype(address()); } - /** @return the value of the {@link XrEventDataSpaceQueryCompleteFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSpaceQueryCompleteFB.nnext(address()); } - /** @return the value of the {@link XrEventDataSpaceQueryCompleteFB#requestId} field. */ - @NativeType("XrAsyncRequestIdFB") - public long requestId() { return XrEventDataSpaceQueryCompleteFB.nrequestId(address()); } - /** @return the value of the {@link XrEventDataSpaceQueryCompleteFB#result} field. */ - @NativeType("XrResult") - public int result() { return XrEventDataSpaceQueryCompleteFB.nresult(address()); } - - /** Sets the specified value to the {@link XrEventDataSpaceQueryCompleteFB#type} field. */ - public XrEventDataSpaceQueryCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceQueryCompleteFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB} value to the {@link XrEventDataSpaceQueryCompleteFB#type} field. */ - public XrEventDataSpaceQueryCompleteFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB); } - /** Sets the specified value to the {@link XrEventDataSpaceQueryCompleteFB#next} field. */ - public XrEventDataSpaceQueryCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceQueryCompleteFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSpaceQueryCompleteFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSpaceQueryCompleteFB.ntype(address()); } + /** @return the value of the {@link XrEventDataSpaceQueryCompleteFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSpaceQueryCompleteFB.nnext(address()); } + /** @return the value of the {@link XrEventDataSpaceQueryCompleteFB#requestId} field. */ + @NativeType("XrAsyncRequestIdFB") + public long requestId() { return XrEventDataSpaceQueryCompleteFB.nrequestId(address()); } + /** @return the value of the {@link XrEventDataSpaceQueryCompleteFB#result} field. */ + @NativeType("XrResult") + public int result() { return XrEventDataSpaceQueryCompleteFB.nresult(address()); } + + /** Sets the specified value to the {@link XrEventDataSpaceQueryCompleteFB#type} field. */ + public XrEventDataSpaceQueryCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceQueryCompleteFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB} value to the {@link XrEventDataSpaceQueryCompleteFB#type} field. */ + public XrEventDataSpaceQueryCompleteFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB); } + /** Sets the specified value to the {@link XrEventDataSpaceQueryCompleteFB#next} field. */ + public XrEventDataSpaceQueryCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceQueryCompleteFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceQueryResultsAvailableFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceQueryResultsAvailableFB.java index 261301f96b..57194b1fa1 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceQueryResultsAvailableFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceQueryResultsAvailableFB.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.*; + /** * Event indicating a query has produced results. * @@ -38,8 +38,8 @@ * void const * {@link #next}; * XrAsyncRequestIdFB {@link #requestId}; * } - */ -public class XrEventDataSpaceQueryResultsAvailableFB extends Struct implements NativeResource { + */ +public class XrEventDataSpaceQueryResultsAvailableFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,32 +49,23 @@ public class XrEventDataSpaceQueryResultsAvailableFB extends Struct implements NativeResource { @@ -275,9 +266,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 XrEventDataSpaceQueryResultsAvailableFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataSpaceQueryResultsAvailableFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -302,23 +293,23 @@ protected Buffer self() { protected XrEventDataSpaceQueryResultsAvailableFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSpaceQueryResultsAvailableFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSpaceQueryResultsAvailableFB.ntype(address()); } - /** @return the value of the {@link XrEventDataSpaceQueryResultsAvailableFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSpaceQueryResultsAvailableFB.nnext(address()); } - /** @return the value of the {@link XrEventDataSpaceQueryResultsAvailableFB#requestId} field. */ - @NativeType("XrAsyncRequestIdFB") - public long requestId() { return XrEventDataSpaceQueryResultsAvailableFB.nrequestId(address()); } - - /** Sets the specified value to the {@link XrEventDataSpaceQueryResultsAvailableFB#type} field. */ - public XrEventDataSpaceQueryResultsAvailableFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceQueryResultsAvailableFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB} value to the {@link XrEventDataSpaceQueryResultsAvailableFB#type} field. */ - public XrEventDataSpaceQueryResultsAvailableFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB); } - /** Sets the specified value to the {@link XrEventDataSpaceQueryResultsAvailableFB#next} field. */ - public XrEventDataSpaceQueryResultsAvailableFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceQueryResultsAvailableFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSpaceQueryResultsAvailableFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSpaceQueryResultsAvailableFB.ntype(address()); } + /** @return the value of the {@link XrEventDataSpaceQueryResultsAvailableFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSpaceQueryResultsAvailableFB.nnext(address()); } + /** @return the value of the {@link XrEventDataSpaceQueryResultsAvailableFB#requestId} field. */ + @NativeType("XrAsyncRequestIdFB") + public long requestId() { return XrEventDataSpaceQueryResultsAvailableFB.nrequestId(address()); } + + /** Sets the specified value to the {@link XrEventDataSpaceQueryResultsAvailableFB#type} field. */ + public XrEventDataSpaceQueryResultsAvailableFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceQueryResultsAvailableFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB} value to the {@link XrEventDataSpaceQueryResultsAvailableFB#type} field. */ + public XrEventDataSpaceQueryResultsAvailableFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB); } + /** Sets the specified value to the {@link XrEventDataSpaceQueryResultsAvailableFB#next} field. */ + public XrEventDataSpaceQueryResultsAvailableFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceQueryResultsAvailableFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceSaveCompleteFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceSaveCompleteFB.java index 4d2f36fd16..b7d32bdfe0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceSaveCompleteFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceSaveCompleteFB.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 result of a save operation. * @@ -46,8 +46,8 @@ * {@link XrUuidEXT XrUuidEXT} {@link #uuid}; * XrSpaceStorageLocationFB {@link #location}; * } - */ -public class XrEventDataSpaceSaveCompleteFB extends Struct implements NativeResource { + */ +public class XrEventDataSpaceSaveCompleteFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,44 +57,35 @@ public class XrEventDataSpaceSaveCompleteFB extends Struct implements NativeResource { @@ -314,9 +305,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 XrEventDataSpaceSaveCompleteFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataSpaceSaveCompleteFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -341,34 +332,34 @@ protected Buffer self() { protected XrEventDataSpaceSaveCompleteFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSpaceSaveCompleteFB.ntype(address()); } - /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSpaceSaveCompleteFB.nnext(address()); } - /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#requestId} field. */ - @NativeType("XrAsyncRequestIdFB") - public long requestId() { return XrEventDataSpaceSaveCompleteFB.nrequestId(address()); } - /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#result} field. */ - @NativeType("XrResult") - public int result() { return XrEventDataSpaceSaveCompleteFB.nresult(address()); } - /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#space} field. */ - @NativeType("XrSpace") - public long space() { return XrEventDataSpaceSaveCompleteFB.nspace(address()); } - /** @return a {@link XrUuidEXT} view of the {@link XrEventDataSpaceSaveCompleteFB#uuid} field. */ - public XrUuidEXT uuid() { return XrEventDataSpaceSaveCompleteFB.nuuid(address()); } - /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#location} field. */ - @NativeType("XrSpaceStorageLocationFB") - public int location() { return XrEventDataSpaceSaveCompleteFB.nlocation(address()); } - - /** Sets the specified value to the {@link XrEventDataSpaceSaveCompleteFB#type} field. */ - public XrEventDataSpaceSaveCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceSaveCompleteFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB} value to the {@link XrEventDataSpaceSaveCompleteFB#type} field. */ - public XrEventDataSpaceSaveCompleteFB.Buffer type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB); } - /** Sets the specified value to the {@link XrEventDataSpaceSaveCompleteFB#next} field. */ - public XrEventDataSpaceSaveCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceSaveCompleteFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSpaceSaveCompleteFB.ntype(address()); } + /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSpaceSaveCompleteFB.nnext(address()); } + /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#requestId} field. */ + @NativeType("XrAsyncRequestIdFB") + public long requestId() { return XrEventDataSpaceSaveCompleteFB.nrequestId(address()); } + /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#result} field. */ + @NativeType("XrResult") + public int result() { return XrEventDataSpaceSaveCompleteFB.nresult(address()); } + /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#space} field. */ + @NativeType("XrSpace") + public long space() { return XrEventDataSpaceSaveCompleteFB.nspace(address()); } + /** @return a {@link XrUuidEXT} view of the {@link XrEventDataSpaceSaveCompleteFB#uuid} field. */ + public XrUuidEXT uuid() { return XrEventDataSpaceSaveCompleteFB.nuuid(address()); } + /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#location} field. */ + @NativeType("XrSpaceStorageLocationFB") + public int location() { return XrEventDataSpaceSaveCompleteFB.nlocation(address()); } + + /** Sets the specified value to the {@link XrEventDataSpaceSaveCompleteFB#type} field. */ + public XrEventDataSpaceSaveCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceSaveCompleteFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB} value to the {@link XrEventDataSpaceSaveCompleteFB#type} field. */ + public XrEventDataSpaceSaveCompleteFB.Buffer type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB); } + /** Sets the specified value to the {@link XrEventDataSpaceSaveCompleteFB#next} field. */ + public XrEventDataSpaceSaveCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceSaveCompleteFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceSetStatusCompleteFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceSetStatusCompleteFB.java index 5fb48920c1..f0e06582bb 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceSetStatusCompleteFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceSetStatusCompleteFB.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.*; + /** * Result of request to enable or disable a component. * @@ -47,8 +47,8 @@ * XrSpaceComponentTypeFB {@link #componentType}; * XrBool32 {@link #enabled}; * } - */ -public class XrEventDataSpaceSetStatusCompleteFB extends Struct implements NativeResource { + */ +public class XrEventDataSpaceSetStatusCompleteFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -58,47 +58,38 @@ public class XrEventDataSpaceSetStatusCompleteFB extends Struct implements NativeResource { @@ -323,9 +314,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 XrEventDataSpaceSetStatusCompleteFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataSpaceSetStatusCompleteFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -350,37 +341,37 @@ protected Buffer self() { protected XrEventDataSpaceSetStatusCompleteFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSpaceSetStatusCompleteFB.ntype(address()); } - /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSpaceSetStatusCompleteFB.nnext(address()); } - /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#requestId} field. */ - @NativeType("XrAsyncRequestIdFB") - public long requestId() { return XrEventDataSpaceSetStatusCompleteFB.nrequestId(address()); } - /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#result} field. */ - @NativeType("XrResult") - public int result() { return XrEventDataSpaceSetStatusCompleteFB.nresult(address()); } - /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#space} field. */ - @NativeType("XrSpace") - public long space() { return XrEventDataSpaceSetStatusCompleteFB.nspace(address()); } - /** @return a {@link XrUuidEXT} view of the {@link XrEventDataSpaceSetStatusCompleteFB#uuid} field. */ - public XrUuidEXT uuid() { return XrEventDataSpaceSetStatusCompleteFB.nuuid(address()); } - /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#componentType} field. */ - @NativeType("XrSpaceComponentTypeFB") - public int componentType() { return XrEventDataSpaceSetStatusCompleteFB.ncomponentType(address()); } - /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#enabled} field. */ - @NativeType("XrBool32") - public boolean enabled() { return XrEventDataSpaceSetStatusCompleteFB.nenabled(address()) != 0; } - - /** Sets the specified value to the {@link XrEventDataSpaceSetStatusCompleteFB#type} field. */ - public XrEventDataSpaceSetStatusCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceSetStatusCompleteFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntity#XR_TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB} value to the {@link XrEventDataSpaceSetStatusCompleteFB#type} field. */ - public XrEventDataSpaceSetStatusCompleteFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB); } - /** Sets the specified value to the {@link XrEventDataSpaceSetStatusCompleteFB#next} field. */ - public XrEventDataSpaceSetStatusCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceSetStatusCompleteFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSpaceSetStatusCompleteFB.ntype(address()); } + /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSpaceSetStatusCompleteFB.nnext(address()); } + /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#requestId} field. */ + @NativeType("XrAsyncRequestIdFB") + public long requestId() { return XrEventDataSpaceSetStatusCompleteFB.nrequestId(address()); } + /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#result} field. */ + @NativeType("XrResult") + public int result() { return XrEventDataSpaceSetStatusCompleteFB.nresult(address()); } + /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#space} field. */ + @NativeType("XrSpace") + public long space() { return XrEventDataSpaceSetStatusCompleteFB.nspace(address()); } + /** @return a {@link XrUuidEXT} view of the {@link XrEventDataSpaceSetStatusCompleteFB#uuid} field. */ + public XrUuidEXT uuid() { return XrEventDataSpaceSetStatusCompleteFB.nuuid(address()); } + /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#componentType} field. */ + @NativeType("XrSpaceComponentTypeFB") + public int componentType() { return XrEventDataSpaceSetStatusCompleteFB.ncomponentType(address()); } + /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#enabled} field. */ + @NativeType("XrBool32") + public boolean enabled() { return XrEventDataSpaceSetStatusCompleteFB.nenabled(address()) != 0; } + + /** Sets the specified value to the {@link XrEventDataSpaceSetStatusCompleteFB#type} field. */ + public XrEventDataSpaceSetStatusCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceSetStatusCompleteFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntity#XR_TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB} value to the {@link XrEventDataSpaceSetStatusCompleteFB#type} field. */ + public XrEventDataSpaceSetStatusCompleteFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB); } + /** Sets the specified value to the {@link XrEventDataSpaceSetStatusCompleteFB#next} field. */ + public XrEventDataSpaceSetStatusCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceSetStatusCompleteFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceShareCompleteFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceShareCompleteFB.java index 4a018c87c0..2284639b93 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceShareCompleteFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceShareCompleteFB.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.*; + /** * Completion of request to share one or more spatial entities. * @@ -57,8 +57,8 @@ * XrAsyncRequestIdFB {@link #requestId}; * XrResult {@link #result}; * } - */ -public class XrEventDataSpaceShareCompleteFB extends Struct implements NativeResource { + */ +public class XrEventDataSpaceShareCompleteFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -68,35 +68,26 @@ public class XrEventDataSpaceShareCompleteFB extends Struct implements NativeResource { @@ -302,9 +293,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 XrEventDataSpaceShareCompleteFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataSpaceShareCompleteFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -329,26 +320,26 @@ protected Buffer self() { protected XrEventDataSpaceShareCompleteFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSpaceShareCompleteFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSpaceShareCompleteFB.ntype(address()); } - /** @return the value of the {@link XrEventDataSpaceShareCompleteFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSpaceShareCompleteFB.nnext(address()); } - /** @return the value of the {@link XrEventDataSpaceShareCompleteFB#requestId} field. */ - @NativeType("XrAsyncRequestIdFB") - public long requestId() { return XrEventDataSpaceShareCompleteFB.nrequestId(address()); } - /** @return the value of the {@link XrEventDataSpaceShareCompleteFB#result} field. */ - @NativeType("XrResult") - public int result() { return XrEventDataSpaceShareCompleteFB.nresult(address()); } - - /** Sets the specified value to the {@link XrEventDataSpaceShareCompleteFB#type} field. */ - public XrEventDataSpaceShareCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceShareCompleteFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntitySharing#XR_TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB} value to the {@link XrEventDataSpaceShareCompleteFB#type} field. */ - public XrEventDataSpaceShareCompleteFB.Buffer type$Default() { return type(FBSpatialEntitySharing.XR_TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB); } - /** Sets the specified value to the {@link XrEventDataSpaceShareCompleteFB#next} field. */ - public XrEventDataSpaceShareCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceShareCompleteFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSpaceShareCompleteFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSpaceShareCompleteFB.ntype(address()); } + /** @return the value of the {@link XrEventDataSpaceShareCompleteFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSpaceShareCompleteFB.nnext(address()); } + /** @return the value of the {@link XrEventDataSpaceShareCompleteFB#requestId} field. */ + @NativeType("XrAsyncRequestIdFB") + public long requestId() { return XrEventDataSpaceShareCompleteFB.nrequestId(address()); } + /** @return the value of the {@link XrEventDataSpaceShareCompleteFB#result} field. */ + @NativeType("XrResult") + public int result() { return XrEventDataSpaceShareCompleteFB.nresult(address()); } + + /** Sets the specified value to the {@link XrEventDataSpaceShareCompleteFB#type} field. */ + public XrEventDataSpaceShareCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceShareCompleteFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntitySharing#XR_TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB} value to the {@link XrEventDataSpaceShareCompleteFB#type} field. */ + public XrEventDataSpaceShareCompleteFB.Buffer type$Default() { return type(FBSpatialEntitySharing.XR_TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB); } + /** Sets the specified value to the {@link XrEventDataSpaceShareCompleteFB#next} field. */ + public XrEventDataSpaceShareCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceShareCompleteFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpatialAnchorCreateCompleteFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpatialAnchorCreateCompleteFB.java index ef8b3a720c..c7ed82c659 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpatialAnchorCreateCompleteFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpatialAnchorCreateCompleteFB.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.*; + /** * Result of request to create a new spatial anchor. * @@ -45,8 +45,8 @@ * XrSpace {@link #space}; * {@link XrUuidEXT XrUuidEXT} {@link #uuid}; * } - */ -public class XrEventDataSpatialAnchorCreateCompleteFB extends Struct implements NativeResource { + */ +public class XrEventDataSpatialAnchorCreateCompleteFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,41 +56,32 @@ public class XrEventDataSpatialAnchorCreateCompleteFB extends Struct implements NativeResource { @@ -305,9 +296,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 XrEventDataSpatialAnchorCreateCompleteFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataSpatialAnchorCreateCompleteFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -332,31 +323,31 @@ protected Buffer self() { protected XrEventDataSpatialAnchorCreateCompleteFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSpatialAnchorCreateCompleteFB.ntype(address()); } - /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSpatialAnchorCreateCompleteFB.nnext(address()); } - /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#requestId} field. */ - @NativeType("XrAsyncRequestIdFB") - public long requestId() { return XrEventDataSpatialAnchorCreateCompleteFB.nrequestId(address()); } - /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#result} field. */ - @NativeType("XrResult") - public int result() { return XrEventDataSpatialAnchorCreateCompleteFB.nresult(address()); } - /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#space} field. */ - @NativeType("XrSpace") - public long space() { return XrEventDataSpatialAnchorCreateCompleteFB.nspace(address()); } - /** @return a {@link XrUuidEXT} view of the {@link XrEventDataSpatialAnchorCreateCompleteFB#uuid} field. */ - public XrUuidEXT uuid() { return XrEventDataSpatialAnchorCreateCompleteFB.nuuid(address()); } - - /** Sets the specified value to the {@link XrEventDataSpatialAnchorCreateCompleteFB#type} field. */ - public XrEventDataSpatialAnchorCreateCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpatialAnchorCreateCompleteFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntity#XR_TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB} value to the {@link XrEventDataSpatialAnchorCreateCompleteFB#type} field. */ - public XrEventDataSpatialAnchorCreateCompleteFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB); } - /** Sets the specified value to the {@link XrEventDataSpatialAnchorCreateCompleteFB#next} field. */ - public XrEventDataSpatialAnchorCreateCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpatialAnchorCreateCompleteFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSpatialAnchorCreateCompleteFB.ntype(address()); } + /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSpatialAnchorCreateCompleteFB.nnext(address()); } + /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#requestId} field. */ + @NativeType("XrAsyncRequestIdFB") + public long requestId() { return XrEventDataSpatialAnchorCreateCompleteFB.nrequestId(address()); } + /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#result} field. */ + @NativeType("XrResult") + public int result() { return XrEventDataSpatialAnchorCreateCompleteFB.nresult(address()); } + /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#space} field. */ + @NativeType("XrSpace") + public long space() { return XrEventDataSpatialAnchorCreateCompleteFB.nspace(address()); } + /** @return a {@link XrUuidEXT} view of the {@link XrEventDataSpatialAnchorCreateCompleteFB#uuid} field. */ + public XrUuidEXT uuid() { return XrEventDataSpatialAnchorCreateCompleteFB.nuuid(address()); } + + /** Sets the specified value to the {@link XrEventDataSpatialAnchorCreateCompleteFB#type} field. */ + public XrEventDataSpatialAnchorCreateCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpatialAnchorCreateCompleteFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntity#XR_TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB} value to the {@link XrEventDataSpatialAnchorCreateCompleteFB#type} field. */ + public XrEventDataSpatialAnchorCreateCompleteFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB); } + /** Sets the specified value to the {@link XrEventDataSpatialAnchorCreateCompleteFB#next} field. */ + public XrEventDataSpatialAnchorCreateCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpatialAnchorCreateCompleteFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVisibilityMaskChangedKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVisibilityMaskChangedKHR.java index 01a9c93e9b..5725ee8686 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVisibilityMaskChangedKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVisibilityMaskChangedKHR.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.*; + /** * Visibility Mask. * @@ -36,8 +36,8 @@ * XrViewConfigurationType {@link #viewConfigurationType}; * uint32_t {@link #viewIndex}; * } - */ -public class XrEventDataVisibilityMaskChangedKHR extends Struct implements NativeResource { + */ +public class XrEventDataVisibilityMaskChangedKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -47,38 +47,29 @@ public class XrEventDataVisibilityMaskChangedKHR extends Struct implements NativeResource { @@ -289,9 +280,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 XrEventDataVisibilityMaskChangedKHR#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataVisibilityMaskChangedKHR#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -316,29 +307,29 @@ protected Buffer self() { protected XrEventDataVisibilityMaskChangedKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataVisibilityMaskChangedKHR.ntype(address()); } - /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataVisibilityMaskChangedKHR.nnext(address()); } - /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#session} field. */ - @NativeType("XrSession") - public long session() { return XrEventDataVisibilityMaskChangedKHR.nsession(address()); } - /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#viewConfigurationType} field. */ - @NativeType("XrViewConfigurationType") - public int viewConfigurationType() { return XrEventDataVisibilityMaskChangedKHR.nviewConfigurationType(address()); } - /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#viewIndex} field. */ - @NativeType("uint32_t") - public int viewIndex() { return XrEventDataVisibilityMaskChangedKHR.nviewIndex(address()); } - - /** Sets the specified value to the {@link XrEventDataVisibilityMaskChangedKHR#type} field. */ - public XrEventDataVisibilityMaskChangedKHR.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataVisibilityMaskChangedKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVisibilityMask#XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR} value to the {@link XrEventDataVisibilityMaskChangedKHR#type} field. */ - public XrEventDataVisibilityMaskChangedKHR.Buffer type$Default() { return type(KHRVisibilityMask.XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR); } - /** Sets the specified value to the {@link XrEventDataVisibilityMaskChangedKHR#next} field. */ - public XrEventDataVisibilityMaskChangedKHR.Buffer next(@NativeType("void const *") long value) { XrEventDataVisibilityMaskChangedKHR.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataVisibilityMaskChangedKHR.ntype(address()); } + /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataVisibilityMaskChangedKHR.nnext(address()); } + /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#session} field. */ + @NativeType("XrSession") + public long session() { return XrEventDataVisibilityMaskChangedKHR.nsession(address()); } + /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#viewConfigurationType} field. */ + @NativeType("XrViewConfigurationType") + public int viewConfigurationType() { return XrEventDataVisibilityMaskChangedKHR.nviewConfigurationType(address()); } + /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#viewIndex} field. */ + @NativeType("uint32_t") + public int viewIndex() { return XrEventDataVisibilityMaskChangedKHR.nviewIndex(address()); } + + /** Sets the specified value to the {@link XrEventDataVisibilityMaskChangedKHR#type} field. */ + public XrEventDataVisibilityMaskChangedKHR.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataVisibilityMaskChangedKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVisibilityMask#XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR} value to the {@link XrEventDataVisibilityMaskChangedKHR#type} field. */ + public XrEventDataVisibilityMaskChangedKHR.Buffer type$Default() { return type(KHRVisibilityMask.XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR); } + /** Sets the specified value to the {@link XrEventDataVisibilityMaskChangedKHR#next} field. */ + public XrEventDataVisibilityMaskChangedKHR.Buffer next(@NativeType("void const *") long value) { XrEventDataVisibilityMaskChangedKHR.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataViveTrackerConnectedHTCX.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataViveTrackerConnectedHTCX.java index 5a180fa37e..d81811d75d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataViveTrackerConnectedHTCX.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataViveTrackerConnectedHTCX.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.*; + /** * Event representing a new VIVE tracker connected. * @@ -42,8 +42,8 @@ * void const * {@link #next}; * {@link XrViveTrackerPathsHTCX XrViveTrackerPathsHTCX} * {@link #paths}; * } - */ -public class XrEventDataViveTrackerConnectedHTCX extends Struct implements NativeResource { + */ +public class XrEventDataViveTrackerConnectedHTCX extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,32 +53,23 @@ public class XrEventDataViveTrackerConnectedHTCX extends Struct implements NativeResource { @@ -279,9 +270,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 XrEventDataViveTrackerConnectedHTCX#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEventDataViveTrackerConnectedHTCX#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -306,23 +297,23 @@ protected Buffer self() { protected XrEventDataViveTrackerConnectedHTCX getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataViveTrackerConnectedHTCX#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataViveTrackerConnectedHTCX.ntype(address()); } - /** @return the value of the {@link XrEventDataViveTrackerConnectedHTCX#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataViveTrackerConnectedHTCX.nnext(address()); } - /** @return a {@link XrViveTrackerPathsHTCX} view of the struct pointed to by the {@link XrEventDataViveTrackerConnectedHTCX#paths} field. */ - @NativeType("XrViveTrackerPathsHTCX *") - public XrViveTrackerPathsHTCX paths() { return XrEventDataViveTrackerConnectedHTCX.npaths(address()); } - - /** Sets the specified value to the {@link XrEventDataViveTrackerConnectedHTCX#type} field. */ - public XrEventDataViveTrackerConnectedHTCX.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataViveTrackerConnectedHTCX.ntype(address(), value); return this; } - /** Sets the {@link HTCXViveTrackerInteraction#XR_TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX} value to the {@link XrEventDataViveTrackerConnectedHTCX#type} field. */ - public XrEventDataViveTrackerConnectedHTCX.Buffer type$Default() { return type(HTCXViveTrackerInteraction.XR_TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX); } - /** Sets the specified value to the {@link XrEventDataViveTrackerConnectedHTCX#next} field. */ - public XrEventDataViveTrackerConnectedHTCX.Buffer next(@NativeType("void const *") long value) { XrEventDataViveTrackerConnectedHTCX.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataViveTrackerConnectedHTCX#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataViveTrackerConnectedHTCX.ntype(address()); } + /** @return the value of the {@link XrEventDataViveTrackerConnectedHTCX#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataViveTrackerConnectedHTCX.nnext(address()); } + /** @return a {@link XrViveTrackerPathsHTCX} view of the struct pointed to by the {@link XrEventDataViveTrackerConnectedHTCX#paths} field. */ + @NativeType("XrViveTrackerPathsHTCX *") + public XrViveTrackerPathsHTCX paths() { return XrEventDataViveTrackerConnectedHTCX.npaths(address()); } + + /** Sets the specified value to the {@link XrEventDataViveTrackerConnectedHTCX#type} field. */ + public XrEventDataViveTrackerConnectedHTCX.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataViveTrackerConnectedHTCX.ntype(address(), value); return this; } + /** Sets the {@link HTCXViveTrackerInteraction#XR_TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX} value to the {@link XrEventDataViveTrackerConnectedHTCX#type} field. */ + public XrEventDataViveTrackerConnectedHTCX.Buffer type$Default() { return type(HTCXViveTrackerInteraction.XR_TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX); } + /** Sets the specified value to the {@link XrEventDataViveTrackerConnectedHTCX#next} field. */ + public XrEventDataViveTrackerConnectedHTCX.Buffer next(@NativeType("void const *") long value) { XrEventDataViveTrackerConnectedHTCX.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtensionProperties.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtensionProperties.java index 907553d472..805b73334c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtensionProperties.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtensionProperties.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.*; + /** * Returns properties of available instance extensions. * @@ -40,8 +40,8 @@ * char {@link #extensionName}[XR_MAX_EXTENSION_NAME_SIZE]; * uint32_t {@link #extensionVersion}; * } - */ -public class XrExtensionProperties extends Struct implements NativeResource { + */ +public class XrExtensionProperties extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,35 +51,26 @@ public class XrExtensionProperties extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - EXTENSIONNAME, - EXTENSIONVERSION; + TYPE, + NEXT, + EXTENSIONNAME, + EXTENSIONVERSION; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __array(1, XR_MAX_EXTENSION_NAME_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __array(1, XR_MAX_EXTENSION_NAME_SIZE), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - EXTENSIONNAME = layout.offsetof(2); - EXTENSIONVERSION = layout.offsetof(3); - } - - protected XrExtensionProperties(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrExtensionProperties create(long address, @Nullable ByteBuffer container) { - return new XrExtensionProperties(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + EXTENSIONNAME = layout.offsetof(2); + EXTENSIONVERSION = layout.offsetof(3); } /** @@ -94,37 +85,37 @@ public XrExtensionProperties(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 {@code NULL} terminated string specifying the name of the extension. */ - @NativeType("char[XR_MAX_EXTENSION_NAME_SIZE]") - public ByteBuffer extensionName() { return nextensionName(address()); } - /** a {@code NULL} terminated string specifying the name of the extension. */ - @NativeType("char[XR_MAX_EXTENSION_NAME_SIZE]") - public String extensionNameString() { return nextensionNameString(address()); } - /** the version of this extension. It is an integer, incremented with backward compatible changes. */ - @NativeType("uint32_t") - public int extensionVersion() { return nextensionVersion(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrExtensionProperties type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EXTENSION_PROPERTIES TYPE_EXTENSION_PROPERTIES} value to the {@link #type} field. */ - public XrExtensionProperties type$Default() { return type(XR10.XR_TYPE_EXTENSION_PROPERTIES); } - /** Sets the specified value to the {@link #next} field. */ - public XrExtensionProperties 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 {@code NULL} terminated string specifying the name of the extension. */ + @NativeType("char[XR_MAX_EXTENSION_NAME_SIZE]") + public ByteBuffer extensionName() { return nextensionName(address()); } + /** a {@code NULL} terminated string specifying the name of the extension. */ + @NativeType("char[XR_MAX_EXTENSION_NAME_SIZE]") + public String extensionNameString() { return nextensionNameString(address()); } + /** the version of this extension. It is an integer, incremented with backward compatible changes. */ + @NativeType("uint32_t") + public int extensionVersion() { return nextensionVersion(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrExtensionProperties type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EXTENSION_PROPERTIES TYPE_EXTENSION_PROPERTIES} value to the {@link #type} field. */ + public XrExtensionProperties type$Default() { return type(XR10.XR_TYPE_EXTENSION_PROPERTIES); } + /** Sets the specified value to the {@link #next} field. */ + public XrExtensionProperties next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrExtensionProperties set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -145,29 +136,29 @@ public XrExtensionProperties set(XrExtensionProperties src) { /** Returns a new {@code XrExtensionProperties} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrExtensionProperties malloc() { - return new XrExtensionProperties(nmemAllocChecked(SIZEOF), null); + return wrap(XrExtensionProperties.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrExtensionProperties} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrExtensionProperties calloc() { - return new XrExtensionProperties(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrExtensionProperties.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrExtensionProperties} instance allocated with {@link BufferUtils}. */ public static XrExtensionProperties create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrExtensionProperties(memAddress(container), container); + return wrap(XrExtensionProperties.class, memAddress(container), container); } /** Returns a new {@code XrExtensionProperties} instance for the specified memory address. */ public static XrExtensionProperties create(long address) { - return new XrExtensionProperties(address, null); + return wrap(XrExtensionProperties.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrExtensionProperties createSafe(long address) { - return address == NULL ? null : new XrExtensionProperties(address, null); + return address == NULL ? null : wrap(XrExtensionProperties.class, address); } /** @@ -176,7 +167,7 @@ public static XrExtensionProperties createSafe(long address) { * @param capacity the buffer capacity */ public static XrExtensionProperties.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -185,7 +176,7 @@ public static XrExtensionProperties.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrExtensionProperties.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -195,7 +186,7 @@ public static XrExtensionProperties.Buffer calloc(int capacity) { */ public static XrExtensionProperties.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); } /** @@ -205,13 +196,13 @@ public static XrExtensionProperties.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrExtensionProperties.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 XrExtensionProperties.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -220,7 +211,7 @@ public static XrExtensionProperties.Buffer createSafe(long address, int capacity * @param stack the stack from which to allocate */ public static XrExtensionProperties malloc(MemoryStack stack) { - return new XrExtensionProperties(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrExtensionProperties.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -229,7 +220,7 @@ public static XrExtensionProperties malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrExtensionProperties calloc(MemoryStack stack) { - return new XrExtensionProperties(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrExtensionProperties.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -239,7 +230,7 @@ public static XrExtensionProperties calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrExtensionProperties.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); } /** @@ -249,28 +240,28 @@ public static XrExtensionProperties.Buffer malloc(int capacity, MemoryStack stac * @param capacity the buffer capacity */ public static XrExtensionProperties.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 + XrExtensionProperties.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrExtensionProperties.NEXT); } - /** Unsafe version of {@link #extensionName}. */ - public static ByteBuffer nextensionName(long struct) { return memByteBuffer(struct + XrExtensionProperties.EXTENSIONNAME, XR_MAX_EXTENSION_NAME_SIZE); } - /** Unsafe version of {@link #extensionNameString}. */ - public static String nextensionNameString(long struct) { return memUTF8(struct + XrExtensionProperties.EXTENSIONNAME); } - /** Unsafe version of {@link #extensionVersion}. */ - public static int nextensionVersion(long struct) { return UNSAFE.getInt(null, struct + XrExtensionProperties.EXTENSIONVERSION); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrExtensionProperties.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrExtensionProperties.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrExtensionProperties.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrExtensionProperties.NEXT); } + /** Unsafe version of {@link #extensionName}. */ + public static ByteBuffer nextensionName(long struct) { return memByteBuffer(struct + XrExtensionProperties.EXTENSIONNAME, XR_MAX_EXTENSION_NAME_SIZE); } + /** Unsafe version of {@link #extensionNameString}. */ + public static String nextensionNameString(long struct) { return memUTF8(struct + XrExtensionProperties.EXTENSIONNAME); } + /** Unsafe version of {@link #extensionVersion}. */ + public static int nextensionVersion(long struct) { return UNSAFE.getInt(null, struct + XrExtensionProperties.EXTENSIONVERSION); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrExtensionProperties.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrExtensionProperties.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrExtensionProperties} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -280,9 +271,9 @@ public static class Buffer extends StructBuffer i /** * Creates a new {@code XrExtensionProperties.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 XrExtensionProperties#SIZEOF}, and its mark will be undefined.

    + * by {@link XrExtensionProperties#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -307,29 +298,29 @@ protected Buffer self() { protected XrExtensionProperties getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrExtensionProperties#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrExtensionProperties.ntype(address()); } - /** @return the value of the {@link XrExtensionProperties#next} field. */ - @NativeType("void *") - public long next() { return XrExtensionProperties.nnext(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrExtensionProperties#extensionName} field. */ - @NativeType("char[XR_MAX_EXTENSION_NAME_SIZE]") - public ByteBuffer extensionName() { return XrExtensionProperties.nextensionName(address()); } - /** @return the null-terminated string stored in the {@link XrExtensionProperties#extensionName} field. */ - @NativeType("char[XR_MAX_EXTENSION_NAME_SIZE]") - public String extensionNameString() { return XrExtensionProperties.nextensionNameString(address()); } - /** @return the value of the {@link XrExtensionProperties#extensionVersion} field. */ - @NativeType("uint32_t") - public int extensionVersion() { return XrExtensionProperties.nextensionVersion(address()); } - - /** Sets the specified value to the {@link XrExtensionProperties#type} field. */ - public XrExtensionProperties.Buffer type(@NativeType("XrStructureType") int value) { XrExtensionProperties.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EXTENSION_PROPERTIES TYPE_EXTENSION_PROPERTIES} value to the {@link XrExtensionProperties#type} field. */ - public XrExtensionProperties.Buffer type$Default() { return type(XR10.XR_TYPE_EXTENSION_PROPERTIES); } - /** Sets the specified value to the {@link XrExtensionProperties#next} field. */ - public XrExtensionProperties.Buffer next(@NativeType("void *") long value) { XrExtensionProperties.nnext(address(), value); return this; } + + /** @return the value of the {@link XrExtensionProperties#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrExtensionProperties.ntype(address()); } + /** @return the value of the {@link XrExtensionProperties#next} field. */ + @NativeType("void *") + public long next() { return XrExtensionProperties.nnext(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrExtensionProperties#extensionName} field. */ + @NativeType("char[XR_MAX_EXTENSION_NAME_SIZE]") + public ByteBuffer extensionName() { return XrExtensionProperties.nextensionName(address()); } + /** @return the null-terminated string stored in the {@link XrExtensionProperties#extensionName} field. */ + @NativeType("char[XR_MAX_EXTENSION_NAME_SIZE]") + public String extensionNameString() { return XrExtensionProperties.nextensionNameString(address()); } + /** @return the value of the {@link XrExtensionProperties#extensionVersion} field. */ + @NativeType("uint32_t") + public int extensionVersion() { return XrExtensionProperties.nextensionVersion(address()); } + + /** Sets the specified value to the {@link XrExtensionProperties#type} field. */ + public XrExtensionProperties.Buffer type(@NativeType("XrStructureType") int value) { XrExtensionProperties.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EXTENSION_PROPERTIES TYPE_EXTENSION_PROPERTIES} value to the {@link XrExtensionProperties#type} field. */ + public XrExtensionProperties.Buffer type$Default() { return type(XR10.XR_TYPE_EXTENSION_PROPERTIES); } + /** Sets the specified value to the {@link XrExtensionProperties#next} field. */ + public XrExtensionProperties.Buffer next(@NativeType("void *") long value) { XrExtensionProperties.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent2Df.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent2Df.java index 62f4fd208c..845f402108 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent2Df.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent2Df.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.*; + /** * Extent in two dimensions. * @@ -35,8 +35,8 @@ * float {@link #width}; * float {@link #height}; * } - */ -public class XrExtent2Df extends Struct implements NativeResource { + */ +public class XrExtent2Df extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -46,29 +46,20 @@ public class XrExtent2Df extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - WIDTH, - HEIGHT; + WIDTH, + HEIGHT; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - WIDTH = layout.offsetof(0); - HEIGHT = layout.offsetof(1); - } - - protected XrExtent2Df(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrExtent2Df create(long address, @Nullable ByteBuffer container) { - return new XrExtent2Df(address, container); + WIDTH = layout.offsetof(0); + HEIGHT = layout.offsetof(1); } /** @@ -83,24 +74,24 @@ public XrExtent2Df(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the floating-point width of the extent. */ - public float width() { return nwidth(address()); } - /** the floating-point height of the extent. */ - public float height() { return nheight(address()); } - - /** Sets the specified value to the {@link #width} field. */ - public XrExtent2Df width(float value) { nwidth(address(), value); return this; } - /** Sets the specified value to the {@link #height} field. */ - public XrExtent2Df height(float value) { nheight(address(), value); return this; } + + /** the floating-point width of the extent. */ + public float width() { return nwidth(address()); } + /** the floating-point height of the extent. */ + public float height() { return nheight(address()); } + + /** Sets the specified value to the {@link #width} field. */ + public XrExtent2Df width(float value) { nwidth(address(), value); return this; } + /** Sets the specified value to the {@link #height} field. */ + public XrExtent2Df height(float value) { nheight(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrExtent2Df set( - float width, + float width, float height - ) { - width(width); - height(height); + ) { + width(width); + height(height); return this; } @@ -121,29 +112,29 @@ public XrExtent2Df set(XrExtent2Df src) { /** Returns a new {@code XrExtent2Df} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrExtent2Df malloc() { - return new XrExtent2Df(nmemAllocChecked(SIZEOF), null); + return wrap(XrExtent2Df.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrExtent2Df} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrExtent2Df calloc() { - return new XrExtent2Df(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrExtent2Df.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrExtent2Df} instance allocated with {@link BufferUtils}. */ public static XrExtent2Df create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrExtent2Df(memAddress(container), container); + return wrap(XrExtent2Df.class, memAddress(container), container); } /** Returns a new {@code XrExtent2Df} instance for the specified memory address. */ public static XrExtent2Df create(long address) { - return new XrExtent2Df(address, null); + return wrap(XrExtent2Df.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrExtent2Df createSafe(long address) { - return address == NULL ? null : new XrExtent2Df(address, null); + return address == NULL ? null : wrap(XrExtent2Df.class, address); } /** @@ -152,7 +143,7 @@ public static XrExtent2Df createSafe(long address) { * @param capacity the buffer capacity */ public static XrExtent2Df.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -161,7 +152,7 @@ public static XrExtent2Df.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrExtent2Df.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -171,7 +162,7 @@ public static XrExtent2Df.Buffer calloc(int capacity) { */ public static XrExtent2Df.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); } /** @@ -181,13 +172,13 @@ public static XrExtent2Df.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrExtent2Df.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 XrExtent2Df.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -196,7 +187,7 @@ public static XrExtent2Df.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrExtent2Df malloc(MemoryStack stack) { - return new XrExtent2Df(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrExtent2Df.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -205,7 +196,7 @@ public static XrExtent2Df malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrExtent2Df calloc(MemoryStack stack) { - return new XrExtent2Df(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrExtent2Df.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -215,7 +206,7 @@ public static XrExtent2Df calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrExtent2Df.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); } /** @@ -225,22 +216,22 @@ public static XrExtent2Df.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrExtent2Df.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 #width}. */ - public static float nwidth(long struct) { return UNSAFE.getFloat(null, struct + XrExtent2Df.WIDTH); } - /** Unsafe version of {@link #height}. */ - public static float nheight(long struct) { return UNSAFE.getFloat(null, struct + XrExtent2Df.HEIGHT); } - - /** Unsafe version of {@link #width(float) width}. */ - public static void nwidth(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent2Df.WIDTH, value); } - /** Unsafe version of {@link #height(float) height}. */ - public static void nheight(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent2Df.HEIGHT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #width}. */ + public static float nwidth(long struct) { return UNSAFE.getFloat(null, struct + XrExtent2Df.WIDTH); } + /** Unsafe version of {@link #height}. */ + public static float nheight(long struct) { return UNSAFE.getFloat(null, struct + XrExtent2Df.HEIGHT); } + + /** Unsafe version of {@link #width(float) width}. */ + public static void nwidth(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent2Df.WIDTH, value); } + /** Unsafe version of {@link #height(float) height}. */ + public static void nheight(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent2Df.HEIGHT, value); } + + // ----------------------------------- /** An array of {@link XrExtent2Df} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -250,9 +241,9 @@ public static class Buffer extends StructBuffer implements /** * Creates a new {@code XrExtent2Df.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 XrExtent2Df#SIZEOF}, and its mark will be undefined.

    + * by {@link XrExtent2Df#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -277,16 +268,16 @@ protected Buffer self() { protected XrExtent2Df getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrExtent2Df#width} field. */ - public float width() { return XrExtent2Df.nwidth(address()); } - /** @return the value of the {@link XrExtent2Df#height} field. */ - public float height() { return XrExtent2Df.nheight(address()); } - - /** Sets the specified value to the {@link XrExtent2Df#width} field. */ - public XrExtent2Df.Buffer width(float value) { XrExtent2Df.nwidth(address(), value); return this; } - /** Sets the specified value to the {@link XrExtent2Df#height} field. */ - public XrExtent2Df.Buffer height(float value) { XrExtent2Df.nheight(address(), value); return this; } + + /** @return the value of the {@link XrExtent2Df#width} field. */ + public float width() { return XrExtent2Df.nwidth(address()); } + /** @return the value of the {@link XrExtent2Df#height} field. */ + public float height() { return XrExtent2Df.nheight(address()); } + + /** Sets the specified value to the {@link XrExtent2Df#width} field. */ + public XrExtent2Df.Buffer width(float value) { XrExtent2Df.nwidth(address(), value); return this; } + /** Sets the specified value to the {@link XrExtent2Df#height} field. */ + public XrExtent2Df.Buffer height(float value) { XrExtent2Df.nheight(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent2Di.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent2Di.java index 2aab5e4d93..48525d3cd7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent2Di.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent2Di.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.*; + /** * Extent in two dimensions. * @@ -35,8 +35,8 @@ * int32_t {@link #width}; * int32_t {@link #height}; * } - */ -public class XrExtent2Di extends Struct implements NativeResource { + */ +public class XrExtent2Di extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -46,29 +46,20 @@ public class XrExtent2Di extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - WIDTH, - HEIGHT; + WIDTH, + HEIGHT; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - WIDTH = layout.offsetof(0); - HEIGHT = layout.offsetof(1); - } - - protected XrExtent2Di(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrExtent2Di create(long address, @Nullable ByteBuffer container) { - return new XrExtent2Di(address, container); + WIDTH = layout.offsetof(0); + HEIGHT = layout.offsetof(1); } /** @@ -83,26 +74,26 @@ public XrExtent2Di(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the integer width of the extent. */ - @NativeType("int32_t") - public int width() { return nwidth(address()); } - /** the integer height of the extent. */ - @NativeType("int32_t") - public int height() { return nheight(address()); } - - /** Sets the specified value to the {@link #width} field. */ - public XrExtent2Di width(@NativeType("int32_t") int value) { nwidth(address(), value); return this; } - /** Sets the specified value to the {@link #height} field. */ - public XrExtent2Di height(@NativeType("int32_t") int value) { nheight(address(), value); return this; } + + /** the integer width of the extent. */ + @NativeType("int32_t") + public int width() { return nwidth(address()); } + /** the integer height of the extent. */ + @NativeType("int32_t") + public int height() { return nheight(address()); } + + /** Sets the specified value to the {@link #width} field. */ + public XrExtent2Di width(@NativeType("int32_t") int value) { nwidth(address(), value); return this; } + /** Sets the specified value to the {@link #height} field. */ + public XrExtent2Di height(@NativeType("int32_t") int value) { nheight(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrExtent2Di set( - int width, + int width, int height - ) { - width(width); - height(height); + ) { + width(width); + height(height); return this; } @@ -123,29 +114,29 @@ public XrExtent2Di set(XrExtent2Di src) { /** Returns a new {@code XrExtent2Di} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrExtent2Di malloc() { - return new XrExtent2Di(nmemAllocChecked(SIZEOF), null); + return wrap(XrExtent2Di.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrExtent2Di} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrExtent2Di calloc() { - return new XrExtent2Di(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrExtent2Di.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrExtent2Di} instance allocated with {@link BufferUtils}. */ public static XrExtent2Di create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrExtent2Di(memAddress(container), container); + return wrap(XrExtent2Di.class, memAddress(container), container); } /** Returns a new {@code XrExtent2Di} instance for the specified memory address. */ public static XrExtent2Di create(long address) { - return new XrExtent2Di(address, null); + return wrap(XrExtent2Di.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrExtent2Di createSafe(long address) { - return address == NULL ? null : new XrExtent2Di(address, null); + return address == NULL ? null : wrap(XrExtent2Di.class, address); } /** @@ -154,7 +145,7 @@ public static XrExtent2Di createSafe(long address) { * @param capacity the buffer capacity */ public static XrExtent2Di.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -163,7 +154,7 @@ public static XrExtent2Di.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrExtent2Di.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -173,7 +164,7 @@ public static XrExtent2Di.Buffer calloc(int capacity) { */ public static XrExtent2Di.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); } /** @@ -183,13 +174,13 @@ public static XrExtent2Di.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrExtent2Di.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 XrExtent2Di.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -198,7 +189,7 @@ public static XrExtent2Di.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrExtent2Di malloc(MemoryStack stack) { - return new XrExtent2Di(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrExtent2Di.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -207,7 +198,7 @@ public static XrExtent2Di malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrExtent2Di calloc(MemoryStack stack) { - return new XrExtent2Di(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrExtent2Di.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -217,7 +208,7 @@ public static XrExtent2Di calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrExtent2Di.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); } /** @@ -227,22 +218,22 @@ public static XrExtent2Di.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrExtent2Di.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 #width}. */ - public static int nwidth(long struct) { return UNSAFE.getInt(null, struct + XrExtent2Di.WIDTH); } - /** Unsafe version of {@link #height}. */ - public static int nheight(long struct) { return UNSAFE.getInt(null, struct + XrExtent2Di.HEIGHT); } - - /** Unsafe version of {@link #width(int) width}. */ - public static void nwidth(long struct, int value) { UNSAFE.putInt(null, struct + XrExtent2Di.WIDTH, value); } - /** Unsafe version of {@link #height(int) height}. */ - public static void nheight(long struct, int value) { UNSAFE.putInt(null, struct + XrExtent2Di.HEIGHT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #width}. */ + public static int nwidth(long struct) { return UNSAFE.getInt(null, struct + XrExtent2Di.WIDTH); } + /** Unsafe version of {@link #height}. */ + public static int nheight(long struct) { return UNSAFE.getInt(null, struct + XrExtent2Di.HEIGHT); } + + /** Unsafe version of {@link #width(int) width}. */ + public static void nwidth(long struct, int value) { UNSAFE.putInt(null, struct + XrExtent2Di.WIDTH, value); } + /** Unsafe version of {@link #height(int) height}. */ + public static void nheight(long struct, int value) { UNSAFE.putInt(null, struct + XrExtent2Di.HEIGHT, value); } + + // ----------------------------------- /** An array of {@link XrExtent2Di} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -252,9 +243,9 @@ public static class Buffer extends StructBuffer implements /** * Creates a new {@code XrExtent2Di.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 XrExtent2Di#SIZEOF}, and its mark will be undefined.

    + * by {@link XrExtent2Di#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -279,18 +270,18 @@ protected Buffer self() { protected XrExtent2Di getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrExtent2Di#width} field. */ - @NativeType("int32_t") - public int width() { return XrExtent2Di.nwidth(address()); } - /** @return the value of the {@link XrExtent2Di#height} field. */ - @NativeType("int32_t") - public int height() { return XrExtent2Di.nheight(address()); } - - /** Sets the specified value to the {@link XrExtent2Di#width} field. */ - public XrExtent2Di.Buffer width(@NativeType("int32_t") int value) { XrExtent2Di.nwidth(address(), value); return this; } - /** Sets the specified value to the {@link XrExtent2Di#height} field. */ - public XrExtent2Di.Buffer height(@NativeType("int32_t") int value) { XrExtent2Di.nheight(address(), value); return this; } + + /** @return the value of the {@link XrExtent2Di#width} field. */ + @NativeType("int32_t") + public int width() { return XrExtent2Di.nwidth(address()); } + /** @return the value of the {@link XrExtent2Di#height} field. */ + @NativeType("int32_t") + public int height() { return XrExtent2Di.nheight(address()); } + + /** Sets the specified value to the {@link XrExtent2Di#width} field. */ + public XrExtent2Di.Buffer width(@NativeType("int32_t") int value) { XrExtent2Di.nwidth(address(), value); return this; } + /** Sets the specified value to the {@link XrExtent2Di#height} field. */ + public XrExtent2Di.Buffer height(@NativeType("int32_t") int value) { XrExtent2Di.nheight(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent3DfFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent3DfFB.java index 5838d30859..1dc433951f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent3DfFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent3DfFB.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.*; + /** * Represents a rectangular prism. * @@ -40,8 +40,8 @@ * float {@link #height}; * float {@link #depth}; * } - */ -public class XrExtent3DfFB extends Struct implements NativeResource { + */ +public class XrExtent3DfFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,32 +51,23 @@ public class XrExtent3DfFB extends Struct implements NativeResour /** The struct member offsets. */ public static final int - WIDTH, - HEIGHT, - DEPTH; + WIDTH, + HEIGHT, + DEPTH; static { - Layout layout = __struct( - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - WIDTH = layout.offsetof(0); - HEIGHT = layout.offsetof(1); - DEPTH = layout.offsetof(2); - } - - protected XrExtent3DfFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrExtent3DfFB create(long address, @Nullable ByteBuffer container) { - return new XrExtent3DfFB(address, container); + WIDTH = layout.offsetof(0); + HEIGHT = layout.offsetof(1); + DEPTH = layout.offsetof(2); } /** @@ -91,30 +82,30 @@ public XrExtent3DfFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the floating-point width of the extent. */ - public float width() { return nwidth(address()); } - /** the floating-point height of the extent. */ - public float height() { return nheight(address()); } - /** the floating-point depth of the extent. */ - public float depth() { return ndepth(address()); } - - /** Sets the specified value to the {@link #width} field. */ - public XrExtent3DfFB width(float value) { nwidth(address(), value); return this; } - /** Sets the specified value to the {@link #height} field. */ - public XrExtent3DfFB height(float value) { nheight(address(), value); return this; } - /** Sets the specified value to the {@link #depth} field. */ - public XrExtent3DfFB depth(float value) { ndepth(address(), value); return this; } + + /** the floating-point width of the extent. */ + public float width() { return nwidth(address()); } + /** the floating-point height of the extent. */ + public float height() { return nheight(address()); } + /** the floating-point depth of the extent. */ + public float depth() { return ndepth(address()); } + + /** Sets the specified value to the {@link #width} field. */ + public XrExtent3DfFB width(float value) { nwidth(address(), value); return this; } + /** Sets the specified value to the {@link #height} field. */ + public XrExtent3DfFB height(float value) { nheight(address(), value); return this; } + /** Sets the specified value to the {@link #depth} field. */ + public XrExtent3DfFB depth(float value) { ndepth(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrExtent3DfFB set( - float width, - float height, + float width, + float height, float depth - ) { - width(width); - height(height); - depth(depth); + ) { + width(width); + height(height); + depth(depth); return this; } @@ -135,29 +126,29 @@ public XrExtent3DfFB set(XrExtent3DfFB src) { /** Returns a new {@code XrExtent3DfFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrExtent3DfFB malloc() { - return new XrExtent3DfFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrExtent3DfFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrExtent3DfFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrExtent3DfFB calloc() { - return new XrExtent3DfFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrExtent3DfFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrExtent3DfFB} instance allocated with {@link BufferUtils}. */ public static XrExtent3DfFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrExtent3DfFB(memAddress(container), container); + return wrap(XrExtent3DfFB.class, memAddress(container), container); } /** Returns a new {@code XrExtent3DfFB} instance for the specified memory address. */ public static XrExtent3DfFB create(long address) { - return new XrExtent3DfFB(address, null); + return wrap(XrExtent3DfFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrExtent3DfFB createSafe(long address) { - return address == NULL ? null : new XrExtent3DfFB(address, null); + return address == NULL ? null : wrap(XrExtent3DfFB.class, address); } /** @@ -166,7 +157,7 @@ public static XrExtent3DfFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrExtent3DfFB.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 XrExtent3DfFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrExtent3DfFB.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 XrExtent3DfFB.Buffer calloc(int capacity) { */ public static XrExtent3DfFB.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 XrExtent3DfFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrExtent3DfFB.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 XrExtent3DfFB.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 XrExtent3DfFB.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrExtent3DfFB malloc(MemoryStack stack) { - return new XrExtent3DfFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrExtent3DfFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -219,7 +210,7 @@ public static XrExtent3DfFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrExtent3DfFB calloc(MemoryStack stack) { - return new XrExtent3DfFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrExtent3DfFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -229,7 +220,7 @@ public static XrExtent3DfFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrExtent3DfFB.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 XrExtent3DfFB.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrExtent3DfFB.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 #width}. */ - public static float nwidth(long struct) { return UNSAFE.getFloat(null, struct + XrExtent3DfFB.WIDTH); } - /** Unsafe version of {@link #height}. */ - public static float nheight(long struct) { return UNSAFE.getFloat(null, struct + XrExtent3DfFB.HEIGHT); } - /** Unsafe version of {@link #depth}. */ - public static float ndepth(long struct) { return UNSAFE.getFloat(null, struct + XrExtent3DfFB.DEPTH); } - - /** Unsafe version of {@link #width(float) width}. */ - public static void nwidth(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent3DfFB.WIDTH, value); } - /** Unsafe version of {@link #height(float) height}. */ - public static void nheight(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent3DfFB.HEIGHT, value); } - /** Unsafe version of {@link #depth(float) depth}. */ - public static void ndepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent3DfFB.DEPTH, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #width}. */ + public static float nwidth(long struct) { return UNSAFE.getFloat(null, struct + XrExtent3DfFB.WIDTH); } + /** Unsafe version of {@link #height}. */ + public static float nheight(long struct) { return UNSAFE.getFloat(null, struct + XrExtent3DfFB.HEIGHT); } + /** Unsafe version of {@link #depth}. */ + public static float ndepth(long struct) { return UNSAFE.getFloat(null, struct + XrExtent3DfFB.DEPTH); } + + /** Unsafe version of {@link #width(float) width}. */ + public static void nwidth(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent3DfFB.WIDTH, value); } + /** Unsafe version of {@link #height(float) height}. */ + public static void nheight(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent3DfFB.HEIGHT, value); } + /** Unsafe version of {@link #depth(float) depth}. */ + public static void ndepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent3DfFB.DEPTH, value); } + + // ----------------------------------- /** An array of {@link XrExtent3DfFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -268,9 +259,9 @@ public static class Buffer extends StructBuffer implement /** * Creates a new {@code XrExtent3DfFB.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 XrExtent3DfFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrExtent3DfFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -295,20 +286,20 @@ protected Buffer self() { protected XrExtent3DfFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrExtent3DfFB#width} field. */ - public float width() { return XrExtent3DfFB.nwidth(address()); } - /** @return the value of the {@link XrExtent3DfFB#height} field. */ - public float height() { return XrExtent3DfFB.nheight(address()); } - /** @return the value of the {@link XrExtent3DfFB#depth} field. */ - public float depth() { return XrExtent3DfFB.ndepth(address()); } - - /** Sets the specified value to the {@link XrExtent3DfFB#width} field. */ - public XrExtent3DfFB.Buffer width(float value) { XrExtent3DfFB.nwidth(address(), value); return this; } - /** Sets the specified value to the {@link XrExtent3DfFB#height} field. */ - public XrExtent3DfFB.Buffer height(float value) { XrExtent3DfFB.nheight(address(), value); return this; } - /** Sets the specified value to the {@link XrExtent3DfFB#depth} field. */ - public XrExtent3DfFB.Buffer depth(float value) { XrExtent3DfFB.ndepth(address(), value); return this; } + + /** @return the value of the {@link XrExtent3DfFB#width} field. */ + public float width() { return XrExtent3DfFB.nwidth(address()); } + /** @return the value of the {@link XrExtent3DfFB#height} field. */ + public float height() { return XrExtent3DfFB.nheight(address()); } + /** @return the value of the {@link XrExtent3DfFB#depth} field. */ + public float depth() { return XrExtent3DfFB.ndepth(address()); } + + /** Sets the specified value to the {@link XrExtent3DfFB#width} field. */ + public XrExtent3DfFB.Buffer width(float value) { XrExtent3DfFB.nwidth(address(), value); return this; } + /** Sets the specified value to the {@link XrExtent3DfFB#height} field. */ + public XrExtent3DfFB.Buffer height(float value) { XrExtent3DfFB.nheight(address(), value); return this; } + /** Sets the specified value to the {@link XrExtent3DfFB#depth} field. */ + public XrExtent3DfFB.Buffer depth(float value) { XrExtent3DfFB.ndepth(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraExtrinsicsOCULUS.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraExtrinsicsOCULUS.java index 1de60e6ab2..db9aa8b525 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraExtrinsicsOCULUS.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraExtrinsicsOCULUS.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.*; + /** * Camera extrinsics state. * @@ -39,8 +39,8 @@ * XrExternalCameraAttachedToDeviceOCULUS {@link #attachedToDevice}; * {@link XrPosef XrPosef} {@link #relativePose}; * } - */ -public class XrExternalCameraExtrinsicsOCULUS extends Struct implements NativeResource { + */ +public class XrExternalCameraExtrinsicsOCULUS extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,35 +50,26 @@ public class XrExternalCameraExtrinsicsOCULUS extends Struct consumer) { consumer.accept(relativePose()); return this; } + + /** the {@code XrTime} when this camera’s extrinsics last changed. */ + @NativeType("XrTime") + public long lastChangeTime() { return nlastChangeTime(address()); } + /** the {@code XrExternalCameraStatusFlagsOCULUS} for this camera’s status. */ + @NativeType("XrExternalCameraStatusFlagsOCULUS") + public long cameraStatusFlags() { return ncameraStatusFlags(address()); } + /** the {@code XrExternalCameraAttachedToDeviceOCULUS} for the device this camera is attached to */ + @NativeType("XrExternalCameraAttachedToDeviceOCULUS") + public int attachedToDevice() { return nattachedToDevice(address()); } + /** the {@link XrPosef} for offset of the camera from the device that the camera is attached to */ + public XrPosef relativePose() { return nrelativePose(address()); } + + /** Sets the specified value to the {@link #lastChangeTime} field. */ + public XrExternalCameraExtrinsicsOCULUS lastChangeTime(@NativeType("XrTime") long value) { nlastChangeTime(address(), value); return this; } + /** Sets the specified value to the {@link #cameraStatusFlags} field. */ + public XrExternalCameraExtrinsicsOCULUS cameraStatusFlags(@NativeType("XrExternalCameraStatusFlagsOCULUS") long value) { ncameraStatusFlags(address(), value); return this; } + /** Sets the specified value to the {@link #attachedToDevice} field. */ + public XrExternalCameraExtrinsicsOCULUS attachedToDevice(@NativeType("XrExternalCameraAttachedToDeviceOCULUS") int value) { nattachedToDevice(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #relativePose} field. */ + public XrExternalCameraExtrinsicsOCULUS relativePose(XrPosef value) { nrelativePose(address(), value); return this; } + /** Passes the {@link #relativePose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrExternalCameraExtrinsicsOCULUS relativePose(java.util.function.Consumer consumer) { consumer.accept(relativePose()); return this; } /** Initializes this struct with the specified values. */ public XrExternalCameraExtrinsicsOCULUS set( - long lastChangeTime, - long cameraStatusFlags, - int attachedToDevice, + long lastChangeTime, + long cameraStatusFlags, + int attachedToDevice, XrPosef relativePose - ) { - lastChangeTime(lastChangeTime); - cameraStatusFlags(cameraStatusFlags); - attachedToDevice(attachedToDevice); - relativePose(relativePose); + ) { + lastChangeTime(lastChangeTime); + cameraStatusFlags(cameraStatusFlags); + attachedToDevice(attachedToDevice); + relativePose(relativePose); return this; } @@ -148,29 +139,29 @@ public XrExternalCameraExtrinsicsOCULUS set(XrExternalCameraExtrinsicsOCULUS src /** Returns a new {@code XrExternalCameraExtrinsicsOCULUS} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrExternalCameraExtrinsicsOCULUS malloc() { - return new XrExternalCameraExtrinsicsOCULUS(nmemAllocChecked(SIZEOF), null); + return wrap(XrExternalCameraExtrinsicsOCULUS.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrExternalCameraExtrinsicsOCULUS} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrExternalCameraExtrinsicsOCULUS calloc() { - return new XrExternalCameraExtrinsicsOCULUS(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrExternalCameraExtrinsicsOCULUS.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrExternalCameraExtrinsicsOCULUS} instance allocated with {@link BufferUtils}. */ public static XrExternalCameraExtrinsicsOCULUS create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrExternalCameraExtrinsicsOCULUS(memAddress(container), container); + return wrap(XrExternalCameraExtrinsicsOCULUS.class, memAddress(container), container); } /** Returns a new {@code XrExternalCameraExtrinsicsOCULUS} instance for the specified memory address. */ public static XrExternalCameraExtrinsicsOCULUS create(long address) { - return new XrExternalCameraExtrinsicsOCULUS(address, null); + return wrap(XrExternalCameraExtrinsicsOCULUS.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrExternalCameraExtrinsicsOCULUS createSafe(long address) { - return address == NULL ? null : new XrExternalCameraExtrinsicsOCULUS(address, null); + return address == NULL ? null : wrap(XrExternalCameraExtrinsicsOCULUS.class, address); } /** @@ -179,7 +170,7 @@ public static XrExternalCameraExtrinsicsOCULUS createSafe(long address) { * @param capacity the buffer capacity */ public static XrExternalCameraExtrinsicsOCULUS.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -188,7 +179,7 @@ public static XrExternalCameraExtrinsicsOCULUS.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrExternalCameraExtrinsicsOCULUS.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -198,7 +189,7 @@ public static XrExternalCameraExtrinsicsOCULUS.Buffer calloc(int capacity) { */ public static XrExternalCameraExtrinsicsOCULUS.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); } /** @@ -208,13 +199,13 @@ public static XrExternalCameraExtrinsicsOCULUS.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrExternalCameraExtrinsicsOCULUS.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 XrExternalCameraExtrinsicsOCULUS.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -223,7 +214,7 @@ public static XrExternalCameraExtrinsicsOCULUS.Buffer createSafe(long address, i * @param stack the stack from which to allocate */ public static XrExternalCameraExtrinsicsOCULUS malloc(MemoryStack stack) { - return new XrExternalCameraExtrinsicsOCULUS(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrExternalCameraExtrinsicsOCULUS.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -232,7 +223,7 @@ public static XrExternalCameraExtrinsicsOCULUS malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrExternalCameraExtrinsicsOCULUS calloc(MemoryStack stack) { - return new XrExternalCameraExtrinsicsOCULUS(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrExternalCameraExtrinsicsOCULUS.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -242,7 +233,7 @@ public static XrExternalCameraExtrinsicsOCULUS calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrExternalCameraExtrinsicsOCULUS.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); } /** @@ -252,30 +243,30 @@ public static XrExternalCameraExtrinsicsOCULUS.Buffer malloc(int capacity, Memor * @param capacity the buffer capacity */ public static XrExternalCameraExtrinsicsOCULUS.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 #lastChangeTime}. */ - public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrExternalCameraExtrinsicsOCULUS.LASTCHANGETIME); } - /** Unsafe version of {@link #cameraStatusFlags}. */ - public static long ncameraStatusFlags(long struct) { return UNSAFE.getLong(null, struct + XrExternalCameraExtrinsicsOCULUS.CAMERASTATUSFLAGS); } - /** Unsafe version of {@link #attachedToDevice}. */ - public static int nattachedToDevice(long struct) { return UNSAFE.getInt(null, struct + XrExternalCameraExtrinsicsOCULUS.ATTACHEDTODEVICE); } - /** Unsafe version of {@link #relativePose}. */ - public static XrPosef nrelativePose(long struct) { return XrPosef.create(struct + XrExternalCameraExtrinsicsOCULUS.RELATIVEPOSE); } - - /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */ - public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrExternalCameraExtrinsicsOCULUS.LASTCHANGETIME, value); } - /** Unsafe version of {@link #cameraStatusFlags(long) cameraStatusFlags}. */ - public static void ncameraStatusFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrExternalCameraExtrinsicsOCULUS.CAMERASTATUSFLAGS, value); } - /** Unsafe version of {@link #attachedToDevice(int) attachedToDevice}. */ - public static void nattachedToDevice(long struct, int value) { UNSAFE.putInt(null, struct + XrExternalCameraExtrinsicsOCULUS.ATTACHEDTODEVICE, value); } - /** Unsafe version of {@link #relativePose(XrPosef) relativePose}. */ - public static void nrelativePose(long struct, XrPosef value) { memCopy(value.address(), struct + XrExternalCameraExtrinsicsOCULUS.RELATIVEPOSE, XrPosef.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #lastChangeTime}. */ + public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrExternalCameraExtrinsicsOCULUS.LASTCHANGETIME); } + /** Unsafe version of {@link #cameraStatusFlags}. */ + public static long ncameraStatusFlags(long struct) { return UNSAFE.getLong(null, struct + XrExternalCameraExtrinsicsOCULUS.CAMERASTATUSFLAGS); } + /** Unsafe version of {@link #attachedToDevice}. */ + public static int nattachedToDevice(long struct) { return UNSAFE.getInt(null, struct + XrExternalCameraExtrinsicsOCULUS.ATTACHEDTODEVICE); } + /** Unsafe version of {@link #relativePose}. */ + public static XrPosef nrelativePose(long struct) { return XrPosef.create(struct + XrExternalCameraExtrinsicsOCULUS.RELATIVEPOSE); } + + /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */ + public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrExternalCameraExtrinsicsOCULUS.LASTCHANGETIME, value); } + /** Unsafe version of {@link #cameraStatusFlags(long) cameraStatusFlags}. */ + public static void ncameraStatusFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrExternalCameraExtrinsicsOCULUS.CAMERASTATUSFLAGS, value); } + /** Unsafe version of {@link #attachedToDevice(int) attachedToDevice}. */ + public static void nattachedToDevice(long struct, int value) { UNSAFE.putInt(null, struct + XrExternalCameraExtrinsicsOCULUS.ATTACHEDTODEVICE, value); } + /** Unsafe version of {@link #relativePose(XrPosef) relativePose}. */ + public static void nrelativePose(long struct, XrPosef value) { memCopy(value.address(), struct + XrExternalCameraExtrinsicsOCULUS.RELATIVEPOSE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrExternalCameraExtrinsicsOCULUS} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -285,9 +276,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 XrExternalCameraExtrinsicsOCULUS#SIZEOF}, and its mark will be undefined.

    + * by {@link XrExternalCameraExtrinsicsOCULUS#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -312,29 +303,29 @@ protected Buffer self() { protected XrExternalCameraExtrinsicsOCULUS getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrExternalCameraExtrinsicsOCULUS#lastChangeTime} field. */ - @NativeType("XrTime") - public long lastChangeTime() { return XrExternalCameraExtrinsicsOCULUS.nlastChangeTime(address()); } - /** @return the value of the {@link XrExternalCameraExtrinsicsOCULUS#cameraStatusFlags} field. */ - @NativeType("XrExternalCameraStatusFlagsOCULUS") - public long cameraStatusFlags() { return XrExternalCameraExtrinsicsOCULUS.ncameraStatusFlags(address()); } - /** @return the value of the {@link XrExternalCameraExtrinsicsOCULUS#attachedToDevice} field. */ - @NativeType("XrExternalCameraAttachedToDeviceOCULUS") - public int attachedToDevice() { return XrExternalCameraExtrinsicsOCULUS.nattachedToDevice(address()); } - /** @return a {@link XrPosef} view of the {@link XrExternalCameraExtrinsicsOCULUS#relativePose} field. */ - public XrPosef relativePose() { return XrExternalCameraExtrinsicsOCULUS.nrelativePose(address()); } - - /** Sets the specified value to the {@link XrExternalCameraExtrinsicsOCULUS#lastChangeTime} field. */ - public XrExternalCameraExtrinsicsOCULUS.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrExternalCameraExtrinsicsOCULUS.nlastChangeTime(address(), value); return this; } - /** Sets the specified value to the {@link XrExternalCameraExtrinsicsOCULUS#cameraStatusFlags} field. */ - public XrExternalCameraExtrinsicsOCULUS.Buffer cameraStatusFlags(@NativeType("XrExternalCameraStatusFlagsOCULUS") long value) { XrExternalCameraExtrinsicsOCULUS.ncameraStatusFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrExternalCameraExtrinsicsOCULUS#attachedToDevice} field. */ - public XrExternalCameraExtrinsicsOCULUS.Buffer attachedToDevice(@NativeType("XrExternalCameraAttachedToDeviceOCULUS") int value) { XrExternalCameraExtrinsicsOCULUS.nattachedToDevice(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrExternalCameraExtrinsicsOCULUS#relativePose} field. */ - public XrExternalCameraExtrinsicsOCULUS.Buffer relativePose(XrPosef value) { XrExternalCameraExtrinsicsOCULUS.nrelativePose(address(), value); return this; } - /** Passes the {@link XrExternalCameraExtrinsicsOCULUS#relativePose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrExternalCameraExtrinsicsOCULUS.Buffer relativePose(java.util.function.Consumer consumer) { consumer.accept(relativePose()); return this; } + + /** @return the value of the {@link XrExternalCameraExtrinsicsOCULUS#lastChangeTime} field. */ + @NativeType("XrTime") + public long lastChangeTime() { return XrExternalCameraExtrinsicsOCULUS.nlastChangeTime(address()); } + /** @return the value of the {@link XrExternalCameraExtrinsicsOCULUS#cameraStatusFlags} field. */ + @NativeType("XrExternalCameraStatusFlagsOCULUS") + public long cameraStatusFlags() { return XrExternalCameraExtrinsicsOCULUS.ncameraStatusFlags(address()); } + /** @return the value of the {@link XrExternalCameraExtrinsicsOCULUS#attachedToDevice} field. */ + @NativeType("XrExternalCameraAttachedToDeviceOCULUS") + public int attachedToDevice() { return XrExternalCameraExtrinsicsOCULUS.nattachedToDevice(address()); } + /** @return a {@link XrPosef} view of the {@link XrExternalCameraExtrinsicsOCULUS#relativePose} field. */ + public XrPosef relativePose() { return XrExternalCameraExtrinsicsOCULUS.nrelativePose(address()); } + + /** Sets the specified value to the {@link XrExternalCameraExtrinsicsOCULUS#lastChangeTime} field. */ + public XrExternalCameraExtrinsicsOCULUS.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrExternalCameraExtrinsicsOCULUS.nlastChangeTime(address(), value); return this; } + /** Sets the specified value to the {@link XrExternalCameraExtrinsicsOCULUS#cameraStatusFlags} field. */ + public XrExternalCameraExtrinsicsOCULUS.Buffer cameraStatusFlags(@NativeType("XrExternalCameraStatusFlagsOCULUS") long value) { XrExternalCameraExtrinsicsOCULUS.ncameraStatusFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrExternalCameraExtrinsicsOCULUS#attachedToDevice} field. */ + public XrExternalCameraExtrinsicsOCULUS.Buffer attachedToDevice(@NativeType("XrExternalCameraAttachedToDeviceOCULUS") int value) { XrExternalCameraExtrinsicsOCULUS.nattachedToDevice(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrExternalCameraExtrinsicsOCULUS#relativePose} field. */ + public XrExternalCameraExtrinsicsOCULUS.Buffer relativePose(XrPosef value) { XrExternalCameraExtrinsicsOCULUS.nrelativePose(address(), value); return this; } + /** Passes the {@link XrExternalCameraExtrinsicsOCULUS#relativePose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrExternalCameraExtrinsicsOCULUS.Buffer relativePose(java.util.function.Consumer consumer) { consumer.accept(relativePose()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraIntrinsicsOCULUS.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraIntrinsicsOCULUS.java index 6931abfe1e..78668f943b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraIntrinsicsOCULUS.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraIntrinsicsOCULUS.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.*; + /** * Camera intrintics state. * @@ -38,8 +38,8 @@ * float {@link #virtualFarPlaneDistance}; * {@link XrExtent2Di XrExtent2Di} {@link #imageSensorPixelResolution}; * } - */ -public class XrExternalCameraIntrinsicsOCULUS extends Struct implements NativeResource { + */ +public class XrExternalCameraIntrinsicsOCULUS extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,38 +49,29 @@ public class XrExternalCameraIntrinsicsOCULUS extends Struct consumer) { consumer.accept(fov()); return this; } - /** Sets the specified value to the {@link #virtualNearPlaneDistance} field. */ - public XrExternalCameraIntrinsicsOCULUS virtualNearPlaneDistance(float value) { nvirtualNearPlaneDistance(address(), value); return this; } - /** Sets the specified value to the {@link #virtualFarPlaneDistance} field. */ - public XrExternalCameraIntrinsicsOCULUS virtualFarPlaneDistance(float value) { nvirtualFarPlaneDistance(address(), value); return this; } - /** Copies the specified {@link XrExtent2Di} to the {@link #imageSensorPixelResolution} field. */ - public XrExternalCameraIntrinsicsOCULUS imageSensorPixelResolution(XrExtent2Di value) { nimageSensorPixelResolution(address(), value); return this; } - /** Passes the {@link #imageSensorPixelResolution} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrExternalCameraIntrinsicsOCULUS imageSensorPixelResolution(java.util.function.Consumer consumer) { consumer.accept(imageSensorPixelResolution()); return this; } + + /** the {@code XrTime} when this camera’s intrinsics last changed. */ + @NativeType("XrTime") + public long lastChangeTime() { return nlastChangeTime(address()); } + /** the {@link XrFovf} for this camera’s viewport. */ + public XrFovf fov() { return nfov(address()); } + /** the near plane distance of the virtual camera used to match the external camera */ + public float virtualNearPlaneDistance() { return nvirtualNearPlaneDistance(address()); } + /** the far plane distance of the virtual camera used to match the external camera */ + public float virtualFarPlaneDistance() { return nvirtualFarPlaneDistance(address()); } + /** the {@link XrExtent2Di} specifying the camera’s resolution (in pixels). */ + public XrExtent2Di imageSensorPixelResolution() { return nimageSensorPixelResolution(address()); } + + /** Sets the specified value to the {@link #lastChangeTime} field. */ + public XrExternalCameraIntrinsicsOCULUS lastChangeTime(@NativeType("XrTime") long value) { nlastChangeTime(address(), value); return this; } + /** Copies the specified {@link XrFovf} to the {@link #fov} field. */ + public XrExternalCameraIntrinsicsOCULUS fov(XrFovf value) { nfov(address(), value); return this; } + /** Passes the {@link #fov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrExternalCameraIntrinsicsOCULUS fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } + /** Sets the specified value to the {@link #virtualNearPlaneDistance} field. */ + public XrExternalCameraIntrinsicsOCULUS virtualNearPlaneDistance(float value) { nvirtualNearPlaneDistance(address(), value); return this; } + /** Sets the specified value to the {@link #virtualFarPlaneDistance} field. */ + public XrExternalCameraIntrinsicsOCULUS virtualFarPlaneDistance(float value) { nvirtualFarPlaneDistance(address(), value); return this; } + /** Copies the specified {@link XrExtent2Di} to the {@link #imageSensorPixelResolution} field. */ + public XrExternalCameraIntrinsicsOCULUS imageSensorPixelResolution(XrExtent2Di value) { nimageSensorPixelResolution(address(), value); return this; } + /** Passes the {@link #imageSensorPixelResolution} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrExternalCameraIntrinsicsOCULUS imageSensorPixelResolution(java.util.function.Consumer consumer) { consumer.accept(imageSensorPixelResolution()); return this; } /** Initializes this struct with the specified values. */ public XrExternalCameraIntrinsicsOCULUS set( - long lastChangeTime, - XrFovf fov, - float virtualNearPlaneDistance, - float virtualFarPlaneDistance, + long lastChangeTime, + XrFovf fov, + float virtualNearPlaneDistance, + float virtualFarPlaneDistance, XrExtent2Di imageSensorPixelResolution - ) { - lastChangeTime(lastChangeTime); - fov(fov); - virtualNearPlaneDistance(virtualNearPlaneDistance); - virtualFarPlaneDistance(virtualFarPlaneDistance); - imageSensorPixelResolution(imageSensorPixelResolution); + ) { + lastChangeTime(lastChangeTime); + fov(fov); + virtualNearPlaneDistance(virtualNearPlaneDistance); + virtualFarPlaneDistance(virtualFarPlaneDistance); + imageSensorPixelResolution(imageSensorPixelResolution); return this; } @@ -156,29 +147,29 @@ public XrExternalCameraIntrinsicsOCULUS set(XrExternalCameraIntrinsicsOCULUS src /** Returns a new {@code XrExternalCameraIntrinsicsOCULUS} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrExternalCameraIntrinsicsOCULUS malloc() { - return new XrExternalCameraIntrinsicsOCULUS(nmemAllocChecked(SIZEOF), null); + return wrap(XrExternalCameraIntrinsicsOCULUS.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrExternalCameraIntrinsicsOCULUS} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrExternalCameraIntrinsicsOCULUS calloc() { - return new XrExternalCameraIntrinsicsOCULUS(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrExternalCameraIntrinsicsOCULUS.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrExternalCameraIntrinsicsOCULUS} instance allocated with {@link BufferUtils}. */ public static XrExternalCameraIntrinsicsOCULUS create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrExternalCameraIntrinsicsOCULUS(memAddress(container), container); + return wrap(XrExternalCameraIntrinsicsOCULUS.class, memAddress(container), container); } /** Returns a new {@code XrExternalCameraIntrinsicsOCULUS} instance for the specified memory address. */ public static XrExternalCameraIntrinsicsOCULUS create(long address) { - return new XrExternalCameraIntrinsicsOCULUS(address, null); + return wrap(XrExternalCameraIntrinsicsOCULUS.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrExternalCameraIntrinsicsOCULUS createSafe(long address) { - return address == NULL ? null : new XrExternalCameraIntrinsicsOCULUS(address, null); + return address == NULL ? null : wrap(XrExternalCameraIntrinsicsOCULUS.class, address); } /** @@ -187,7 +178,7 @@ public static XrExternalCameraIntrinsicsOCULUS createSafe(long address) { * @param capacity the buffer capacity */ public static XrExternalCameraIntrinsicsOCULUS.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -196,7 +187,7 @@ public static XrExternalCameraIntrinsicsOCULUS.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrExternalCameraIntrinsicsOCULUS.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -206,7 +197,7 @@ public static XrExternalCameraIntrinsicsOCULUS.Buffer calloc(int capacity) { */ public static XrExternalCameraIntrinsicsOCULUS.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); } /** @@ -216,13 +207,13 @@ public static XrExternalCameraIntrinsicsOCULUS.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrExternalCameraIntrinsicsOCULUS.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 XrExternalCameraIntrinsicsOCULUS.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -231,7 +222,7 @@ public static XrExternalCameraIntrinsicsOCULUS.Buffer createSafe(long address, i * @param stack the stack from which to allocate */ public static XrExternalCameraIntrinsicsOCULUS malloc(MemoryStack stack) { - return new XrExternalCameraIntrinsicsOCULUS(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrExternalCameraIntrinsicsOCULUS.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -240,7 +231,7 @@ public static XrExternalCameraIntrinsicsOCULUS malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrExternalCameraIntrinsicsOCULUS calloc(MemoryStack stack) { - return new XrExternalCameraIntrinsicsOCULUS(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrExternalCameraIntrinsicsOCULUS.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -250,7 +241,7 @@ public static XrExternalCameraIntrinsicsOCULUS calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrExternalCameraIntrinsicsOCULUS.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); } /** @@ -260,34 +251,34 @@ public static XrExternalCameraIntrinsicsOCULUS.Buffer malloc(int capacity, Memor * @param capacity the buffer capacity */ public static XrExternalCameraIntrinsicsOCULUS.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 #lastChangeTime}. */ - public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrExternalCameraIntrinsicsOCULUS.LASTCHANGETIME); } - /** Unsafe version of {@link #fov}. */ - public static XrFovf nfov(long struct) { return XrFovf.create(struct + XrExternalCameraIntrinsicsOCULUS.FOV); } - /** Unsafe version of {@link #virtualNearPlaneDistance}. */ - public static float nvirtualNearPlaneDistance(long struct) { return UNSAFE.getFloat(null, struct + XrExternalCameraIntrinsicsOCULUS.VIRTUALNEARPLANEDISTANCE); } - /** Unsafe version of {@link #virtualFarPlaneDistance}. */ - public static float nvirtualFarPlaneDistance(long struct) { return UNSAFE.getFloat(null, struct + XrExternalCameraIntrinsicsOCULUS.VIRTUALFARPLANEDISTANCE); } - /** Unsafe version of {@link #imageSensorPixelResolution}. */ - public static XrExtent2Di nimageSensorPixelResolution(long struct) { return XrExtent2Di.create(struct + XrExternalCameraIntrinsicsOCULUS.IMAGESENSORPIXELRESOLUTION); } - - /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */ - public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrExternalCameraIntrinsicsOCULUS.LASTCHANGETIME, value); } - /** Unsafe version of {@link #fov(XrFovf) fov}. */ - public static void nfov(long struct, XrFovf value) { memCopy(value.address(), struct + XrExternalCameraIntrinsicsOCULUS.FOV, XrFovf.SIZEOF); } - /** Unsafe version of {@link #virtualNearPlaneDistance(float) virtualNearPlaneDistance}. */ - public static void nvirtualNearPlaneDistance(long struct, float value) { UNSAFE.putFloat(null, struct + XrExternalCameraIntrinsicsOCULUS.VIRTUALNEARPLANEDISTANCE, value); } - /** Unsafe version of {@link #virtualFarPlaneDistance(float) virtualFarPlaneDistance}. */ - public static void nvirtualFarPlaneDistance(long struct, float value) { UNSAFE.putFloat(null, struct + XrExternalCameraIntrinsicsOCULUS.VIRTUALFARPLANEDISTANCE, value); } - /** Unsafe version of {@link #imageSensorPixelResolution(XrExtent2Di) imageSensorPixelResolution}. */ - public static void nimageSensorPixelResolution(long struct, XrExtent2Di value) { memCopy(value.address(), struct + XrExternalCameraIntrinsicsOCULUS.IMAGESENSORPIXELRESOLUTION, XrExtent2Di.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #lastChangeTime}. */ + public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrExternalCameraIntrinsicsOCULUS.LASTCHANGETIME); } + /** Unsafe version of {@link #fov}. */ + public static XrFovf nfov(long struct) { return XrFovf.create(struct + XrExternalCameraIntrinsicsOCULUS.FOV); } + /** Unsafe version of {@link #virtualNearPlaneDistance}. */ + public static float nvirtualNearPlaneDistance(long struct) { return UNSAFE.getFloat(null, struct + XrExternalCameraIntrinsicsOCULUS.VIRTUALNEARPLANEDISTANCE); } + /** Unsafe version of {@link #virtualFarPlaneDistance}. */ + public static float nvirtualFarPlaneDistance(long struct) { return UNSAFE.getFloat(null, struct + XrExternalCameraIntrinsicsOCULUS.VIRTUALFARPLANEDISTANCE); } + /** Unsafe version of {@link #imageSensorPixelResolution}. */ + public static XrExtent2Di nimageSensorPixelResolution(long struct) { return XrExtent2Di.create(struct + XrExternalCameraIntrinsicsOCULUS.IMAGESENSORPIXELRESOLUTION); } + + /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */ + public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrExternalCameraIntrinsicsOCULUS.LASTCHANGETIME, value); } + /** Unsafe version of {@link #fov(XrFovf) fov}. */ + public static void nfov(long struct, XrFovf value) { memCopy(value.address(), struct + XrExternalCameraIntrinsicsOCULUS.FOV, XrFovf.SIZEOF); } + /** Unsafe version of {@link #virtualNearPlaneDistance(float) virtualNearPlaneDistance}. */ + public static void nvirtualNearPlaneDistance(long struct, float value) { UNSAFE.putFloat(null, struct + XrExternalCameraIntrinsicsOCULUS.VIRTUALNEARPLANEDISTANCE, value); } + /** Unsafe version of {@link #virtualFarPlaneDistance(float) virtualFarPlaneDistance}. */ + public static void nvirtualFarPlaneDistance(long struct, float value) { UNSAFE.putFloat(null, struct + XrExternalCameraIntrinsicsOCULUS.VIRTUALFARPLANEDISTANCE, value); } + /** Unsafe version of {@link #imageSensorPixelResolution(XrExtent2Di) imageSensorPixelResolution}. */ + public static void nimageSensorPixelResolution(long struct, XrExtent2Di value) { memCopy(value.address(), struct + XrExternalCameraIntrinsicsOCULUS.IMAGESENSORPIXELRESOLUTION, XrExtent2Di.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrExternalCameraIntrinsicsOCULUS} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -297,9 +288,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 XrExternalCameraIntrinsicsOCULUS#SIZEOF}, and its mark will be undefined.

    + * by {@link XrExternalCameraIntrinsicsOCULUS#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -324,33 +315,33 @@ protected Buffer self() { protected XrExternalCameraIntrinsicsOCULUS getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrExternalCameraIntrinsicsOCULUS#lastChangeTime} field. */ - @NativeType("XrTime") - public long lastChangeTime() { return XrExternalCameraIntrinsicsOCULUS.nlastChangeTime(address()); } - /** @return a {@link XrFovf} view of the {@link XrExternalCameraIntrinsicsOCULUS#fov} field. */ - public XrFovf fov() { return XrExternalCameraIntrinsicsOCULUS.nfov(address()); } - /** @return the value of the {@link XrExternalCameraIntrinsicsOCULUS#virtualNearPlaneDistance} field. */ - public float virtualNearPlaneDistance() { return XrExternalCameraIntrinsicsOCULUS.nvirtualNearPlaneDistance(address()); } - /** @return the value of the {@link XrExternalCameraIntrinsicsOCULUS#virtualFarPlaneDistance} field. */ - public float virtualFarPlaneDistance() { return XrExternalCameraIntrinsicsOCULUS.nvirtualFarPlaneDistance(address()); } - /** @return a {@link XrExtent2Di} view of the {@link XrExternalCameraIntrinsicsOCULUS#imageSensorPixelResolution} field. */ - public XrExtent2Di imageSensorPixelResolution() { return XrExternalCameraIntrinsicsOCULUS.nimageSensorPixelResolution(address()); } - - /** Sets the specified value to the {@link XrExternalCameraIntrinsicsOCULUS#lastChangeTime} field. */ - public XrExternalCameraIntrinsicsOCULUS.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrExternalCameraIntrinsicsOCULUS.nlastChangeTime(address(), value); return this; } - /** Copies the specified {@link XrFovf} to the {@link XrExternalCameraIntrinsicsOCULUS#fov} field. */ - public XrExternalCameraIntrinsicsOCULUS.Buffer fov(XrFovf value) { XrExternalCameraIntrinsicsOCULUS.nfov(address(), value); return this; } - /** Passes the {@link XrExternalCameraIntrinsicsOCULUS#fov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrExternalCameraIntrinsicsOCULUS.Buffer fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } - /** Sets the specified value to the {@link XrExternalCameraIntrinsicsOCULUS#virtualNearPlaneDistance} field. */ - public XrExternalCameraIntrinsicsOCULUS.Buffer virtualNearPlaneDistance(float value) { XrExternalCameraIntrinsicsOCULUS.nvirtualNearPlaneDistance(address(), value); return this; } - /** Sets the specified value to the {@link XrExternalCameraIntrinsicsOCULUS#virtualFarPlaneDistance} field. */ - public XrExternalCameraIntrinsicsOCULUS.Buffer virtualFarPlaneDistance(float value) { XrExternalCameraIntrinsicsOCULUS.nvirtualFarPlaneDistance(address(), value); return this; } - /** Copies the specified {@link XrExtent2Di} to the {@link XrExternalCameraIntrinsicsOCULUS#imageSensorPixelResolution} field. */ - public XrExternalCameraIntrinsicsOCULUS.Buffer imageSensorPixelResolution(XrExtent2Di value) { XrExternalCameraIntrinsicsOCULUS.nimageSensorPixelResolution(address(), value); return this; } - /** Passes the {@link XrExternalCameraIntrinsicsOCULUS#imageSensorPixelResolution} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrExternalCameraIntrinsicsOCULUS.Buffer imageSensorPixelResolution(java.util.function.Consumer consumer) { consumer.accept(imageSensorPixelResolution()); return this; } + + /** @return the value of the {@link XrExternalCameraIntrinsicsOCULUS#lastChangeTime} field. */ + @NativeType("XrTime") + public long lastChangeTime() { return XrExternalCameraIntrinsicsOCULUS.nlastChangeTime(address()); } + /** @return a {@link XrFovf} view of the {@link XrExternalCameraIntrinsicsOCULUS#fov} field. */ + public XrFovf fov() { return XrExternalCameraIntrinsicsOCULUS.nfov(address()); } + /** @return the value of the {@link XrExternalCameraIntrinsicsOCULUS#virtualNearPlaneDistance} field. */ + public float virtualNearPlaneDistance() { return XrExternalCameraIntrinsicsOCULUS.nvirtualNearPlaneDistance(address()); } + /** @return the value of the {@link XrExternalCameraIntrinsicsOCULUS#virtualFarPlaneDistance} field. */ + public float virtualFarPlaneDistance() { return XrExternalCameraIntrinsicsOCULUS.nvirtualFarPlaneDistance(address()); } + /** @return a {@link XrExtent2Di} view of the {@link XrExternalCameraIntrinsicsOCULUS#imageSensorPixelResolution} field. */ + public XrExtent2Di imageSensorPixelResolution() { return XrExternalCameraIntrinsicsOCULUS.nimageSensorPixelResolution(address()); } + + /** Sets the specified value to the {@link XrExternalCameraIntrinsicsOCULUS#lastChangeTime} field. */ + public XrExternalCameraIntrinsicsOCULUS.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrExternalCameraIntrinsicsOCULUS.nlastChangeTime(address(), value); return this; } + /** Copies the specified {@link XrFovf} to the {@link XrExternalCameraIntrinsicsOCULUS#fov} field. */ + public XrExternalCameraIntrinsicsOCULUS.Buffer fov(XrFovf value) { XrExternalCameraIntrinsicsOCULUS.nfov(address(), value); return this; } + /** Passes the {@link XrExternalCameraIntrinsicsOCULUS#fov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrExternalCameraIntrinsicsOCULUS.Buffer fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } + /** Sets the specified value to the {@link XrExternalCameraIntrinsicsOCULUS#virtualNearPlaneDistance} field. */ + public XrExternalCameraIntrinsicsOCULUS.Buffer virtualNearPlaneDistance(float value) { XrExternalCameraIntrinsicsOCULUS.nvirtualNearPlaneDistance(address(), value); return this; } + /** Sets the specified value to the {@link XrExternalCameraIntrinsicsOCULUS#virtualFarPlaneDistance} field. */ + public XrExternalCameraIntrinsicsOCULUS.Buffer virtualFarPlaneDistance(float value) { XrExternalCameraIntrinsicsOCULUS.nvirtualFarPlaneDistance(address(), value); return this; } + /** Copies the specified {@link XrExtent2Di} to the {@link XrExternalCameraIntrinsicsOCULUS#imageSensorPixelResolution} field. */ + public XrExternalCameraIntrinsicsOCULUS.Buffer imageSensorPixelResolution(XrExtent2Di value) { XrExternalCameraIntrinsicsOCULUS.nimageSensorPixelResolution(address(), value); return this; } + /** Passes the {@link XrExternalCameraIntrinsicsOCULUS#imageSensorPixelResolution} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrExternalCameraIntrinsicsOCULUS.Buffer imageSensorPixelResolution(java.util.function.Consumer consumer) { consumer.accept(imageSensorPixelResolution()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraOCULUS.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraOCULUS.java index e67ef11555..280c2a1984 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraOCULUS.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraOCULUS.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.OCULUSExternalCamera.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.OCULUSExternalCamera.*; + /** * Camera intrintics state. * @@ -42,8 +42,8 @@ * {@link XrExternalCameraIntrinsicsOCULUS XrExternalCameraIntrinsicsOCULUS} {@link #intrinsics}; * {@link XrExternalCameraExtrinsicsOCULUS XrExternalCameraExtrinsicsOCULUS} {@link #extrinsics}; * } - */ -public class XrExternalCameraOCULUS extends Struct implements NativeResource { + */ +public class XrExternalCameraOCULUS extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,38 +53,29 @@ public class XrExternalCameraOCULUS extends Struct imple /** The struct member offsets. */ public static final int - TYPE, - NEXT, - NAME, - INTRINSICS, - EXTRINSICS; + TYPE, + NEXT, + NAME, + INTRINSICS, + EXTRINSICS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __array(1, XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS), - __member(XrExternalCameraIntrinsicsOCULUS.SIZEOF, XrExternalCameraIntrinsicsOCULUS.ALIGNOF), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __array(1, XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS), + __member(XrExternalCameraIntrinsicsOCULUS.SIZEOF, XrExternalCameraIntrinsicsOCULUS.ALIGNOF), __member(XrExternalCameraExtrinsicsOCULUS.SIZEOF, XrExternalCameraExtrinsicsOCULUS.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - NAME = layout.offsetof(2); - INTRINSICS = layout.offsetof(3); - EXTRINSICS = layout.offsetof(4); - } - - protected XrExternalCameraOCULUS(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrExternalCameraOCULUS create(long address, @Nullable ByteBuffer container) { - return new XrExternalCameraOCULUS(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + NAME = layout.offsetof(2); + INTRINSICS = layout.offsetof(3); + EXTRINSICS = layout.offsetof(4); } /** @@ -99,38 +90,38 @@ public XrExternalCameraOCULUS(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()); } - /** a null-terminated UTF-8 string containing a camera identifier: VID (vendor ID), PID (product ID), and serial number */ - @NativeType("char[XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS]") - public ByteBuffer name() { return nname(address()); } - /** a null-terminated UTF-8 string containing a camera identifier: VID (vendor ID), PID (product ID), and serial number */ - @NativeType("char[XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS]") - public String nameString() { return nnameString(address()); } - /** the {@link XrExternalCameraIntrinsicsOCULUS} for the camera */ - public XrExternalCameraIntrinsicsOCULUS intrinsics() { return nintrinsics(address()); } - /** the {@link XrExternalCameraExtrinsicsOCULUS} for the camera */ - public XrExternalCameraExtrinsicsOCULUS extrinsics() { return nextrinsics(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrExternalCameraOCULUS type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link OCULUSExternalCamera#XR_TYPE_EXTERNAL_CAMERA_OCULUS TYPE_EXTERNAL_CAMERA_OCULUS} value to the {@link #type} field. */ - public XrExternalCameraOCULUS type$Default() { return type(OCULUSExternalCamera.XR_TYPE_EXTERNAL_CAMERA_OCULUS); } - /** Sets the specified value to the {@link #next} field. */ - public XrExternalCameraOCULUS next(@NativeType("void const *") 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 or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a null-terminated UTF-8 string containing a camera identifier: VID (vendor ID), PID (product ID), and serial number */ + @NativeType("char[XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS]") + public ByteBuffer name() { return nname(address()); } + /** a null-terminated UTF-8 string containing a camera identifier: VID (vendor ID), PID (product ID), and serial number */ + @NativeType("char[XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS]") + public String nameString() { return nnameString(address()); } + /** the {@link XrExternalCameraIntrinsicsOCULUS} for the camera */ + public XrExternalCameraIntrinsicsOCULUS intrinsics() { return nintrinsics(address()); } + /** the {@link XrExternalCameraExtrinsicsOCULUS} for the camera */ + public XrExternalCameraExtrinsicsOCULUS extrinsics() { return nextrinsics(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrExternalCameraOCULUS type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link OCULUSExternalCamera#XR_TYPE_EXTERNAL_CAMERA_OCULUS TYPE_EXTERNAL_CAMERA_OCULUS} value to the {@link #type} field. */ + public XrExternalCameraOCULUS type$Default() { return type(OCULUSExternalCamera.XR_TYPE_EXTERNAL_CAMERA_OCULUS); } + /** Sets the specified value to the {@link #next} field. */ + public XrExternalCameraOCULUS next(@NativeType("void const *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrExternalCameraOCULUS set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -151,29 +142,29 @@ public XrExternalCameraOCULUS set(XrExternalCameraOCULUS src) { /** Returns a new {@code XrExternalCameraOCULUS} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrExternalCameraOCULUS malloc() { - return new XrExternalCameraOCULUS(nmemAllocChecked(SIZEOF), null); + return wrap(XrExternalCameraOCULUS.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrExternalCameraOCULUS} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrExternalCameraOCULUS calloc() { - return new XrExternalCameraOCULUS(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrExternalCameraOCULUS.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrExternalCameraOCULUS} instance allocated with {@link BufferUtils}. */ public static XrExternalCameraOCULUS create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrExternalCameraOCULUS(memAddress(container), container); + return wrap(XrExternalCameraOCULUS.class, memAddress(container), container); } /** Returns a new {@code XrExternalCameraOCULUS} instance for the specified memory address. */ public static XrExternalCameraOCULUS create(long address) { - return new XrExternalCameraOCULUS(address, null); + return wrap(XrExternalCameraOCULUS.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrExternalCameraOCULUS createSafe(long address) { - return address == NULL ? null : new XrExternalCameraOCULUS(address, null); + return address == NULL ? null : wrap(XrExternalCameraOCULUS.class, address); } /** @@ -182,7 +173,7 @@ public static XrExternalCameraOCULUS createSafe(long address) { * @param capacity the buffer capacity */ public static XrExternalCameraOCULUS.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 XrExternalCameraOCULUS.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrExternalCameraOCULUS.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 XrExternalCameraOCULUS.Buffer calloc(int capacity) { */ public static XrExternalCameraOCULUS.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 XrExternalCameraOCULUS.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrExternalCameraOCULUS.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 XrExternalCameraOCULUS.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 XrExternalCameraOCULUS.Buffer createSafe(long address, int capacit * @param stack the stack from which to allocate */ public static XrExternalCameraOCULUS malloc(MemoryStack stack) { - return new XrExternalCameraOCULUS(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrExternalCameraOCULUS.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -235,7 +226,7 @@ public static XrExternalCameraOCULUS malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrExternalCameraOCULUS calloc(MemoryStack stack) { - return new XrExternalCameraOCULUS(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrExternalCameraOCULUS.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -245,7 +236,7 @@ public static XrExternalCameraOCULUS calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrExternalCameraOCULUS.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 XrExternalCameraOCULUS.Buffer malloc(int capacity, MemoryStack sta * @param capacity the buffer capacity */ public static XrExternalCameraOCULUS.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 + XrExternalCameraOCULUS.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrExternalCameraOCULUS.NEXT); } - /** Unsafe version of {@link #name}. */ - public static ByteBuffer nname(long struct) { return memByteBuffer(struct + XrExternalCameraOCULUS.NAME, XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS); } - /** Unsafe version of {@link #nameString}. */ - public static String nnameString(long struct) { return memUTF8(struct + XrExternalCameraOCULUS.NAME); } - /** Unsafe version of {@link #intrinsics}. */ - public static XrExternalCameraIntrinsicsOCULUS nintrinsics(long struct) { return XrExternalCameraIntrinsicsOCULUS.create(struct + XrExternalCameraOCULUS.INTRINSICS); } - /** Unsafe version of {@link #extrinsics}. */ - public static XrExternalCameraExtrinsicsOCULUS nextrinsics(long struct) { return XrExternalCameraExtrinsicsOCULUS.create(struct + XrExternalCameraOCULUS.EXTRINSICS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrExternalCameraOCULUS.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrExternalCameraOCULUS.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrExternalCameraOCULUS.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrExternalCameraOCULUS.NEXT); } + /** Unsafe version of {@link #name}. */ + public static ByteBuffer nname(long struct) { return memByteBuffer(struct + XrExternalCameraOCULUS.NAME, XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS); } + /** Unsafe version of {@link #nameString}. */ + public static String nnameString(long struct) { return memUTF8(struct + XrExternalCameraOCULUS.NAME); } + /** Unsafe version of {@link #intrinsics}. */ + public static XrExternalCameraIntrinsicsOCULUS nintrinsics(long struct) { return XrExternalCameraIntrinsicsOCULUS.create(struct + XrExternalCameraOCULUS.INTRINSICS); } + /** Unsafe version of {@link #extrinsics}. */ + public static XrExternalCameraExtrinsicsOCULUS nextrinsics(long struct) { return XrExternalCameraExtrinsicsOCULUS.create(struct + XrExternalCameraOCULUS.EXTRINSICS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrExternalCameraOCULUS.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrExternalCameraOCULUS.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrExternalCameraOCULUS} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -288,9 +279,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrExternalCameraOCULUS.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 XrExternalCameraOCULUS#SIZEOF}, and its mark will be undefined.

    + * by {@link XrExternalCameraOCULUS#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -315,30 +306,30 @@ protected Buffer self() { protected XrExternalCameraOCULUS getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrExternalCameraOCULUS#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrExternalCameraOCULUS.ntype(address()); } - /** @return the value of the {@link XrExternalCameraOCULUS#next} field. */ - @NativeType("void const *") - public long next() { return XrExternalCameraOCULUS.nnext(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrExternalCameraOCULUS#name} field. */ - @NativeType("char[XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS]") - public ByteBuffer name() { return XrExternalCameraOCULUS.nname(address()); } - /** @return the null-terminated string stored in the {@link XrExternalCameraOCULUS#name} field. */ - @NativeType("char[XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS]") - public String nameString() { return XrExternalCameraOCULUS.nnameString(address()); } - /** @return a {@link XrExternalCameraIntrinsicsOCULUS} view of the {@link XrExternalCameraOCULUS#intrinsics} field. */ - public XrExternalCameraIntrinsicsOCULUS intrinsics() { return XrExternalCameraOCULUS.nintrinsics(address()); } - /** @return a {@link XrExternalCameraExtrinsicsOCULUS} view of the {@link XrExternalCameraOCULUS#extrinsics} field. */ - public XrExternalCameraExtrinsicsOCULUS extrinsics() { return XrExternalCameraOCULUS.nextrinsics(address()); } - - /** Sets the specified value to the {@link XrExternalCameraOCULUS#type} field. */ - public XrExternalCameraOCULUS.Buffer type(@NativeType("XrStructureType") int value) { XrExternalCameraOCULUS.ntype(address(), value); return this; } - /** Sets the {@link OCULUSExternalCamera#XR_TYPE_EXTERNAL_CAMERA_OCULUS TYPE_EXTERNAL_CAMERA_OCULUS} value to the {@link XrExternalCameraOCULUS#type} field. */ - public XrExternalCameraOCULUS.Buffer type$Default() { return type(OCULUSExternalCamera.XR_TYPE_EXTERNAL_CAMERA_OCULUS); } - /** Sets the specified value to the {@link XrExternalCameraOCULUS#next} field. */ - public XrExternalCameraOCULUS.Buffer next(@NativeType("void const *") long value) { XrExternalCameraOCULUS.nnext(address(), value); return this; } + + /** @return the value of the {@link XrExternalCameraOCULUS#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrExternalCameraOCULUS.ntype(address()); } + /** @return the value of the {@link XrExternalCameraOCULUS#next} field. */ + @NativeType("void const *") + public long next() { return XrExternalCameraOCULUS.nnext(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrExternalCameraOCULUS#name} field. */ + @NativeType("char[XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS]") + public ByteBuffer name() { return XrExternalCameraOCULUS.nname(address()); } + /** @return the null-terminated string stored in the {@link XrExternalCameraOCULUS#name} field. */ + @NativeType("char[XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS]") + public String nameString() { return XrExternalCameraOCULUS.nnameString(address()); } + /** @return a {@link XrExternalCameraIntrinsicsOCULUS} view of the {@link XrExternalCameraOCULUS#intrinsics} field. */ + public XrExternalCameraIntrinsicsOCULUS intrinsics() { return XrExternalCameraOCULUS.nintrinsics(address()); } + /** @return a {@link XrExternalCameraExtrinsicsOCULUS} view of the {@link XrExternalCameraOCULUS#extrinsics} field. */ + public XrExternalCameraExtrinsicsOCULUS extrinsics() { return XrExternalCameraOCULUS.nextrinsics(address()); } + + /** Sets the specified value to the {@link XrExternalCameraOCULUS#type} field. */ + public XrExternalCameraOCULUS.Buffer type(@NativeType("XrStructureType") int value) { XrExternalCameraOCULUS.ntype(address(), value); return this; } + /** Sets the {@link OCULUSExternalCamera#XR_TYPE_EXTERNAL_CAMERA_OCULUS TYPE_EXTERNAL_CAMERA_OCULUS} value to the {@link XrExternalCameraOCULUS#type} field. */ + public XrExternalCameraOCULUS.Buffer type$Default() { return type(OCULUSExternalCamera.XR_TYPE_EXTERNAL_CAMERA_OCULUS); } + /** Sets the specified value to the {@link XrExternalCameraOCULUS#next} field. */ + public XrExternalCameraOCULUS.Buffer next(@NativeType("void const *") long value) { XrExternalCameraOCULUS.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazeFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazeFB.java index 9a03be8eba..1055b1fc94 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazeFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazeFB.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 eye gaze direction. * @@ -44,8 +44,8 @@ * {@link XrPosef XrPosef} {@link #gazePose}; * float {@link #gazeConfidence}; * } - */ -public class XrEyeGazeFB extends Struct implements NativeResource { + */ +public class XrEyeGazeFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,32 +55,23 @@ public class XrEyeGazeFB extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - ISVALID, - GAZEPOSE, - GAZECONFIDENCE; + ISVALID, + GAZEPOSE, + GAZECONFIDENCE; static { - Layout layout = __struct( - __member(4), - __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), + Layout layout = __struct( + __member(4), + __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - ISVALID = layout.offsetof(0); - GAZEPOSE = layout.offsetof(1); - GAZECONFIDENCE = layout.offsetof(2); - } - - protected XrEyeGazeFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrEyeGazeFB create(long address, @Nullable ByteBuffer container) { - return new XrEyeGazeFB(address, container); + ISVALID = layout.offsetof(0); + GAZEPOSE = layout.offsetof(1); + GAZECONFIDENCE = layout.offsetof(2); } /** @@ -95,33 +86,33 @@ public XrEyeGazeFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** an {@code XrBool32} indicating if the returned gazePose is valid. Callers should check the validity of pose prior to use. */ - @NativeType("XrBool32") - public boolean isValid() { return nisValid(address()) != 0; } - /** an {@link XrPosef} describing the position and orientation of the user’s eye. The pose is represented in the coordinate system provided by {@link XrEyeGazesInfoFB}{@code ::baseSpace}. */ - public XrPosef gazePose() { return ngazePose(address()); } - /** a {@code float} value between 0 and 1 that represents the confidence for eye pose. A value of 0 represents no confidence in the pose returned, and a value of 1 means maximum confidence in the returned eye pose. */ - public float gazeConfidence() { return ngazeConfidence(address()); } - - /** Sets the specified value to the {@link #isValid} field. */ - public XrEyeGazeFB isValid(@NativeType("XrBool32") boolean value) { nisValid(address(), value ? 1 : 0); return this; } - /** Copies the specified {@link XrPosef} to the {@link #gazePose} field. */ - public XrEyeGazeFB gazePose(XrPosef value) { ngazePose(address(), value); return this; } - /** Passes the {@link #gazePose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrEyeGazeFB gazePose(java.util.function.Consumer consumer) { consumer.accept(gazePose()); return this; } - /** Sets the specified value to the {@link #gazeConfidence} field. */ - public XrEyeGazeFB gazeConfidence(float value) { ngazeConfidence(address(), value); return this; } + + /** an {@code XrBool32} indicating if the returned gazePose is valid. Callers should check the validity of pose prior to use. */ + @NativeType("XrBool32") + public boolean isValid() { return nisValid(address()) != 0; } + /** an {@link XrPosef} describing the position and orientation of the user’s eye. The pose is represented in the coordinate system provided by {@link XrEyeGazesInfoFB}{@code ::baseSpace}. */ + public XrPosef gazePose() { return ngazePose(address()); } + /** a {@code float} value between 0 and 1 that represents the confidence for eye pose. A value of 0 represents no confidence in the pose returned, and a value of 1 means maximum confidence in the returned eye pose. */ + public float gazeConfidence() { return ngazeConfidence(address()); } + + /** Sets the specified value to the {@link #isValid} field. */ + public XrEyeGazeFB isValid(@NativeType("XrBool32") boolean value) { nisValid(address(), value ? 1 : 0); return this; } + /** Copies the specified {@link XrPosef} to the {@link #gazePose} field. */ + public XrEyeGazeFB gazePose(XrPosef value) { ngazePose(address(), value); return this; } + /** Passes the {@link #gazePose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrEyeGazeFB gazePose(java.util.function.Consumer consumer) { consumer.accept(gazePose()); return this; } + /** Sets the specified value to the {@link #gazeConfidence} field. */ + public XrEyeGazeFB gazeConfidence(float value) { ngazeConfidence(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrEyeGazeFB set( - boolean isValid, - XrPosef gazePose, + boolean isValid, + XrPosef gazePose, float gazeConfidence - ) { - isValid(isValid); - gazePose(gazePose); - gazeConfidence(gazeConfidence); + ) { + isValid(isValid); + gazePose(gazePose); + gazeConfidence(gazeConfidence); return this; } @@ -142,29 +133,29 @@ public XrEyeGazeFB set(XrEyeGazeFB src) { /** Returns a new {@code XrEyeGazeFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrEyeGazeFB malloc() { - return new XrEyeGazeFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrEyeGazeFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrEyeGazeFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrEyeGazeFB calloc() { - return new XrEyeGazeFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrEyeGazeFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrEyeGazeFB} instance allocated with {@link BufferUtils}. */ public static XrEyeGazeFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrEyeGazeFB(memAddress(container), container); + return wrap(XrEyeGazeFB.class, memAddress(container), container); } /** Returns a new {@code XrEyeGazeFB} instance for the specified memory address. */ public static XrEyeGazeFB create(long address) { - return new XrEyeGazeFB(address, null); + return wrap(XrEyeGazeFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrEyeGazeFB createSafe(long address) { - return address == NULL ? null : new XrEyeGazeFB(address, null); + return address == NULL ? null : wrap(XrEyeGazeFB.class, address); } /** @@ -173,7 +164,7 @@ public static XrEyeGazeFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrEyeGazeFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -182,7 +173,7 @@ public static XrEyeGazeFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrEyeGazeFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -192,7 +183,7 @@ public static XrEyeGazeFB.Buffer calloc(int capacity) { */ public static XrEyeGazeFB.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); } /** @@ -202,13 +193,13 @@ public static XrEyeGazeFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrEyeGazeFB.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 XrEyeGazeFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -217,7 +208,7 @@ public static XrEyeGazeFB.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrEyeGazeFB malloc(MemoryStack stack) { - return new XrEyeGazeFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrEyeGazeFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -226,7 +217,7 @@ public static XrEyeGazeFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrEyeGazeFB calloc(MemoryStack stack) { - return new XrEyeGazeFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrEyeGazeFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -236,7 +227,7 @@ public static XrEyeGazeFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrEyeGazeFB.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); } /** @@ -246,26 +237,26 @@ public static XrEyeGazeFB.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrEyeGazeFB.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 #isValid}. */ - public static int nisValid(long struct) { return UNSAFE.getInt(null, struct + XrEyeGazeFB.ISVALID); } - /** Unsafe version of {@link #gazePose}. */ - public static XrPosef ngazePose(long struct) { return XrPosef.create(struct + XrEyeGazeFB.GAZEPOSE); } - /** Unsafe version of {@link #gazeConfidence}. */ - public static float ngazeConfidence(long struct) { return UNSAFE.getFloat(null, struct + XrEyeGazeFB.GAZECONFIDENCE); } - - /** Unsafe version of {@link #isValid(boolean) isValid}. */ - public static void nisValid(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeGazeFB.ISVALID, value); } - /** Unsafe version of {@link #gazePose(XrPosef) gazePose}. */ - public static void ngazePose(long struct, XrPosef value) { memCopy(value.address(), struct + XrEyeGazeFB.GAZEPOSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #gazeConfidence(float) gazeConfidence}. */ - public static void ngazeConfidence(long struct, float value) { UNSAFE.putFloat(null, struct + XrEyeGazeFB.GAZECONFIDENCE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #isValid}. */ + public static int nisValid(long struct) { return UNSAFE.getInt(null, struct + XrEyeGazeFB.ISVALID); } + /** Unsafe version of {@link #gazePose}. */ + public static XrPosef ngazePose(long struct) { return XrPosef.create(struct + XrEyeGazeFB.GAZEPOSE); } + /** Unsafe version of {@link #gazeConfidence}. */ + public static float ngazeConfidence(long struct) { return UNSAFE.getFloat(null, struct + XrEyeGazeFB.GAZECONFIDENCE); } + + /** Unsafe version of {@link #isValid(boolean) isValid}. */ + public static void nisValid(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeGazeFB.ISVALID, value); } + /** Unsafe version of {@link #gazePose(XrPosef) gazePose}. */ + public static void ngazePose(long struct, XrPosef value) { memCopy(value.address(), struct + XrEyeGazeFB.GAZEPOSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #gazeConfidence(float) gazeConfidence}. */ + public static void ngazeConfidence(long struct, float value) { UNSAFE.putFloat(null, struct + XrEyeGazeFB.GAZECONFIDENCE, value); } + + // ----------------------------------- /** An array of {@link XrEyeGazeFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -275,9 +266,9 @@ public static class Buffer extends StructBuffer implements /** * Creates a new {@code XrEyeGazeFB.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 XrEyeGazeFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEyeGazeFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -302,23 +293,23 @@ protected Buffer self() { protected XrEyeGazeFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEyeGazeFB#isValid} field. */ - @NativeType("XrBool32") - public boolean isValid() { return XrEyeGazeFB.nisValid(address()) != 0; } - /** @return a {@link XrPosef} view of the {@link XrEyeGazeFB#gazePose} field. */ - public XrPosef gazePose() { return XrEyeGazeFB.ngazePose(address()); } - /** @return the value of the {@link XrEyeGazeFB#gazeConfidence} field. */ - public float gazeConfidence() { return XrEyeGazeFB.ngazeConfidence(address()); } - - /** Sets the specified value to the {@link XrEyeGazeFB#isValid} field. */ - public XrEyeGazeFB.Buffer isValid(@NativeType("XrBool32") boolean value) { XrEyeGazeFB.nisValid(address(), value ? 1 : 0); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrEyeGazeFB#gazePose} field. */ - public XrEyeGazeFB.Buffer gazePose(XrPosef value) { XrEyeGazeFB.ngazePose(address(), value); return this; } - /** Passes the {@link XrEyeGazeFB#gazePose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrEyeGazeFB.Buffer gazePose(java.util.function.Consumer consumer) { consumer.accept(gazePose()); return this; } - /** Sets the specified value to the {@link XrEyeGazeFB#gazeConfidence} field. */ - public XrEyeGazeFB.Buffer gazeConfidence(float value) { XrEyeGazeFB.ngazeConfidence(address(), value); return this; } + + /** @return the value of the {@link XrEyeGazeFB#isValid} field. */ + @NativeType("XrBool32") + public boolean isValid() { return XrEyeGazeFB.nisValid(address()) != 0; } + /** @return a {@link XrPosef} view of the {@link XrEyeGazeFB#gazePose} field. */ + public XrPosef gazePose() { return XrEyeGazeFB.ngazePose(address()); } + /** @return the value of the {@link XrEyeGazeFB#gazeConfidence} field. */ + public float gazeConfidence() { return XrEyeGazeFB.ngazeConfidence(address()); } + + /** Sets the specified value to the {@link XrEyeGazeFB#isValid} field. */ + public XrEyeGazeFB.Buffer isValid(@NativeType("XrBool32") boolean value) { XrEyeGazeFB.nisValid(address(), value ? 1 : 0); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrEyeGazeFB#gazePose} field. */ + public XrEyeGazeFB.Buffer gazePose(XrPosef value) { XrEyeGazeFB.ngazePose(address(), value); return this; } + /** Passes the {@link XrEyeGazeFB#gazePose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrEyeGazeFB.Buffer gazePose(java.util.function.Consumer consumer) { consumer.accept(gazePose()); return this; } + /** Sets the specified value to the {@link XrEyeGazeFB#gazeConfidence} field. */ + public XrEyeGazeFB.Buffer gazeConfidence(float value) { XrEyeGazeFB.ngazeConfidence(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazeSampleTimeEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazeSampleTimeEXT.java index 2c04430c03..7f12fa87c5 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazeSampleTimeEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazeSampleTimeEXT.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.*; + /** * Eye gaze sample time structure. * @@ -34,8 +34,8 @@ * void * {@link #next}; * XrTime {@link #time}; * } - */ -public class XrEyeGazeSampleTimeEXT extends Struct implements NativeResource { + */ +public class XrEyeGazeSampleTimeEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -45,32 +45,23 @@ public class XrEyeGazeSampleTimeEXT extends Struct imple /** The struct member offsets. */ public static final int - TYPE, - NEXT, - TIME; + TYPE, + NEXT, + TIME; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - TIME = layout.offsetof(2); - } - - protected XrEyeGazeSampleTimeEXT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrEyeGazeSampleTimeEXT create(long address, @Nullable ByteBuffer container) { - return new XrEyeGazeSampleTimeEXT(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + TIME = layout.offsetof(2); } /** @@ -85,35 +76,35 @@ public XrEyeGazeSampleTimeEXT(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()); } - /** when in time the eye gaze pose is expressed. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrEyeGazeSampleTimeEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTEyeGazeInteraction#XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT TYPE_EYE_GAZE_SAMPLE_TIME_EXT} value to the {@link #type} field. */ - public XrEyeGazeSampleTimeEXT type$Default() { return type(EXTEyeGazeInteraction.XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrEyeGazeSampleTimeEXT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrEyeGazeSampleTimeEXT 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()); } + /** when in time the eye gaze pose is expressed. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrEyeGazeSampleTimeEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link EXTEyeGazeInteraction#XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT TYPE_EYE_GAZE_SAMPLE_TIME_EXT} value to the {@link #type} field. */ + public XrEyeGazeSampleTimeEXT type$Default() { return type(EXTEyeGazeInteraction.XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT); } + /** Sets the specified value to the {@link #next} field. */ + public XrEyeGazeSampleTimeEXT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrEyeGazeSampleTimeEXT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrEyeGazeSampleTimeEXT set( - int type, - long next, + int type, + long next, long time - ) { - type(type); - next(next); - time(time); + ) { + type(type); + next(next); + time(time); return this; } @@ -134,29 +125,29 @@ public XrEyeGazeSampleTimeEXT set(XrEyeGazeSampleTimeEXT src) { /** Returns a new {@code XrEyeGazeSampleTimeEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrEyeGazeSampleTimeEXT malloc() { - return new XrEyeGazeSampleTimeEXT(nmemAllocChecked(SIZEOF), null); + return wrap(XrEyeGazeSampleTimeEXT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrEyeGazeSampleTimeEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrEyeGazeSampleTimeEXT calloc() { - return new XrEyeGazeSampleTimeEXT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrEyeGazeSampleTimeEXT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrEyeGazeSampleTimeEXT} instance allocated with {@link BufferUtils}. */ public static XrEyeGazeSampleTimeEXT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrEyeGazeSampleTimeEXT(memAddress(container), container); + return wrap(XrEyeGazeSampleTimeEXT.class, memAddress(container), container); } /** Returns a new {@code XrEyeGazeSampleTimeEXT} instance for the specified memory address. */ public static XrEyeGazeSampleTimeEXT create(long address) { - return new XrEyeGazeSampleTimeEXT(address, null); + return wrap(XrEyeGazeSampleTimeEXT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrEyeGazeSampleTimeEXT createSafe(long address) { - return address == NULL ? null : new XrEyeGazeSampleTimeEXT(address, null); + return address == NULL ? null : wrap(XrEyeGazeSampleTimeEXT.class, address); } /** @@ -165,7 +156,7 @@ public static XrEyeGazeSampleTimeEXT createSafe(long address) { * @param capacity the buffer capacity */ public static XrEyeGazeSampleTimeEXT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -174,7 +165,7 @@ public static XrEyeGazeSampleTimeEXT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrEyeGazeSampleTimeEXT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -184,7 +175,7 @@ public static XrEyeGazeSampleTimeEXT.Buffer calloc(int capacity) { */ public static XrEyeGazeSampleTimeEXT.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); } /** @@ -194,13 +185,13 @@ public static XrEyeGazeSampleTimeEXT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrEyeGazeSampleTimeEXT.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 XrEyeGazeSampleTimeEXT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -209,7 +200,7 @@ public static XrEyeGazeSampleTimeEXT.Buffer createSafe(long address, int capacit * @param stack the stack from which to allocate */ public static XrEyeGazeSampleTimeEXT malloc(MemoryStack stack) { - return new XrEyeGazeSampleTimeEXT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrEyeGazeSampleTimeEXT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -218,7 +209,7 @@ public static XrEyeGazeSampleTimeEXT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrEyeGazeSampleTimeEXT calloc(MemoryStack stack) { - return new XrEyeGazeSampleTimeEXT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrEyeGazeSampleTimeEXT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -228,7 +219,7 @@ public static XrEyeGazeSampleTimeEXT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrEyeGazeSampleTimeEXT.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); } /** @@ -238,26 +229,26 @@ public static XrEyeGazeSampleTimeEXT.Buffer malloc(int capacity, MemoryStack sta * @param capacity the buffer capacity */ public static XrEyeGazeSampleTimeEXT.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 + XrEyeGazeSampleTimeEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrEyeGazeSampleTimeEXT.NEXT); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrEyeGazeSampleTimeEXT.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeGazeSampleTimeEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrEyeGazeSampleTimeEXT.NEXT, value); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrEyeGazeSampleTimeEXT.TIME, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEyeGazeSampleTimeEXT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrEyeGazeSampleTimeEXT.NEXT); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrEyeGazeSampleTimeEXT.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeGazeSampleTimeEXT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrEyeGazeSampleTimeEXT.NEXT, value); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrEyeGazeSampleTimeEXT.TIME, value); } + + // ----------------------------------- /** An array of {@link XrEyeGazeSampleTimeEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -267,9 +258,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrEyeGazeSampleTimeEXT.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 XrEyeGazeSampleTimeEXT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEyeGazeSampleTimeEXT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -294,25 +285,25 @@ protected Buffer self() { protected XrEyeGazeSampleTimeEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEyeGazeSampleTimeEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEyeGazeSampleTimeEXT.ntype(address()); } - /** @return the value of the {@link XrEyeGazeSampleTimeEXT#next} field. */ - @NativeType("void *") - public long next() { return XrEyeGazeSampleTimeEXT.nnext(address()); } - /** @return the value of the {@link XrEyeGazeSampleTimeEXT#time} field. */ - @NativeType("XrTime") - public long time() { return XrEyeGazeSampleTimeEXT.ntime(address()); } - - /** Sets the specified value to the {@link XrEyeGazeSampleTimeEXT#type} field. */ - public XrEyeGazeSampleTimeEXT.Buffer type(@NativeType("XrStructureType") int value) { XrEyeGazeSampleTimeEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTEyeGazeInteraction#XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT TYPE_EYE_GAZE_SAMPLE_TIME_EXT} value to the {@link XrEyeGazeSampleTimeEXT#type} field. */ - public XrEyeGazeSampleTimeEXT.Buffer type$Default() { return type(EXTEyeGazeInteraction.XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT); } - /** Sets the specified value to the {@link XrEyeGazeSampleTimeEXT#next} field. */ - public XrEyeGazeSampleTimeEXT.Buffer next(@NativeType("void *") long value) { XrEyeGazeSampleTimeEXT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrEyeGazeSampleTimeEXT#time} field. */ - public XrEyeGazeSampleTimeEXT.Buffer time(@NativeType("XrTime") long value) { XrEyeGazeSampleTimeEXT.ntime(address(), value); return this; } + + /** @return the value of the {@link XrEyeGazeSampleTimeEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEyeGazeSampleTimeEXT.ntype(address()); } + /** @return the value of the {@link XrEyeGazeSampleTimeEXT#next} field. */ + @NativeType("void *") + public long next() { return XrEyeGazeSampleTimeEXT.nnext(address()); } + /** @return the value of the {@link XrEyeGazeSampleTimeEXT#time} field. */ + @NativeType("XrTime") + public long time() { return XrEyeGazeSampleTimeEXT.ntime(address()); } + + /** Sets the specified value to the {@link XrEyeGazeSampleTimeEXT#type} field. */ + public XrEyeGazeSampleTimeEXT.Buffer type(@NativeType("XrStructureType") int value) { XrEyeGazeSampleTimeEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTEyeGazeInteraction#XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT TYPE_EYE_GAZE_SAMPLE_TIME_EXT} value to the {@link XrEyeGazeSampleTimeEXT#type} field. */ + public XrEyeGazeSampleTimeEXT.Buffer type$Default() { return type(EXTEyeGazeInteraction.XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT); } + /** Sets the specified value to the {@link XrEyeGazeSampleTimeEXT#next} field. */ + public XrEyeGazeSampleTimeEXT.Buffer next(@NativeType("void *") long value) { XrEyeGazeSampleTimeEXT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrEyeGazeSampleTimeEXT#time} field. */ + public XrEyeGazeSampleTimeEXT.Buffer time(@NativeType("XrTime") long value) { XrEyeGazeSampleTimeEXT.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazesFB.java index 6c30dbb03c..f7ce470776 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazesFB.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.*; + /** * Returns the eye gaze directions. * @@ -40,8 +40,8 @@ * {@link XrEyeGazeFB XrEyeGazeFB} {@link #gaze}; * XrTime {@link #time}; * } - */ -public class XrEyeGazesFB extends Struct implements NativeResource { + */ +public class XrEyeGazesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,35 +51,26 @@ public class XrEyeGazesFB extends Struct implements NativeResource /** The struct member offsets. */ public static final int - TYPE, - NEXT, - GAZE, - TIME; + TYPE, + NEXT, + GAZE, + TIME; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(XrEyeGazeFB.SIZEOF, XrEyeGazeFB.ALIGNOF), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(XrEyeGazeFB.SIZEOF, XrEyeGazeFB.ALIGNOF), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - GAZE = layout.offsetof(2); - TIME = layout.offsetof(3); - } - - protected XrEyeGazesFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrEyeGazesFB create(long address, @Nullable ByteBuffer container) { - return new XrEyeGazesFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + GAZE = layout.offsetof(2); + TIME = layout.offsetof(3); } /** @@ -94,43 +85,43 @@ public XrEyeGazesFB(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 array of {@link XrEyeGazeFB} receiving the returned eye gaze directions. */ - public XrEyeGazeFB gaze() { return ngaze(address()); } - /** an {@code XrTime} time at which the returned eye gaze is tracked or extrapolated to. Equals the time for which the eye gaze was 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 XrEyeGazesFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_GAZES_FB TYPE_EYE_GAZES_FB} value to the {@link #type} field. */ - public XrEyeGazesFB type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_GAZES_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrEyeGazesFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Copies the specified {@link XrEyeGazeFB} to the {@link #gaze} field. */ - public XrEyeGazesFB gaze(XrEyeGazeFB value) { ngaze(address(), value); return this; } - /** Passes the {@link #gaze} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrEyeGazesFB gaze(java.util.function.Consumer consumer) { consumer.accept(gaze()); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrEyeGazesFB 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 array of {@link XrEyeGazeFB} receiving the returned eye gaze directions. */ + public XrEyeGazeFB gaze() { return ngaze(address()); } + /** an {@code XrTime} time at which the returned eye gaze is tracked or extrapolated to. Equals the time for which the eye gaze was 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 XrEyeGazesFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_GAZES_FB TYPE_EYE_GAZES_FB} value to the {@link #type} field. */ + public XrEyeGazesFB type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_GAZES_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrEyeGazesFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrEyeGazeFB} to the {@link #gaze} field. */ + public XrEyeGazesFB gaze(XrEyeGazeFB value) { ngaze(address(), value); return this; } + /** Passes the {@link #gaze} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrEyeGazesFB gaze(java.util.function.Consumer consumer) { consumer.accept(gaze()); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrEyeGazesFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrEyeGazesFB set( - int type, - long next, - XrEyeGazeFB gaze, + int type, + long next, + XrEyeGazeFB gaze, long time - ) { - type(type); - next(next); - gaze(gaze); - time(time); + ) { + type(type); + next(next); + gaze(gaze); + time(time); return this; } @@ -151,29 +142,29 @@ public XrEyeGazesFB set(XrEyeGazesFB src) { /** Returns a new {@code XrEyeGazesFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrEyeGazesFB malloc() { - return new XrEyeGazesFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrEyeGazesFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrEyeGazesFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrEyeGazesFB calloc() { - return new XrEyeGazesFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrEyeGazesFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrEyeGazesFB} instance allocated with {@link BufferUtils}. */ public static XrEyeGazesFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrEyeGazesFB(memAddress(container), container); + return wrap(XrEyeGazesFB.class, memAddress(container), container); } /** Returns a new {@code XrEyeGazesFB} instance for the specified memory address. */ public static XrEyeGazesFB create(long address) { - return new XrEyeGazesFB(address, null); + return wrap(XrEyeGazesFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrEyeGazesFB createSafe(long address) { - return address == NULL ? null : new XrEyeGazesFB(address, null); + return address == NULL ? null : wrap(XrEyeGazesFB.class, address); } /** @@ -182,7 +173,7 @@ public static XrEyeGazesFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrEyeGazesFB.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 XrEyeGazesFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrEyeGazesFB.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 XrEyeGazesFB.Buffer calloc(int capacity) { */ public static XrEyeGazesFB.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 XrEyeGazesFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrEyeGazesFB.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 XrEyeGazesFB.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 XrEyeGazesFB.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrEyeGazesFB malloc(MemoryStack stack) { - return new XrEyeGazesFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrEyeGazesFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -235,7 +226,7 @@ public static XrEyeGazesFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrEyeGazesFB calloc(MemoryStack stack) { - return new XrEyeGazesFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrEyeGazesFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -245,7 +236,7 @@ public static XrEyeGazesFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrEyeGazesFB.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 XrEyeGazesFB.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrEyeGazesFB.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 + XrEyeGazesFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrEyeGazesFB.NEXT); } - /** Unsafe version of {@link #gaze}. */ - public static XrEyeGazeFB ngaze(long struct) { return XrEyeGazeFB.create(struct + XrEyeGazesFB.GAZE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrEyeGazesFB.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeGazesFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrEyeGazesFB.NEXT, value); } - /** Unsafe version of {@link #gaze(XrEyeGazeFB) gaze}. */ - public static void ngaze(long struct, XrEyeGazeFB value) { memCopy(value.address(), struct + XrEyeGazesFB.GAZE, XrEyeGazeFB.SIZEOF); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrEyeGazesFB.TIME, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEyeGazesFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrEyeGazesFB.NEXT); } + /** Unsafe version of {@link #gaze}. */ + public static XrEyeGazeFB ngaze(long struct) { return XrEyeGazeFB.create(struct + XrEyeGazesFB.GAZE); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrEyeGazesFB.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeGazesFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrEyeGazesFB.NEXT, value); } + /** Unsafe version of {@link #gaze(XrEyeGazeFB) gaze}. */ + public static void ngaze(long struct, XrEyeGazeFB value) { memCopy(value.address(), struct + XrEyeGazesFB.GAZE, XrEyeGazeFB.SIZEOF); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrEyeGazesFB.TIME, value); } + + // ----------------------------------- /** An array of {@link XrEyeGazesFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -288,9 +279,9 @@ public static class Buffer extends StructBuffer implements /** * Creates a new {@code XrEyeGazesFB.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 XrEyeGazesFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEyeGazesFB#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 XrEyeGazesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEyeGazesFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEyeGazesFB.ntype(address()); } - /** @return the value of the {@link XrEyeGazesFB#next} field. */ - @NativeType("void *") - public long next() { return XrEyeGazesFB.nnext(address()); } - /** @return a {@link XrEyeGazeFB} view of the {@link XrEyeGazesFB#gaze} field. */ - public XrEyeGazeFB gaze() { return XrEyeGazesFB.ngaze(address()); } - /** @return the value of the {@link XrEyeGazesFB#time} field. */ - @NativeType("XrTime") - public long time() { return XrEyeGazesFB.ntime(address()); } - - /** Sets the specified value to the {@link XrEyeGazesFB#type} field. */ - public XrEyeGazesFB.Buffer type(@NativeType("XrStructureType") int value) { XrEyeGazesFB.ntype(address(), value); return this; } - /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_GAZES_FB TYPE_EYE_GAZES_FB} value to the {@link XrEyeGazesFB#type} field. */ - public XrEyeGazesFB.Buffer type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_GAZES_FB); } - /** Sets the specified value to the {@link XrEyeGazesFB#next} field. */ - public XrEyeGazesFB.Buffer next(@NativeType("void *") long value) { XrEyeGazesFB.nnext(address(), value); return this; } - /** Copies the specified {@link XrEyeGazeFB} to the {@link XrEyeGazesFB#gaze} field. */ - public XrEyeGazesFB.Buffer gaze(XrEyeGazeFB value) { XrEyeGazesFB.ngaze(address(), value); return this; } - /** Passes the {@link XrEyeGazesFB#gaze} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrEyeGazesFB.Buffer gaze(java.util.function.Consumer consumer) { consumer.accept(gaze()); return this; } - /** Sets the specified value to the {@link XrEyeGazesFB#time} field. */ - public XrEyeGazesFB.Buffer time(@NativeType("XrTime") long value) { XrEyeGazesFB.ntime(address(), value); return this; } + + /** @return the value of the {@link XrEyeGazesFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEyeGazesFB.ntype(address()); } + /** @return the value of the {@link XrEyeGazesFB#next} field. */ + @NativeType("void *") + public long next() { return XrEyeGazesFB.nnext(address()); } + /** @return a {@link XrEyeGazeFB} view of the {@link XrEyeGazesFB#gaze} field. */ + public XrEyeGazeFB gaze() { return XrEyeGazesFB.ngaze(address()); } + /** @return the value of the {@link XrEyeGazesFB#time} field. */ + @NativeType("XrTime") + public long time() { return XrEyeGazesFB.ntime(address()); } + + /** Sets the specified value to the {@link XrEyeGazesFB#type} field. */ + public XrEyeGazesFB.Buffer type(@NativeType("XrStructureType") int value) { XrEyeGazesFB.ntype(address(), value); return this; } + /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_GAZES_FB TYPE_EYE_GAZES_FB} value to the {@link XrEyeGazesFB#type} field. */ + public XrEyeGazesFB.Buffer type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_GAZES_FB); } + /** Sets the specified value to the {@link XrEyeGazesFB#next} field. */ + public XrEyeGazesFB.Buffer next(@NativeType("void *") long value) { XrEyeGazesFB.nnext(address(), value); return this; } + /** Copies the specified {@link XrEyeGazeFB} to the {@link XrEyeGazesFB#gaze} field. */ + public XrEyeGazesFB.Buffer gaze(XrEyeGazeFB value) { XrEyeGazesFB.ngaze(address(), value); return this; } + /** Passes the {@link XrEyeGazesFB#gaze} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrEyeGazesFB.Buffer gaze(java.util.function.Consumer consumer) { consumer.accept(gaze()); return this; } + /** Sets the specified value to the {@link XrEyeGazesFB#time} field. */ + public XrEyeGazesFB.Buffer time(@NativeType("XrTime") long value) { XrEyeGazesFB.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazesInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazesInfoFB.java index 3d302195b9..350984d100 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazesInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazesInfoFB.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 get eye gaze. * @@ -45,8 +45,8 @@ * XrSpace {@link #baseSpace}; * XrTime {@link #time}; * } - */ -public class XrEyeGazesInfoFB extends Struct implements NativeResource { + */ +public class XrEyeGazesInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,35 +56,26 @@ public class XrEyeGazesInfoFB extends Struct implements Native /** 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 XrEyeGazesInfoFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrEyeGazesInfoFB create(long address, @Nullable ByteBuffer container) { - return new XrEyeGazesInfoFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + BASESPACE = layout.offsetof(2); + TIME = layout.offsetof(3); } /** @@ -99,42 +90,42 @@ public XrEyeGazesInfoFB(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 eye poses will be represented. */ - @NativeType("XrSpace") - public long baseSpace() { return nbaseSpace(address()); } - /** an {@code XrTime} at which the eye gaze information is requested. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrEyeGazesInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_GAZES_INFO_FB TYPE_EYE_GAZES_INFO_FB} value to the {@link #type} field. */ - public XrEyeGazesInfoFB type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_GAZES_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrEyeGazesInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #baseSpace} field. */ - public XrEyeGazesInfoFB baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrEyeGazesInfoFB 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 eye poses will be represented. */ + @NativeType("XrSpace") + public long baseSpace() { return nbaseSpace(address()); } + /** an {@code XrTime} at which the eye gaze information is requested. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrEyeGazesInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_GAZES_INFO_FB TYPE_EYE_GAZES_INFO_FB} value to the {@link #type} field. */ + public XrEyeGazesInfoFB type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_GAZES_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrEyeGazesInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #baseSpace} field. */ + public XrEyeGazesInfoFB baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrEyeGazesInfoFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrEyeGazesInfoFB 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 XrEyeGazesInfoFB set(XrEyeGazesInfoFB src) { /** Returns a new {@code XrEyeGazesInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrEyeGazesInfoFB malloc() { - return new XrEyeGazesInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrEyeGazesInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrEyeGazesInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrEyeGazesInfoFB calloc() { - return new XrEyeGazesInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrEyeGazesInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrEyeGazesInfoFB} instance allocated with {@link BufferUtils}. */ public static XrEyeGazesInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrEyeGazesInfoFB(memAddress(container), container); + return wrap(XrEyeGazesInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrEyeGazesInfoFB} instance for the specified memory address. */ public static XrEyeGazesInfoFB create(long address) { - return new XrEyeGazesInfoFB(address, null); + return wrap(XrEyeGazesInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrEyeGazesInfoFB createSafe(long address) { - return address == NULL ? null : new XrEyeGazesInfoFB(address, null); + return address == NULL ? null : wrap(XrEyeGazesInfoFB.class, address); } /** @@ -186,7 +177,7 @@ public static XrEyeGazesInfoFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrEyeGazesInfoFB.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 XrEyeGazesInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrEyeGazesInfoFB.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 XrEyeGazesInfoFB.Buffer calloc(int capacity) { */ public static XrEyeGazesInfoFB.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 XrEyeGazesInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrEyeGazesInfoFB.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 XrEyeGazesInfoFB.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 XrEyeGazesInfoFB.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrEyeGazesInfoFB malloc(MemoryStack stack) { - return new XrEyeGazesInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrEyeGazesInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -239,7 +230,7 @@ public static XrEyeGazesInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrEyeGazesInfoFB calloc(MemoryStack stack) { - return new XrEyeGazesInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrEyeGazesInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -249,7 +240,7 @@ public static XrEyeGazesInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrEyeGazesInfoFB.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 XrEyeGazesInfoFB.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrEyeGazesInfoFB.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 + XrEyeGazesInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrEyeGazesInfoFB.NEXT); } - /** Unsafe version of {@link #baseSpace}. */ - public static long nbaseSpace(long struct) { return memGetAddress(struct + XrEyeGazesInfoFB.BASESPACE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrEyeGazesInfoFB.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeGazesInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrEyeGazesInfoFB.NEXT, value); } - /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ - public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrEyeGazesInfoFB.BASESPACE, value.address()); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrEyeGazesInfoFB.TIME, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEyeGazesInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrEyeGazesInfoFB.NEXT); } + /** Unsafe version of {@link #baseSpace}. */ + public static long nbaseSpace(long struct) { return memGetAddress(struct + XrEyeGazesInfoFB.BASESPACE); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrEyeGazesInfoFB.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeGazesInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrEyeGazesInfoFB.NEXT, value); } + /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ + public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrEyeGazesInfoFB.BASESPACE, value.address()); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrEyeGazesInfoFB.TIME, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -289,9 +280,9 @@ public static XrEyeGazesInfoFB.Buffer calloc(int capacity, MemoryStack stack) { */ public static void validate(long struct) { check(memGetAddress(struct + XrEyeGazesInfoFB.BASESPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrEyeGazesInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -301,9 +292,9 @@ public static class Buffer extends StructBuffer implem /** * Creates a new {@code XrEyeGazesInfoFB.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 XrEyeGazesInfoFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEyeGazesInfoFB#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 XrEyeGazesInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEyeGazesInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEyeGazesInfoFB.ntype(address()); } - /** @return the value of the {@link XrEyeGazesInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEyeGazesInfoFB.nnext(address()); } - /** @return the value of the {@link XrEyeGazesInfoFB#baseSpace} field. */ - @NativeType("XrSpace") - public long baseSpace() { return XrEyeGazesInfoFB.nbaseSpace(address()); } - /** @return the value of the {@link XrEyeGazesInfoFB#time} field. */ - @NativeType("XrTime") - public long time() { return XrEyeGazesInfoFB.ntime(address()); } - - /** Sets the specified value to the {@link XrEyeGazesInfoFB#type} field. */ - public XrEyeGazesInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrEyeGazesInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_GAZES_INFO_FB TYPE_EYE_GAZES_INFO_FB} value to the {@link XrEyeGazesInfoFB#type} field. */ - public XrEyeGazesInfoFB.Buffer type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_GAZES_INFO_FB); } - /** Sets the specified value to the {@link XrEyeGazesInfoFB#next} field. */ - public XrEyeGazesInfoFB.Buffer next(@NativeType("void const *") long value) { XrEyeGazesInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrEyeGazesInfoFB#baseSpace} field. */ - public XrEyeGazesInfoFB.Buffer baseSpace(XrSpace value) { XrEyeGazesInfoFB.nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link XrEyeGazesInfoFB#time} field. */ - public XrEyeGazesInfoFB.Buffer time(@NativeType("XrTime") long value) { XrEyeGazesInfoFB.ntime(address(), value); return this; } + + /** @return the value of the {@link XrEyeGazesInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEyeGazesInfoFB.ntype(address()); } + /** @return the value of the {@link XrEyeGazesInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEyeGazesInfoFB.nnext(address()); } + /** @return the value of the {@link XrEyeGazesInfoFB#baseSpace} field. */ + @NativeType("XrSpace") + public long baseSpace() { return XrEyeGazesInfoFB.nbaseSpace(address()); } + /** @return the value of the {@link XrEyeGazesInfoFB#time} field. */ + @NativeType("XrTime") + public long time() { return XrEyeGazesInfoFB.ntime(address()); } + + /** Sets the specified value to the {@link XrEyeGazesInfoFB#type} field. */ + public XrEyeGazesInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrEyeGazesInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_GAZES_INFO_FB TYPE_EYE_GAZES_INFO_FB} value to the {@link XrEyeGazesInfoFB#type} field. */ + public XrEyeGazesInfoFB.Buffer type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_GAZES_INFO_FB); } + /** Sets the specified value to the {@link XrEyeGazesInfoFB#next} field. */ + public XrEyeGazesInfoFB.Buffer next(@NativeType("void const *") long value) { XrEyeGazesInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrEyeGazesInfoFB#baseSpace} field. */ + public XrEyeGazesInfoFB.Buffer baseSpace(XrSpace value) { XrEyeGazesInfoFB.nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@link XrEyeGazesInfoFB#time} field. */ + public XrEyeGazesInfoFB.Buffer time(@NativeType("XrTime") long value) { XrEyeGazesInfoFB.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeTrackerCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeTrackerCreateInfoFB.java index 8c4fda0b9c..efe7158857 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeTrackerCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeTrackerCreateInfoFB.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 an eye gaze handle. * @@ -41,8 +41,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrEyeTrackerCreateInfoFB extends Struct implements NativeResource { + */ +public class XrEyeTrackerCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,29 +52,20 @@ public class XrEyeTrackerCreateInfoFB extends Struct i /** 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 XrEyeTrackerCreateInfoFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrEyeTrackerCreateInfoFB create(long address, @Nullable ByteBuffer container) { - return new XrEyeTrackerCreateInfoFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); } /** @@ -89,28 +80,28 @@ public XrEyeTrackerCreateInfoFB(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()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrEyeTrackerCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_TRACKER_CREATE_INFO_FB TYPE_EYE_TRACKER_CREATE_INFO_FB} value to the {@link #type} field. */ - public XrEyeTrackerCreateInfoFB type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_TRACKER_CREATE_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrEyeTrackerCreateInfoFB next(@NativeType("void const *") 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 or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrEyeTrackerCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_TRACKER_CREATE_INFO_FB TYPE_EYE_TRACKER_CREATE_INFO_FB} value to the {@link #type} field. */ + public XrEyeTrackerCreateInfoFB type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_TRACKER_CREATE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrEyeTrackerCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrEyeTrackerCreateInfoFB set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -131,29 +122,29 @@ public XrEyeTrackerCreateInfoFB set(XrEyeTrackerCreateInfoFB src) { /** Returns a new {@code XrEyeTrackerCreateInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrEyeTrackerCreateInfoFB malloc() { - return new XrEyeTrackerCreateInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrEyeTrackerCreateInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrEyeTrackerCreateInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrEyeTrackerCreateInfoFB calloc() { - return new XrEyeTrackerCreateInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrEyeTrackerCreateInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrEyeTrackerCreateInfoFB} instance allocated with {@link BufferUtils}. */ public static XrEyeTrackerCreateInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrEyeTrackerCreateInfoFB(memAddress(container), container); + return wrap(XrEyeTrackerCreateInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrEyeTrackerCreateInfoFB} instance for the specified memory address. */ public static XrEyeTrackerCreateInfoFB create(long address) { - return new XrEyeTrackerCreateInfoFB(address, null); + return wrap(XrEyeTrackerCreateInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrEyeTrackerCreateInfoFB createSafe(long address) { - return address == NULL ? null : new XrEyeTrackerCreateInfoFB(address, null); + return address == NULL ? null : wrap(XrEyeTrackerCreateInfoFB.class, address); } /** @@ -162,7 +153,7 @@ public static XrEyeTrackerCreateInfoFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrEyeTrackerCreateInfoFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -171,7 +162,7 @@ public static XrEyeTrackerCreateInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrEyeTrackerCreateInfoFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -181,7 +172,7 @@ public static XrEyeTrackerCreateInfoFB.Buffer calloc(int capacity) { */ public static XrEyeTrackerCreateInfoFB.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); } /** @@ -191,13 +182,13 @@ public static XrEyeTrackerCreateInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrEyeTrackerCreateInfoFB.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 XrEyeTrackerCreateInfoFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -206,7 +197,7 @@ public static XrEyeTrackerCreateInfoFB.Buffer createSafe(long address, int capac * @param stack the stack from which to allocate */ public static XrEyeTrackerCreateInfoFB malloc(MemoryStack stack) { - return new XrEyeTrackerCreateInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrEyeTrackerCreateInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -215,7 +206,7 @@ public static XrEyeTrackerCreateInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrEyeTrackerCreateInfoFB calloc(MemoryStack stack) { - return new XrEyeTrackerCreateInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrEyeTrackerCreateInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -225,7 +216,7 @@ public static XrEyeTrackerCreateInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrEyeTrackerCreateInfoFB.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); } /** @@ -235,22 +226,22 @@ public static XrEyeTrackerCreateInfoFB.Buffer malloc(int capacity, MemoryStack s * @param capacity the buffer capacity */ public static XrEyeTrackerCreateInfoFB.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 + XrEyeTrackerCreateInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrEyeTrackerCreateInfoFB.NEXT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeTrackerCreateInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrEyeTrackerCreateInfoFB.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEyeTrackerCreateInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrEyeTrackerCreateInfoFB.NEXT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeTrackerCreateInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrEyeTrackerCreateInfoFB.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrEyeTrackerCreateInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -260,9 +251,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 XrEyeTrackerCreateInfoFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrEyeTrackerCreateInfoFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -287,20 +278,20 @@ protected Buffer self() { protected XrEyeTrackerCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEyeTrackerCreateInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEyeTrackerCreateInfoFB.ntype(address()); } - /** @return the value of the {@link XrEyeTrackerCreateInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEyeTrackerCreateInfoFB.nnext(address()); } - - /** Sets the specified value to the {@link XrEyeTrackerCreateInfoFB#type} field. */ - public XrEyeTrackerCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrEyeTrackerCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_TRACKER_CREATE_INFO_FB TYPE_EYE_TRACKER_CREATE_INFO_FB} value to the {@link XrEyeTrackerCreateInfoFB#type} field. */ - public XrEyeTrackerCreateInfoFB.Buffer type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_TRACKER_CREATE_INFO_FB); } - /** Sets the specified value to the {@link XrEyeTrackerCreateInfoFB#next} field. */ - public XrEyeTrackerCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrEyeTrackerCreateInfoFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEyeTrackerCreateInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEyeTrackerCreateInfoFB.ntype(address()); } + /** @return the value of the {@link XrEyeTrackerCreateInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEyeTrackerCreateInfoFB.nnext(address()); } + + /** Sets the specified value to the {@link XrEyeTrackerCreateInfoFB#type} field. */ + public XrEyeTrackerCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrEyeTrackerCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_TRACKER_CREATE_INFO_FB TYPE_EYE_TRACKER_CREATE_INFO_FB} value to the {@link XrEyeTrackerCreateInfoFB#type} field. */ + public XrEyeTrackerCreateInfoFB.Buffer type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_TRACKER_CREATE_INFO_FB); } + /** Sets the specified value to the {@link XrEyeTrackerCreateInfoFB#next} field. */ + public XrEyeTrackerCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrEyeTrackerCreateInfoFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeTrackerFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeTrackerFB.java index 31949295da..51b4539993 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeTrackerFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeTrackerFB.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrEyeTrackerFB} handle. */ + +/** Wraps an {@code XrEyeTrackerFB} handle. */ public class XrEyeTrackerFB 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/XrFaceExpressionInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionInfoFB.java index c1860394eb..19b42828ed 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionInfoFB.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 information to obtain facial expression. * @@ -42,8 +42,8 @@ * void const * {@link #next}; * XrTime {@link #time}; * } - */ -public class XrFaceExpressionInfoFB extends Struct implements NativeResource { + */ +public class XrFaceExpressionInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,32 +53,23 @@ public class XrFaceExpressionInfoFB extends Struct imple /** The struct member offsets. */ public static final int - TYPE, - NEXT, - TIME; + TYPE, + NEXT, + TIME; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - TIME = layout.offsetof(2); - } - - protected XrFaceExpressionInfoFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrFaceExpressionInfoFB create(long address, @Nullable ByteBuffer container) { - return new XrFaceExpressionInfoFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + TIME = layout.offsetof(2); } /** @@ -93,35 +84,35 @@ public XrFaceExpressionInfoFB(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 XrTime} at which the facial expression weights are requested. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFaceExpressionInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_EXPRESSION_INFO_FB TYPE_FACE_EXPRESSION_INFO_FB} value to the {@link #type} field. */ - public XrFaceExpressionInfoFB type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_EXPRESSION_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrFaceExpressionInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrFaceExpressionInfoFB 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 XrTime} at which the facial expression weights are requested. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFaceExpressionInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_EXPRESSION_INFO_FB TYPE_FACE_EXPRESSION_INFO_FB} value to the {@link #type} field. */ + public XrFaceExpressionInfoFB type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_EXPRESSION_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrFaceExpressionInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrFaceExpressionInfoFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFaceExpressionInfoFB set( - int type, - long next, + int type, + long next, long time - ) { - type(type); - next(next); - time(time); + ) { + type(type); + next(next); + time(time); return this; } @@ -142,29 +133,29 @@ public XrFaceExpressionInfoFB set(XrFaceExpressionInfoFB src) { /** Returns a new {@code XrFaceExpressionInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrFaceExpressionInfoFB malloc() { - return new XrFaceExpressionInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrFaceExpressionInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrFaceExpressionInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrFaceExpressionInfoFB calloc() { - return new XrFaceExpressionInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrFaceExpressionInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrFaceExpressionInfoFB} instance allocated with {@link BufferUtils}. */ public static XrFaceExpressionInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrFaceExpressionInfoFB(memAddress(container), container); + return wrap(XrFaceExpressionInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrFaceExpressionInfoFB} instance for the specified memory address. */ public static XrFaceExpressionInfoFB create(long address) { - return new XrFaceExpressionInfoFB(address, null); + return wrap(XrFaceExpressionInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrFaceExpressionInfoFB createSafe(long address) { - return address == NULL ? null : new XrFaceExpressionInfoFB(address, null); + return address == NULL ? null : wrap(XrFaceExpressionInfoFB.class, address); } /** @@ -173,7 +164,7 @@ public static XrFaceExpressionInfoFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrFaceExpressionInfoFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -182,7 +173,7 @@ public static XrFaceExpressionInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrFaceExpressionInfoFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -192,7 +183,7 @@ public static XrFaceExpressionInfoFB.Buffer calloc(int capacity) { */ public static XrFaceExpressionInfoFB.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); } /** @@ -202,13 +193,13 @@ public static XrFaceExpressionInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrFaceExpressionInfoFB.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 XrFaceExpressionInfoFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -217,7 +208,7 @@ public static XrFaceExpressionInfoFB.Buffer createSafe(long address, int capacit * @param stack the stack from which to allocate */ public static XrFaceExpressionInfoFB malloc(MemoryStack stack) { - return new XrFaceExpressionInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrFaceExpressionInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -226,7 +217,7 @@ public static XrFaceExpressionInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrFaceExpressionInfoFB calloc(MemoryStack stack) { - return new XrFaceExpressionInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrFaceExpressionInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -236,7 +227,7 @@ public static XrFaceExpressionInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFaceExpressionInfoFB.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); } /** @@ -246,26 +237,26 @@ public static XrFaceExpressionInfoFB.Buffer malloc(int capacity, MemoryStack sta * @param capacity the buffer capacity */ public static XrFaceExpressionInfoFB.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 + XrFaceExpressionInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFaceExpressionInfoFB.NEXT); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrFaceExpressionInfoFB.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFaceExpressionInfoFB.NEXT, value); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrFaceExpressionInfoFB.TIME, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFaceExpressionInfoFB.NEXT); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrFaceExpressionInfoFB.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFaceExpressionInfoFB.NEXT, value); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrFaceExpressionInfoFB.TIME, value); } + + // ----------------------------------- /** An array of {@link XrFaceExpressionInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -275,9 +266,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrFaceExpressionInfoFB.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 XrFaceExpressionInfoFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFaceExpressionInfoFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -302,25 +293,25 @@ protected Buffer self() { protected XrFaceExpressionInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFaceExpressionInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFaceExpressionInfoFB.ntype(address()); } - /** @return the value of the {@link XrFaceExpressionInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrFaceExpressionInfoFB.nnext(address()); } - /** @return the value of the {@link XrFaceExpressionInfoFB#time} field. */ - @NativeType("XrTime") - public long time() { return XrFaceExpressionInfoFB.ntime(address()); } - - /** Sets the specified value to the {@link XrFaceExpressionInfoFB#type} field. */ - public XrFaceExpressionInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrFaceExpressionInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_EXPRESSION_INFO_FB TYPE_FACE_EXPRESSION_INFO_FB} value to the {@link XrFaceExpressionInfoFB#type} field. */ - public XrFaceExpressionInfoFB.Buffer type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_EXPRESSION_INFO_FB); } - /** Sets the specified value to the {@link XrFaceExpressionInfoFB#next} field. */ - public XrFaceExpressionInfoFB.Buffer next(@NativeType("void const *") long value) { XrFaceExpressionInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrFaceExpressionInfoFB#time} field. */ - public XrFaceExpressionInfoFB.Buffer time(@NativeType("XrTime") long value) { XrFaceExpressionInfoFB.ntime(address(), value); return this; } + + /** @return the value of the {@link XrFaceExpressionInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFaceExpressionInfoFB.ntype(address()); } + /** @return the value of the {@link XrFaceExpressionInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrFaceExpressionInfoFB.nnext(address()); } + /** @return the value of the {@link XrFaceExpressionInfoFB#time} field. */ + @NativeType("XrTime") + public long time() { return XrFaceExpressionInfoFB.ntime(address()); } + + /** Sets the specified value to the {@link XrFaceExpressionInfoFB#type} field. */ + public XrFaceExpressionInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrFaceExpressionInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_EXPRESSION_INFO_FB TYPE_FACE_EXPRESSION_INFO_FB} value to the {@link XrFaceExpressionInfoFB#type} field. */ + public XrFaceExpressionInfoFB.Buffer type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_EXPRESSION_INFO_FB); } + /** Sets the specified value to the {@link XrFaceExpressionInfoFB#next} field. */ + public XrFaceExpressionInfoFB.Buffer next(@NativeType("void const *") long value) { XrFaceExpressionInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrFaceExpressionInfoFB#time} field. */ + public XrFaceExpressionInfoFB.Buffer time(@NativeType("XrTime") long value) { XrFaceExpressionInfoFB.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionStatusFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionStatusFB.java index ab41ace5bc..8533fbd2f1 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionStatusFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionStatusFB.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 status of facial expression weights. * @@ -43,8 +43,8 @@ * XrBool32 {@link #isValid}; * XrBool32 {@link #isEyeFollowingBlendshapesValid}; * } - */ -public class XrFaceExpressionStatusFB extends Struct implements NativeResource { + */ +public class XrFaceExpressionStatusFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,29 +54,20 @@ public class XrFaceExpressionStatusFB extends Struct i /** The struct member offsets. */ public static final int - ISVALID, - ISEYEFOLLOWINGBLENDSHAPESVALID; + ISVALID, + ISEYEFOLLOWINGBLENDSHAPESVALID; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - ISVALID = layout.offsetof(0); - ISEYEFOLLOWINGBLENDSHAPESVALID = layout.offsetof(1); - } - - protected XrFaceExpressionStatusFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrFaceExpressionStatusFB create(long address, @Nullable ByteBuffer container) { - return new XrFaceExpressionStatusFB(address, container); + ISVALID = layout.offsetof(0); + ISEYEFOLLOWINGBLENDSHAPESVALID = layout.offsetof(1); } /** @@ -91,26 +82,26 @@ public XrFaceExpressionStatusFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** an {@code XrBool32} which indicates that the tracked expression weights are valid. */ - @NativeType("XrBool32") - public boolean isValid() { return nisValid(address()) != 0; } - /** an {@code XrBool32} which indicates if the 8 expression weights with prefix {@code XR_FACE_EXPRESSION_EYES_LOOK_*} are valid. */ - @NativeType("XrBool32") - public boolean isEyeFollowingBlendshapesValid() { return nisEyeFollowingBlendshapesValid(address()) != 0; } - - /** Sets the specified value to the {@link #isValid} field. */ - public XrFaceExpressionStatusFB isValid(@NativeType("XrBool32") boolean value) { nisValid(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link #isEyeFollowingBlendshapesValid} field. */ - public XrFaceExpressionStatusFB isEyeFollowingBlendshapesValid(@NativeType("XrBool32") boolean value) { nisEyeFollowingBlendshapesValid(address(), value ? 1 : 0); return this; } + + /** an {@code XrBool32} which indicates that the tracked expression weights are valid. */ + @NativeType("XrBool32") + public boolean isValid() { return nisValid(address()) != 0; } + /** an {@code XrBool32} which indicates if the 8 expression weights with prefix {@code XR_FACE_EXPRESSION_EYES_LOOK_*} are valid. */ + @NativeType("XrBool32") + public boolean isEyeFollowingBlendshapesValid() { return nisEyeFollowingBlendshapesValid(address()) != 0; } + + /** Sets the specified value to the {@link #isValid} field. */ + public XrFaceExpressionStatusFB isValid(@NativeType("XrBool32") boolean value) { nisValid(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link #isEyeFollowingBlendshapesValid} field. */ + public XrFaceExpressionStatusFB isEyeFollowingBlendshapesValid(@NativeType("XrBool32") boolean value) { nisEyeFollowingBlendshapesValid(address(), value ? 1 : 0); return this; } /** Initializes this struct with the specified values. */ public XrFaceExpressionStatusFB set( - boolean isValid, + boolean isValid, boolean isEyeFollowingBlendshapesValid - ) { - isValid(isValid); - isEyeFollowingBlendshapesValid(isEyeFollowingBlendshapesValid); + ) { + isValid(isValid); + isEyeFollowingBlendshapesValid(isEyeFollowingBlendshapesValid); return this; } @@ -131,29 +122,29 @@ public XrFaceExpressionStatusFB set(XrFaceExpressionStatusFB src) { /** Returns a new {@code XrFaceExpressionStatusFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrFaceExpressionStatusFB malloc() { - return new XrFaceExpressionStatusFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrFaceExpressionStatusFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrFaceExpressionStatusFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrFaceExpressionStatusFB calloc() { - return new XrFaceExpressionStatusFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrFaceExpressionStatusFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrFaceExpressionStatusFB} instance allocated with {@link BufferUtils}. */ public static XrFaceExpressionStatusFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrFaceExpressionStatusFB(memAddress(container), container); + return wrap(XrFaceExpressionStatusFB.class, memAddress(container), container); } /** Returns a new {@code XrFaceExpressionStatusFB} instance for the specified memory address. */ public static XrFaceExpressionStatusFB create(long address) { - return new XrFaceExpressionStatusFB(address, null); + return wrap(XrFaceExpressionStatusFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrFaceExpressionStatusFB createSafe(long address) { - return address == NULL ? null : new XrFaceExpressionStatusFB(address, null); + return address == NULL ? null : wrap(XrFaceExpressionStatusFB.class, address); } /** @@ -162,7 +153,7 @@ public static XrFaceExpressionStatusFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrFaceExpressionStatusFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -171,7 +162,7 @@ public static XrFaceExpressionStatusFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrFaceExpressionStatusFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -181,7 +172,7 @@ public static XrFaceExpressionStatusFB.Buffer calloc(int capacity) { */ public static XrFaceExpressionStatusFB.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); } /** @@ -191,13 +182,13 @@ public static XrFaceExpressionStatusFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrFaceExpressionStatusFB.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 XrFaceExpressionStatusFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -206,7 +197,7 @@ public static XrFaceExpressionStatusFB.Buffer createSafe(long address, int capac * @param stack the stack from which to allocate */ public static XrFaceExpressionStatusFB malloc(MemoryStack stack) { - return new XrFaceExpressionStatusFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrFaceExpressionStatusFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -215,7 +206,7 @@ public static XrFaceExpressionStatusFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrFaceExpressionStatusFB calloc(MemoryStack stack) { - return new XrFaceExpressionStatusFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrFaceExpressionStatusFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -225,7 +216,7 @@ public static XrFaceExpressionStatusFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFaceExpressionStatusFB.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); } /** @@ -235,22 +226,22 @@ public static XrFaceExpressionStatusFB.Buffer malloc(int capacity, MemoryStack s * @param capacity the buffer capacity */ public static XrFaceExpressionStatusFB.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 #isValid}. */ - public static int nisValid(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionStatusFB.ISVALID); } - /** Unsafe version of {@link #isEyeFollowingBlendshapesValid}. */ - public static int nisEyeFollowingBlendshapesValid(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionStatusFB.ISEYEFOLLOWINGBLENDSHAPESVALID); } - - /** Unsafe version of {@link #isValid(boolean) isValid}. */ - public static void nisValid(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionStatusFB.ISVALID, value); } - /** Unsafe version of {@link #isEyeFollowingBlendshapesValid(boolean) isEyeFollowingBlendshapesValid}. */ - public static void nisEyeFollowingBlendshapesValid(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionStatusFB.ISEYEFOLLOWINGBLENDSHAPESVALID, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #isValid}. */ + public static int nisValid(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionStatusFB.ISVALID); } + /** Unsafe version of {@link #isEyeFollowingBlendshapesValid}. */ + public static int nisEyeFollowingBlendshapesValid(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionStatusFB.ISEYEFOLLOWINGBLENDSHAPESVALID); } + + /** Unsafe version of {@link #isValid(boolean) isValid}. */ + public static void nisValid(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionStatusFB.ISVALID, value); } + /** Unsafe version of {@link #isEyeFollowingBlendshapesValid(boolean) isEyeFollowingBlendshapesValid}. */ + public static void nisEyeFollowingBlendshapesValid(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionStatusFB.ISEYEFOLLOWINGBLENDSHAPESVALID, value); } + + // ----------------------------------- /** An array of {@link XrFaceExpressionStatusFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -260,9 +251,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 XrFaceExpressionStatusFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFaceExpressionStatusFB#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 XrFaceExpressionStatusFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFaceExpressionStatusFB#isValid} field. */ - @NativeType("XrBool32") - public boolean isValid() { return XrFaceExpressionStatusFB.nisValid(address()) != 0; } - /** @return the value of the {@link XrFaceExpressionStatusFB#isEyeFollowingBlendshapesValid} field. */ - @NativeType("XrBool32") - public boolean isEyeFollowingBlendshapesValid() { return XrFaceExpressionStatusFB.nisEyeFollowingBlendshapesValid(address()) != 0; } - - /** Sets the specified value to the {@link XrFaceExpressionStatusFB#isValid} field. */ - public XrFaceExpressionStatusFB.Buffer isValid(@NativeType("XrBool32") boolean value) { XrFaceExpressionStatusFB.nisValid(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link XrFaceExpressionStatusFB#isEyeFollowingBlendshapesValid} field. */ - public XrFaceExpressionStatusFB.Buffer isEyeFollowingBlendshapesValid(@NativeType("XrBool32") boolean value) { XrFaceExpressionStatusFB.nisEyeFollowingBlendshapesValid(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrFaceExpressionStatusFB#isValid} field. */ + @NativeType("XrBool32") + public boolean isValid() { return XrFaceExpressionStatusFB.nisValid(address()) != 0; } + /** @return the value of the {@link XrFaceExpressionStatusFB#isEyeFollowingBlendshapesValid} field. */ + @NativeType("XrBool32") + public boolean isEyeFollowingBlendshapesValid() { return XrFaceExpressionStatusFB.nisEyeFollowingBlendshapesValid(address()) != 0; } + + /** Sets the specified value to the {@link XrFaceExpressionStatusFB#isValid} field. */ + public XrFaceExpressionStatusFB.Buffer isValid(@NativeType("XrBool32") boolean value) { XrFaceExpressionStatusFB.nisValid(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link XrFaceExpressionStatusFB#isEyeFollowingBlendshapesValid} field. */ + public XrFaceExpressionStatusFB.Buffer isEyeFollowingBlendshapesValid(@NativeType("XrBool32") boolean value) { XrFaceExpressionStatusFB.nisEyeFollowingBlendshapesValid(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionWeightsFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionWeightsFB.java index bba884fd00..dd2efca002 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionWeightsFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionWeightsFB.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 facial expression. * @@ -61,8 +61,8 @@ * {@link XrFaceExpressionStatusFB XrFaceExpressionStatusFB} {@link #status}; * XrTime {@link #time}; * } - */ -public class XrFaceExpressionWeightsFB extends Struct implements NativeResource { + */ +public class XrFaceExpressionWeightsFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -72,47 +72,38 @@ public class XrFaceExpressionWeightsFB extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - WEIGHTCOUNT, - WEIGHTS, - CONFIDENCECOUNT, - CONFIDENCES, - STATUS, - TIME; + TYPE, + NEXT, + WEIGHTCOUNT, + WEIGHTS, + CONFIDENCECOUNT, + CONFIDENCES, + STATUS, + TIME; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(POINTER_SIZE), - __member(XrFaceExpressionStatusFB.SIZEOF, XrFaceExpressionStatusFB.ALIGNOF), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(POINTER_SIZE), + __member(XrFaceExpressionStatusFB.SIZEOF, XrFaceExpressionStatusFB.ALIGNOF), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - WEIGHTCOUNT = layout.offsetof(2); - WEIGHTS = layout.offsetof(3); - CONFIDENCECOUNT = layout.offsetof(4); - CONFIDENCES = layout.offsetof(5); - STATUS = layout.offsetof(6); - TIME = layout.offsetof(7); - } - - protected XrFaceExpressionWeightsFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrFaceExpressionWeightsFB create(long address, @Nullable ByteBuffer container) { - return new XrFaceExpressionWeightsFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + WEIGHTCOUNT = layout.offsetof(2); + WEIGHTS = layout.offsetof(3); + CONFIDENCECOUNT = layout.offsetof(4); + CONFIDENCES = layout.offsetof(5); + STATUS = layout.offsetof(6); + TIME = layout.offsetof(7); } /** @@ -127,63 +118,63 @@ public XrFaceExpressionWeightsFB(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()); } - /** a {@code uint32_t} describing the count of elements in {@code weights} array. */ - @NativeType("uint32_t") - public int weightCount() { return nweightCount(address()); } - /** a pointer to an application-allocated array of {@code float} that will be filled with weights of facial expression blend shapes. */ - @NativeType("float *") - public FloatBuffer weights() { return nweights(address()); } - /** a {@code uint32_t} describing the count of elements in {@code confidences} array. */ - @NativeType("uint32_t") - public int confidenceCount() { return nconfidenceCount(address()); } - /** a pointer to an application-allocated array of {@code float} that will be filled with confidence of tracking specific parts of a face. */ - @NativeType("float *") - public FloatBuffer confidences() { return nconfidences(address()); } - /** the {@link XrFaceExpressionStatusFB} of validity status of the expression weights. */ - public XrFaceExpressionStatusFB status() { return nstatus(address()); } - /** an {@code XrTime} time at which the returned expression weights are tracked or extrapolated to. Equals the time at which the expression weights were requested if the extrapolating at the time was successful. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFaceExpressionWeightsFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB TYPE_FACE_EXPRESSION_WEIGHTS_FB} value to the {@link #type} field. */ - public XrFaceExpressionWeightsFB type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrFaceExpressionWeightsFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link #weights} field. */ - public XrFaceExpressionWeightsFB weights(@NativeType("float *") FloatBuffer value) { nweights(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link #confidences} field. */ - public XrFaceExpressionWeightsFB confidences(@NativeType("float *") FloatBuffer value) { nconfidences(address(), value); return this; } - /** Copies the specified {@link XrFaceExpressionStatusFB} to the {@link #status} field. */ - public XrFaceExpressionWeightsFB status(XrFaceExpressionStatusFB value) { nstatus(address(), value); return this; } - /** Passes the {@link #status} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrFaceExpressionWeightsFB status(java.util.function.Consumer consumer) { consumer.accept(status()); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrFaceExpressionWeightsFB 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()); } + /** a {@code uint32_t} describing the count of elements in {@code weights} array. */ + @NativeType("uint32_t") + public int weightCount() { return nweightCount(address()); } + /** a pointer to an application-allocated array of {@code float} that will be filled with weights of facial expression blend shapes. */ + @NativeType("float *") + public FloatBuffer weights() { return nweights(address()); } + /** a {@code uint32_t} describing the count of elements in {@code confidences} array. */ + @NativeType("uint32_t") + public int confidenceCount() { return nconfidenceCount(address()); } + /** a pointer to an application-allocated array of {@code float} that will be filled with confidence of tracking specific parts of a face. */ + @NativeType("float *") + public FloatBuffer confidences() { return nconfidences(address()); } + /** the {@link XrFaceExpressionStatusFB} of validity status of the expression weights. */ + public XrFaceExpressionStatusFB status() { return nstatus(address()); } + /** an {@code XrTime} time at which the returned expression weights are tracked or extrapolated to. Equals the time at which the expression weights were requested if the extrapolating at the time was successful. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFaceExpressionWeightsFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB TYPE_FACE_EXPRESSION_WEIGHTS_FB} value to the {@link #type} field. */ + public XrFaceExpressionWeightsFB type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrFaceExpressionWeightsFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link #weights} field. */ + public XrFaceExpressionWeightsFB weights(@NativeType("float *") FloatBuffer value) { nweights(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link #confidences} field. */ + public XrFaceExpressionWeightsFB confidences(@NativeType("float *") FloatBuffer value) { nconfidences(address(), value); return this; } + /** Copies the specified {@link XrFaceExpressionStatusFB} to the {@link #status} field. */ + public XrFaceExpressionWeightsFB status(XrFaceExpressionStatusFB value) { nstatus(address(), value); return this; } + /** Passes the {@link #status} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrFaceExpressionWeightsFB status(java.util.function.Consumer consumer) { consumer.accept(status()); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrFaceExpressionWeightsFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFaceExpressionWeightsFB set( - int type, - long next, - FloatBuffer weights, - FloatBuffer confidences, - XrFaceExpressionStatusFB status, + int type, + long next, + FloatBuffer weights, + FloatBuffer confidences, + XrFaceExpressionStatusFB status, long time - ) { - type(type); - next(next); - weights(weights); - confidences(confidences); - status(status); - time(time); + ) { + type(type); + next(next); + weights(weights); + confidences(confidences); + status(status); + time(time); return this; } @@ -204,29 +195,29 @@ public XrFaceExpressionWeightsFB set(XrFaceExpressionWeightsFB src) { /** Returns a new {@code XrFaceExpressionWeightsFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrFaceExpressionWeightsFB malloc() { - return new XrFaceExpressionWeightsFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrFaceExpressionWeightsFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrFaceExpressionWeightsFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrFaceExpressionWeightsFB calloc() { - return new XrFaceExpressionWeightsFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrFaceExpressionWeightsFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrFaceExpressionWeightsFB} instance allocated with {@link BufferUtils}. */ public static XrFaceExpressionWeightsFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrFaceExpressionWeightsFB(memAddress(container), container); + return wrap(XrFaceExpressionWeightsFB.class, memAddress(container), container); } /** Returns a new {@code XrFaceExpressionWeightsFB} instance for the specified memory address. */ public static XrFaceExpressionWeightsFB create(long address) { - return new XrFaceExpressionWeightsFB(address, null); + return wrap(XrFaceExpressionWeightsFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrFaceExpressionWeightsFB createSafe(long address) { - return address == NULL ? null : new XrFaceExpressionWeightsFB(address, null); + return address == NULL ? null : wrap(XrFaceExpressionWeightsFB.class, address); } /** @@ -235,7 +226,7 @@ public static XrFaceExpressionWeightsFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrFaceExpressionWeightsFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -244,7 +235,7 @@ public static XrFaceExpressionWeightsFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrFaceExpressionWeightsFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -254,7 +245,7 @@ public static XrFaceExpressionWeightsFB.Buffer calloc(int capacity) { */ public static XrFaceExpressionWeightsFB.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); } /** @@ -264,13 +255,13 @@ public static XrFaceExpressionWeightsFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrFaceExpressionWeightsFB.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 XrFaceExpressionWeightsFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -279,7 +270,7 @@ public static XrFaceExpressionWeightsFB.Buffer createSafe(long address, int capa * @param stack the stack from which to allocate */ public static XrFaceExpressionWeightsFB malloc(MemoryStack stack) { - return new XrFaceExpressionWeightsFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrFaceExpressionWeightsFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -288,7 +279,7 @@ public static XrFaceExpressionWeightsFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrFaceExpressionWeightsFB calloc(MemoryStack stack) { - return new XrFaceExpressionWeightsFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrFaceExpressionWeightsFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -298,7 +289,7 @@ public static XrFaceExpressionWeightsFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFaceExpressionWeightsFB.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); } /** @@ -308,44 +299,44 @@ public static XrFaceExpressionWeightsFB.Buffer malloc(int capacity, MemoryStack * @param capacity the buffer capacity */ public static XrFaceExpressionWeightsFB.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 + XrFaceExpressionWeightsFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFaceExpressionWeightsFB.NEXT); } - /** Unsafe version of {@link #weightCount}. */ - public static int nweightCount(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionWeightsFB.WEIGHTCOUNT); } - /** Unsafe version of {@link #weights() weights}. */ - public static FloatBuffer nweights(long struct) { return memFloatBuffer(memGetAddress(struct + XrFaceExpressionWeightsFB.WEIGHTS), nweightCount(struct)); } - /** Unsafe version of {@link #confidenceCount}. */ - public static int nconfidenceCount(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionWeightsFB.CONFIDENCECOUNT); } - /** Unsafe version of {@link #confidences() confidences}. */ - public static FloatBuffer nconfidences(long struct) { return memFloatBuffer(memGetAddress(struct + XrFaceExpressionWeightsFB.CONFIDENCES), nconfidenceCount(struct)); } - /** Unsafe version of {@link #status}. */ - public static XrFaceExpressionStatusFB nstatus(long struct) { return XrFaceExpressionStatusFB.create(struct + XrFaceExpressionWeightsFB.STATUS); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrFaceExpressionWeightsFB.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionWeightsFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFaceExpressionWeightsFB.NEXT, value); } - /** Sets the specified value to the {@code weightCount} field of the specified {@code struct}. */ - public static void nweightCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionWeightsFB.WEIGHTCOUNT, value); } - /** Unsafe version of {@link #weights(FloatBuffer) weights}. */ - public static void nweights(long struct, FloatBuffer value) { memPutAddress(struct + XrFaceExpressionWeightsFB.WEIGHTS, memAddress(value)); nweightCount(struct, value.remaining()); } - /** Sets the specified value to the {@code confidenceCount} field of the specified {@code struct}. */ - public static void nconfidenceCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionWeightsFB.CONFIDENCECOUNT, value); } - /** Unsafe version of {@link #confidences(FloatBuffer) confidences}. */ - public static void nconfidences(long struct, FloatBuffer value) { memPutAddress(struct + XrFaceExpressionWeightsFB.CONFIDENCES, memAddress(value)); nconfidenceCount(struct, value.remaining()); } - /** Unsafe version of {@link #status(XrFaceExpressionStatusFB) status}. */ - public static void nstatus(long struct, XrFaceExpressionStatusFB value) { memCopy(value.address(), struct + XrFaceExpressionWeightsFB.STATUS, XrFaceExpressionStatusFB.SIZEOF); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrFaceExpressionWeightsFB.TIME, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionWeightsFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFaceExpressionWeightsFB.NEXT); } + /** Unsafe version of {@link #weightCount}. */ + public static int nweightCount(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionWeightsFB.WEIGHTCOUNT); } + /** Unsafe version of {@link #weights() weights}. */ + public static FloatBuffer nweights(long struct) { return memFloatBuffer(memGetAddress(struct + XrFaceExpressionWeightsFB.WEIGHTS), nweightCount(struct)); } + /** Unsafe version of {@link #confidenceCount}. */ + public static int nconfidenceCount(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionWeightsFB.CONFIDENCECOUNT); } + /** Unsafe version of {@link #confidences() confidences}. */ + public static FloatBuffer nconfidences(long struct) { return memFloatBuffer(memGetAddress(struct + XrFaceExpressionWeightsFB.CONFIDENCES), nconfidenceCount(struct)); } + /** Unsafe version of {@link #status}. */ + public static XrFaceExpressionStatusFB nstatus(long struct) { return XrFaceExpressionStatusFB.create(struct + XrFaceExpressionWeightsFB.STATUS); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrFaceExpressionWeightsFB.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionWeightsFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFaceExpressionWeightsFB.NEXT, value); } + /** Sets the specified value to the {@code weightCount} field of the specified {@code struct}. */ + public static void nweightCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionWeightsFB.WEIGHTCOUNT, value); } + /** Unsafe version of {@link #weights(FloatBuffer) weights}. */ + public static void nweights(long struct, FloatBuffer value) { memPutAddress(struct + XrFaceExpressionWeightsFB.WEIGHTS, memAddress(value)); nweightCount(struct, value.remaining()); } + /** Sets the specified value to the {@code confidenceCount} field of the specified {@code struct}. */ + public static void nconfidenceCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionWeightsFB.CONFIDENCECOUNT, value); } + /** Unsafe version of {@link #confidences(FloatBuffer) confidences}. */ + public static void nconfidences(long struct, FloatBuffer value) { memPutAddress(struct + XrFaceExpressionWeightsFB.CONFIDENCES, memAddress(value)); nconfidenceCount(struct, value.remaining()); } + /** Unsafe version of {@link #status(XrFaceExpressionStatusFB) status}. */ + public static void nstatus(long struct, XrFaceExpressionStatusFB value) { memCopy(value.address(), struct + XrFaceExpressionWeightsFB.STATUS, XrFaceExpressionStatusFB.SIZEOF); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrFaceExpressionWeightsFB.TIME, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -355,9 +346,9 @@ public static XrFaceExpressionWeightsFB.Buffer calloc(int capacity, MemoryStack public static void validate(long struct) { check(memGetAddress(struct + XrFaceExpressionWeightsFB.WEIGHTS)); check(memGetAddress(struct + XrFaceExpressionWeightsFB.CONFIDENCES)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrFaceExpressionWeightsFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -367,9 +358,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 XrFaceExpressionWeightsFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFaceExpressionWeightsFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -394,47 +385,47 @@ protected Buffer self() { protected XrFaceExpressionWeightsFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFaceExpressionWeightsFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFaceExpressionWeightsFB.ntype(address()); } - /** @return the value of the {@link XrFaceExpressionWeightsFB#next} field. */ - @NativeType("void *") - public long next() { return XrFaceExpressionWeightsFB.nnext(address()); } - /** @return the value of the {@link XrFaceExpressionWeightsFB#weightCount} field. */ - @NativeType("uint32_t") - public int weightCount() { return XrFaceExpressionWeightsFB.nweightCount(address()); } - /** @return a {@link FloatBuffer} view of the data pointed to by the {@link XrFaceExpressionWeightsFB#weights} field. */ - @NativeType("float *") - public FloatBuffer weights() { return XrFaceExpressionWeightsFB.nweights(address()); } - /** @return the value of the {@link XrFaceExpressionWeightsFB#confidenceCount} field. */ - @NativeType("uint32_t") - public int confidenceCount() { return XrFaceExpressionWeightsFB.nconfidenceCount(address()); } - /** @return a {@link FloatBuffer} view of the data pointed to by the {@link XrFaceExpressionWeightsFB#confidences} field. */ - @NativeType("float *") - public FloatBuffer confidences() { return XrFaceExpressionWeightsFB.nconfidences(address()); } - /** @return a {@link XrFaceExpressionStatusFB} view of the {@link XrFaceExpressionWeightsFB#status} field. */ - public XrFaceExpressionStatusFB status() { return XrFaceExpressionWeightsFB.nstatus(address()); } - /** @return the value of the {@link XrFaceExpressionWeightsFB#time} field. */ - @NativeType("XrTime") - public long time() { return XrFaceExpressionWeightsFB.ntime(address()); } - - /** Sets the specified value to the {@link XrFaceExpressionWeightsFB#type} field. */ - public XrFaceExpressionWeightsFB.Buffer type(@NativeType("XrStructureType") int value) { XrFaceExpressionWeightsFB.ntype(address(), value); return this; } - /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB TYPE_FACE_EXPRESSION_WEIGHTS_FB} value to the {@link XrFaceExpressionWeightsFB#type} field. */ - public XrFaceExpressionWeightsFB.Buffer type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB); } - /** Sets the specified value to the {@link XrFaceExpressionWeightsFB#next} field. */ - public XrFaceExpressionWeightsFB.Buffer next(@NativeType("void *") long value) { XrFaceExpressionWeightsFB.nnext(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link XrFaceExpressionWeightsFB#weights} field. */ - public XrFaceExpressionWeightsFB.Buffer weights(@NativeType("float *") FloatBuffer value) { XrFaceExpressionWeightsFB.nweights(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link XrFaceExpressionWeightsFB#confidences} field. */ - public XrFaceExpressionWeightsFB.Buffer confidences(@NativeType("float *") FloatBuffer value) { XrFaceExpressionWeightsFB.nconfidences(address(), value); return this; } - /** Copies the specified {@link XrFaceExpressionStatusFB} to the {@link XrFaceExpressionWeightsFB#status} field. */ - public XrFaceExpressionWeightsFB.Buffer status(XrFaceExpressionStatusFB value) { XrFaceExpressionWeightsFB.nstatus(address(), value); return this; } - /** Passes the {@link XrFaceExpressionWeightsFB#status} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrFaceExpressionWeightsFB.Buffer status(java.util.function.Consumer consumer) { consumer.accept(status()); return this; } - /** Sets the specified value to the {@link XrFaceExpressionWeightsFB#time} field. */ - public XrFaceExpressionWeightsFB.Buffer time(@NativeType("XrTime") long value) { XrFaceExpressionWeightsFB.ntime(address(), value); return this; } + + /** @return the value of the {@link XrFaceExpressionWeightsFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFaceExpressionWeightsFB.ntype(address()); } + /** @return the value of the {@link XrFaceExpressionWeightsFB#next} field. */ + @NativeType("void *") + public long next() { return XrFaceExpressionWeightsFB.nnext(address()); } + /** @return the value of the {@link XrFaceExpressionWeightsFB#weightCount} field. */ + @NativeType("uint32_t") + public int weightCount() { return XrFaceExpressionWeightsFB.nweightCount(address()); } + /** @return a {@link FloatBuffer} view of the data pointed to by the {@link XrFaceExpressionWeightsFB#weights} field. */ + @NativeType("float *") + public FloatBuffer weights() { return XrFaceExpressionWeightsFB.nweights(address()); } + /** @return the value of the {@link XrFaceExpressionWeightsFB#confidenceCount} field. */ + @NativeType("uint32_t") + public int confidenceCount() { return XrFaceExpressionWeightsFB.nconfidenceCount(address()); } + /** @return a {@link FloatBuffer} view of the data pointed to by the {@link XrFaceExpressionWeightsFB#confidences} field. */ + @NativeType("float *") + public FloatBuffer confidences() { return XrFaceExpressionWeightsFB.nconfidences(address()); } + /** @return a {@link XrFaceExpressionStatusFB} view of the {@link XrFaceExpressionWeightsFB#status} field. */ + public XrFaceExpressionStatusFB status() { return XrFaceExpressionWeightsFB.nstatus(address()); } + /** @return the value of the {@link XrFaceExpressionWeightsFB#time} field. */ + @NativeType("XrTime") + public long time() { return XrFaceExpressionWeightsFB.ntime(address()); } + + /** Sets the specified value to the {@link XrFaceExpressionWeightsFB#type} field. */ + public XrFaceExpressionWeightsFB.Buffer type(@NativeType("XrStructureType") int value) { XrFaceExpressionWeightsFB.ntype(address(), value); return this; } + /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB TYPE_FACE_EXPRESSION_WEIGHTS_FB} value to the {@link XrFaceExpressionWeightsFB#type} field. */ + public XrFaceExpressionWeightsFB.Buffer type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB); } + /** Sets the specified value to the {@link XrFaceExpressionWeightsFB#next} field. */ + public XrFaceExpressionWeightsFB.Buffer next(@NativeType("void *") long value) { XrFaceExpressionWeightsFB.nnext(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link XrFaceExpressionWeightsFB#weights} field. */ + public XrFaceExpressionWeightsFB.Buffer weights(@NativeType("float *") FloatBuffer value) { XrFaceExpressionWeightsFB.nweights(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link XrFaceExpressionWeightsFB#confidences} field. */ + public XrFaceExpressionWeightsFB.Buffer confidences(@NativeType("float *") FloatBuffer value) { XrFaceExpressionWeightsFB.nconfidences(address(), value); return this; } + /** Copies the specified {@link XrFaceExpressionStatusFB} to the {@link XrFaceExpressionWeightsFB#status} field. */ + public XrFaceExpressionWeightsFB.Buffer status(XrFaceExpressionStatusFB value) { XrFaceExpressionWeightsFB.nstatus(address(), value); return this; } + /** Passes the {@link XrFaceExpressionWeightsFB#status} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrFaceExpressionWeightsFB.Buffer status(java.util.function.Consumer consumer) { consumer.accept(status()); return this; } + /** Sets the specified value to the {@link XrFaceExpressionWeightsFB#time} field. */ + public XrFaceExpressionWeightsFB.Buffer time(@NativeType("XrTime") long value) { XrFaceExpressionWeightsFB.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceTrackerCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceTrackerCreateInfoFB.java index f295f25cce..7ee50675f6 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceTrackerCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceTrackerCreateInfoFB.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 facial expression handle. * @@ -43,8 +43,8 @@ * void const * {@link #next}; * XrFaceExpressionSetFB {@link #faceExpressionSet}; * } - */ -public class XrFaceTrackerCreateInfoFB extends Struct implements NativeResource { + */ +public class XrFaceTrackerCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,32 +54,23 @@ public class XrFaceTrackerCreateInfoFB extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - FACEEXPRESSIONSET; + TYPE, + NEXT, + FACEEXPRESSIONSET; 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); - FACEEXPRESSIONSET = layout.offsetof(2); - } - - protected XrFaceTrackerCreateInfoFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrFaceTrackerCreateInfoFB create(long address, @Nullable ByteBuffer container) { - return new XrFaceTrackerCreateInfoFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + FACEEXPRESSIONSET = layout.offsetof(2); } /** @@ -94,35 +85,35 @@ public XrFaceTrackerCreateInfoFB(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 XrFaceExpressionSetFB} that describe the set of blend shapes to retrieve. */ - @NativeType("XrFaceExpressionSetFB") - public int faceExpressionSet() { return nfaceExpressionSet(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFaceTrackerCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_TRACKER_CREATE_INFO_FB TYPE_FACE_TRACKER_CREATE_INFO_FB} value to the {@link #type} field. */ - public XrFaceTrackerCreateInfoFB type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_TRACKER_CREATE_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrFaceTrackerCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #faceExpressionSet} field. */ - public XrFaceTrackerCreateInfoFB faceExpressionSet(@NativeType("XrFaceExpressionSetFB") int value) { nfaceExpressionSet(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 XrFaceExpressionSetFB} that describe the set of blend shapes to retrieve. */ + @NativeType("XrFaceExpressionSetFB") + public int faceExpressionSet() { return nfaceExpressionSet(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFaceTrackerCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_TRACKER_CREATE_INFO_FB TYPE_FACE_TRACKER_CREATE_INFO_FB} value to the {@link #type} field. */ + public XrFaceTrackerCreateInfoFB type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_TRACKER_CREATE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrFaceTrackerCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #faceExpressionSet} field. */ + public XrFaceTrackerCreateInfoFB faceExpressionSet(@NativeType("XrFaceExpressionSetFB") int value) { nfaceExpressionSet(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFaceTrackerCreateInfoFB set( - int type, - long next, + int type, + long next, int faceExpressionSet - ) { - type(type); - next(next); - faceExpressionSet(faceExpressionSet); + ) { + type(type); + next(next); + faceExpressionSet(faceExpressionSet); return this; } @@ -143,29 +134,29 @@ public XrFaceTrackerCreateInfoFB set(XrFaceTrackerCreateInfoFB src) { /** Returns a new {@code XrFaceTrackerCreateInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrFaceTrackerCreateInfoFB malloc() { - return new XrFaceTrackerCreateInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrFaceTrackerCreateInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrFaceTrackerCreateInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrFaceTrackerCreateInfoFB calloc() { - return new XrFaceTrackerCreateInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrFaceTrackerCreateInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrFaceTrackerCreateInfoFB} instance allocated with {@link BufferUtils}. */ public static XrFaceTrackerCreateInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrFaceTrackerCreateInfoFB(memAddress(container), container); + return wrap(XrFaceTrackerCreateInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrFaceTrackerCreateInfoFB} instance for the specified memory address. */ public static XrFaceTrackerCreateInfoFB create(long address) { - return new XrFaceTrackerCreateInfoFB(address, null); + return wrap(XrFaceTrackerCreateInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrFaceTrackerCreateInfoFB createSafe(long address) { - return address == NULL ? null : new XrFaceTrackerCreateInfoFB(address, null); + return address == NULL ? null : wrap(XrFaceTrackerCreateInfoFB.class, address); } /** @@ -174,7 +165,7 @@ public static XrFaceTrackerCreateInfoFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrFaceTrackerCreateInfoFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -183,7 +174,7 @@ public static XrFaceTrackerCreateInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrFaceTrackerCreateInfoFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -193,7 +184,7 @@ public static XrFaceTrackerCreateInfoFB.Buffer calloc(int capacity) { */ public static XrFaceTrackerCreateInfoFB.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); } /** @@ -203,13 +194,13 @@ public static XrFaceTrackerCreateInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrFaceTrackerCreateInfoFB.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 XrFaceTrackerCreateInfoFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -218,7 +209,7 @@ public static XrFaceTrackerCreateInfoFB.Buffer createSafe(long address, int capa * @param stack the stack from which to allocate */ public static XrFaceTrackerCreateInfoFB malloc(MemoryStack stack) { - return new XrFaceTrackerCreateInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrFaceTrackerCreateInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -227,7 +218,7 @@ public static XrFaceTrackerCreateInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrFaceTrackerCreateInfoFB calloc(MemoryStack stack) { - return new XrFaceTrackerCreateInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrFaceTrackerCreateInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -237,7 +228,7 @@ public static XrFaceTrackerCreateInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFaceTrackerCreateInfoFB.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); } /** @@ -247,26 +238,26 @@ public static XrFaceTrackerCreateInfoFB.Buffer malloc(int capacity, MemoryStack * @param capacity the buffer capacity */ public static XrFaceTrackerCreateInfoFB.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 + XrFaceTrackerCreateInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFaceTrackerCreateInfoFB.NEXT); } - /** Unsafe version of {@link #faceExpressionSet}. */ - public static int nfaceExpressionSet(long struct) { return UNSAFE.getInt(null, struct + XrFaceTrackerCreateInfoFB.FACEEXPRESSIONSET); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceTrackerCreateInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFaceTrackerCreateInfoFB.NEXT, value); } - /** Unsafe version of {@link #faceExpressionSet(int) faceExpressionSet}. */ - public static void nfaceExpressionSet(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceTrackerCreateInfoFB.FACEEXPRESSIONSET, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFaceTrackerCreateInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFaceTrackerCreateInfoFB.NEXT); } + /** Unsafe version of {@link #faceExpressionSet}. */ + public static int nfaceExpressionSet(long struct) { return UNSAFE.getInt(null, struct + XrFaceTrackerCreateInfoFB.FACEEXPRESSIONSET); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceTrackerCreateInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFaceTrackerCreateInfoFB.NEXT, value); } + /** Unsafe version of {@link #faceExpressionSet(int) faceExpressionSet}. */ + public static void nfaceExpressionSet(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceTrackerCreateInfoFB.FACEEXPRESSIONSET, value); } + + // ----------------------------------- /** An array of {@link XrFaceTrackerCreateInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -276,9 +267,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 XrFaceTrackerCreateInfoFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFaceTrackerCreateInfoFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -303,25 +294,25 @@ protected Buffer self() { protected XrFaceTrackerCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFaceTrackerCreateInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFaceTrackerCreateInfoFB.ntype(address()); } - /** @return the value of the {@link XrFaceTrackerCreateInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrFaceTrackerCreateInfoFB.nnext(address()); } - /** @return the value of the {@link XrFaceTrackerCreateInfoFB#faceExpressionSet} field. */ - @NativeType("XrFaceExpressionSetFB") - public int faceExpressionSet() { return XrFaceTrackerCreateInfoFB.nfaceExpressionSet(address()); } - - /** Sets the specified value to the {@link XrFaceTrackerCreateInfoFB#type} field. */ - public XrFaceTrackerCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrFaceTrackerCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_TRACKER_CREATE_INFO_FB TYPE_FACE_TRACKER_CREATE_INFO_FB} value to the {@link XrFaceTrackerCreateInfoFB#type} field. */ - public XrFaceTrackerCreateInfoFB.Buffer type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_TRACKER_CREATE_INFO_FB); } - /** Sets the specified value to the {@link XrFaceTrackerCreateInfoFB#next} field. */ - public XrFaceTrackerCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrFaceTrackerCreateInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrFaceTrackerCreateInfoFB#faceExpressionSet} field. */ - public XrFaceTrackerCreateInfoFB.Buffer faceExpressionSet(@NativeType("XrFaceExpressionSetFB") int value) { XrFaceTrackerCreateInfoFB.nfaceExpressionSet(address(), value); return this; } + + /** @return the value of the {@link XrFaceTrackerCreateInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFaceTrackerCreateInfoFB.ntype(address()); } + /** @return the value of the {@link XrFaceTrackerCreateInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrFaceTrackerCreateInfoFB.nnext(address()); } + /** @return the value of the {@link XrFaceTrackerCreateInfoFB#faceExpressionSet} field. */ + @NativeType("XrFaceExpressionSetFB") + public int faceExpressionSet() { return XrFaceTrackerCreateInfoFB.nfaceExpressionSet(address()); } + + /** Sets the specified value to the {@link XrFaceTrackerCreateInfoFB#type} field. */ + public XrFaceTrackerCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrFaceTrackerCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_TRACKER_CREATE_INFO_FB TYPE_FACE_TRACKER_CREATE_INFO_FB} value to the {@link XrFaceTrackerCreateInfoFB#type} field. */ + public XrFaceTrackerCreateInfoFB.Buffer type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_TRACKER_CREATE_INFO_FB); } + /** Sets the specified value to the {@link XrFaceTrackerCreateInfoFB#next} field. */ + public XrFaceTrackerCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrFaceTrackerCreateInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrFaceTrackerCreateInfoFB#faceExpressionSet} field. */ + public XrFaceTrackerCreateInfoFB.Buffer faceExpressionSet(@NativeType("XrFaceExpressionSetFB") int value) { XrFaceTrackerCreateInfoFB.nfaceExpressionSet(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceTrackerFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceTrackerFB.java index 2395a7fbc7..bc21d83c0e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceTrackerFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceTrackerFB.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrFaceTrackerFB} handle. */ + +/** Wraps an {@code XrFaceTrackerFB} handle. */ public class XrFaceTrackerFB 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/XrFacialExpressionsHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialExpressionsHTC.java index 32950ee05f..24c9c973fc 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialExpressionsHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialExpressionsHTC.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 expression data. * @@ -59,8 +59,8 @@ * uint32_t {@link #expressionCount}; * float * {@link #expressionWeightings}; * } - */ -public class XrFacialExpressionsHTC extends Struct implements NativeResource { + */ +public class XrFacialExpressionsHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -70,41 +70,32 @@ public class XrFacialExpressionsHTC extends Struct imple /** The struct member offsets. */ public static final int - TYPE, - NEXT, - ISACTIVE, - SAMPLETIME, - EXPRESSIONCOUNT, - EXPRESSIONWEIGHTINGS; + TYPE, + NEXT, + ISACTIVE, + SAMPLETIME, + EXPRESSIONCOUNT, + EXPRESSIONWEIGHTINGS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(8), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(8), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - ISACTIVE = layout.offsetof(2); - SAMPLETIME = layout.offsetof(3); - EXPRESSIONCOUNT = layout.offsetof(4); - EXPRESSIONWEIGHTINGS = layout.offsetof(5); - } - - protected XrFacialExpressionsHTC(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrFacialExpressionsHTC create(long address, @Nullable ByteBuffer container) { - return new XrFacialExpressionsHTC(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + ISACTIVE = layout.offsetof(2); + SAMPLETIME = layout.offsetof(3); + EXPRESSIONCOUNT = layout.offsetof(4); + EXPRESSIONWEIGHTINGS = layout.offsetof(5); } /** @@ -119,60 +110,60 @@ public XrFacialExpressionsHTC(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 XrBool32} indicating if the facial tracker is active. */ - @NativeType("XrBool32") - public boolean isActive() { return nisActive(address()) != 0; } - /** when in time the expression is expressed. */ - @NativeType("XrTime") - public long sampleTime() { return nsampleTime(address()); } - /** a {@code uint32_t} describing the count of elements in {@code expressionWeightings} array. */ - @NativeType("uint32_t") - public int expressionCount() { return nexpressionCount(address()); } + + /** 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 XrBool32} indicating if the facial tracker is active. */ + @NativeType("XrBool32") + public boolean isActive() { return nisActive(address()) != 0; } + /** when in time the expression is expressed. */ + @NativeType("XrTime") + public long sampleTime() { return nsampleTime(address()); } + /** a {@code uint32_t} describing the count of elements in {@code expressionWeightings} array. */ + @NativeType("uint32_t") + public int expressionCount() { return nexpressionCount(address()); } /** * @param capacity the number of elements in the returned buffer * * @return a {@code float} array filled in by the runtime, specifying the weightings for each blend shape. - */ - @NativeType("float *") - public FloatBuffer expressionWeightings(int capacity) { return nexpressionWeightings(address(), capacity); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFacialExpressionsHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link HTCFacialTracking#XR_TYPE_FACIAL_EXPRESSIONS_HTC TYPE_FACIAL_EXPRESSIONS_HTC} value to the {@link #type} field. */ - public XrFacialExpressionsHTC type$Default() { return type(HTCFacialTracking.XR_TYPE_FACIAL_EXPRESSIONS_HTC); } - /** Sets the specified value to the {@link #next} field. */ - public XrFacialExpressionsHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #isActive} field. */ - public XrFacialExpressionsHTC isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link #sampleTime} field. */ - public XrFacialExpressionsHTC sampleTime(@NativeType("XrTime") long value) { nsampleTime(address(), value); return this; } - /** Sets the specified value to the {@link #expressionCount} field. */ - public XrFacialExpressionsHTC expressionCount(@NativeType("uint32_t") int value) { nexpressionCount(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link #expressionWeightings} field. */ - public XrFacialExpressionsHTC expressionWeightings(@NativeType("float *") FloatBuffer value) { nexpressionWeightings(address(), value); return this; } + */ + @NativeType("float *") + public FloatBuffer expressionWeightings(int capacity) { return nexpressionWeightings(address(), capacity); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFacialExpressionsHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link HTCFacialTracking#XR_TYPE_FACIAL_EXPRESSIONS_HTC TYPE_FACIAL_EXPRESSIONS_HTC} value to the {@link #type} field. */ + public XrFacialExpressionsHTC type$Default() { return type(HTCFacialTracking.XR_TYPE_FACIAL_EXPRESSIONS_HTC); } + /** Sets the specified value to the {@link #next} field. */ + public XrFacialExpressionsHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #isActive} field. */ + public XrFacialExpressionsHTC isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link #sampleTime} field. */ + public XrFacialExpressionsHTC sampleTime(@NativeType("XrTime") long value) { nsampleTime(address(), value); return this; } + /** Sets the specified value to the {@link #expressionCount} field. */ + public XrFacialExpressionsHTC expressionCount(@NativeType("uint32_t") int value) { nexpressionCount(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link #expressionWeightings} field. */ + public XrFacialExpressionsHTC expressionWeightings(@NativeType("float *") FloatBuffer value) { nexpressionWeightings(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFacialExpressionsHTC set( - int type, - long next, - boolean isActive, - long sampleTime, - int expressionCount, + int type, + long next, + boolean isActive, + long sampleTime, + int expressionCount, FloatBuffer expressionWeightings - ) { - type(type); - next(next); - isActive(isActive); - sampleTime(sampleTime); - expressionCount(expressionCount); - expressionWeightings(expressionWeightings); + ) { + type(type); + next(next); + isActive(isActive); + sampleTime(sampleTime); + expressionCount(expressionCount); + expressionWeightings(expressionWeightings); return this; } @@ -193,29 +184,29 @@ public XrFacialExpressionsHTC set(XrFacialExpressionsHTC src) { /** Returns a new {@code XrFacialExpressionsHTC} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrFacialExpressionsHTC malloc() { - return new XrFacialExpressionsHTC(nmemAllocChecked(SIZEOF), null); + return wrap(XrFacialExpressionsHTC.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrFacialExpressionsHTC} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrFacialExpressionsHTC calloc() { - return new XrFacialExpressionsHTC(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrFacialExpressionsHTC.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrFacialExpressionsHTC} instance allocated with {@link BufferUtils}. */ public static XrFacialExpressionsHTC create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrFacialExpressionsHTC(memAddress(container), container); + return wrap(XrFacialExpressionsHTC.class, memAddress(container), container); } /** Returns a new {@code XrFacialExpressionsHTC} instance for the specified memory address. */ public static XrFacialExpressionsHTC create(long address) { - return new XrFacialExpressionsHTC(address, null); + return wrap(XrFacialExpressionsHTC.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrFacialExpressionsHTC createSafe(long address) { - return address == NULL ? null : new XrFacialExpressionsHTC(address, null); + return address == NULL ? null : wrap(XrFacialExpressionsHTC.class, address); } /** @@ -224,7 +215,7 @@ public static XrFacialExpressionsHTC createSafe(long address) { * @param capacity the buffer capacity */ public static XrFacialExpressionsHTC.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -233,7 +224,7 @@ public static XrFacialExpressionsHTC.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrFacialExpressionsHTC.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -243,7 +234,7 @@ public static XrFacialExpressionsHTC.Buffer calloc(int capacity) { */ public static XrFacialExpressionsHTC.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); } /** @@ -253,13 +244,13 @@ public static XrFacialExpressionsHTC.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrFacialExpressionsHTC.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 XrFacialExpressionsHTC.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -268,7 +259,7 @@ public static XrFacialExpressionsHTC.Buffer createSafe(long address, int capacit * @param stack the stack from which to allocate */ public static XrFacialExpressionsHTC malloc(MemoryStack stack) { - return new XrFacialExpressionsHTC(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrFacialExpressionsHTC.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -277,7 +268,7 @@ public static XrFacialExpressionsHTC malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrFacialExpressionsHTC calloc(MemoryStack stack) { - return new XrFacialExpressionsHTC(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrFacialExpressionsHTC.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -287,7 +278,7 @@ public static XrFacialExpressionsHTC calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFacialExpressionsHTC.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); } /** @@ -297,36 +288,36 @@ public static XrFacialExpressionsHTC.Buffer malloc(int capacity, MemoryStack sta * @param capacity the buffer capacity */ public static XrFacialExpressionsHTC.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 + XrFacialExpressionsHTC.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFacialExpressionsHTC.NEXT); } - /** Unsafe version of {@link #isActive}. */ - public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrFacialExpressionsHTC.ISACTIVE); } - /** Unsafe version of {@link #sampleTime}. */ - public static long nsampleTime(long struct) { return UNSAFE.getLong(null, struct + XrFacialExpressionsHTC.SAMPLETIME); } - /** Unsafe version of {@link #expressionCount}. */ - public static int nexpressionCount(long struct) { return UNSAFE.getInt(null, struct + XrFacialExpressionsHTC.EXPRESSIONCOUNT); } - /** Unsafe version of {@link #expressionWeightings(int) expressionWeightings}. */ - public static FloatBuffer nexpressionWeightings(long struct, int capacity) { return memFloatBuffer(memGetAddress(struct + XrFacialExpressionsHTC.EXPRESSIONWEIGHTINGS), capacity); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFacialExpressionsHTC.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFacialExpressionsHTC.NEXT, value); } - /** Unsafe version of {@link #isActive(boolean) isActive}. */ - public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrFacialExpressionsHTC.ISACTIVE, value); } - /** Unsafe version of {@link #sampleTime(long) sampleTime}. */ - public static void nsampleTime(long struct, long value) { UNSAFE.putLong(null, struct + XrFacialExpressionsHTC.SAMPLETIME, value); } - /** Unsafe version of {@link #expressionCount(int) expressionCount}. */ - public static void nexpressionCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFacialExpressionsHTC.EXPRESSIONCOUNT, value); } - /** Unsafe version of {@link #expressionWeightings(FloatBuffer) expressionWeightings}. */ - public static void nexpressionWeightings(long struct, FloatBuffer value) { memPutAddress(struct + XrFacialExpressionsHTC.EXPRESSIONWEIGHTINGS, memAddress(value)); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFacialExpressionsHTC.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFacialExpressionsHTC.NEXT); } + /** Unsafe version of {@link #isActive}. */ + public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrFacialExpressionsHTC.ISACTIVE); } + /** Unsafe version of {@link #sampleTime}. */ + public static long nsampleTime(long struct) { return UNSAFE.getLong(null, struct + XrFacialExpressionsHTC.SAMPLETIME); } + /** Unsafe version of {@link #expressionCount}. */ + public static int nexpressionCount(long struct) { return UNSAFE.getInt(null, struct + XrFacialExpressionsHTC.EXPRESSIONCOUNT); } + /** Unsafe version of {@link #expressionWeightings(int) expressionWeightings}. */ + public static FloatBuffer nexpressionWeightings(long struct, int capacity) { return memFloatBuffer(memGetAddress(struct + XrFacialExpressionsHTC.EXPRESSIONWEIGHTINGS), capacity); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFacialExpressionsHTC.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFacialExpressionsHTC.NEXT, value); } + /** Unsafe version of {@link #isActive(boolean) isActive}. */ + public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrFacialExpressionsHTC.ISACTIVE, value); } + /** Unsafe version of {@link #sampleTime(long) sampleTime}. */ + public static void nsampleTime(long struct, long value) { UNSAFE.putLong(null, struct + XrFacialExpressionsHTC.SAMPLETIME, value); } + /** Unsafe version of {@link #expressionCount(int) expressionCount}. */ + public static void nexpressionCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFacialExpressionsHTC.EXPRESSIONCOUNT, value); } + /** Unsafe version of {@link #expressionWeightings(FloatBuffer) expressionWeightings}. */ + public static void nexpressionWeightings(long struct, FloatBuffer value) { memPutAddress(struct + XrFacialExpressionsHTC.EXPRESSIONWEIGHTINGS, memAddress(value)); } /** * Validates pointer members that should not be {@code NULL}. @@ -335,9 +326,9 @@ public static XrFacialExpressionsHTC.Buffer calloc(int capacity, MemoryStack sta */ public static void validate(long struct) { check(memGetAddress(struct + XrFacialExpressionsHTC.EXPRESSIONWEIGHTINGS)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrFacialExpressionsHTC} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -347,9 +338,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrFacialExpressionsHTC.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 XrFacialExpressionsHTC#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFacialExpressionsHTC#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -374,44 +365,44 @@ protected Buffer self() { protected XrFacialExpressionsHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFacialExpressionsHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFacialExpressionsHTC.ntype(address()); } - /** @return the value of the {@link XrFacialExpressionsHTC#next} field. */ - @NativeType("void const *") - public long next() { return XrFacialExpressionsHTC.nnext(address()); } - /** @return the value of the {@link XrFacialExpressionsHTC#isActive} field. */ - @NativeType("XrBool32") - public boolean isActive() { return XrFacialExpressionsHTC.nisActive(address()) != 0; } - /** @return the value of the {@link XrFacialExpressionsHTC#sampleTime} field. */ - @NativeType("XrTime") - public long sampleTime() { return XrFacialExpressionsHTC.nsampleTime(address()); } - /** @return the value of the {@link XrFacialExpressionsHTC#expressionCount} field. */ - @NativeType("uint32_t") - public int expressionCount() { return XrFacialExpressionsHTC.nexpressionCount(address()); } + + /** @return the value of the {@link XrFacialExpressionsHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFacialExpressionsHTC.ntype(address()); } + /** @return the value of the {@link XrFacialExpressionsHTC#next} field. */ + @NativeType("void const *") + public long next() { return XrFacialExpressionsHTC.nnext(address()); } + /** @return the value of the {@link XrFacialExpressionsHTC#isActive} field. */ + @NativeType("XrBool32") + public boolean isActive() { return XrFacialExpressionsHTC.nisActive(address()) != 0; } + /** @return the value of the {@link XrFacialExpressionsHTC#sampleTime} field. */ + @NativeType("XrTime") + public long sampleTime() { return XrFacialExpressionsHTC.nsampleTime(address()); } + /** @return the value of the {@link XrFacialExpressionsHTC#expressionCount} field. */ + @NativeType("uint32_t") + public int expressionCount() { return XrFacialExpressionsHTC.nexpressionCount(address()); } /** * @return a {@link FloatBuffer} view of the data pointed to by the {@link XrFacialExpressionsHTC#expressionWeightings} field. * * @param capacity the number of elements in the returned buffer - */ - @NativeType("float *") - public FloatBuffer expressionWeightings(int capacity) { return XrFacialExpressionsHTC.nexpressionWeightings(address(), capacity); } - - /** Sets the specified value to the {@link XrFacialExpressionsHTC#type} field. */ - public XrFacialExpressionsHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFacialExpressionsHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCFacialTracking#XR_TYPE_FACIAL_EXPRESSIONS_HTC TYPE_FACIAL_EXPRESSIONS_HTC} value to the {@link XrFacialExpressionsHTC#type} field. */ - public XrFacialExpressionsHTC.Buffer type$Default() { return type(HTCFacialTracking.XR_TYPE_FACIAL_EXPRESSIONS_HTC); } - /** Sets the specified value to the {@link XrFacialExpressionsHTC#next} field. */ - public XrFacialExpressionsHTC.Buffer next(@NativeType("void const *") long value) { XrFacialExpressionsHTC.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrFacialExpressionsHTC#isActive} field. */ - public XrFacialExpressionsHTC.Buffer isActive(@NativeType("XrBool32") boolean value) { XrFacialExpressionsHTC.nisActive(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link XrFacialExpressionsHTC#sampleTime} field. */ - public XrFacialExpressionsHTC.Buffer sampleTime(@NativeType("XrTime") long value) { XrFacialExpressionsHTC.nsampleTime(address(), value); return this; } - /** Sets the specified value to the {@link XrFacialExpressionsHTC#expressionCount} field. */ - public XrFacialExpressionsHTC.Buffer expressionCount(@NativeType("uint32_t") int value) { XrFacialExpressionsHTC.nexpressionCount(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link XrFacialExpressionsHTC#expressionWeightings} field. */ - public XrFacialExpressionsHTC.Buffer expressionWeightings(@NativeType("float *") FloatBuffer value) { XrFacialExpressionsHTC.nexpressionWeightings(address(), value); return this; } + */ + @NativeType("float *") + public FloatBuffer expressionWeightings(int capacity) { return XrFacialExpressionsHTC.nexpressionWeightings(address(), capacity); } + + /** Sets the specified value to the {@link XrFacialExpressionsHTC#type} field. */ + public XrFacialExpressionsHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFacialExpressionsHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCFacialTracking#XR_TYPE_FACIAL_EXPRESSIONS_HTC TYPE_FACIAL_EXPRESSIONS_HTC} value to the {@link XrFacialExpressionsHTC#type} field. */ + public XrFacialExpressionsHTC.Buffer type$Default() { return type(HTCFacialTracking.XR_TYPE_FACIAL_EXPRESSIONS_HTC); } + /** Sets the specified value to the {@link XrFacialExpressionsHTC#next} field. */ + public XrFacialExpressionsHTC.Buffer next(@NativeType("void const *") long value) { XrFacialExpressionsHTC.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrFacialExpressionsHTC#isActive} field. */ + public XrFacialExpressionsHTC.Buffer isActive(@NativeType("XrBool32") boolean value) { XrFacialExpressionsHTC.nisActive(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link XrFacialExpressionsHTC#sampleTime} field. */ + public XrFacialExpressionsHTC.Buffer sampleTime(@NativeType("XrTime") long value) { XrFacialExpressionsHTC.nsampleTime(address(), value); return this; } + /** Sets the specified value to the {@link XrFacialExpressionsHTC#expressionCount} field. */ + public XrFacialExpressionsHTC.Buffer expressionCount(@NativeType("uint32_t") int value) { XrFacialExpressionsHTC.nexpressionCount(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link XrFacialExpressionsHTC#expressionWeightings} field. */ + public XrFacialExpressionsHTC.Buffer expressionWeightings(@NativeType("float *") FloatBuffer value) { XrFacialExpressionsHTC.nexpressionWeightings(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialTrackerCreateInfoHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialTrackerCreateInfoHTC.java index e2fa4e23a2..4ad2c6f84b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialTrackerCreateInfoHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialTrackerCreateInfoHTC.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 facial tracker handle. * @@ -43,8 +43,8 @@ * void const * {@link #next}; * XrFacialTrackingTypeHTC {@link #facialTrackingType}; * } - */ -public class XrFacialTrackerCreateInfoHTC extends Struct implements NativeResource { + */ +public class XrFacialTrackerCreateInfoHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,32 +54,23 @@ public class XrFacialTrackerCreateInfoHTC extends Struct implements NativeResource { @@ -276,9 +267,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 XrFacialTrackerCreateInfoHTC#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFacialTrackerCreateInfoHTC#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -303,25 +294,25 @@ protected Buffer self() { protected XrFacialTrackerCreateInfoHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFacialTrackerCreateInfoHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFacialTrackerCreateInfoHTC.ntype(address()); } - /** @return the value of the {@link XrFacialTrackerCreateInfoHTC#next} field. */ - @NativeType("void const *") - public long next() { return XrFacialTrackerCreateInfoHTC.nnext(address()); } - /** @return the value of the {@link XrFacialTrackerCreateInfoHTC#facialTrackingType} field. */ - @NativeType("XrFacialTrackingTypeHTC") - public int facialTrackingType() { return XrFacialTrackerCreateInfoHTC.nfacialTrackingType(address()); } - - /** Sets the specified value to the {@link XrFacialTrackerCreateInfoHTC#type} field. */ - public XrFacialTrackerCreateInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFacialTrackerCreateInfoHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCFacialTracking#XR_TYPE_FACIAL_TRACKER_CREATE_INFO_HTC TYPE_FACIAL_TRACKER_CREATE_INFO_HTC} value to the {@link XrFacialTrackerCreateInfoHTC#type} field. */ - public XrFacialTrackerCreateInfoHTC.Buffer type$Default() { return type(HTCFacialTracking.XR_TYPE_FACIAL_TRACKER_CREATE_INFO_HTC); } - /** Sets the specified value to the {@link XrFacialTrackerCreateInfoHTC#next} field. */ - public XrFacialTrackerCreateInfoHTC.Buffer next(@NativeType("void const *") long value) { XrFacialTrackerCreateInfoHTC.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrFacialTrackerCreateInfoHTC#facialTrackingType} field. */ - public XrFacialTrackerCreateInfoHTC.Buffer facialTrackingType(@NativeType("XrFacialTrackingTypeHTC") int value) { XrFacialTrackerCreateInfoHTC.nfacialTrackingType(address(), value); return this; } + + /** @return the value of the {@link XrFacialTrackerCreateInfoHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFacialTrackerCreateInfoHTC.ntype(address()); } + /** @return the value of the {@link XrFacialTrackerCreateInfoHTC#next} field. */ + @NativeType("void const *") + public long next() { return XrFacialTrackerCreateInfoHTC.nnext(address()); } + /** @return the value of the {@link XrFacialTrackerCreateInfoHTC#facialTrackingType} field. */ + @NativeType("XrFacialTrackingTypeHTC") + public int facialTrackingType() { return XrFacialTrackerCreateInfoHTC.nfacialTrackingType(address()); } + + /** Sets the specified value to the {@link XrFacialTrackerCreateInfoHTC#type} field. */ + public XrFacialTrackerCreateInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFacialTrackerCreateInfoHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCFacialTracking#XR_TYPE_FACIAL_TRACKER_CREATE_INFO_HTC TYPE_FACIAL_TRACKER_CREATE_INFO_HTC} value to the {@link XrFacialTrackerCreateInfoHTC#type} field. */ + public XrFacialTrackerCreateInfoHTC.Buffer type$Default() { return type(HTCFacialTracking.XR_TYPE_FACIAL_TRACKER_CREATE_INFO_HTC); } + /** Sets the specified value to the {@link XrFacialTrackerCreateInfoHTC#next} field. */ + public XrFacialTrackerCreateInfoHTC.Buffer next(@NativeType("void const *") long value) { XrFacialTrackerCreateInfoHTC.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrFacialTrackerCreateInfoHTC#facialTrackingType} field. */ + public XrFacialTrackerCreateInfoHTC.Buffer facialTrackingType(@NativeType("XrFacialTrackingTypeHTC") int value) { XrFacialTrackerCreateInfoHTC.nfacialTrackingType(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialTrackerHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialTrackerHTC.java index 0cb007e121..80c3c7709e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialTrackerHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialTrackerHTC.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrFacialTrackerHTC} handle. */ + +/** Wraps an {@code XrFacialTrackerHTC} handle. */ public class XrFacialTrackerHTC 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/XrForceFeedbackCurlApplyLocationMNDX.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrForceFeedbackCurlApplyLocationMNDX.java index c3f3584e9a..55d9443f8a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrForceFeedbackCurlApplyLocationMNDX.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrForceFeedbackCurlApplyLocationMNDX.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.*; + /** * Structure representing and containing information on how to apply force feedback to a single location. * @@ -40,8 +40,8 @@ * XrForceFeedbackCurlLocationMNDX {@link #location}; * float {@link #value}; * } - */ -public class XrForceFeedbackCurlApplyLocationMNDX extends Struct implements NativeResource { + */ +public class XrForceFeedbackCurlApplyLocationMNDX extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,29 +51,20 @@ public class XrForceFeedbackCurlApplyLocationMNDX extends Struct implements NativeResource { @@ -256,9 +247,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 XrForceFeedbackCurlApplyLocationMNDX#SIZEOF}, and its mark will be undefined.

    + * by {@link XrForceFeedbackCurlApplyLocationMNDX#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -283,17 +274,17 @@ protected Buffer self() { protected XrForceFeedbackCurlApplyLocationMNDX getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrForceFeedbackCurlApplyLocationMNDX#location} field. */ - @NativeType("XrForceFeedbackCurlLocationMNDX") - public int location() { return XrForceFeedbackCurlApplyLocationMNDX.nlocation(address()); } - /** @return the value of the {@link XrForceFeedbackCurlApplyLocationMNDX#value} field. */ - public float value() { return XrForceFeedbackCurlApplyLocationMNDX.nvalue(address()); } - - /** Sets the specified value to the {@link XrForceFeedbackCurlApplyLocationMNDX#location} field. */ - public XrForceFeedbackCurlApplyLocationMNDX.Buffer location(@NativeType("XrForceFeedbackCurlLocationMNDX") int value) { XrForceFeedbackCurlApplyLocationMNDX.nlocation(address(), value); return this; } - /** Sets the specified value to the {@link XrForceFeedbackCurlApplyLocationMNDX#value} field. */ - public XrForceFeedbackCurlApplyLocationMNDX.Buffer value(float value) { XrForceFeedbackCurlApplyLocationMNDX.nvalue(address(), value); return this; } + + /** @return the value of the {@link XrForceFeedbackCurlApplyLocationMNDX#location} field. */ + @NativeType("XrForceFeedbackCurlLocationMNDX") + public int location() { return XrForceFeedbackCurlApplyLocationMNDX.nlocation(address()); } + /** @return the value of the {@link XrForceFeedbackCurlApplyLocationMNDX#value} field. */ + public float value() { return XrForceFeedbackCurlApplyLocationMNDX.nvalue(address()); } + + /** Sets the specified value to the {@link XrForceFeedbackCurlApplyLocationMNDX#location} field. */ + public XrForceFeedbackCurlApplyLocationMNDX.Buffer location(@NativeType("XrForceFeedbackCurlLocationMNDX") int value) { XrForceFeedbackCurlApplyLocationMNDX.nlocation(address(), value); return this; } + /** Sets the specified value to the {@link XrForceFeedbackCurlApplyLocationMNDX#value} field. */ + public XrForceFeedbackCurlApplyLocationMNDX.Buffer value(float value) { XrForceFeedbackCurlApplyLocationMNDX.nvalue(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrForceFeedbackCurlApplyLocationsMNDX.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrForceFeedbackCurlApplyLocationsMNDX.java index 5f803415c8..6011fe964c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrForceFeedbackCurlApplyLocationsMNDX.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrForceFeedbackCurlApplyLocationsMNDX.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.*; + /** * Structure representing an array of locations to apply force feedback to. * @@ -46,8 +46,8 @@ * uint32_t {@link #locationCount}; * {@link XrForceFeedbackCurlApplyLocationMNDX XrForceFeedbackCurlApplyLocationMNDX} * {@link #locations}; * } - */ -public class XrForceFeedbackCurlApplyLocationsMNDX extends Struct implements NativeResource { + */ +public class XrForceFeedbackCurlApplyLocationsMNDX extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,35 +57,26 @@ public class XrForceFeedbackCurlApplyLocationsMNDX extends Struct implements NativeResource { @@ -298,9 +289,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 XrForceFeedbackCurlApplyLocationsMNDX#SIZEOF}, and its mark will be undefined.

    + * by {@link XrForceFeedbackCurlApplyLocationsMNDX#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -325,28 +316,28 @@ protected Buffer self() { protected XrForceFeedbackCurlApplyLocationsMNDX getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrForceFeedbackCurlApplyLocationsMNDX#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrForceFeedbackCurlApplyLocationsMNDX.ntype(address()); } - /** @return the value of the {@link XrForceFeedbackCurlApplyLocationsMNDX#next} field. */ - @NativeType("void const *") - public long next() { return XrForceFeedbackCurlApplyLocationsMNDX.nnext(address()); } - /** @return the value of the {@link XrForceFeedbackCurlApplyLocationsMNDX#locationCount} field. */ - @NativeType("uint32_t") - public int locationCount() { return XrForceFeedbackCurlApplyLocationsMNDX.nlocationCount(address()); } - /** @return a {@link XrForceFeedbackCurlApplyLocationMNDX.Buffer} view of the struct array pointed to by the {@link XrForceFeedbackCurlApplyLocationsMNDX#locations} field. */ - @NativeType("XrForceFeedbackCurlApplyLocationMNDX *") - public XrForceFeedbackCurlApplyLocationMNDX.Buffer locations() { return XrForceFeedbackCurlApplyLocationsMNDX.nlocations(address()); } - - /** Sets the specified value to the {@link XrForceFeedbackCurlApplyLocationsMNDX#type} field. */ - public XrForceFeedbackCurlApplyLocationsMNDX.Buffer type(@NativeType("XrStructureType") int value) { XrForceFeedbackCurlApplyLocationsMNDX.ntype(address(), value); return this; } - /** Sets the {@link MNDXForceFeedbackCurl#XR_TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX} value to the {@link XrForceFeedbackCurlApplyLocationsMNDX#type} field. */ - public XrForceFeedbackCurlApplyLocationsMNDX.Buffer type$Default() { return type(MNDXForceFeedbackCurl.XR_TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX); } - /** Sets the specified value to the {@link XrForceFeedbackCurlApplyLocationsMNDX#next} field. */ - public XrForceFeedbackCurlApplyLocationsMNDX.Buffer next(@NativeType("void const *") long value) { XrForceFeedbackCurlApplyLocationsMNDX.nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrForceFeedbackCurlApplyLocationMNDX.Buffer} to the {@link XrForceFeedbackCurlApplyLocationsMNDX#locations} field. */ - public XrForceFeedbackCurlApplyLocationsMNDX.Buffer locations(@NativeType("XrForceFeedbackCurlApplyLocationMNDX *") XrForceFeedbackCurlApplyLocationMNDX.Buffer value) { XrForceFeedbackCurlApplyLocationsMNDX.nlocations(address(), value); return this; } + + /** @return the value of the {@link XrForceFeedbackCurlApplyLocationsMNDX#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrForceFeedbackCurlApplyLocationsMNDX.ntype(address()); } + /** @return the value of the {@link XrForceFeedbackCurlApplyLocationsMNDX#next} field. */ + @NativeType("void const *") + public long next() { return XrForceFeedbackCurlApplyLocationsMNDX.nnext(address()); } + /** @return the value of the {@link XrForceFeedbackCurlApplyLocationsMNDX#locationCount} field. */ + @NativeType("uint32_t") + public int locationCount() { return XrForceFeedbackCurlApplyLocationsMNDX.nlocationCount(address()); } + /** @return a {@link XrForceFeedbackCurlApplyLocationMNDX.Buffer} view of the struct array pointed to by the {@link XrForceFeedbackCurlApplyLocationsMNDX#locations} field. */ + @NativeType("XrForceFeedbackCurlApplyLocationMNDX *") + public XrForceFeedbackCurlApplyLocationMNDX.Buffer locations() { return XrForceFeedbackCurlApplyLocationsMNDX.nlocations(address()); } + + /** Sets the specified value to the {@link XrForceFeedbackCurlApplyLocationsMNDX#type} field. */ + public XrForceFeedbackCurlApplyLocationsMNDX.Buffer type(@NativeType("XrStructureType") int value) { XrForceFeedbackCurlApplyLocationsMNDX.ntype(address(), value); return this; } + /** Sets the {@link MNDXForceFeedbackCurl#XR_TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX} value to the {@link XrForceFeedbackCurlApplyLocationsMNDX#type} field. */ + public XrForceFeedbackCurlApplyLocationsMNDX.Buffer type$Default() { return type(MNDXForceFeedbackCurl.XR_TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX); } + /** Sets the specified value to the {@link XrForceFeedbackCurlApplyLocationsMNDX#next} field. */ + public XrForceFeedbackCurlApplyLocationsMNDX.Buffer next(@NativeType("void const *") long value) { XrForceFeedbackCurlApplyLocationsMNDX.nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrForceFeedbackCurlApplyLocationMNDX.Buffer} to the {@link XrForceFeedbackCurlApplyLocationsMNDX#locations} field. */ + public XrForceFeedbackCurlApplyLocationsMNDX.Buffer locations(@NativeType("XrForceFeedbackCurlApplyLocationMNDX *") XrForceFeedbackCurlApplyLocationMNDX.Buffer value) { XrForceFeedbackCurlApplyLocationsMNDX.nlocations(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveatedViewConfigurationViewVARJO.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveatedViewConfigurationViewVARJO.java index 61c60a203d..e5e28f8592 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveatedViewConfigurationViewVARJO.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveatedViewConfigurationViewVARJO.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.*; + /** * Foveated view configuration views. * @@ -70,8 +70,8 @@ * void * {@link #next}; * XrBool32 {@link #foveatedRenderingActive}; * } - */ -public class XrFoveatedViewConfigurationViewVARJO extends Struct implements NativeResource { + */ +public class XrFoveatedViewConfigurationViewVARJO extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -81,32 +81,23 @@ public class XrFoveatedViewConfigurationViewVARJO extends Struct 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 XrFoveatedViewConfigurationViewVARJO#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFoveatedViewConfigurationViewVARJO#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -330,25 +321,25 @@ protected Buffer self() { protected XrFoveatedViewConfigurationViewVARJO getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFoveatedViewConfigurationViewVARJO#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFoveatedViewConfigurationViewVARJO.ntype(address()); } - /** @return the value of the {@link XrFoveatedViewConfigurationViewVARJO#next} field. */ - @NativeType("void *") - public long next() { return XrFoveatedViewConfigurationViewVARJO.nnext(address()); } - /** @return the value of the {@link XrFoveatedViewConfigurationViewVARJO#foveatedRenderingActive} field. */ - @NativeType("XrBool32") - public boolean foveatedRenderingActive() { return XrFoveatedViewConfigurationViewVARJO.nfoveatedRenderingActive(address()) != 0; } - - /** Sets the specified value to the {@link XrFoveatedViewConfigurationViewVARJO#type} field. */ - public XrFoveatedViewConfigurationViewVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrFoveatedViewConfigurationViewVARJO.ntype(address(), value); return this; } - /** Sets the {@link VARJOFoveatedRendering#XR_TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO} value to the {@link XrFoveatedViewConfigurationViewVARJO#type} field. */ - public XrFoveatedViewConfigurationViewVARJO.Buffer type$Default() { return type(VARJOFoveatedRendering.XR_TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO); } - /** Sets the specified value to the {@link XrFoveatedViewConfigurationViewVARJO#next} field. */ - public XrFoveatedViewConfigurationViewVARJO.Buffer next(@NativeType("void *") long value) { XrFoveatedViewConfigurationViewVARJO.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrFoveatedViewConfigurationViewVARJO#foveatedRenderingActive} field. */ - public XrFoveatedViewConfigurationViewVARJO.Buffer foveatedRenderingActive(@NativeType("XrBool32") boolean value) { XrFoveatedViewConfigurationViewVARJO.nfoveatedRenderingActive(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrFoveatedViewConfigurationViewVARJO#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFoveatedViewConfigurationViewVARJO.ntype(address()); } + /** @return the value of the {@link XrFoveatedViewConfigurationViewVARJO#next} field. */ + @NativeType("void *") + public long next() { return XrFoveatedViewConfigurationViewVARJO.nnext(address()); } + /** @return the value of the {@link XrFoveatedViewConfigurationViewVARJO#foveatedRenderingActive} field. */ + @NativeType("XrBool32") + public boolean foveatedRenderingActive() { return XrFoveatedViewConfigurationViewVARJO.nfoveatedRenderingActive(address()) != 0; } + + /** Sets the specified value to the {@link XrFoveatedViewConfigurationViewVARJO#type} field. */ + public XrFoveatedViewConfigurationViewVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrFoveatedViewConfigurationViewVARJO.ntype(address(), value); return this; } + /** Sets the {@link VARJOFoveatedRendering#XR_TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO} value to the {@link XrFoveatedViewConfigurationViewVARJO#type} field. */ + public XrFoveatedViewConfigurationViewVARJO.Buffer type$Default() { return type(VARJOFoveatedRendering.XR_TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO); } + /** Sets the specified value to the {@link XrFoveatedViewConfigurationViewVARJO#next} field. */ + public XrFoveatedViewConfigurationViewVARJO.Buffer next(@NativeType("void *") long value) { XrFoveatedViewConfigurationViewVARJO.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrFoveatedViewConfigurationViewVARJO#foveatedRenderingActive} field. */ + public XrFoveatedViewConfigurationViewVARJO.Buffer foveatedRenderingActive(@NativeType("XrBool32") boolean value) { XrFoveatedViewConfigurationViewVARJO.nfoveatedRenderingActive(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationApplyInfoHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationApplyInfoHTC.java index 9a2c11e419..b0ec96bc71 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationApplyInfoHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationApplyInfoHTC.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 for foveation applying. * @@ -61,8 +61,8 @@ * uint32_t {@link #subImageCount}; * {@link XrSwapchainSubImage XrSwapchainSubImage} * {@link #subImages}; * } - */ -public class XrFoveationApplyInfoHTC extends Struct implements NativeResource { + */ +public class XrFoveationApplyInfoHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -72,38 +72,29 @@ public class XrFoveationApplyInfoHTC extends Struct imp /** The struct member offsets. */ public static final int - TYPE, - NEXT, - MODE, - SUBIMAGECOUNT, - SUBIMAGES; + TYPE, + NEXT, + MODE, + SUBIMAGECOUNT, + SUBIMAGES; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - MODE = layout.offsetof(2); - SUBIMAGECOUNT = layout.offsetof(3); - SUBIMAGES = layout.offsetof(4); - } - - protected XrFoveationApplyInfoHTC(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrFoveationApplyInfoHTC create(long address, @Nullable ByteBuffer container) { - return new XrFoveationApplyInfoHTC(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + MODE = layout.offsetof(2); + SUBIMAGECOUNT = layout.offsetof(3); + SUBIMAGES = layout.offsetof(4); } /** @@ -118,49 +109,49 @@ public XrFoveationApplyInfoHTC(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()); } - /** an {@code XrFoveationModeHTC} enum describing the foveation mode. */ - @NativeType("XrFoveationModeHTC") - public int mode() { return nmode(address()); } - /** the count of {@code subImages} in the {@code subImages} array. This must be equal to the number of view poses returned by {@link XR10#xrLocateViews LocateViews}. */ - @NativeType("uint32_t") - public int subImageCount() { return nsubImageCount(address()); } - /** an array of {@link XrSwapchainSubImage} to apply foveated rendering. */ - @NativeType("XrSwapchainSubImage *") - public XrSwapchainSubImage.Buffer subImages() { return nsubImages(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFoveationApplyInfoHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_APPLY_INFO_HTC TYPE_FOVEATION_APPLY_INFO_HTC} value to the {@link #type} field. */ - public XrFoveationApplyInfoHTC type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_APPLY_INFO_HTC); } - /** Sets the specified value to the {@link #next} field. */ - public XrFoveationApplyInfoHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrFoveationCustomModeInfoHTC} value to the {@code next} chain. */ - public XrFoveationApplyInfoHTC next(XrFoveationCustomModeInfoHTC value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrFoveationDynamicModeInfoHTC} value to the {@code next} chain. */ - public XrFoveationApplyInfoHTC next(XrFoveationDynamicModeInfoHTC value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #mode} field. */ - public XrFoveationApplyInfoHTC mode(@NativeType("XrFoveationModeHTC") int value) { nmode(address(), value); return this; } - /** Sets the address of the specified {@link XrSwapchainSubImage.Buffer} to the {@link #subImages} field. */ - public XrFoveationApplyInfoHTC subImages(@NativeType("XrSwapchainSubImage *") XrSwapchainSubImage.Buffer value) { nsubImages(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()); } + /** an {@code XrFoveationModeHTC} enum describing the foveation mode. */ + @NativeType("XrFoveationModeHTC") + public int mode() { return nmode(address()); } + /** the count of {@code subImages} in the {@code subImages} array. This must be equal to the number of view poses returned by {@link XR10#xrLocateViews LocateViews}. */ + @NativeType("uint32_t") + public int subImageCount() { return nsubImageCount(address()); } + /** an array of {@link XrSwapchainSubImage} to apply foveated rendering. */ + @NativeType("XrSwapchainSubImage *") + public XrSwapchainSubImage.Buffer subImages() { return nsubImages(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFoveationApplyInfoHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_APPLY_INFO_HTC TYPE_FOVEATION_APPLY_INFO_HTC} value to the {@link #type} field. */ + public XrFoveationApplyInfoHTC type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_APPLY_INFO_HTC); } + /** Sets the specified value to the {@link #next} field. */ + public XrFoveationApplyInfoHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrFoveationCustomModeInfoHTC} value to the {@code next} chain. */ + public XrFoveationApplyInfoHTC next(XrFoveationCustomModeInfoHTC value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrFoveationDynamicModeInfoHTC} value to the {@code next} chain. */ + public XrFoveationApplyInfoHTC next(XrFoveationDynamicModeInfoHTC value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #mode} field. */ + public XrFoveationApplyInfoHTC mode(@NativeType("XrFoveationModeHTC") int value) { nmode(address(), value); return this; } + /** Sets the address of the specified {@link XrSwapchainSubImage.Buffer} to the {@link #subImages} field. */ + public XrFoveationApplyInfoHTC subImages(@NativeType("XrSwapchainSubImage *") XrSwapchainSubImage.Buffer value) { nsubImages(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFoveationApplyInfoHTC set( - int type, - long next, - int mode, + int type, + long next, + int mode, XrSwapchainSubImage.Buffer subImages - ) { - type(type); - next(next); - mode(mode); - subImages(subImages); + ) { + type(type); + next(next); + mode(mode); + subImages(subImages); return this; } @@ -181,29 +172,29 @@ public XrFoveationApplyInfoHTC set(XrFoveationApplyInfoHTC src) { /** Returns a new {@code XrFoveationApplyInfoHTC} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrFoveationApplyInfoHTC malloc() { - return new XrFoveationApplyInfoHTC(nmemAllocChecked(SIZEOF), null); + return wrap(XrFoveationApplyInfoHTC.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrFoveationApplyInfoHTC} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrFoveationApplyInfoHTC calloc() { - return new XrFoveationApplyInfoHTC(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrFoveationApplyInfoHTC.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrFoveationApplyInfoHTC} instance allocated with {@link BufferUtils}. */ public static XrFoveationApplyInfoHTC create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrFoveationApplyInfoHTC(memAddress(container), container); + return wrap(XrFoveationApplyInfoHTC.class, memAddress(container), container); } /** Returns a new {@code XrFoveationApplyInfoHTC} instance for the specified memory address. */ public static XrFoveationApplyInfoHTC create(long address) { - return new XrFoveationApplyInfoHTC(address, null); + return wrap(XrFoveationApplyInfoHTC.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrFoveationApplyInfoHTC createSafe(long address) { - return address == NULL ? null : new XrFoveationApplyInfoHTC(address, null); + return address == NULL ? null : wrap(XrFoveationApplyInfoHTC.class, address); } /** @@ -212,7 +203,7 @@ public static XrFoveationApplyInfoHTC createSafe(long address) { * @param capacity the buffer capacity */ public static XrFoveationApplyInfoHTC.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -221,7 +212,7 @@ public static XrFoveationApplyInfoHTC.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrFoveationApplyInfoHTC.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -231,7 +222,7 @@ public static XrFoveationApplyInfoHTC.Buffer calloc(int capacity) { */ public static XrFoveationApplyInfoHTC.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); } /** @@ -241,13 +232,13 @@ public static XrFoveationApplyInfoHTC.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrFoveationApplyInfoHTC.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 XrFoveationApplyInfoHTC.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -256,7 +247,7 @@ public static XrFoveationApplyInfoHTC.Buffer createSafe(long address, int capaci * @param stack the stack from which to allocate */ public static XrFoveationApplyInfoHTC malloc(MemoryStack stack) { - return new XrFoveationApplyInfoHTC(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrFoveationApplyInfoHTC.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -265,7 +256,7 @@ public static XrFoveationApplyInfoHTC malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrFoveationApplyInfoHTC calloc(MemoryStack stack) { - return new XrFoveationApplyInfoHTC(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrFoveationApplyInfoHTC.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -275,7 +266,7 @@ public static XrFoveationApplyInfoHTC calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFoveationApplyInfoHTC.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); } /** @@ -285,32 +276,32 @@ public static XrFoveationApplyInfoHTC.Buffer malloc(int capacity, MemoryStack st * @param capacity the buffer capacity */ public static XrFoveationApplyInfoHTC.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 + XrFoveationApplyInfoHTC.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFoveationApplyInfoHTC.NEXT); } - /** Unsafe version of {@link #mode}. */ - public static int nmode(long struct) { return UNSAFE.getInt(null, struct + XrFoveationApplyInfoHTC.MODE); } - /** Unsafe version of {@link #subImageCount}. */ - public static int nsubImageCount(long struct) { return UNSAFE.getInt(null, struct + XrFoveationApplyInfoHTC.SUBIMAGECOUNT); } - /** Unsafe version of {@link #subImages}. */ - public static XrSwapchainSubImage.Buffer nsubImages(long struct) { return XrSwapchainSubImage.create(memGetAddress(struct + XrFoveationApplyInfoHTC.SUBIMAGES), nsubImageCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationApplyInfoHTC.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFoveationApplyInfoHTC.NEXT, value); } - /** Unsafe version of {@link #mode(int) mode}. */ - public static void nmode(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationApplyInfoHTC.MODE, value); } - /** Sets the specified value to the {@code subImageCount} field of the specified {@code struct}. */ - public static void nsubImageCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationApplyInfoHTC.SUBIMAGECOUNT, value); } - /** Unsafe version of {@link #subImages(XrSwapchainSubImage.Buffer) subImages}. */ - public static void nsubImages(long struct, XrSwapchainSubImage.Buffer value) { memPutAddress(struct + XrFoveationApplyInfoHTC.SUBIMAGES, value.address()); nsubImageCount(struct, value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFoveationApplyInfoHTC.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFoveationApplyInfoHTC.NEXT); } + /** Unsafe version of {@link #mode}. */ + public static int nmode(long struct) { return UNSAFE.getInt(null, struct + XrFoveationApplyInfoHTC.MODE); } + /** Unsafe version of {@link #subImageCount}. */ + public static int nsubImageCount(long struct) { return UNSAFE.getInt(null, struct + XrFoveationApplyInfoHTC.SUBIMAGECOUNT); } + /** Unsafe version of {@link #subImages}. */ + public static XrSwapchainSubImage.Buffer nsubImages(long struct) { return XrSwapchainSubImage.create(memGetAddress(struct + XrFoveationApplyInfoHTC.SUBIMAGES), nsubImageCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationApplyInfoHTC.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFoveationApplyInfoHTC.NEXT, value); } + /** Unsafe version of {@link #mode(int) mode}. */ + public static void nmode(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationApplyInfoHTC.MODE, value); } + /** Sets the specified value to the {@code subImageCount} field of the specified {@code struct}. */ + public static void nsubImageCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationApplyInfoHTC.SUBIMAGECOUNT, value); } + /** Unsafe version of {@link #subImages(XrSwapchainSubImage.Buffer) subImages}. */ + public static void nsubImages(long struct, XrSwapchainSubImage.Buffer value) { memPutAddress(struct + XrFoveationApplyInfoHTC.SUBIMAGES, value.address()); nsubImageCount(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -322,9 +313,9 @@ public static void validate(long struct) { long subImages = memGetAddress(struct + XrFoveationApplyInfoHTC.SUBIMAGES); check(subImages); validate(subImages, subImageCount, XrSwapchainSubImage.SIZEOF, XrSwapchainSubImage::validate); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrFoveationApplyInfoHTC} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -334,9 +325,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrFoveationApplyInfoHTC.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 XrFoveationApplyInfoHTC#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFoveationApplyInfoHTC#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -361,37 +352,37 @@ protected Buffer self() { protected XrFoveationApplyInfoHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFoveationApplyInfoHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFoveationApplyInfoHTC.ntype(address()); } - /** @return the value of the {@link XrFoveationApplyInfoHTC#next} field. */ - @NativeType("void const *") - public long next() { return XrFoveationApplyInfoHTC.nnext(address()); } - /** @return the value of the {@link XrFoveationApplyInfoHTC#mode} field. */ - @NativeType("XrFoveationModeHTC") - public int mode() { return XrFoveationApplyInfoHTC.nmode(address()); } - /** @return the value of the {@link XrFoveationApplyInfoHTC#subImageCount} field. */ - @NativeType("uint32_t") - public int subImageCount() { return XrFoveationApplyInfoHTC.nsubImageCount(address()); } - /** @return a {@link XrSwapchainSubImage.Buffer} view of the struct array pointed to by the {@link XrFoveationApplyInfoHTC#subImages} field. */ - @NativeType("XrSwapchainSubImage *") - public XrSwapchainSubImage.Buffer subImages() { return XrFoveationApplyInfoHTC.nsubImages(address()); } - - /** Sets the specified value to the {@link XrFoveationApplyInfoHTC#type} field. */ - public XrFoveationApplyInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationApplyInfoHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_APPLY_INFO_HTC TYPE_FOVEATION_APPLY_INFO_HTC} value to the {@link XrFoveationApplyInfoHTC#type} field. */ - public XrFoveationApplyInfoHTC.Buffer type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_APPLY_INFO_HTC); } - /** Sets the specified value to the {@link XrFoveationApplyInfoHTC#next} field. */ - public XrFoveationApplyInfoHTC.Buffer next(@NativeType("void const *") long value) { XrFoveationApplyInfoHTC.nnext(address(), value); return this; } - /** Prepends the specified {@link XrFoveationCustomModeInfoHTC} value to the {@code next} chain. */ - public XrFoveationApplyInfoHTC.Buffer next(XrFoveationCustomModeInfoHTC value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrFoveationDynamicModeInfoHTC} value to the {@code next} chain. */ - public XrFoveationApplyInfoHTC.Buffer next(XrFoveationDynamicModeInfoHTC value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrFoveationApplyInfoHTC#mode} field. */ - public XrFoveationApplyInfoHTC.Buffer mode(@NativeType("XrFoveationModeHTC") int value) { XrFoveationApplyInfoHTC.nmode(address(), value); return this; } - /** Sets the address of the specified {@link XrSwapchainSubImage.Buffer} to the {@link XrFoveationApplyInfoHTC#subImages} field. */ - public XrFoveationApplyInfoHTC.Buffer subImages(@NativeType("XrSwapchainSubImage *") XrSwapchainSubImage.Buffer value) { XrFoveationApplyInfoHTC.nsubImages(address(), value); return this; } + + /** @return the value of the {@link XrFoveationApplyInfoHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFoveationApplyInfoHTC.ntype(address()); } + /** @return the value of the {@link XrFoveationApplyInfoHTC#next} field. */ + @NativeType("void const *") + public long next() { return XrFoveationApplyInfoHTC.nnext(address()); } + /** @return the value of the {@link XrFoveationApplyInfoHTC#mode} field. */ + @NativeType("XrFoveationModeHTC") + public int mode() { return XrFoveationApplyInfoHTC.nmode(address()); } + /** @return the value of the {@link XrFoveationApplyInfoHTC#subImageCount} field. */ + @NativeType("uint32_t") + public int subImageCount() { return XrFoveationApplyInfoHTC.nsubImageCount(address()); } + /** @return a {@link XrSwapchainSubImage.Buffer} view of the struct array pointed to by the {@link XrFoveationApplyInfoHTC#subImages} field. */ + @NativeType("XrSwapchainSubImage *") + public XrSwapchainSubImage.Buffer subImages() { return XrFoveationApplyInfoHTC.nsubImages(address()); } + + /** Sets the specified value to the {@link XrFoveationApplyInfoHTC#type} field. */ + public XrFoveationApplyInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationApplyInfoHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_APPLY_INFO_HTC TYPE_FOVEATION_APPLY_INFO_HTC} value to the {@link XrFoveationApplyInfoHTC#type} field. */ + public XrFoveationApplyInfoHTC.Buffer type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_APPLY_INFO_HTC); } + /** Sets the specified value to the {@link XrFoveationApplyInfoHTC#next} field. */ + public XrFoveationApplyInfoHTC.Buffer next(@NativeType("void const *") long value) { XrFoveationApplyInfoHTC.nnext(address(), value); return this; } + /** Prepends the specified {@link XrFoveationCustomModeInfoHTC} value to the {@code next} chain. */ + public XrFoveationApplyInfoHTC.Buffer next(XrFoveationCustomModeInfoHTC value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrFoveationDynamicModeInfoHTC} value to the {@code next} chain. */ + public XrFoveationApplyInfoHTC.Buffer next(XrFoveationDynamicModeInfoHTC value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrFoveationApplyInfoHTC#mode} field. */ + public XrFoveationApplyInfoHTC.Buffer mode(@NativeType("XrFoveationModeHTC") int value) { XrFoveationApplyInfoHTC.nmode(address(), value); return this; } + /** Sets the address of the specified {@link XrSwapchainSubImage.Buffer} to the {@link XrFoveationApplyInfoHTC#subImages} field. */ + public XrFoveationApplyInfoHTC.Buffer subImages(@NativeType("XrSwapchainSubImage *") XrSwapchainSubImage.Buffer value) { XrFoveationApplyInfoHTC.nsubImages(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationConfigurationHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationConfigurationHTC.java index 0b9c4c274c..a457700ab1 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationConfigurationHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationConfigurationHTC.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.*; + /** * Configuration of foveation. * @@ -37,8 +37,8 @@ * float {@link #clearFovDegree}; * {@link XrVector2f XrVector2f} {@link #focalCenterOffset}; * } - */ -public class XrFoveationConfigurationHTC extends Struct implements NativeResource { + */ +public class XrFoveationConfigurationHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,32 +48,23 @@ public class XrFoveationConfigurationHTC extends Structmust be specified in degree, and must be in the range [0, 180]. */ - public float clearFovDegree() { return nclearFovDegree(address()); } - /** the desired center offset of the field of view in NDC(normalized device coordinates) space. The x and y of {@code focalCenterOffset} must be in the range [-1, 1]. */ - public XrVector2f focalCenterOffset() { return nfocalCenterOffset(address()); } - - /** Sets the specified value to the {@link #level} field. */ - public XrFoveationConfigurationHTC level(@NativeType("XrFoveationLevelHTC") int value) { nlevel(address(), value); return this; } - /** Sets the specified value to the {@link #clearFovDegree} field. */ - public XrFoveationConfigurationHTC clearFovDegree(float value) { nclearFovDegree(address(), value); return this; } - /** Copies the specified {@link XrVector2f} to the {@link #focalCenterOffset} field. */ - public XrFoveationConfigurationHTC focalCenterOffset(XrVector2f value) { nfocalCenterOffset(address(), value); return this; } - /** Passes the {@link #focalCenterOffset} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrFoveationConfigurationHTC focalCenterOffset(java.util.function.Consumer consumer) { consumer.accept(focalCenterOffset()); return this; } + + /** the pixel density drop level of periphery area specified by {@code XrFoveationLevelHTC} . */ + @NativeType("XrFoveationLevelHTC") + public int level() { return nlevel(address()); } + /** the value indicating the total horizontal and vertical field angle with the original pixel density level. {@code clearFovDegree} must be specified in degree, and must be in the range [0, 180]. */ + public float clearFovDegree() { return nclearFovDegree(address()); } + /** the desired center offset of the field of view in NDC(normalized device coordinates) space. The x and y of {@code focalCenterOffset} must be in the range [-1, 1]. */ + public XrVector2f focalCenterOffset() { return nfocalCenterOffset(address()); } + + /** Sets the specified value to the {@link #level} field. */ + public XrFoveationConfigurationHTC level(@NativeType("XrFoveationLevelHTC") int value) { nlevel(address(), value); return this; } + /** Sets the specified value to the {@link #clearFovDegree} field. */ + public XrFoveationConfigurationHTC clearFovDegree(float value) { nclearFovDegree(address(), value); return this; } + /** Copies the specified {@link XrVector2f} to the {@link #focalCenterOffset} field. */ + public XrFoveationConfigurationHTC focalCenterOffset(XrVector2f value) { nfocalCenterOffset(address(), value); return this; } + /** Passes the {@link #focalCenterOffset} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrFoveationConfigurationHTC focalCenterOffset(java.util.function.Consumer consumer) { consumer.accept(focalCenterOffset()); return this; } /** Initializes this struct with the specified values. */ public XrFoveationConfigurationHTC set( - int level, - float clearFovDegree, + int level, + float clearFovDegree, XrVector2f focalCenterOffset - ) { - level(level); - clearFovDegree(clearFovDegree); - focalCenterOffset(focalCenterOffset); + ) { + level(level); + clearFovDegree(clearFovDegree); + focalCenterOffset(focalCenterOffset); return this; } @@ -135,29 +126,29 @@ public XrFoveationConfigurationHTC set(XrFoveationConfigurationHTC src) { /** Returns a new {@code XrFoveationConfigurationHTC} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrFoveationConfigurationHTC malloc() { - return new XrFoveationConfigurationHTC(nmemAllocChecked(SIZEOF), null); + return wrap(XrFoveationConfigurationHTC.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrFoveationConfigurationHTC} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrFoveationConfigurationHTC calloc() { - return new XrFoveationConfigurationHTC(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrFoveationConfigurationHTC.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrFoveationConfigurationHTC} instance allocated with {@link BufferUtils}. */ public static XrFoveationConfigurationHTC create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrFoveationConfigurationHTC(memAddress(container), container); + return wrap(XrFoveationConfigurationHTC.class, memAddress(container), container); } /** Returns a new {@code XrFoveationConfigurationHTC} instance for the specified memory address. */ public static XrFoveationConfigurationHTC create(long address) { - return new XrFoveationConfigurationHTC(address, null); + return wrap(XrFoveationConfigurationHTC.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrFoveationConfigurationHTC createSafe(long address) { - return address == NULL ? null : new XrFoveationConfigurationHTC(address, null); + return address == NULL ? null : wrap(XrFoveationConfigurationHTC.class, address); } /** @@ -166,7 +157,7 @@ public static XrFoveationConfigurationHTC createSafe(long address) { * @param capacity the buffer capacity */ public static XrFoveationConfigurationHTC.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 XrFoveationConfigurationHTC.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrFoveationConfigurationHTC.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 XrFoveationConfigurationHTC.Buffer calloc(int capacity) { */ public static XrFoveationConfigurationHTC.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 XrFoveationConfigurationHTC.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrFoveationConfigurationHTC.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 XrFoveationConfigurationHTC.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 XrFoveationConfigurationHTC.Buffer createSafe(long address, int ca * @param stack the stack from which to allocate */ public static XrFoveationConfigurationHTC malloc(MemoryStack stack) { - return new XrFoveationConfigurationHTC(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrFoveationConfigurationHTC.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -219,7 +210,7 @@ public static XrFoveationConfigurationHTC malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrFoveationConfigurationHTC calloc(MemoryStack stack) { - return new XrFoveationConfigurationHTC(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrFoveationConfigurationHTC.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -229,7 +220,7 @@ public static XrFoveationConfigurationHTC calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFoveationConfigurationHTC.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 XrFoveationConfigurationHTC.Buffer malloc(int capacity, MemoryStac * @param capacity the buffer capacity */ public static XrFoveationConfigurationHTC.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 #level}. */ - public static int nlevel(long struct) { return UNSAFE.getInt(null, struct + XrFoveationConfigurationHTC.LEVEL); } - /** Unsafe version of {@link #clearFovDegree}. */ - public static float nclearFovDegree(long struct) { return UNSAFE.getFloat(null, struct + XrFoveationConfigurationHTC.CLEARFOVDEGREE); } - /** Unsafe version of {@link #focalCenterOffset}. */ - public static XrVector2f nfocalCenterOffset(long struct) { return XrVector2f.create(struct + XrFoveationConfigurationHTC.FOCALCENTEROFFSET); } - - /** Unsafe version of {@link #level(int) level}. */ - public static void nlevel(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationConfigurationHTC.LEVEL, value); } - /** Unsafe version of {@link #clearFovDegree(float) clearFovDegree}. */ - public static void nclearFovDegree(long struct, float value) { UNSAFE.putFloat(null, struct + XrFoveationConfigurationHTC.CLEARFOVDEGREE, value); } - /** Unsafe version of {@link #focalCenterOffset(XrVector2f) focalCenterOffset}. */ - public static void nfocalCenterOffset(long struct, XrVector2f value) { memCopy(value.address(), struct + XrFoveationConfigurationHTC.FOCALCENTEROFFSET, XrVector2f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #level}. */ + public static int nlevel(long struct) { return UNSAFE.getInt(null, struct + XrFoveationConfigurationHTC.LEVEL); } + /** Unsafe version of {@link #clearFovDegree}. */ + public static float nclearFovDegree(long struct) { return UNSAFE.getFloat(null, struct + XrFoveationConfigurationHTC.CLEARFOVDEGREE); } + /** Unsafe version of {@link #focalCenterOffset}. */ + public static XrVector2f nfocalCenterOffset(long struct) { return XrVector2f.create(struct + XrFoveationConfigurationHTC.FOCALCENTEROFFSET); } + + /** Unsafe version of {@link #level(int) level}. */ + public static void nlevel(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationConfigurationHTC.LEVEL, value); } + /** Unsafe version of {@link #clearFovDegree(float) clearFovDegree}. */ + public static void nclearFovDegree(long struct, float value) { UNSAFE.putFloat(null, struct + XrFoveationConfigurationHTC.CLEARFOVDEGREE, value); } + /** Unsafe version of {@link #focalCenterOffset(XrVector2f) focalCenterOffset}. */ + public static void nfocalCenterOffset(long struct, XrVector2f value) { memCopy(value.address(), struct + XrFoveationConfigurationHTC.FOCALCENTEROFFSET, XrVector2f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrFoveationConfigurationHTC} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -268,9 +259,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 XrFoveationConfigurationHTC#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFoveationConfigurationHTC#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -295,23 +286,23 @@ protected Buffer self() { protected XrFoveationConfigurationHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFoveationConfigurationHTC#level} field. */ - @NativeType("XrFoveationLevelHTC") - public int level() { return XrFoveationConfigurationHTC.nlevel(address()); } - /** @return the value of the {@link XrFoveationConfigurationHTC#clearFovDegree} field. */ - public float clearFovDegree() { return XrFoveationConfigurationHTC.nclearFovDegree(address()); } - /** @return a {@link XrVector2f} view of the {@link XrFoveationConfigurationHTC#focalCenterOffset} field. */ - public XrVector2f focalCenterOffset() { return XrFoveationConfigurationHTC.nfocalCenterOffset(address()); } - - /** Sets the specified value to the {@link XrFoveationConfigurationHTC#level} field. */ - public XrFoveationConfigurationHTC.Buffer level(@NativeType("XrFoveationLevelHTC") int value) { XrFoveationConfigurationHTC.nlevel(address(), value); return this; } - /** Sets the specified value to the {@link XrFoveationConfigurationHTC#clearFovDegree} field. */ - public XrFoveationConfigurationHTC.Buffer clearFovDegree(float value) { XrFoveationConfigurationHTC.nclearFovDegree(address(), value); return this; } - /** Copies the specified {@link XrVector2f} to the {@link XrFoveationConfigurationHTC#focalCenterOffset} field. */ - public XrFoveationConfigurationHTC.Buffer focalCenterOffset(XrVector2f value) { XrFoveationConfigurationHTC.nfocalCenterOffset(address(), value); return this; } - /** Passes the {@link XrFoveationConfigurationHTC#focalCenterOffset} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrFoveationConfigurationHTC.Buffer focalCenterOffset(java.util.function.Consumer consumer) { consumer.accept(focalCenterOffset()); return this; } + + /** @return the value of the {@link XrFoveationConfigurationHTC#level} field. */ + @NativeType("XrFoveationLevelHTC") + public int level() { return XrFoveationConfigurationHTC.nlevel(address()); } + /** @return the value of the {@link XrFoveationConfigurationHTC#clearFovDegree} field. */ + public float clearFovDegree() { return XrFoveationConfigurationHTC.nclearFovDegree(address()); } + /** @return a {@link XrVector2f} view of the {@link XrFoveationConfigurationHTC#focalCenterOffset} field. */ + public XrVector2f focalCenterOffset() { return XrFoveationConfigurationHTC.nfocalCenterOffset(address()); } + + /** Sets the specified value to the {@link XrFoveationConfigurationHTC#level} field. */ + public XrFoveationConfigurationHTC.Buffer level(@NativeType("XrFoveationLevelHTC") int value) { XrFoveationConfigurationHTC.nlevel(address(), value); return this; } + /** Sets the specified value to the {@link XrFoveationConfigurationHTC#clearFovDegree} field. */ + public XrFoveationConfigurationHTC.Buffer clearFovDegree(float value) { XrFoveationConfigurationHTC.nclearFovDegree(address(), value); return this; } + /** Copies the specified {@link XrVector2f} to the {@link XrFoveationConfigurationHTC#focalCenterOffset} field. */ + public XrFoveationConfigurationHTC.Buffer focalCenterOffset(XrVector2f value) { XrFoveationConfigurationHTC.nfocalCenterOffset(address(), value); return this; } + /** Passes the {@link XrFoveationConfigurationHTC#focalCenterOffset} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrFoveationConfigurationHTC.Buffer focalCenterOffset(java.util.function.Consumer consumer) { consumer.accept(focalCenterOffset()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationCustomModeInfoHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationCustomModeInfoHTC.java index 349aed4c7c..23b1d44749 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationCustomModeInfoHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationCustomModeInfoHTC.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.*; + /** * Configuration for custom mode. * @@ -46,8 +46,8 @@ * uint32_t {@link #configCount}; * {@link XrFoveationConfigurationHTC XrFoveationConfigurationHTC} const * {@link #configs}; * } - */ -public class XrFoveationCustomModeInfoHTC extends Struct implements NativeResource { + */ +public class XrFoveationCustomModeInfoHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,35 +57,26 @@ public class XrFoveationCustomModeInfoHTC extends Structmust be the number of views. */ - @NativeType("uint32_t") - public int configCount() { return nconfigCount(address()); } - /** an array of {@link XrFoveationConfigurationHTC} structure contains the custom foveation settings for the corresponding views. */ - @NativeType("XrFoveationConfigurationHTC const *") - public XrFoveationConfigurationHTC.Buffer configs() { return nconfigs(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFoveationCustomModeInfoHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC} value to the {@link #type} field. */ - public XrFoveationCustomModeInfoHTC type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC); } - /** Sets the specified value to the {@link #next} field. */ - public XrFoveationCustomModeInfoHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrFoveationConfigurationHTC.Buffer} to the {@link #configs} field. */ - public XrFoveationCustomModeInfoHTC configs(@NativeType("XrFoveationConfigurationHTC const *") XrFoveationConfigurationHTC.Buffer value) { nconfigs(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()); } + /** a {@code uint32_t} describing the count of elements in the {@code configs} array, which must be the number of views. */ + @NativeType("uint32_t") + public int configCount() { return nconfigCount(address()); } + /** an array of {@link XrFoveationConfigurationHTC} structure contains the custom foveation settings for the corresponding views. */ + @NativeType("XrFoveationConfigurationHTC const *") + public XrFoveationConfigurationHTC.Buffer configs() { return nconfigs(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFoveationCustomModeInfoHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC} value to the {@link #type} field. */ + public XrFoveationCustomModeInfoHTC type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC); } + /** Sets the specified value to the {@link #next} field. */ + public XrFoveationCustomModeInfoHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrFoveationConfigurationHTC.Buffer} to the {@link #configs} field. */ + public XrFoveationCustomModeInfoHTC configs(@NativeType("XrFoveationConfigurationHTC const *") XrFoveationConfigurationHTC.Buffer value) { nconfigs(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFoveationCustomModeInfoHTC set( - int type, - long next, + int type, + long next, XrFoveationConfigurationHTC.Buffer configs - ) { - type(type); - next(next); - configs(configs); + ) { + type(type); + next(next); + configs(configs); return this; } @@ -152,29 +143,29 @@ public XrFoveationCustomModeInfoHTC set(XrFoveationCustomModeInfoHTC src) { /** Returns a new {@code XrFoveationCustomModeInfoHTC} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrFoveationCustomModeInfoHTC malloc() { - return new XrFoveationCustomModeInfoHTC(nmemAllocChecked(SIZEOF), null); + return wrap(XrFoveationCustomModeInfoHTC.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrFoveationCustomModeInfoHTC} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrFoveationCustomModeInfoHTC calloc() { - return new XrFoveationCustomModeInfoHTC(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrFoveationCustomModeInfoHTC.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrFoveationCustomModeInfoHTC} instance allocated with {@link BufferUtils}. */ public static XrFoveationCustomModeInfoHTC create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrFoveationCustomModeInfoHTC(memAddress(container), container); + return wrap(XrFoveationCustomModeInfoHTC.class, memAddress(container), container); } /** Returns a new {@code XrFoveationCustomModeInfoHTC} instance for the specified memory address. */ public static XrFoveationCustomModeInfoHTC create(long address) { - return new XrFoveationCustomModeInfoHTC(address, null); + return wrap(XrFoveationCustomModeInfoHTC.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrFoveationCustomModeInfoHTC createSafe(long address) { - return address == NULL ? null : new XrFoveationCustomModeInfoHTC(address, null); + return address == NULL ? null : wrap(XrFoveationCustomModeInfoHTC.class, address); } /** @@ -183,7 +174,7 @@ public static XrFoveationCustomModeInfoHTC createSafe(long address) { * @param capacity the buffer capacity */ public static XrFoveationCustomModeInfoHTC.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 XrFoveationCustomModeInfoHTC.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrFoveationCustomModeInfoHTC.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 XrFoveationCustomModeInfoHTC.Buffer calloc(int capacity) { */ public static XrFoveationCustomModeInfoHTC.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 XrFoveationCustomModeInfoHTC.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrFoveationCustomModeInfoHTC.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 XrFoveationCustomModeInfoHTC.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 XrFoveationCustomModeInfoHTC.Buffer createSafe(long address, int c * @param stack the stack from which to allocate */ public static XrFoveationCustomModeInfoHTC malloc(MemoryStack stack) { - return new XrFoveationCustomModeInfoHTC(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrFoveationCustomModeInfoHTC.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -236,7 +227,7 @@ public static XrFoveationCustomModeInfoHTC malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrFoveationCustomModeInfoHTC calloc(MemoryStack stack) { - return new XrFoveationCustomModeInfoHTC(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrFoveationCustomModeInfoHTC.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -246,7 +237,7 @@ public static XrFoveationCustomModeInfoHTC calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFoveationCustomModeInfoHTC.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,28 +247,28 @@ public static XrFoveationCustomModeInfoHTC.Buffer malloc(int capacity, MemorySta * @param capacity the buffer capacity */ public static XrFoveationCustomModeInfoHTC.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 + XrFoveationCustomModeInfoHTC.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFoveationCustomModeInfoHTC.NEXT); } - /** Unsafe version of {@link #configCount}. */ - public static int nconfigCount(long struct) { return UNSAFE.getInt(null, struct + XrFoveationCustomModeInfoHTC.CONFIGCOUNT); } - /** Unsafe version of {@link #configs}. */ - public static XrFoveationConfigurationHTC.Buffer nconfigs(long struct) { return XrFoveationConfigurationHTC.create(memGetAddress(struct + XrFoveationCustomModeInfoHTC.CONFIGS), nconfigCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationCustomModeInfoHTC.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFoveationCustomModeInfoHTC.NEXT, value); } - /** Sets the specified value to the {@code configCount} field of the specified {@code struct}. */ - public static void nconfigCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationCustomModeInfoHTC.CONFIGCOUNT, value); } - /** Unsafe version of {@link #configs(XrFoveationConfigurationHTC.Buffer) configs}. */ - public static void nconfigs(long struct, XrFoveationConfigurationHTC.Buffer value) { memPutAddress(struct + XrFoveationCustomModeInfoHTC.CONFIGS, value.address()); nconfigCount(struct, value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFoveationCustomModeInfoHTC.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFoveationCustomModeInfoHTC.NEXT); } + /** Unsafe version of {@link #configCount}. */ + public static int nconfigCount(long struct) { return UNSAFE.getInt(null, struct + XrFoveationCustomModeInfoHTC.CONFIGCOUNT); } + /** Unsafe version of {@link #configs}. */ + public static XrFoveationConfigurationHTC.Buffer nconfigs(long struct) { return XrFoveationConfigurationHTC.create(memGetAddress(struct + XrFoveationCustomModeInfoHTC.CONFIGS), nconfigCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationCustomModeInfoHTC.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFoveationCustomModeInfoHTC.NEXT, value); } + /** Sets the specified value to the {@code configCount} field of the specified {@code struct}. */ + public static void nconfigCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationCustomModeInfoHTC.CONFIGCOUNT, value); } + /** Unsafe version of {@link #configs(XrFoveationConfigurationHTC.Buffer) configs}. */ + public static void nconfigs(long struct, XrFoveationConfigurationHTC.Buffer value) { memPutAddress(struct + XrFoveationCustomModeInfoHTC.CONFIGS, value.address()); nconfigCount(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -286,9 +277,9 @@ public static XrFoveationCustomModeInfoHTC.Buffer calloc(int capacity, MemorySta */ public static void validate(long struct) { check(memGetAddress(struct + XrFoveationCustomModeInfoHTC.CONFIGS)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrFoveationCustomModeInfoHTC} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -298,9 +289,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 XrFoveationCustomModeInfoHTC#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFoveationCustomModeInfoHTC#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -325,28 +316,28 @@ protected Buffer self() { protected XrFoveationCustomModeInfoHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFoveationCustomModeInfoHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFoveationCustomModeInfoHTC.ntype(address()); } - /** @return the value of the {@link XrFoveationCustomModeInfoHTC#next} field. */ - @NativeType("void const *") - public long next() { return XrFoveationCustomModeInfoHTC.nnext(address()); } - /** @return the value of the {@link XrFoveationCustomModeInfoHTC#configCount} field. */ - @NativeType("uint32_t") - public int configCount() { return XrFoveationCustomModeInfoHTC.nconfigCount(address()); } - /** @return a {@link XrFoveationConfigurationHTC.Buffer} view of the struct array pointed to by the {@link XrFoveationCustomModeInfoHTC#configs} field. */ - @NativeType("XrFoveationConfigurationHTC const *") - public XrFoveationConfigurationHTC.Buffer configs() { return XrFoveationCustomModeInfoHTC.nconfigs(address()); } - - /** Sets the specified value to the {@link XrFoveationCustomModeInfoHTC#type} field. */ - public XrFoveationCustomModeInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationCustomModeInfoHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC} value to the {@link XrFoveationCustomModeInfoHTC#type} field. */ - public XrFoveationCustomModeInfoHTC.Buffer type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC); } - /** Sets the specified value to the {@link XrFoveationCustomModeInfoHTC#next} field. */ - public XrFoveationCustomModeInfoHTC.Buffer next(@NativeType("void const *") long value) { XrFoveationCustomModeInfoHTC.nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrFoveationConfigurationHTC.Buffer} to the {@link XrFoveationCustomModeInfoHTC#configs} field. */ - public XrFoveationCustomModeInfoHTC.Buffer configs(@NativeType("XrFoveationConfigurationHTC const *") XrFoveationConfigurationHTC.Buffer value) { XrFoveationCustomModeInfoHTC.nconfigs(address(), value); return this; } + + /** @return the value of the {@link XrFoveationCustomModeInfoHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFoveationCustomModeInfoHTC.ntype(address()); } + /** @return the value of the {@link XrFoveationCustomModeInfoHTC#next} field. */ + @NativeType("void const *") + public long next() { return XrFoveationCustomModeInfoHTC.nnext(address()); } + /** @return the value of the {@link XrFoveationCustomModeInfoHTC#configCount} field. */ + @NativeType("uint32_t") + public int configCount() { return XrFoveationCustomModeInfoHTC.nconfigCount(address()); } + /** @return a {@link XrFoveationConfigurationHTC.Buffer} view of the struct array pointed to by the {@link XrFoveationCustomModeInfoHTC#configs} field. */ + @NativeType("XrFoveationConfigurationHTC const *") + public XrFoveationConfigurationHTC.Buffer configs() { return XrFoveationCustomModeInfoHTC.nconfigs(address()); } + + /** Sets the specified value to the {@link XrFoveationCustomModeInfoHTC#type} field. */ + public XrFoveationCustomModeInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationCustomModeInfoHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC} value to the {@link XrFoveationCustomModeInfoHTC#type} field. */ + public XrFoveationCustomModeInfoHTC.Buffer type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC); } + /** Sets the specified value to the {@link XrFoveationCustomModeInfoHTC#next} field. */ + public XrFoveationCustomModeInfoHTC.Buffer next(@NativeType("void const *") long value) { XrFoveationCustomModeInfoHTC.nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrFoveationConfigurationHTC.Buffer} to the {@link XrFoveationCustomModeInfoHTC#configs} field. */ + public XrFoveationCustomModeInfoHTC.Buffer configs(@NativeType("XrFoveationConfigurationHTC const *") XrFoveationConfigurationHTC.Buffer value) { XrFoveationCustomModeInfoHTC.nconfigs(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationDynamicModeInfoHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationDynamicModeInfoHTC.java index c02842ef55..67d4df6adf 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationDynamicModeInfoHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationDynamicModeInfoHTC.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.*; + /** * Configuration for dynamic mode. * @@ -39,8 +39,8 @@ * void const * {@link #next}; * XrFoveationDynamicFlagsHTC {@link #dynamicFlags}; * } - */ -public class XrFoveationDynamicModeInfoHTC extends Struct implements NativeResource { + */ +public class XrFoveationDynamicModeInfoHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,32 +50,23 @@ public class XrFoveationDynamicModeInfoHTC extends Structmay be changed during dynamic mode. */ - @NativeType("XrFoveationDynamicFlagsHTC") - public long dynamicFlags() { return ndynamicFlags(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFoveationDynamicModeInfoHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC} value to the {@link #type} field. */ - public XrFoveationDynamicModeInfoHTC type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC); } - /** Sets the specified value to the {@link #next} field. */ - public XrFoveationDynamicModeInfoHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #dynamicFlags} field. */ - public XrFoveationDynamicModeInfoHTC dynamicFlags(@NativeType("XrFoveationDynamicFlagsHTC") long value) { ndynamicFlags(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()); } + /** a bitmask of {@code XrFoveationDynamicFlagBitsHTC} indicated which item may be changed during dynamic mode. */ + @NativeType("XrFoveationDynamicFlagsHTC") + public long dynamicFlags() { return ndynamicFlags(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFoveationDynamicModeInfoHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC} value to the {@link #type} field. */ + public XrFoveationDynamicModeInfoHTC type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC); } + /** Sets the specified value to the {@link #next} field. */ + public XrFoveationDynamicModeInfoHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #dynamicFlags} field. */ + public XrFoveationDynamicModeInfoHTC dynamicFlags(@NativeType("XrFoveationDynamicFlagsHTC") long value) { ndynamicFlags(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFoveationDynamicModeInfoHTC set( - int type, - long next, + int type, + long next, long dynamicFlags - ) { - type(type); - next(next); - dynamicFlags(dynamicFlags); + ) { + type(type); + next(next); + dynamicFlags(dynamicFlags); return this; } @@ -139,29 +130,29 @@ public XrFoveationDynamicModeInfoHTC set(XrFoveationDynamicModeInfoHTC src) { /** Returns a new {@code XrFoveationDynamicModeInfoHTC} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrFoveationDynamicModeInfoHTC malloc() { - return new XrFoveationDynamicModeInfoHTC(nmemAllocChecked(SIZEOF), null); + return wrap(XrFoveationDynamicModeInfoHTC.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrFoveationDynamicModeInfoHTC} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrFoveationDynamicModeInfoHTC calloc() { - return new XrFoveationDynamicModeInfoHTC(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrFoveationDynamicModeInfoHTC.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrFoveationDynamicModeInfoHTC} instance allocated with {@link BufferUtils}. */ public static XrFoveationDynamicModeInfoHTC create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrFoveationDynamicModeInfoHTC(memAddress(container), container); + return wrap(XrFoveationDynamicModeInfoHTC.class, memAddress(container), container); } /** Returns a new {@code XrFoveationDynamicModeInfoHTC} instance for the specified memory address. */ public static XrFoveationDynamicModeInfoHTC create(long address) { - return new XrFoveationDynamicModeInfoHTC(address, null); + return wrap(XrFoveationDynamicModeInfoHTC.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrFoveationDynamicModeInfoHTC createSafe(long address) { - return address == NULL ? null : new XrFoveationDynamicModeInfoHTC(address, null); + return address == NULL ? null : wrap(XrFoveationDynamicModeInfoHTC.class, address); } /** @@ -170,7 +161,7 @@ public static XrFoveationDynamicModeInfoHTC createSafe(long address) { * @param capacity the buffer capacity */ public static XrFoveationDynamicModeInfoHTC.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 XrFoveationDynamicModeInfoHTC.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrFoveationDynamicModeInfoHTC.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 XrFoveationDynamicModeInfoHTC.Buffer calloc(int capacity) { */ public static XrFoveationDynamicModeInfoHTC.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 XrFoveationDynamicModeInfoHTC.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrFoveationDynamicModeInfoHTC.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 XrFoveationDynamicModeInfoHTC.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 XrFoveationDynamicModeInfoHTC.Buffer createSafe(long address, int * @param stack the stack from which to allocate */ public static XrFoveationDynamicModeInfoHTC malloc(MemoryStack stack) { - return new XrFoveationDynamicModeInfoHTC(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrFoveationDynamicModeInfoHTC.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -223,7 +214,7 @@ public static XrFoveationDynamicModeInfoHTC malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrFoveationDynamicModeInfoHTC calloc(MemoryStack stack) { - return new XrFoveationDynamicModeInfoHTC(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrFoveationDynamicModeInfoHTC.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -233,7 +224,7 @@ public static XrFoveationDynamicModeInfoHTC calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFoveationDynamicModeInfoHTC.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 XrFoveationDynamicModeInfoHTC.Buffer malloc(int capacity, MemorySt * @param capacity the buffer capacity */ public static XrFoveationDynamicModeInfoHTC.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 + XrFoveationDynamicModeInfoHTC.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFoveationDynamicModeInfoHTC.NEXT); } - /** Unsafe version of {@link #dynamicFlags}. */ - public static long ndynamicFlags(long struct) { return UNSAFE.getLong(null, struct + XrFoveationDynamicModeInfoHTC.DYNAMICFLAGS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationDynamicModeInfoHTC.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFoveationDynamicModeInfoHTC.NEXT, value); } - /** Unsafe version of {@link #dynamicFlags(long) dynamicFlags}. */ - public static void ndynamicFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrFoveationDynamicModeInfoHTC.DYNAMICFLAGS, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFoveationDynamicModeInfoHTC.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFoveationDynamicModeInfoHTC.NEXT); } + /** Unsafe version of {@link #dynamicFlags}. */ + public static long ndynamicFlags(long struct) { return UNSAFE.getLong(null, struct + XrFoveationDynamicModeInfoHTC.DYNAMICFLAGS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationDynamicModeInfoHTC.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFoveationDynamicModeInfoHTC.NEXT, value); } + /** Unsafe version of {@link #dynamicFlags(long) dynamicFlags}. */ + public static void ndynamicFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrFoveationDynamicModeInfoHTC.DYNAMICFLAGS, value); } + + // ----------------------------------- /** An array of {@link XrFoveationDynamicModeInfoHTC} 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 XrFoveationDynamicModeInfoHTC#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFoveationDynamicModeInfoHTC#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 XrFoveationDynamicModeInfoHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFoveationDynamicModeInfoHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFoveationDynamicModeInfoHTC.ntype(address()); } - /** @return the value of the {@link XrFoveationDynamicModeInfoHTC#next} field. */ - @NativeType("void const *") - public long next() { return XrFoveationDynamicModeInfoHTC.nnext(address()); } - /** @return the value of the {@link XrFoveationDynamicModeInfoHTC#dynamicFlags} field. */ - @NativeType("XrFoveationDynamicFlagsHTC") - public long dynamicFlags() { return XrFoveationDynamicModeInfoHTC.ndynamicFlags(address()); } - - /** Sets the specified value to the {@link XrFoveationDynamicModeInfoHTC#type} field. */ - public XrFoveationDynamicModeInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationDynamicModeInfoHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC} value to the {@link XrFoveationDynamicModeInfoHTC#type} field. */ - public XrFoveationDynamicModeInfoHTC.Buffer type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC); } - /** Sets the specified value to the {@link XrFoveationDynamicModeInfoHTC#next} field. */ - public XrFoveationDynamicModeInfoHTC.Buffer next(@NativeType("void const *") long value) { XrFoveationDynamicModeInfoHTC.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrFoveationDynamicModeInfoHTC#dynamicFlags} field. */ - public XrFoveationDynamicModeInfoHTC.Buffer dynamicFlags(@NativeType("XrFoveationDynamicFlagsHTC") long value) { XrFoveationDynamicModeInfoHTC.ndynamicFlags(address(), value); return this; } + + /** @return the value of the {@link XrFoveationDynamicModeInfoHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFoveationDynamicModeInfoHTC.ntype(address()); } + /** @return the value of the {@link XrFoveationDynamicModeInfoHTC#next} field. */ + @NativeType("void const *") + public long next() { return XrFoveationDynamicModeInfoHTC.nnext(address()); } + /** @return the value of the {@link XrFoveationDynamicModeInfoHTC#dynamicFlags} field. */ + @NativeType("XrFoveationDynamicFlagsHTC") + public long dynamicFlags() { return XrFoveationDynamicModeInfoHTC.ndynamicFlags(address()); } + + /** Sets the specified value to the {@link XrFoveationDynamicModeInfoHTC#type} field. */ + public XrFoveationDynamicModeInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationDynamicModeInfoHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC} value to the {@link XrFoveationDynamicModeInfoHTC#type} field. */ + public XrFoveationDynamicModeInfoHTC.Buffer type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC); } + /** Sets the specified value to the {@link XrFoveationDynamicModeInfoHTC#next} field. */ + public XrFoveationDynamicModeInfoHTC.Buffer next(@NativeType("void const *") long value) { XrFoveationDynamicModeInfoHTC.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrFoveationDynamicModeInfoHTC#dynamicFlags} field. */ + public XrFoveationDynamicModeInfoHTC.Buffer dynamicFlags(@NativeType("XrFoveationDynamicFlagsHTC") long value) { XrFoveationDynamicModeInfoHTC.ndynamicFlags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationEyeTrackedProfileCreateInfoMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationEyeTrackedProfileCreateInfoMETA.java index 663f92f028..1c25b862be 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationEyeTrackedProfileCreateInfoMETA.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationEyeTrackedProfileCreateInfoMETA.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 information to create a eye tracked foveation profile. * @@ -39,8 +39,8 @@ * void const * {@link #next}; * XrFoveationEyeTrackedProfileCreateFlagsMETA {@link #flags}; * } - */ -public class XrFoveationEyeTrackedProfileCreateInfoMETA extends Struct implements NativeResource { + */ +public class XrFoveationEyeTrackedProfileCreateInfoMETA extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,32 +50,23 @@ public class XrFoveationEyeTrackedProfileCreateInfoMETA extends Struct 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 XrFoveationEyeTrackedProfileCreateInfoMETA#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFoveationEyeTrackedProfileCreateInfoMETA#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 XrFoveationEyeTrackedProfileCreateInfoMETA getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFoveationEyeTrackedProfileCreateInfoMETA.ntype(address()); } - /** @return the value of the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrFoveationEyeTrackedProfileCreateInfoMETA.nnext(address()); } - /** @return the value of the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#flags} field. */ - @NativeType("XrFoveationEyeTrackedProfileCreateFlagsMETA") - public long flags() { return XrFoveationEyeTrackedProfileCreateInfoMETA.nflags(address()); } - - /** Sets the specified value to the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#type} field. */ - public XrFoveationEyeTrackedProfileCreateInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationEyeTrackedProfileCreateInfoMETA.ntype(address(), value); return this; } - /** Sets the {@link METAFoveationEyeTracked#XR_TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_META TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_META} value to the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#type} field. */ - public XrFoveationEyeTrackedProfileCreateInfoMETA.Buffer type$Default() { return type(METAFoveationEyeTracked.XR_TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_META); } - /** Sets the specified value to the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#next} field. */ - public XrFoveationEyeTrackedProfileCreateInfoMETA.Buffer next(@NativeType("void const *") long value) { XrFoveationEyeTrackedProfileCreateInfoMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#flags} field. */ - public XrFoveationEyeTrackedProfileCreateInfoMETA.Buffer flags(@NativeType("XrFoveationEyeTrackedProfileCreateFlagsMETA") long value) { XrFoveationEyeTrackedProfileCreateInfoMETA.nflags(address(), value); return this; } + + /** @return the value of the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFoveationEyeTrackedProfileCreateInfoMETA.ntype(address()); } + /** @return the value of the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#next} field. */ + @NativeType("void const *") + public long next() { return XrFoveationEyeTrackedProfileCreateInfoMETA.nnext(address()); } + /** @return the value of the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#flags} field. */ + @NativeType("XrFoveationEyeTrackedProfileCreateFlagsMETA") + public long flags() { return XrFoveationEyeTrackedProfileCreateInfoMETA.nflags(address()); } + + /** Sets the specified value to the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#type} field. */ + public XrFoveationEyeTrackedProfileCreateInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationEyeTrackedProfileCreateInfoMETA.ntype(address(), value); return this; } + /** Sets the {@link METAFoveationEyeTracked#XR_TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_META TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_META} value to the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#type} field. */ + public XrFoveationEyeTrackedProfileCreateInfoMETA.Buffer type$Default() { return type(METAFoveationEyeTracked.XR_TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_META); } + /** Sets the specified value to the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#next} field. */ + public XrFoveationEyeTrackedProfileCreateInfoMETA.Buffer next(@NativeType("void const *") long value) { XrFoveationEyeTrackedProfileCreateInfoMETA.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#flags} field. */ + public XrFoveationEyeTrackedProfileCreateInfoMETA.Buffer flags(@NativeType("XrFoveationEyeTrackedProfileCreateFlagsMETA") long value) { XrFoveationEyeTrackedProfileCreateInfoMETA.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationEyeTrackedStateMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationEyeTrackedStateMETA.java index 03d5b9ecf8..68eb27bc52 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationEyeTrackedStateMETA.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationEyeTrackedStateMETA.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.METAFoveationEyeTracked.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.METAFoveationEyeTracked.*; + /** * Foveation data returned from the runtime. * @@ -46,8 +46,8 @@ * {@link XrVector2f XrVector2f} {@link #foveationCenter}[XR_FOVEATION_CENTER_SIZE_META]; * XrFoveationEyeTrackedStateFlagsMETA {@link #flags}; * } - */ -public class XrFoveationEyeTrackedStateMETA extends Struct implements NativeResource { + */ +public class XrFoveationEyeTrackedStateMETA extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,35 +57,26 @@ public class XrFoveationEyeTrackedStateMETA extends Struct implements NativeResource { @@ -287,9 +278,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 XrFoveationEyeTrackedStateMETA#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFoveationEyeTrackedStateMETA#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -314,28 +305,28 @@ protected Buffer self() { protected XrFoveationEyeTrackedStateMETA getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFoveationEyeTrackedStateMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFoveationEyeTrackedStateMETA.ntype(address()); } - /** @return the value of the {@link XrFoveationEyeTrackedStateMETA#next} field. */ - @NativeType("void *") - public long next() { return XrFoveationEyeTrackedStateMETA.nnext(address()); } - /** @return a {@link XrVector2f}.Buffer view of the {@link XrFoveationEyeTrackedStateMETA#foveationCenter} field. */ - @NativeType("XrVector2f[XR_FOVEATION_CENTER_SIZE_META]") - public XrVector2f.Buffer foveationCenter() { return XrFoveationEyeTrackedStateMETA.nfoveationCenter(address()); } - /** @return a {@link XrVector2f} view of the struct at the specified index of the {@link XrFoveationEyeTrackedStateMETA#foveationCenter} field. */ - public XrVector2f foveationCenter(int index) { return XrFoveationEyeTrackedStateMETA.nfoveationCenter(address(), index); } - /** @return the value of the {@link XrFoveationEyeTrackedStateMETA#flags} field. */ - @NativeType("XrFoveationEyeTrackedStateFlagsMETA") - public long flags() { return XrFoveationEyeTrackedStateMETA.nflags(address()); } - - /** Sets the specified value to the {@link XrFoveationEyeTrackedStateMETA#type} field. */ - public XrFoveationEyeTrackedStateMETA.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationEyeTrackedStateMETA.ntype(address(), value); return this; } - /** Sets the {@link METAFoveationEyeTracked#XR_TYPE_FOVEATION_EYE_TRACKED_STATE_META TYPE_FOVEATION_EYE_TRACKED_STATE_META} value to the {@link XrFoveationEyeTrackedStateMETA#type} field. */ - public XrFoveationEyeTrackedStateMETA.Buffer type$Default() { return type(METAFoveationEyeTracked.XR_TYPE_FOVEATION_EYE_TRACKED_STATE_META); } - /** Sets the specified value to the {@link XrFoveationEyeTrackedStateMETA#next} field. */ - public XrFoveationEyeTrackedStateMETA.Buffer next(@NativeType("void *") long value) { XrFoveationEyeTrackedStateMETA.nnext(address(), value); return this; } + + /** @return the value of the {@link XrFoveationEyeTrackedStateMETA#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFoveationEyeTrackedStateMETA.ntype(address()); } + /** @return the value of the {@link XrFoveationEyeTrackedStateMETA#next} field. */ + @NativeType("void *") + public long next() { return XrFoveationEyeTrackedStateMETA.nnext(address()); } + /** @return a {@link XrVector2f}.Buffer view of the {@link XrFoveationEyeTrackedStateMETA#foveationCenter} field. */ + @NativeType("XrVector2f[XR_FOVEATION_CENTER_SIZE_META]") + public XrVector2f.Buffer foveationCenter() { return XrFoveationEyeTrackedStateMETA.nfoveationCenter(address()); } + /** @return a {@link XrVector2f} view of the struct at the specified index of the {@link XrFoveationEyeTrackedStateMETA#foveationCenter} field. */ + public XrVector2f foveationCenter(int index) { return XrFoveationEyeTrackedStateMETA.nfoveationCenter(address(), index); } + /** @return the value of the {@link XrFoveationEyeTrackedStateMETA#flags} field. */ + @NativeType("XrFoveationEyeTrackedStateFlagsMETA") + public long flags() { return XrFoveationEyeTrackedStateMETA.nflags(address()); } + + /** Sets the specified value to the {@link XrFoveationEyeTrackedStateMETA#type} field. */ + public XrFoveationEyeTrackedStateMETA.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationEyeTrackedStateMETA.ntype(address(), value); return this; } + /** Sets the {@link METAFoveationEyeTracked#XR_TYPE_FOVEATION_EYE_TRACKED_STATE_META TYPE_FOVEATION_EYE_TRACKED_STATE_META} value to the {@link XrFoveationEyeTrackedStateMETA#type} field. */ + public XrFoveationEyeTrackedStateMETA.Buffer type$Default() { return type(METAFoveationEyeTracked.XR_TYPE_FOVEATION_EYE_TRACKED_STATE_META); } + /** Sets the specified value to the {@link XrFoveationEyeTrackedStateMETA#next} field. */ + public XrFoveationEyeTrackedStateMETA.Buffer next(@NativeType("void *") long value) { XrFoveationEyeTrackedStateMETA.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationLevelProfileCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationLevelProfileCreateInfoFB.java index fb12b2482f..4e865224c7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationLevelProfileCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationLevelProfileCreateInfoFB.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 information to create a foveation profile for foveation levels. * @@ -38,8 +38,8 @@ * float {@link #verticalOffset}; * XrFoveationDynamicFB {@link #dynamic}; * } - */ -public class XrFoveationLevelProfileCreateInfoFB extends Struct implements NativeResource { + */ +public class XrFoveationLevelProfileCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,38 +49,29 @@ public class XrFoveationLevelProfileCreateInfoFB extends Struct implements NativeResource { @@ -300,9 +291,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 XrFoveationLevelProfileCreateInfoFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFoveationLevelProfileCreateInfoFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -327,36 +318,36 @@ protected Buffer self() { protected XrFoveationLevelProfileCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFoveationLevelProfileCreateInfoFB.ntype(address()); } - /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#next} field. */ - @NativeType("void *") - public long next() { return XrFoveationLevelProfileCreateInfoFB.nnext(address()); } - /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#level} field. */ - @NativeType("XrFoveationLevelFB") - public int level() { return XrFoveationLevelProfileCreateInfoFB.nlevel(address()); } - /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#verticalOffset} field. */ - public float verticalOffset() { return XrFoveationLevelProfileCreateInfoFB.nverticalOffset(address()); } - /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#dynamic} field. */ - @NativeType("XrFoveationDynamicFB") - public int dynamic() { return XrFoveationLevelProfileCreateInfoFB.ndynamic(address()); } - - /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#type} field. */ - public XrFoveationLevelProfileCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationLevelProfileCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBFoveationConfiguration#XR_TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB} value to the {@link XrFoveationLevelProfileCreateInfoFB#type} field. */ - public XrFoveationLevelProfileCreateInfoFB.Buffer type$Default() { return type(FBFoveationConfiguration.XR_TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB); } - /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#next} field. */ - public XrFoveationLevelProfileCreateInfoFB.Buffer next(@NativeType("void *") long value) { XrFoveationLevelProfileCreateInfoFB.nnext(address(), value); return this; } - /** Prepends the specified {@link XrFoveationEyeTrackedProfileCreateInfoMETA} value to the {@code next} chain. */ - public XrFoveationLevelProfileCreateInfoFB.Buffer next(XrFoveationEyeTrackedProfileCreateInfoMETA value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#level} field. */ - public XrFoveationLevelProfileCreateInfoFB.Buffer level(@NativeType("XrFoveationLevelFB") int value) { XrFoveationLevelProfileCreateInfoFB.nlevel(address(), value); return this; } - /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#verticalOffset} field. */ - public XrFoveationLevelProfileCreateInfoFB.Buffer verticalOffset(float value) { XrFoveationLevelProfileCreateInfoFB.nverticalOffset(address(), value); return this; } - /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#dynamic} field. */ - public XrFoveationLevelProfileCreateInfoFB.Buffer dynamic(@NativeType("XrFoveationDynamicFB") int value) { XrFoveationLevelProfileCreateInfoFB.ndynamic(address(), value); return this; } + + /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFoveationLevelProfileCreateInfoFB.ntype(address()); } + /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#next} field. */ + @NativeType("void *") + public long next() { return XrFoveationLevelProfileCreateInfoFB.nnext(address()); } + /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#level} field. */ + @NativeType("XrFoveationLevelFB") + public int level() { return XrFoveationLevelProfileCreateInfoFB.nlevel(address()); } + /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#verticalOffset} field. */ + public float verticalOffset() { return XrFoveationLevelProfileCreateInfoFB.nverticalOffset(address()); } + /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#dynamic} field. */ + @NativeType("XrFoveationDynamicFB") + public int dynamic() { return XrFoveationLevelProfileCreateInfoFB.ndynamic(address()); } + + /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#type} field. */ + public XrFoveationLevelProfileCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationLevelProfileCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBFoveationConfiguration#XR_TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB} value to the {@link XrFoveationLevelProfileCreateInfoFB#type} field. */ + public XrFoveationLevelProfileCreateInfoFB.Buffer type$Default() { return type(FBFoveationConfiguration.XR_TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB); } + /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#next} field. */ + public XrFoveationLevelProfileCreateInfoFB.Buffer next(@NativeType("void *") long value) { XrFoveationLevelProfileCreateInfoFB.nnext(address(), value); return this; } + /** Prepends the specified {@link XrFoveationEyeTrackedProfileCreateInfoMETA} value to the {@code next} chain. */ + public XrFoveationLevelProfileCreateInfoFB.Buffer next(XrFoveationEyeTrackedProfileCreateInfoMETA value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#level} field. */ + public XrFoveationLevelProfileCreateInfoFB.Buffer level(@NativeType("XrFoveationLevelFB") int value) { XrFoveationLevelProfileCreateInfoFB.nlevel(address(), value); return this; } + /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#verticalOffset} field. */ + public XrFoveationLevelProfileCreateInfoFB.Buffer verticalOffset(float value) { XrFoveationLevelProfileCreateInfoFB.nverticalOffset(address(), value); return this; } + /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#dynamic} field. */ + public XrFoveationLevelProfileCreateInfoFB.Buffer dynamic(@NativeType("XrFoveationDynamicFB") int value) { XrFoveationLevelProfileCreateInfoFB.ndynamic(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationProfileCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationProfileCreateInfoFB.java index aaf522bd4a..7772eb9a3c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationProfileCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationProfileCreateInfoFB.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 information to create a foveation profile. * @@ -37,8 +37,8 @@ * XrStructureType {@link #type}; * void * {@link #next}; * } - */ -public class XrFoveationProfileCreateInfoFB extends Struct implements NativeResource { + */ +public class XrFoveationProfileCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,29 +48,20 @@ public class XrFoveationProfileCreateInfoFB extends Struct implements NativeResource { @@ -258,9 +249,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 XrFoveationProfileCreateInfoFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFoveationProfileCreateInfoFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -285,22 +276,22 @@ protected Buffer self() { protected XrFoveationProfileCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFoveationProfileCreateInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFoveationProfileCreateInfoFB.ntype(address()); } - /** @return the value of the {@link XrFoveationProfileCreateInfoFB#next} field. */ - @NativeType("void *") - public long next() { return XrFoveationProfileCreateInfoFB.nnext(address()); } - - /** Sets the specified value to the {@link XrFoveationProfileCreateInfoFB#type} field. */ - public XrFoveationProfileCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationProfileCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBFoveation#XR_TYPE_FOVEATION_PROFILE_CREATE_INFO_FB TYPE_FOVEATION_PROFILE_CREATE_INFO_FB} value to the {@link XrFoveationProfileCreateInfoFB#type} field. */ - public XrFoveationProfileCreateInfoFB.Buffer type$Default() { return type(FBFoveation.XR_TYPE_FOVEATION_PROFILE_CREATE_INFO_FB); } - /** Sets the specified value to the {@link XrFoveationProfileCreateInfoFB#next} field. */ - public XrFoveationProfileCreateInfoFB.Buffer next(@NativeType("void *") long value) { XrFoveationProfileCreateInfoFB.nnext(address(), value); return this; } - /** Prepends the specified {@link XrFoveationLevelProfileCreateInfoFB} value to the {@code next} chain. */ - public XrFoveationProfileCreateInfoFB.Buffer next(XrFoveationLevelProfileCreateInfoFB value) { return this.next(value.next(this.next()).address()); } + + /** @return the value of the {@link XrFoveationProfileCreateInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFoveationProfileCreateInfoFB.ntype(address()); } + /** @return the value of the {@link XrFoveationProfileCreateInfoFB#next} field. */ + @NativeType("void *") + public long next() { return XrFoveationProfileCreateInfoFB.nnext(address()); } + + /** Sets the specified value to the {@link XrFoveationProfileCreateInfoFB#type} field. */ + public XrFoveationProfileCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationProfileCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBFoveation#XR_TYPE_FOVEATION_PROFILE_CREATE_INFO_FB TYPE_FOVEATION_PROFILE_CREATE_INFO_FB} value to the {@link XrFoveationProfileCreateInfoFB#type} field. */ + public XrFoveationProfileCreateInfoFB.Buffer type$Default() { return type(FBFoveation.XR_TYPE_FOVEATION_PROFILE_CREATE_INFO_FB); } + /** Sets the specified value to the {@link XrFoveationProfileCreateInfoFB#next} field. */ + public XrFoveationProfileCreateInfoFB.Buffer next(@NativeType("void *") long value) { XrFoveationProfileCreateInfoFB.nnext(address(), value); return this; } + /** Prepends the specified {@link XrFoveationLevelProfileCreateInfoFB} value to the {@code next} chain. */ + public XrFoveationProfileCreateInfoFB.Buffer next(XrFoveationLevelProfileCreateInfoFB value) { return this.next(value.next(this.next()).address()); } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationProfileFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationProfileFB.java index 7014ada328..97cf8064e9 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationProfileFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationProfileFB.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrFoveationProfileFB} handle. */ + +/** Wraps an {@code XrFoveationProfileFB} handle. */ public class XrFoveationProfileFB 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/XrFovf.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFovf.java index f521e9c3e7..6df01a41cd 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFovf.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFovf.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.*; + /** * Field of view. * @@ -39,8 +39,8 @@ * float {@link #angleUp}; * float {@link #angleDown}; * } - */ -public class XrFovf extends Struct implements NativeResource { + */ +public class XrFovf extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,35 +50,26 @@ public class XrFovf extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - ANGLELEFT, - ANGLERIGHT, - ANGLEUP, - ANGLEDOWN; + ANGLELEFT, + ANGLERIGHT, + ANGLEUP, + ANGLEDOWN; 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(); - ANGLELEFT = layout.offsetof(0); - ANGLERIGHT = layout.offsetof(1); - ANGLEUP = layout.offsetof(2); - ANGLEDOWN = layout.offsetof(3); - } - - protected XrFovf(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrFovf create(long address, @Nullable ByteBuffer container) { - return new XrFovf(address, container); + ANGLELEFT = layout.offsetof(0); + ANGLERIGHT = layout.offsetof(1); + ANGLEUP = layout.offsetof(2); + ANGLEDOWN = layout.offsetof(3); } /** @@ -93,36 +84,36 @@ public XrFovf(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the angle of the left side of the field of view. For a symmetric field of view this value is negative. */ - public float angleLeft() { return nangleLeft(address()); } - /** the angle of the right side of the field of view. */ - public float angleRight() { return nangleRight(address()); } - /** the angle of the top part of the field of view. */ - public float angleUp() { return nangleUp(address()); } - /** the angle of the bottom part of the field of view. For a symmetric field of view this value is negative. */ - public float angleDown() { return nangleDown(address()); } - - /** Sets the specified value to the {@link #angleLeft} field. */ - public XrFovf angleLeft(float value) { nangleLeft(address(), value); return this; } - /** Sets the specified value to the {@link #angleRight} field. */ - public XrFovf angleRight(float value) { nangleRight(address(), value); return this; } - /** Sets the specified value to the {@link #angleUp} field. */ - public XrFovf angleUp(float value) { nangleUp(address(), value); return this; } - /** Sets the specified value to the {@link #angleDown} field. */ - public XrFovf angleDown(float value) { nangleDown(address(), value); return this; } + + /** the angle of the left side of the field of view. For a symmetric field of view this value is negative. */ + public float angleLeft() { return nangleLeft(address()); } + /** the angle of the right side of the field of view. */ + public float angleRight() { return nangleRight(address()); } + /** the angle of the top part of the field of view. */ + public float angleUp() { return nangleUp(address()); } + /** the angle of the bottom part of the field of view. For a symmetric field of view this value is negative. */ + public float angleDown() { return nangleDown(address()); } + + /** Sets the specified value to the {@link #angleLeft} field. */ + public XrFovf angleLeft(float value) { nangleLeft(address(), value); return this; } + /** Sets the specified value to the {@link #angleRight} field. */ + public XrFovf angleRight(float value) { nangleRight(address(), value); return this; } + /** Sets the specified value to the {@link #angleUp} field. */ + public XrFovf angleUp(float value) { nangleUp(address(), value); return this; } + /** Sets the specified value to the {@link #angleDown} field. */ + public XrFovf angleDown(float value) { nangleDown(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFovf set( - float angleLeft, - float angleRight, - float angleUp, + float angleLeft, + float angleRight, + float angleUp, float angleDown - ) { - angleLeft(angleLeft); - angleRight(angleRight); - angleUp(angleUp); - angleDown(angleDown); + ) { + angleLeft(angleLeft); + angleRight(angleRight); + angleUp(angleUp); + angleDown(angleDown); return this; } @@ -143,29 +134,29 @@ public XrFovf set(XrFovf src) { /** Returns a new {@code XrFovf} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrFovf malloc() { - return new XrFovf(nmemAllocChecked(SIZEOF), null); + return wrap(XrFovf.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrFovf} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrFovf calloc() { - return new XrFovf(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrFovf.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrFovf} instance allocated with {@link BufferUtils}. */ public static XrFovf create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrFovf(memAddress(container), container); + return wrap(XrFovf.class, memAddress(container), container); } /** Returns a new {@code XrFovf} instance for the specified memory address. */ public static XrFovf create(long address) { - return new XrFovf(address, null); + return wrap(XrFovf.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrFovf createSafe(long address) { - return address == NULL ? null : new XrFovf(address, null); + return address == NULL ? null : wrap(XrFovf.class, address); } /** @@ -174,7 +165,7 @@ public static XrFovf createSafe(long address) { * @param capacity the buffer capacity */ public static XrFovf.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -183,7 +174,7 @@ public static XrFovf.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrFovf.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -193,7 +184,7 @@ public static XrFovf.Buffer calloc(int capacity) { */ public static XrFovf.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); } /** @@ -203,13 +194,13 @@ public static XrFovf.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrFovf.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 XrFovf.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -218,7 +209,7 @@ public static XrFovf.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrFovf malloc(MemoryStack stack) { - return new XrFovf(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrFovf.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -227,7 +218,7 @@ public static XrFovf malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrFovf calloc(MemoryStack stack) { - return new XrFovf(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrFovf.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -237,7 +228,7 @@ public static XrFovf calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFovf.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); } /** @@ -247,30 +238,30 @@ public static XrFovf.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFovf.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 #angleLeft}. */ - public static float nangleLeft(long struct) { return UNSAFE.getFloat(null, struct + XrFovf.ANGLELEFT); } - /** Unsafe version of {@link #angleRight}. */ - public static float nangleRight(long struct) { return UNSAFE.getFloat(null, struct + XrFovf.ANGLERIGHT); } - /** Unsafe version of {@link #angleUp}. */ - public static float nangleUp(long struct) { return UNSAFE.getFloat(null, struct + XrFovf.ANGLEUP); } - /** Unsafe version of {@link #angleDown}. */ - public static float nangleDown(long struct) { return UNSAFE.getFloat(null, struct + XrFovf.ANGLEDOWN); } - - /** Unsafe version of {@link #angleLeft(float) angleLeft}. */ - public static void nangleLeft(long struct, float value) { UNSAFE.putFloat(null, struct + XrFovf.ANGLELEFT, value); } - /** Unsafe version of {@link #angleRight(float) angleRight}. */ - public static void nangleRight(long struct, float value) { UNSAFE.putFloat(null, struct + XrFovf.ANGLERIGHT, value); } - /** Unsafe version of {@link #angleUp(float) angleUp}. */ - public static void nangleUp(long struct, float value) { UNSAFE.putFloat(null, struct + XrFovf.ANGLEUP, value); } - /** Unsafe version of {@link #angleDown(float) angleDown}. */ - public static void nangleDown(long struct, float value) { UNSAFE.putFloat(null, struct + XrFovf.ANGLEDOWN, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #angleLeft}. */ + public static float nangleLeft(long struct) { return UNSAFE.getFloat(null, struct + XrFovf.ANGLELEFT); } + /** Unsafe version of {@link #angleRight}. */ + public static float nangleRight(long struct) { return UNSAFE.getFloat(null, struct + XrFovf.ANGLERIGHT); } + /** Unsafe version of {@link #angleUp}. */ + public static float nangleUp(long struct) { return UNSAFE.getFloat(null, struct + XrFovf.ANGLEUP); } + /** Unsafe version of {@link #angleDown}. */ + public static float nangleDown(long struct) { return UNSAFE.getFloat(null, struct + XrFovf.ANGLEDOWN); } + + /** Unsafe version of {@link #angleLeft(float) angleLeft}. */ + public static void nangleLeft(long struct, float value) { UNSAFE.putFloat(null, struct + XrFovf.ANGLELEFT, value); } + /** Unsafe version of {@link #angleRight(float) angleRight}. */ + public static void nangleRight(long struct, float value) { UNSAFE.putFloat(null, struct + XrFovf.ANGLERIGHT, value); } + /** Unsafe version of {@link #angleUp(float) angleUp}. */ + public static void nangleUp(long struct, float value) { UNSAFE.putFloat(null, struct + XrFovf.ANGLEUP, value); } + /** Unsafe version of {@link #angleDown(float) angleDown}. */ + public static void nangleDown(long struct, float value) { UNSAFE.putFloat(null, struct + XrFovf.ANGLEDOWN, value); } + + // ----------------------------------- /** An array of {@link XrFovf} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -280,9 +271,9 @@ public static class Buffer extends StructBuffer implements Nativ /** * Creates a new {@code XrFovf.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 XrFovf#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFovf#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -307,24 +298,24 @@ protected Buffer self() { protected XrFovf getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFovf#angleLeft} field. */ - public float angleLeft() { return XrFovf.nangleLeft(address()); } - /** @return the value of the {@link XrFovf#angleRight} field. */ - public float angleRight() { return XrFovf.nangleRight(address()); } - /** @return the value of the {@link XrFovf#angleUp} field. */ - public float angleUp() { return XrFovf.nangleUp(address()); } - /** @return the value of the {@link XrFovf#angleDown} field. */ - public float angleDown() { return XrFovf.nangleDown(address()); } - - /** Sets the specified value to the {@link XrFovf#angleLeft} field. */ - public XrFovf.Buffer angleLeft(float value) { XrFovf.nangleLeft(address(), value); return this; } - /** Sets the specified value to the {@link XrFovf#angleRight} field. */ - public XrFovf.Buffer angleRight(float value) { XrFovf.nangleRight(address(), value); return this; } - /** Sets the specified value to the {@link XrFovf#angleUp} field. */ - public XrFovf.Buffer angleUp(float value) { XrFovf.nangleUp(address(), value); return this; } - /** Sets the specified value to the {@link XrFovf#angleDown} field. */ - public XrFovf.Buffer angleDown(float value) { XrFovf.nangleDown(address(), value); return this; } + + /** @return the value of the {@link XrFovf#angleLeft} field. */ + public float angleLeft() { return XrFovf.nangleLeft(address()); } + /** @return the value of the {@link XrFovf#angleRight} field. */ + public float angleRight() { return XrFovf.nangleRight(address()); } + /** @return the value of the {@link XrFovf#angleUp} field. */ + public float angleUp() { return XrFovf.nangleUp(address()); } + /** @return the value of the {@link XrFovf#angleDown} field. */ + public float angleDown() { return XrFovf.nangleDown(address()); } + + /** Sets the specified value to the {@link XrFovf#angleLeft} field. */ + public XrFovf.Buffer angleLeft(float value) { XrFovf.nangleLeft(address(), value); return this; } + /** Sets the specified value to the {@link XrFovf#angleRight} field. */ + public XrFovf.Buffer angleRight(float value) { XrFovf.nangleRight(address(), value); return this; } + /** Sets the specified value to the {@link XrFovf#angleUp} field. */ + public XrFovf.Buffer angleUp(float value) { XrFovf.nangleUp(address(), value); return this; } + /** Sets the specified value to the {@link XrFovf#angleDown} field. */ + public XrFovf.Buffer angleDown(float value) { XrFovf.nangleDown(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameBeginInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameBeginInfo.java index 7b2d103f57..d0e5465a71 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameBeginInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameBeginInfo.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.*; + /** * Begin frame information. * @@ -40,8 +40,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrFrameBeginInfo extends Struct implements NativeResource { + */ +public class XrFrameBeginInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,29 +51,20 @@ public class XrFrameBeginInfo extends Struct implements Native /** 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 XrFrameBeginInfo(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrFrameBeginInfo create(long address, @Nullable ByteBuffer container) { - return new XrFrameBeginInfo(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); } /** @@ -88,28 +79,28 @@ public XrFrameBeginInfo(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()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFrameBeginInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_FRAME_BEGIN_INFO TYPE_FRAME_BEGIN_INFO} value to the {@link #type} field. */ - public XrFrameBeginInfo type$Default() { return type(XR10.XR_TYPE_FRAME_BEGIN_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrFrameBeginInfo next(@NativeType("void const *") 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 const *") + public long next() { return nnext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFrameBeginInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_FRAME_BEGIN_INFO TYPE_FRAME_BEGIN_INFO} value to the {@link #type} field. */ + public XrFrameBeginInfo type$Default() { return type(XR10.XR_TYPE_FRAME_BEGIN_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrFrameBeginInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFrameBeginInfo set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -130,29 +121,29 @@ public XrFrameBeginInfo set(XrFrameBeginInfo src) { /** Returns a new {@code XrFrameBeginInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrFrameBeginInfo malloc() { - return new XrFrameBeginInfo(nmemAllocChecked(SIZEOF), null); + return wrap(XrFrameBeginInfo.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrFrameBeginInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrFrameBeginInfo calloc() { - return new XrFrameBeginInfo(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrFrameBeginInfo.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrFrameBeginInfo} instance allocated with {@link BufferUtils}. */ public static XrFrameBeginInfo create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrFrameBeginInfo(memAddress(container), container); + return wrap(XrFrameBeginInfo.class, memAddress(container), container); } /** Returns a new {@code XrFrameBeginInfo} instance for the specified memory address. */ public static XrFrameBeginInfo create(long address) { - return new XrFrameBeginInfo(address, null); + return wrap(XrFrameBeginInfo.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrFrameBeginInfo createSafe(long address) { - return address == NULL ? null : new XrFrameBeginInfo(address, null); + return address == NULL ? null : wrap(XrFrameBeginInfo.class, address); } /** @@ -161,7 +152,7 @@ public static XrFrameBeginInfo createSafe(long address) { * @param capacity the buffer capacity */ public static XrFrameBeginInfo.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -170,7 +161,7 @@ public static XrFrameBeginInfo.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrFrameBeginInfo.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -180,7 +171,7 @@ public static XrFrameBeginInfo.Buffer calloc(int capacity) { */ public static XrFrameBeginInfo.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); } /** @@ -190,13 +181,13 @@ public static XrFrameBeginInfo.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrFrameBeginInfo.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 XrFrameBeginInfo.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -205,7 +196,7 @@ public static XrFrameBeginInfo.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrFrameBeginInfo malloc(MemoryStack stack) { - return new XrFrameBeginInfo(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrFrameBeginInfo.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -214,7 +205,7 @@ public static XrFrameBeginInfo malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrFrameBeginInfo calloc(MemoryStack stack) { - return new XrFrameBeginInfo(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrFrameBeginInfo.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -224,7 +215,7 @@ public static XrFrameBeginInfo calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFrameBeginInfo.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); } /** @@ -234,22 +225,22 @@ public static XrFrameBeginInfo.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFrameBeginInfo.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 + XrFrameBeginInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFrameBeginInfo.NEXT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameBeginInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameBeginInfo.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFrameBeginInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFrameBeginInfo.NEXT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameBeginInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameBeginInfo.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrFrameBeginInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -259,9 +250,9 @@ public static class Buffer extends StructBuffer implem /** * Creates a new {@code XrFrameBeginInfo.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 XrFrameBeginInfo#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFrameBeginInfo#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -286,20 +277,20 @@ protected Buffer self() { protected XrFrameBeginInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFrameBeginInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFrameBeginInfo.ntype(address()); } - /** @return the value of the {@link XrFrameBeginInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrFrameBeginInfo.nnext(address()); } - - /** Sets the specified value to the {@link XrFrameBeginInfo#type} field. */ - public XrFrameBeginInfo.Buffer type(@NativeType("XrStructureType") int value) { XrFrameBeginInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_FRAME_BEGIN_INFO TYPE_FRAME_BEGIN_INFO} value to the {@link XrFrameBeginInfo#type} field. */ - public XrFrameBeginInfo.Buffer type$Default() { return type(XR10.XR_TYPE_FRAME_BEGIN_INFO); } - /** Sets the specified value to the {@link XrFrameBeginInfo#next} field. */ - public XrFrameBeginInfo.Buffer next(@NativeType("void const *") long value) { XrFrameBeginInfo.nnext(address(), value); return this; } + + /** @return the value of the {@link XrFrameBeginInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFrameBeginInfo.ntype(address()); } + /** @return the value of the {@link XrFrameBeginInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrFrameBeginInfo.nnext(address()); } + + /** Sets the specified value to the {@link XrFrameBeginInfo#type} field. */ + public XrFrameBeginInfo.Buffer type(@NativeType("XrStructureType") int value) { XrFrameBeginInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_FRAME_BEGIN_INFO TYPE_FRAME_BEGIN_INFO} value to the {@link XrFrameBeginInfo#type} field. */ + public XrFrameBeginInfo.Buffer type$Default() { return type(XR10.XR_TYPE_FRAME_BEGIN_INFO); } + /** Sets the specified value to the {@link XrFrameBeginInfo#next} field. */ + public XrFrameBeginInfo.Buffer next(@NativeType("void const *") long value) { XrFrameBeginInfo.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameEndInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameEndInfo.java index b4b564e6ec..7cb9557418 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameEndInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameEndInfo.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.*; + /** * End frame information. * @@ -42,8 +42,8 @@ * uint32_t {@link #layerCount}; * {@link XrCompositionLayerBaseHeader XrCompositionLayerBaseHeader} const * const * {@link #layers}; * } - */ -public class XrFrameEndInfo extends Struct implements NativeResource { + */ +public class XrFrameEndInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,41 +53,32 @@ public class XrFrameEndInfo extends Struct implements NativeReso /** The struct member offsets. */ public static final int - TYPE, - NEXT, - DISPLAYTIME, - ENVIRONMENTBLENDMODE, - LAYERCOUNT, - LAYERS; + TYPE, + NEXT, + DISPLAYTIME, + ENVIRONMENTBLENDMODE, + LAYERCOUNT, + LAYERS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - DISPLAYTIME = layout.offsetof(2); - ENVIRONMENTBLENDMODE = layout.offsetof(3); - LAYERCOUNT = layout.offsetof(4); - LAYERS = layout.offsetof(5); - } - - protected XrFrameEndInfo(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrFrameEndInfo create(long address, @Nullable ByteBuffer container) { - return new XrFrameEndInfo(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + DISPLAYTIME = layout.offsetof(2); + ENVIRONMENTBLENDMODE = layout.offsetof(3); + LAYERCOUNT = layout.offsetof(4); + LAYERS = layout.offsetof(5); } /** @@ -102,65 +93,65 @@ public XrFrameEndInfo(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 XrTime} at which this frame should be displayed. */ - @NativeType("XrTime") - public long displayTime() { return ndisplayTime(address()); } - /** the {@code XrEnvironmentBlendMode} value representing the desired environment blend mode for this frame. */ - @NativeType("XrEnvironmentBlendMode") - public int environmentBlendMode() { return nenvironmentBlendMode(address()); } - /** the number of composition layers in this frame. The maximum supported layer count is identified by {@link XrSystemGraphicsProperties}::maxLayerCount. If layerCount is greater than the maximum supported layer count then {@link XR10#XR_ERROR_LAYER_LIMIT_EXCEEDED ERROR_LAYER_LIMIT_EXCEEDED} must be returned. */ - @NativeType("uint32_t") - public int layerCount() { return nlayerCount(address()); } - /** a pointer to an array of {@link XrCompositionLayerBaseHeader} pointers. */ - @Nullable - @NativeType("XrCompositionLayerBaseHeader const * const *") - public PointerBuffer layers() { return nlayers(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFrameEndInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_FRAME_END_INFO TYPE_FRAME_END_INFO} value to the {@link #type} field. */ - public XrFrameEndInfo type$Default() { return type(XR10.XR_TYPE_FRAME_END_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrFrameEndInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrFrameEndInfoML} value to the {@code next} chain. */ - public XrFrameEndInfo next(XrFrameEndInfoML value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGlobalDimmerFrameEndInfoML} value to the {@code next} chain. */ - public XrFrameEndInfo next(XrGlobalDimmerFrameEndInfoML value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrLocalDimmingFrameEndInfoMETA} value to the {@code next} chain. */ - public XrFrameEndInfo next(XrLocalDimmingFrameEndInfoMETA value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSecondaryViewConfigurationFrameEndInfoMSFT} value to the {@code next} chain. */ - public XrFrameEndInfo next(XrSecondaryViewConfigurationFrameEndInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #displayTime} field. */ - public XrFrameEndInfo displayTime(@NativeType("XrTime") long value) { ndisplayTime(address(), value); return this; } - /** Sets the specified value to the {@link #environmentBlendMode} field. */ - public XrFrameEndInfo environmentBlendMode(@NativeType("XrEnvironmentBlendMode") int value) { nenvironmentBlendMode(address(), value); return this; } - /** Sets the specified value to the {@link #layerCount} field. */ - public XrFrameEndInfo layerCount(@NativeType("uint32_t") int value) { nlayerCount(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link #layers} field. */ - public XrFrameEndInfo layers(@Nullable @NativeType("XrCompositionLayerBaseHeader const * const *") PointerBuffer value) { nlayers(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 XrTime} at which this frame should be displayed. */ + @NativeType("XrTime") + public long displayTime() { return ndisplayTime(address()); } + /** the {@code XrEnvironmentBlendMode} value representing the desired environment blend mode for this frame. */ + @NativeType("XrEnvironmentBlendMode") + public int environmentBlendMode() { return nenvironmentBlendMode(address()); } + /** the number of composition layers in this frame. The maximum supported layer count is identified by {@link XrSystemGraphicsProperties}::maxLayerCount. If layerCount is greater than the maximum supported layer count then {@link XR10#XR_ERROR_LAYER_LIMIT_EXCEEDED ERROR_LAYER_LIMIT_EXCEEDED} must be returned. */ + @NativeType("uint32_t") + public int layerCount() { return nlayerCount(address()); } + /** a pointer to an array of {@link XrCompositionLayerBaseHeader} pointers. */ + @Nullable + @NativeType("XrCompositionLayerBaseHeader const * const *") + public PointerBuffer layers() { return nlayers(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFrameEndInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_FRAME_END_INFO TYPE_FRAME_END_INFO} value to the {@link #type} field. */ + public XrFrameEndInfo type$Default() { return type(XR10.XR_TYPE_FRAME_END_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrFrameEndInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrFrameEndInfoML} value to the {@code next} chain. */ + public XrFrameEndInfo next(XrFrameEndInfoML value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGlobalDimmerFrameEndInfoML} value to the {@code next} chain. */ + public XrFrameEndInfo next(XrGlobalDimmerFrameEndInfoML value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrLocalDimmingFrameEndInfoMETA} value to the {@code next} chain. */ + public XrFrameEndInfo next(XrLocalDimmingFrameEndInfoMETA value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSecondaryViewConfigurationFrameEndInfoMSFT} value to the {@code next} chain. */ + public XrFrameEndInfo next(XrSecondaryViewConfigurationFrameEndInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #displayTime} field. */ + public XrFrameEndInfo displayTime(@NativeType("XrTime") long value) { ndisplayTime(address(), value); return this; } + /** Sets the specified value to the {@link #environmentBlendMode} field. */ + public XrFrameEndInfo environmentBlendMode(@NativeType("XrEnvironmentBlendMode") int value) { nenvironmentBlendMode(address(), value); return this; } + /** Sets the specified value to the {@link #layerCount} field. */ + public XrFrameEndInfo layerCount(@NativeType("uint32_t") int value) { nlayerCount(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link #layers} field. */ + public XrFrameEndInfo layers(@Nullable @NativeType("XrCompositionLayerBaseHeader const * const *") PointerBuffer value) { nlayers(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFrameEndInfo set( - int type, - long next, - long displayTime, - int environmentBlendMode, - int layerCount, + int type, + long next, + long displayTime, + int environmentBlendMode, + int layerCount, @Nullable PointerBuffer layers - ) { - type(type); - next(next); - displayTime(displayTime); - environmentBlendMode(environmentBlendMode); - layerCount(layerCount); - layers(layers); + ) { + type(type); + next(next); + displayTime(displayTime); + environmentBlendMode(environmentBlendMode); + layerCount(layerCount); + layers(layers); return this; } @@ -181,29 +172,29 @@ public XrFrameEndInfo set(XrFrameEndInfo src) { /** Returns a new {@code XrFrameEndInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrFrameEndInfo malloc() { - return new XrFrameEndInfo(nmemAllocChecked(SIZEOF), null); + return wrap(XrFrameEndInfo.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrFrameEndInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrFrameEndInfo calloc() { - return new XrFrameEndInfo(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrFrameEndInfo.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrFrameEndInfo} instance allocated with {@link BufferUtils}. */ public static XrFrameEndInfo create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrFrameEndInfo(memAddress(container), container); + return wrap(XrFrameEndInfo.class, memAddress(container), container); } /** Returns a new {@code XrFrameEndInfo} instance for the specified memory address. */ public static XrFrameEndInfo create(long address) { - return new XrFrameEndInfo(address, null); + return wrap(XrFrameEndInfo.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrFrameEndInfo createSafe(long address) { - return address == NULL ? null : new XrFrameEndInfo(address, null); + return address == NULL ? null : wrap(XrFrameEndInfo.class, address); } /** @@ -212,7 +203,7 @@ public static XrFrameEndInfo createSafe(long address) { * @param capacity the buffer capacity */ public static XrFrameEndInfo.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -221,7 +212,7 @@ public static XrFrameEndInfo.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrFrameEndInfo.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -231,7 +222,7 @@ public static XrFrameEndInfo.Buffer calloc(int capacity) { */ public static XrFrameEndInfo.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); } /** @@ -241,13 +232,13 @@ public static XrFrameEndInfo.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrFrameEndInfo.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 XrFrameEndInfo.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -256,7 +247,7 @@ public static XrFrameEndInfo.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrFrameEndInfo malloc(MemoryStack stack) { - return new XrFrameEndInfo(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrFrameEndInfo.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -265,7 +256,7 @@ public static XrFrameEndInfo malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrFrameEndInfo calloc(MemoryStack stack) { - return new XrFrameEndInfo(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrFrameEndInfo.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -275,7 +266,7 @@ public static XrFrameEndInfo calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFrameEndInfo.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); } /** @@ -285,38 +276,38 @@ public static XrFrameEndInfo.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFrameEndInfo.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 + XrFrameEndInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFrameEndInfo.NEXT); } - /** Unsafe version of {@link #displayTime}. */ - public static long ndisplayTime(long struct) { return UNSAFE.getLong(null, struct + XrFrameEndInfo.DISPLAYTIME); } - /** Unsafe version of {@link #environmentBlendMode}. */ - public static int nenvironmentBlendMode(long struct) { return UNSAFE.getInt(null, struct + XrFrameEndInfo.ENVIRONMENTBLENDMODE); } - /** Unsafe version of {@link #layerCount}. */ - public static int nlayerCount(long struct) { return UNSAFE.getInt(null, struct + XrFrameEndInfo.LAYERCOUNT); } - /** Unsafe version of {@link #layers() layers}. */ - @Nullable public static PointerBuffer nlayers(long struct) { return memPointerBufferSafe(memGetAddress(struct + XrFrameEndInfo.LAYERS), nlayerCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameEndInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameEndInfo.NEXT, value); } - /** Unsafe version of {@link #displayTime(long) displayTime}. */ - public static void ndisplayTime(long struct, long value) { UNSAFE.putLong(null, struct + XrFrameEndInfo.DISPLAYTIME, value); } - /** Unsafe version of {@link #environmentBlendMode(int) environmentBlendMode}. */ - public static void nenvironmentBlendMode(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameEndInfo.ENVIRONMENTBLENDMODE, value); } - /** Sets the specified value to the {@code layerCount} field of the specified {@code struct}. */ - public static void nlayerCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameEndInfo.LAYERCOUNT, value); } - /** Unsafe version of {@link #layers(PointerBuffer) layers}. */ - public static void nlayers(long struct, @Nullable PointerBuffer value) { memPutAddress(struct + XrFrameEndInfo.LAYERS, memAddressSafe(value)); if (value != null) { nlayerCount(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFrameEndInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFrameEndInfo.NEXT); } + /** Unsafe version of {@link #displayTime}. */ + public static long ndisplayTime(long struct) { return UNSAFE.getLong(null, struct + XrFrameEndInfo.DISPLAYTIME); } + /** Unsafe version of {@link #environmentBlendMode}. */ + public static int nenvironmentBlendMode(long struct) { return UNSAFE.getInt(null, struct + XrFrameEndInfo.ENVIRONMENTBLENDMODE); } + /** Unsafe version of {@link #layerCount}. */ + public static int nlayerCount(long struct) { return UNSAFE.getInt(null, struct + XrFrameEndInfo.LAYERCOUNT); } + /** Unsafe version of {@link #layers() layers}. */ + @Nullable public static PointerBuffer nlayers(long struct) { return memPointerBufferSafe(memGetAddress(struct + XrFrameEndInfo.LAYERS), nlayerCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameEndInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameEndInfo.NEXT, value); } + /** Unsafe version of {@link #displayTime(long) displayTime}. */ + public static void ndisplayTime(long struct, long value) { UNSAFE.putLong(null, struct + XrFrameEndInfo.DISPLAYTIME, value); } + /** Unsafe version of {@link #environmentBlendMode(int) environmentBlendMode}. */ + public static void nenvironmentBlendMode(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameEndInfo.ENVIRONMENTBLENDMODE, value); } + /** Sets the specified value to the {@code layerCount} field of the specified {@code struct}. */ + public static void nlayerCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameEndInfo.LAYERCOUNT, value); } + /** Unsafe version of {@link #layers(PointerBuffer) layers}. */ + public static void nlayers(long struct, @Nullable PointerBuffer value) { memPutAddress(struct + XrFrameEndInfo.LAYERS, memAddressSafe(value)); if (value != null) { nlayerCount(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrFrameEndInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -326,9 +317,9 @@ public static class Buffer extends StructBuffer implemen /** * Creates a new {@code XrFrameEndInfo.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 XrFrameEndInfo#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFrameEndInfo#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -353,49 +344,49 @@ protected Buffer self() { protected XrFrameEndInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFrameEndInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFrameEndInfo.ntype(address()); } - /** @return the value of the {@link XrFrameEndInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrFrameEndInfo.nnext(address()); } - /** @return the value of the {@link XrFrameEndInfo#displayTime} field. */ - @NativeType("XrTime") - public long displayTime() { return XrFrameEndInfo.ndisplayTime(address()); } - /** @return the value of the {@link XrFrameEndInfo#environmentBlendMode} field. */ - @NativeType("XrEnvironmentBlendMode") - public int environmentBlendMode() { return XrFrameEndInfo.nenvironmentBlendMode(address()); } - /** @return the value of the {@link XrFrameEndInfo#layerCount} field. */ - @NativeType("uint32_t") - public int layerCount() { return XrFrameEndInfo.nlayerCount(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrFrameEndInfo#layers} field. */ - @Nullable - @NativeType("XrCompositionLayerBaseHeader const * const *") - public PointerBuffer layers() { return XrFrameEndInfo.nlayers(address()); } - - /** Sets the specified value to the {@link XrFrameEndInfo#type} field. */ - public XrFrameEndInfo.Buffer type(@NativeType("XrStructureType") int value) { XrFrameEndInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_FRAME_END_INFO TYPE_FRAME_END_INFO} value to the {@link XrFrameEndInfo#type} field. */ - public XrFrameEndInfo.Buffer type$Default() { return type(XR10.XR_TYPE_FRAME_END_INFO); } - /** Sets the specified value to the {@link XrFrameEndInfo#next} field. */ - public XrFrameEndInfo.Buffer next(@NativeType("void const *") long value) { XrFrameEndInfo.nnext(address(), value); return this; } - /** Prepends the specified {@link XrFrameEndInfoML} value to the {@code next} chain. */ - public XrFrameEndInfo.Buffer next(XrFrameEndInfoML value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGlobalDimmerFrameEndInfoML} value to the {@code next} chain. */ - public XrFrameEndInfo.Buffer next(XrGlobalDimmerFrameEndInfoML value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrLocalDimmingFrameEndInfoMETA} value to the {@code next} chain. */ - public XrFrameEndInfo.Buffer next(XrLocalDimmingFrameEndInfoMETA value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSecondaryViewConfigurationFrameEndInfoMSFT} value to the {@code next} chain. */ - public XrFrameEndInfo.Buffer next(XrSecondaryViewConfigurationFrameEndInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrFrameEndInfo#displayTime} field. */ - public XrFrameEndInfo.Buffer displayTime(@NativeType("XrTime") long value) { XrFrameEndInfo.ndisplayTime(address(), value); return this; } - /** Sets the specified value to the {@link XrFrameEndInfo#environmentBlendMode} field. */ - public XrFrameEndInfo.Buffer environmentBlendMode(@NativeType("XrEnvironmentBlendMode") int value) { XrFrameEndInfo.nenvironmentBlendMode(address(), value); return this; } - /** Sets the specified value to the {@link XrFrameEndInfo#layerCount} field. */ - public XrFrameEndInfo.Buffer layerCount(@NativeType("uint32_t") int value) { XrFrameEndInfo.nlayerCount(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link XrFrameEndInfo#layers} field. */ - public XrFrameEndInfo.Buffer layers(@Nullable @NativeType("XrCompositionLayerBaseHeader const * const *") PointerBuffer value) { XrFrameEndInfo.nlayers(address(), value); return this; } + + /** @return the value of the {@link XrFrameEndInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFrameEndInfo.ntype(address()); } + /** @return the value of the {@link XrFrameEndInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrFrameEndInfo.nnext(address()); } + /** @return the value of the {@link XrFrameEndInfo#displayTime} field. */ + @NativeType("XrTime") + public long displayTime() { return XrFrameEndInfo.ndisplayTime(address()); } + /** @return the value of the {@link XrFrameEndInfo#environmentBlendMode} field. */ + @NativeType("XrEnvironmentBlendMode") + public int environmentBlendMode() { return XrFrameEndInfo.nenvironmentBlendMode(address()); } + /** @return the value of the {@link XrFrameEndInfo#layerCount} field. */ + @NativeType("uint32_t") + public int layerCount() { return XrFrameEndInfo.nlayerCount(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrFrameEndInfo#layers} field. */ + @Nullable + @NativeType("XrCompositionLayerBaseHeader const * const *") + public PointerBuffer layers() { return XrFrameEndInfo.nlayers(address()); } + + /** Sets the specified value to the {@link XrFrameEndInfo#type} field. */ + public XrFrameEndInfo.Buffer type(@NativeType("XrStructureType") int value) { XrFrameEndInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_FRAME_END_INFO TYPE_FRAME_END_INFO} value to the {@link XrFrameEndInfo#type} field. */ + public XrFrameEndInfo.Buffer type$Default() { return type(XR10.XR_TYPE_FRAME_END_INFO); } + /** Sets the specified value to the {@link XrFrameEndInfo#next} field. */ + public XrFrameEndInfo.Buffer next(@NativeType("void const *") long value) { XrFrameEndInfo.nnext(address(), value); return this; } + /** Prepends the specified {@link XrFrameEndInfoML} value to the {@code next} chain. */ + public XrFrameEndInfo.Buffer next(XrFrameEndInfoML value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGlobalDimmerFrameEndInfoML} value to the {@code next} chain. */ + public XrFrameEndInfo.Buffer next(XrGlobalDimmerFrameEndInfoML value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrLocalDimmingFrameEndInfoMETA} value to the {@code next} chain. */ + public XrFrameEndInfo.Buffer next(XrLocalDimmingFrameEndInfoMETA value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSecondaryViewConfigurationFrameEndInfoMSFT} value to the {@code next} chain. */ + public XrFrameEndInfo.Buffer next(XrSecondaryViewConfigurationFrameEndInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrFrameEndInfo#displayTime} field. */ + public XrFrameEndInfo.Buffer displayTime(@NativeType("XrTime") long value) { XrFrameEndInfo.ndisplayTime(address(), value); return this; } + /** Sets the specified value to the {@link XrFrameEndInfo#environmentBlendMode} field. */ + public XrFrameEndInfo.Buffer environmentBlendMode(@NativeType("XrEnvironmentBlendMode") int value) { XrFrameEndInfo.nenvironmentBlendMode(address(), value); return this; } + /** Sets the specified value to the {@link XrFrameEndInfo#layerCount} field. */ + public XrFrameEndInfo.Buffer layerCount(@NativeType("uint32_t") int value) { XrFrameEndInfo.nlayerCount(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link XrFrameEndInfo#layers} field. */ + public XrFrameEndInfo.Buffer layers(@Nullable @NativeType("XrCompositionLayerBaseHeader const * const *") PointerBuffer value) { XrFrameEndInfo.nlayers(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameEndInfoML.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameEndInfoML.java index 281f834f08..d3e9899b9e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameEndInfoML.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameEndInfoML.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.*; + /** * Per frame configuration parameters. * @@ -36,8 +36,8 @@ * float {@link #focusDistance}; * XrFrameEndInfoFlagsML {@link #flags}; * } - */ -public class XrFrameEndInfoML extends Struct implements NativeResource { + */ +public class XrFrameEndInfoML extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -47,35 +47,26 @@ public class XrFrameEndInfoML extends Struct implements Native /** The struct member offsets. */ public static final int - TYPE, - NEXT, - FOCUSDISTANCE, - FLAGS; + TYPE, + NEXT, + FOCUSDISTANCE, + FLAGS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - FOCUSDISTANCE = layout.offsetof(2); - FLAGS = layout.offsetof(3); - } - - protected XrFrameEndInfoML(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrFrameEndInfoML create(long address, @Nullable ByteBuffer container) { - return new XrFrameEndInfoML(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + FOCUSDISTANCE = layout.offsetof(2); + FLAGS = layout.offsetof(3); } /** @@ -90,41 +81,41 @@ public XrFrameEndInfoML(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 distance, in meters, to defined focus point for the client content. The focus distance is interpreted as the positive distance to the client-determined object of interest (relative to the forward vector of the Lightwear). */ - public float focusDistance() { return nfocusDistance(address()); } - /** a bitmask of {@code XrFrameEndInfoFlagsML} */ - @NativeType("XrFrameEndInfoFlagsML") - public long flags() { return nflags(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFrameEndInfoML type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MLFrameEndInfo#XR_TYPE_FRAME_END_INFO_ML TYPE_FRAME_END_INFO_ML} value to the {@link #type} field. */ - public XrFrameEndInfoML type$Default() { return type(MLFrameEndInfo.XR_TYPE_FRAME_END_INFO_ML); } - /** Sets the specified value to the {@link #next} field. */ - public XrFrameEndInfoML next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #focusDistance} field. */ - public XrFrameEndInfoML focusDistance(float value) { nfocusDistance(address(), value); return this; } - /** Sets the specified value to the {@link #flags} field. */ - public XrFrameEndInfoML flags(@NativeType("XrFrameEndInfoFlagsML") long value) { nflags(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 distance, in meters, to defined focus point for the client content. The focus distance is interpreted as the positive distance to the client-determined object of interest (relative to the forward vector of the Lightwear). */ + public float focusDistance() { return nfocusDistance(address()); } + /** a bitmask of {@code XrFrameEndInfoFlagsML} */ + @NativeType("XrFrameEndInfoFlagsML") + public long flags() { return nflags(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFrameEndInfoML type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MLFrameEndInfo#XR_TYPE_FRAME_END_INFO_ML TYPE_FRAME_END_INFO_ML} value to the {@link #type} field. */ + public XrFrameEndInfoML type$Default() { return type(MLFrameEndInfo.XR_TYPE_FRAME_END_INFO_ML); } + /** Sets the specified value to the {@link #next} field. */ + public XrFrameEndInfoML next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #focusDistance} field. */ + public XrFrameEndInfoML focusDistance(float value) { nfocusDistance(address(), value); return this; } + /** Sets the specified value to the {@link #flags} field. */ + public XrFrameEndInfoML flags(@NativeType("XrFrameEndInfoFlagsML") long value) { nflags(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFrameEndInfoML set( - int type, - long next, - float focusDistance, + int type, + long next, + float focusDistance, long flags - ) { - type(type); - next(next); - focusDistance(focusDistance); - flags(flags); + ) { + type(type); + next(next); + focusDistance(focusDistance); + flags(flags); return this; } @@ -145,29 +136,29 @@ public XrFrameEndInfoML set(XrFrameEndInfoML src) { /** Returns a new {@code XrFrameEndInfoML} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrFrameEndInfoML malloc() { - return new XrFrameEndInfoML(nmemAllocChecked(SIZEOF), null); + return wrap(XrFrameEndInfoML.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrFrameEndInfoML} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrFrameEndInfoML calloc() { - return new XrFrameEndInfoML(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrFrameEndInfoML.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrFrameEndInfoML} instance allocated with {@link BufferUtils}. */ public static XrFrameEndInfoML create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrFrameEndInfoML(memAddress(container), container); + return wrap(XrFrameEndInfoML.class, memAddress(container), container); } /** Returns a new {@code XrFrameEndInfoML} instance for the specified memory address. */ public static XrFrameEndInfoML create(long address) { - return new XrFrameEndInfoML(address, null); + return wrap(XrFrameEndInfoML.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrFrameEndInfoML createSafe(long address) { - return address == NULL ? null : new XrFrameEndInfoML(address, null); + return address == NULL ? null : wrap(XrFrameEndInfoML.class, address); } /** @@ -176,7 +167,7 @@ public static XrFrameEndInfoML createSafe(long address) { * @param capacity the buffer capacity */ public static XrFrameEndInfoML.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -185,7 +176,7 @@ public static XrFrameEndInfoML.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrFrameEndInfoML.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -195,7 +186,7 @@ public static XrFrameEndInfoML.Buffer calloc(int capacity) { */ public static XrFrameEndInfoML.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); } /** @@ -205,13 +196,13 @@ public static XrFrameEndInfoML.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrFrameEndInfoML.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 XrFrameEndInfoML.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -220,7 +211,7 @@ public static XrFrameEndInfoML.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrFrameEndInfoML malloc(MemoryStack stack) { - return new XrFrameEndInfoML(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrFrameEndInfoML.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -229,7 +220,7 @@ public static XrFrameEndInfoML malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrFrameEndInfoML calloc(MemoryStack stack) { - return new XrFrameEndInfoML(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrFrameEndInfoML.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -239,7 +230,7 @@ public static XrFrameEndInfoML calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFrameEndInfoML.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); } /** @@ -249,30 +240,30 @@ public static XrFrameEndInfoML.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFrameEndInfoML.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 + XrFrameEndInfoML.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFrameEndInfoML.NEXT); } - /** Unsafe version of {@link #focusDistance}. */ - public static float nfocusDistance(long struct) { return UNSAFE.getFloat(null, struct + XrFrameEndInfoML.FOCUSDISTANCE); } - /** Unsafe version of {@link #flags}. */ - public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrFrameEndInfoML.FLAGS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameEndInfoML.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameEndInfoML.NEXT, value); } - /** Unsafe version of {@link #focusDistance(float) focusDistance}. */ - public static void nfocusDistance(long struct, float value) { UNSAFE.putFloat(null, struct + XrFrameEndInfoML.FOCUSDISTANCE, value); } - /** Unsafe version of {@link #flags(long) flags}. */ - public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrFrameEndInfoML.FLAGS, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFrameEndInfoML.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFrameEndInfoML.NEXT); } + /** Unsafe version of {@link #focusDistance}. */ + public static float nfocusDistance(long struct) { return UNSAFE.getFloat(null, struct + XrFrameEndInfoML.FOCUSDISTANCE); } + /** Unsafe version of {@link #flags}. */ + public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrFrameEndInfoML.FLAGS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameEndInfoML.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameEndInfoML.NEXT, value); } + /** Unsafe version of {@link #focusDistance(float) focusDistance}. */ + public static void nfocusDistance(long struct, float value) { UNSAFE.putFloat(null, struct + XrFrameEndInfoML.FOCUSDISTANCE, value); } + /** Unsafe version of {@link #flags(long) flags}. */ + public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrFrameEndInfoML.FLAGS, value); } + + // ----------------------------------- /** An array of {@link XrFrameEndInfoML} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -282,9 +273,9 @@ public static class Buffer extends StructBuffer implem /** * Creates a new {@code XrFrameEndInfoML.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 XrFrameEndInfoML#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFrameEndInfoML#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -309,29 +300,29 @@ protected Buffer self() { protected XrFrameEndInfoML getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFrameEndInfoML#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFrameEndInfoML.ntype(address()); } - /** @return the value of the {@link XrFrameEndInfoML#next} field. */ - @NativeType("void const *") - public long next() { return XrFrameEndInfoML.nnext(address()); } - /** @return the value of the {@link XrFrameEndInfoML#focusDistance} field. */ - public float focusDistance() { return XrFrameEndInfoML.nfocusDistance(address()); } - /** @return the value of the {@link XrFrameEndInfoML#flags} field. */ - @NativeType("XrFrameEndInfoFlagsML") - public long flags() { return XrFrameEndInfoML.nflags(address()); } - - /** Sets the specified value to the {@link XrFrameEndInfoML#type} field. */ - public XrFrameEndInfoML.Buffer type(@NativeType("XrStructureType") int value) { XrFrameEndInfoML.ntype(address(), value); return this; } - /** Sets the {@link MLFrameEndInfo#XR_TYPE_FRAME_END_INFO_ML TYPE_FRAME_END_INFO_ML} value to the {@link XrFrameEndInfoML#type} field. */ - public XrFrameEndInfoML.Buffer type$Default() { return type(MLFrameEndInfo.XR_TYPE_FRAME_END_INFO_ML); } - /** Sets the specified value to the {@link XrFrameEndInfoML#next} field. */ - public XrFrameEndInfoML.Buffer next(@NativeType("void const *") long value) { XrFrameEndInfoML.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrFrameEndInfoML#focusDistance} field. */ - public XrFrameEndInfoML.Buffer focusDistance(float value) { XrFrameEndInfoML.nfocusDistance(address(), value); return this; } - /** Sets the specified value to the {@link XrFrameEndInfoML#flags} field. */ - public XrFrameEndInfoML.Buffer flags(@NativeType("XrFrameEndInfoFlagsML") long value) { XrFrameEndInfoML.nflags(address(), value); return this; } + + /** @return the value of the {@link XrFrameEndInfoML#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFrameEndInfoML.ntype(address()); } + /** @return the value of the {@link XrFrameEndInfoML#next} field. */ + @NativeType("void const *") + public long next() { return XrFrameEndInfoML.nnext(address()); } + /** @return the value of the {@link XrFrameEndInfoML#focusDistance} field. */ + public float focusDistance() { return XrFrameEndInfoML.nfocusDistance(address()); } + /** @return the value of the {@link XrFrameEndInfoML#flags} field. */ + @NativeType("XrFrameEndInfoFlagsML") + public long flags() { return XrFrameEndInfoML.nflags(address()); } + + /** Sets the specified value to the {@link XrFrameEndInfoML#type} field. */ + public XrFrameEndInfoML.Buffer type(@NativeType("XrStructureType") int value) { XrFrameEndInfoML.ntype(address(), value); return this; } + /** Sets the {@link MLFrameEndInfo#XR_TYPE_FRAME_END_INFO_ML TYPE_FRAME_END_INFO_ML} value to the {@link XrFrameEndInfoML#type} field. */ + public XrFrameEndInfoML.Buffer type$Default() { return type(MLFrameEndInfo.XR_TYPE_FRAME_END_INFO_ML); } + /** Sets the specified value to the {@link XrFrameEndInfoML#next} field. */ + public XrFrameEndInfoML.Buffer next(@NativeType("void const *") long value) { XrFrameEndInfoML.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrFrameEndInfoML#focusDistance} field. */ + public XrFrameEndInfoML.Buffer focusDistance(float value) { XrFrameEndInfoML.nfocusDistance(address(), value); return this; } + /** Sets the specified value to the {@link XrFrameEndInfoML#flags} field. */ + public XrFrameEndInfoML.Buffer flags(@NativeType("XrFrameEndInfoFlagsML") long value) { XrFrameEndInfoML.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameState.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameState.java index 10f553ee6f..669c26bb65 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameState.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameState.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.*; + /** * Frame prediction structure. * @@ -45,8 +45,8 @@ * XrDuration {@link #predictedDisplayPeriod}; * XrBool32 {@link #shouldRender}; * } - */ -public class XrFrameState extends Struct implements NativeResource { + */ +public class XrFrameState extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,38 +56,29 @@ public class XrFrameState extends Struct implements NativeResource /** The struct member offsets. */ public static final int - TYPE, - NEXT, - PREDICTEDDISPLAYTIME, - PREDICTEDDISPLAYPERIOD, - SHOULDRENDER; + TYPE, + NEXT, + PREDICTEDDISPLAYTIME, + PREDICTEDDISPLAYPERIOD, + SHOULDRENDER; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(8), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(8), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - PREDICTEDDISPLAYTIME = layout.offsetof(2); - PREDICTEDDISPLAYPERIOD = layout.offsetof(3); - SHOULDRENDER = layout.offsetof(4); - } - - protected XrFrameState(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrFrameState create(long address, @Nullable ByteBuffer container) { - return new XrFrameState(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + PREDICTEDDISPLAYTIME = layout.offsetof(2); + PREDICTEDDISPLAYPERIOD = layout.offsetof(3); + SHOULDRENDER = layout.offsetof(4); } /** @@ -102,51 +93,51 @@ public XrFrameState(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 anticipated display {@code XrTime} for the next application-generated frame. */ - @NativeType("XrTime") - public long predictedDisplayTime() { return npredictedDisplayTime(address()); } - /** the {@code XrDuration} of the display period for the next application-generated frame, for use in predicting display times beyond the next one. */ - @NativeType("XrDuration") - public long predictedDisplayPeriod() { return npredictedDisplayPeriod(address()); } - /** {@link XR10#XR_TRUE TRUE} if the application should render its layers as normal and submit them to {@link XR10#xrEndFrame EndFrame}. When this value is {@link XR10#XR_FALSE FALSE}, the application should avoid heavy GPU work where possible, for example by skipping layer rendering and then omitting those layers when calling {@link XR10#xrEndFrame EndFrame}. */ - @NativeType("XrBool32") - public boolean shouldRender() { return nshouldRender(address()) != 0; } - - /** Sets the specified value to the {@link #type} field. */ - public XrFrameState type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_FRAME_STATE TYPE_FRAME_STATE} value to the {@link #type} field. */ - public XrFrameState type$Default() { return type(XR10.XR_TYPE_FRAME_STATE); } - /** Sets the specified value to the {@link #next} field. */ - public XrFrameState next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrSecondaryViewConfigurationFrameStateMSFT} value to the {@code next} chain. */ - public XrFrameState next(XrSecondaryViewConfigurationFrameStateMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #predictedDisplayTime} field. */ - public XrFrameState predictedDisplayTime(@NativeType("XrTime") long value) { npredictedDisplayTime(address(), value); return this; } - /** Sets the specified value to the {@link #predictedDisplayPeriod} field. */ - public XrFrameState predictedDisplayPeriod(@NativeType("XrDuration") long value) { npredictedDisplayPeriod(address(), value); return this; } - /** Sets the specified value to the {@link #shouldRender} field. */ - public XrFrameState shouldRender(@NativeType("XrBool32") boolean value) { nshouldRender(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 anticipated display {@code XrTime} for the next application-generated frame. */ + @NativeType("XrTime") + public long predictedDisplayTime() { return npredictedDisplayTime(address()); } + /** the {@code XrDuration} of the display period for the next application-generated frame, for use in predicting display times beyond the next one. */ + @NativeType("XrDuration") + public long predictedDisplayPeriod() { return npredictedDisplayPeriod(address()); } + /** {@link XR10#XR_TRUE TRUE} if the application should render its layers as normal and submit them to {@link XR10#xrEndFrame EndFrame}. When this value is {@link XR10#XR_FALSE FALSE}, the application should avoid heavy GPU work where possible, for example by skipping layer rendering and then omitting those layers when calling {@link XR10#xrEndFrame EndFrame}. */ + @NativeType("XrBool32") + public boolean shouldRender() { return nshouldRender(address()) != 0; } + + /** Sets the specified value to the {@link #type} field. */ + public XrFrameState type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_FRAME_STATE TYPE_FRAME_STATE} value to the {@link #type} field. */ + public XrFrameState type$Default() { return type(XR10.XR_TYPE_FRAME_STATE); } + /** Sets the specified value to the {@link #next} field. */ + public XrFrameState next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrSecondaryViewConfigurationFrameStateMSFT} value to the {@code next} chain. */ + public XrFrameState next(XrSecondaryViewConfigurationFrameStateMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #predictedDisplayTime} field. */ + public XrFrameState predictedDisplayTime(@NativeType("XrTime") long value) { npredictedDisplayTime(address(), value); return this; } + /** Sets the specified value to the {@link #predictedDisplayPeriod} field. */ + public XrFrameState predictedDisplayPeriod(@NativeType("XrDuration") long value) { npredictedDisplayPeriod(address(), value); return this; } + /** Sets the specified value to the {@link #shouldRender} field. */ + public XrFrameState shouldRender(@NativeType("XrBool32") boolean value) { nshouldRender(address(), value ? 1 : 0); return this; } /** Initializes this struct with the specified values. */ public XrFrameState set( - int type, - long next, - long predictedDisplayTime, - long predictedDisplayPeriod, + int type, + long next, + long predictedDisplayTime, + long predictedDisplayPeriod, boolean shouldRender - ) { - type(type); - next(next); - predictedDisplayTime(predictedDisplayTime); - predictedDisplayPeriod(predictedDisplayPeriod); - shouldRender(shouldRender); + ) { + type(type); + next(next); + predictedDisplayTime(predictedDisplayTime); + predictedDisplayPeriod(predictedDisplayPeriod); + shouldRender(shouldRender); return this; } @@ -167,29 +158,29 @@ public XrFrameState set(XrFrameState src) { /** Returns a new {@code XrFrameState} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrFrameState malloc() { - return new XrFrameState(nmemAllocChecked(SIZEOF), null); + return wrap(XrFrameState.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrFrameState} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrFrameState calloc() { - return new XrFrameState(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrFrameState.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrFrameState} instance allocated with {@link BufferUtils}. */ public static XrFrameState create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrFrameState(memAddress(container), container); + return wrap(XrFrameState.class, memAddress(container), container); } /** Returns a new {@code XrFrameState} instance for the specified memory address. */ public static XrFrameState create(long address) { - return new XrFrameState(address, null); + return wrap(XrFrameState.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrFrameState createSafe(long address) { - return address == NULL ? null : new XrFrameState(address, null); + return address == NULL ? null : wrap(XrFrameState.class, address); } /** @@ -198,7 +189,7 @@ public static XrFrameState createSafe(long address) { * @param capacity the buffer capacity */ public static XrFrameState.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -207,7 +198,7 @@ public static XrFrameState.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrFrameState.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -217,7 +208,7 @@ public static XrFrameState.Buffer calloc(int capacity) { */ public static XrFrameState.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); } /** @@ -227,13 +218,13 @@ public static XrFrameState.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrFrameState.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 XrFrameState.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -242,7 +233,7 @@ public static XrFrameState.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrFrameState malloc(MemoryStack stack) { - return new XrFrameState(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrFrameState.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -251,7 +242,7 @@ public static XrFrameState malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrFrameState calloc(MemoryStack stack) { - return new XrFrameState(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrFrameState.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -261,7 +252,7 @@ public static XrFrameState calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFrameState.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); } /** @@ -271,34 +262,34 @@ public static XrFrameState.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFrameState.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 + XrFrameState.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFrameState.NEXT); } - /** Unsafe version of {@link #predictedDisplayTime}. */ - public static long npredictedDisplayTime(long struct) { return UNSAFE.getLong(null, struct + XrFrameState.PREDICTEDDISPLAYTIME); } - /** Unsafe version of {@link #predictedDisplayPeriod}. */ - public static long npredictedDisplayPeriod(long struct) { return UNSAFE.getLong(null, struct + XrFrameState.PREDICTEDDISPLAYPERIOD); } - /** Unsafe version of {@link #shouldRender}. */ - public static int nshouldRender(long struct) { return UNSAFE.getInt(null, struct + XrFrameState.SHOULDRENDER); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameState.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameState.NEXT, value); } - /** Unsafe version of {@link #predictedDisplayTime(long) predictedDisplayTime}. */ - public static void npredictedDisplayTime(long struct, long value) { UNSAFE.putLong(null, struct + XrFrameState.PREDICTEDDISPLAYTIME, value); } - /** Unsafe version of {@link #predictedDisplayPeriod(long) predictedDisplayPeriod}. */ - public static void npredictedDisplayPeriod(long struct, long value) { UNSAFE.putLong(null, struct + XrFrameState.PREDICTEDDISPLAYPERIOD, value); } - /** Unsafe version of {@link #shouldRender(boolean) shouldRender}. */ - public static void nshouldRender(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameState.SHOULDRENDER, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFrameState.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFrameState.NEXT); } + /** Unsafe version of {@link #predictedDisplayTime}. */ + public static long npredictedDisplayTime(long struct) { return UNSAFE.getLong(null, struct + XrFrameState.PREDICTEDDISPLAYTIME); } + /** Unsafe version of {@link #predictedDisplayPeriod}. */ + public static long npredictedDisplayPeriod(long struct) { return UNSAFE.getLong(null, struct + XrFrameState.PREDICTEDDISPLAYPERIOD); } + /** Unsafe version of {@link #shouldRender}. */ + public static int nshouldRender(long struct) { return UNSAFE.getInt(null, struct + XrFrameState.SHOULDRENDER); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameState.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameState.NEXT, value); } + /** Unsafe version of {@link #predictedDisplayTime(long) predictedDisplayTime}. */ + public static void npredictedDisplayTime(long struct, long value) { UNSAFE.putLong(null, struct + XrFrameState.PREDICTEDDISPLAYTIME, value); } + /** Unsafe version of {@link #predictedDisplayPeriod(long) predictedDisplayPeriod}. */ + public static void npredictedDisplayPeriod(long struct, long value) { UNSAFE.putLong(null, struct + XrFrameState.PREDICTEDDISPLAYPERIOD, value); } + /** Unsafe version of {@link #shouldRender(boolean) shouldRender}. */ + public static void nshouldRender(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameState.SHOULDRENDER, value); } + + // ----------------------------------- /** An array of {@link XrFrameState} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -308,9 +299,9 @@ public static class Buffer extends StructBuffer implements /** * Creates a new {@code XrFrameState.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 XrFrameState#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFrameState#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -335,37 +326,37 @@ protected Buffer self() { protected XrFrameState getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFrameState#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFrameState.ntype(address()); } - /** @return the value of the {@link XrFrameState#next} field. */ - @NativeType("void *") - public long next() { return XrFrameState.nnext(address()); } - /** @return the value of the {@link XrFrameState#predictedDisplayTime} field. */ - @NativeType("XrTime") - public long predictedDisplayTime() { return XrFrameState.npredictedDisplayTime(address()); } - /** @return the value of the {@link XrFrameState#predictedDisplayPeriod} field. */ - @NativeType("XrDuration") - public long predictedDisplayPeriod() { return XrFrameState.npredictedDisplayPeriod(address()); } - /** @return the value of the {@link XrFrameState#shouldRender} field. */ - @NativeType("XrBool32") - public boolean shouldRender() { return XrFrameState.nshouldRender(address()) != 0; } - - /** Sets the specified value to the {@link XrFrameState#type} field. */ - public XrFrameState.Buffer type(@NativeType("XrStructureType") int value) { XrFrameState.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_FRAME_STATE TYPE_FRAME_STATE} value to the {@link XrFrameState#type} field. */ - public XrFrameState.Buffer type$Default() { return type(XR10.XR_TYPE_FRAME_STATE); } - /** Sets the specified value to the {@link XrFrameState#next} field. */ - public XrFrameState.Buffer next(@NativeType("void *") long value) { XrFrameState.nnext(address(), value); return this; } - /** Prepends the specified {@link XrSecondaryViewConfigurationFrameStateMSFT} value to the {@code next} chain. */ - public XrFrameState.Buffer next(XrSecondaryViewConfigurationFrameStateMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrFrameState#predictedDisplayTime} field. */ - public XrFrameState.Buffer predictedDisplayTime(@NativeType("XrTime") long value) { XrFrameState.npredictedDisplayTime(address(), value); return this; } - /** Sets the specified value to the {@link XrFrameState#predictedDisplayPeriod} field. */ - public XrFrameState.Buffer predictedDisplayPeriod(@NativeType("XrDuration") long value) { XrFrameState.npredictedDisplayPeriod(address(), value); return this; } - /** Sets the specified value to the {@link XrFrameState#shouldRender} field. */ - public XrFrameState.Buffer shouldRender(@NativeType("XrBool32") boolean value) { XrFrameState.nshouldRender(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrFrameState#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFrameState.ntype(address()); } + /** @return the value of the {@link XrFrameState#next} field. */ + @NativeType("void *") + public long next() { return XrFrameState.nnext(address()); } + /** @return the value of the {@link XrFrameState#predictedDisplayTime} field. */ + @NativeType("XrTime") + public long predictedDisplayTime() { return XrFrameState.npredictedDisplayTime(address()); } + /** @return the value of the {@link XrFrameState#predictedDisplayPeriod} field. */ + @NativeType("XrDuration") + public long predictedDisplayPeriod() { return XrFrameState.npredictedDisplayPeriod(address()); } + /** @return the value of the {@link XrFrameState#shouldRender} field. */ + @NativeType("XrBool32") + public boolean shouldRender() { return XrFrameState.nshouldRender(address()) != 0; } + + /** Sets the specified value to the {@link XrFrameState#type} field. */ + public XrFrameState.Buffer type(@NativeType("XrStructureType") int value) { XrFrameState.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_FRAME_STATE TYPE_FRAME_STATE} value to the {@link XrFrameState#type} field. */ + public XrFrameState.Buffer type$Default() { return type(XR10.XR_TYPE_FRAME_STATE); } + /** Sets the specified value to the {@link XrFrameState#next} field. */ + public XrFrameState.Buffer next(@NativeType("void *") long value) { XrFrameState.nnext(address(), value); return this; } + /** Prepends the specified {@link XrSecondaryViewConfigurationFrameStateMSFT} value to the {@code next} chain. */ + public XrFrameState.Buffer next(XrSecondaryViewConfigurationFrameStateMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrFrameState#predictedDisplayTime} field. */ + public XrFrameState.Buffer predictedDisplayTime(@NativeType("XrTime") long value) { XrFrameState.npredictedDisplayTime(address(), value); return this; } + /** Sets the specified value to the {@link XrFrameState#predictedDisplayPeriod} field. */ + public XrFrameState.Buffer predictedDisplayPeriod(@NativeType("XrDuration") long value) { XrFrameState.npredictedDisplayPeriod(address(), value); return this; } + /** Sets the specified value to the {@link XrFrameState#shouldRender} field. */ + public XrFrameState.Buffer shouldRender(@NativeType("XrBool32") boolean value) { XrFrameState.nshouldRender(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameWaitInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameWaitInfo.java index 2442e65921..0bc57b0bfa 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameWaitInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameWaitInfo.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.*; + /** * Wait frame information structure. * @@ -40,8 +40,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrFrameWaitInfo extends Struct implements NativeResource { + */ +public class XrFrameWaitInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,29 +51,20 @@ public class XrFrameWaitInfo extends Struct implements NativeRe /** 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 XrFrameWaitInfo(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrFrameWaitInfo create(long address, @Nullable ByteBuffer container) { - return new XrFrameWaitInfo(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); } /** @@ -88,28 +79,28 @@ public XrFrameWaitInfo(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()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFrameWaitInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_FRAME_WAIT_INFO TYPE_FRAME_WAIT_INFO} value to the {@link #type} field. */ - public XrFrameWaitInfo type$Default() { return type(XR10.XR_TYPE_FRAME_WAIT_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrFrameWaitInfo next(@NativeType("void const *") 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 const *") + public long next() { return nnext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFrameWaitInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_FRAME_WAIT_INFO TYPE_FRAME_WAIT_INFO} value to the {@link #type} field. */ + public XrFrameWaitInfo type$Default() { return type(XR10.XR_TYPE_FRAME_WAIT_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrFrameWaitInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFrameWaitInfo set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -130,29 +121,29 @@ public XrFrameWaitInfo set(XrFrameWaitInfo src) { /** Returns a new {@code XrFrameWaitInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrFrameWaitInfo malloc() { - return new XrFrameWaitInfo(nmemAllocChecked(SIZEOF), null); + return wrap(XrFrameWaitInfo.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrFrameWaitInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrFrameWaitInfo calloc() { - return new XrFrameWaitInfo(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrFrameWaitInfo.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrFrameWaitInfo} instance allocated with {@link BufferUtils}. */ public static XrFrameWaitInfo create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrFrameWaitInfo(memAddress(container), container); + return wrap(XrFrameWaitInfo.class, memAddress(container), container); } /** Returns a new {@code XrFrameWaitInfo} instance for the specified memory address. */ public static XrFrameWaitInfo create(long address) { - return new XrFrameWaitInfo(address, null); + return wrap(XrFrameWaitInfo.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrFrameWaitInfo createSafe(long address) { - return address == NULL ? null : new XrFrameWaitInfo(address, null); + return address == NULL ? null : wrap(XrFrameWaitInfo.class, address); } /** @@ -161,7 +152,7 @@ public static XrFrameWaitInfo createSafe(long address) { * @param capacity the buffer capacity */ public static XrFrameWaitInfo.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -170,7 +161,7 @@ public static XrFrameWaitInfo.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrFrameWaitInfo.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -180,7 +171,7 @@ public static XrFrameWaitInfo.Buffer calloc(int capacity) { */ public static XrFrameWaitInfo.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); } /** @@ -190,13 +181,13 @@ public static XrFrameWaitInfo.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrFrameWaitInfo.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 XrFrameWaitInfo.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -205,7 +196,7 @@ public static XrFrameWaitInfo.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrFrameWaitInfo malloc(MemoryStack stack) { - return new XrFrameWaitInfo(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrFrameWaitInfo.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -214,7 +205,7 @@ public static XrFrameWaitInfo malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrFrameWaitInfo calloc(MemoryStack stack) { - return new XrFrameWaitInfo(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrFrameWaitInfo.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -224,7 +215,7 @@ public static XrFrameWaitInfo calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFrameWaitInfo.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); } /** @@ -234,22 +225,22 @@ public static XrFrameWaitInfo.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrFrameWaitInfo.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 + XrFrameWaitInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFrameWaitInfo.NEXT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameWaitInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameWaitInfo.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFrameWaitInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFrameWaitInfo.NEXT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameWaitInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameWaitInfo.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrFrameWaitInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -259,9 +250,9 @@ public static class Buffer extends StructBuffer impleme /** * Creates a new {@code XrFrameWaitInfo.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 XrFrameWaitInfo#SIZEOF}, and its mark will be undefined.

    + * by {@link XrFrameWaitInfo#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -286,20 +277,20 @@ protected Buffer self() { protected XrFrameWaitInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFrameWaitInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFrameWaitInfo.ntype(address()); } - /** @return the value of the {@link XrFrameWaitInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrFrameWaitInfo.nnext(address()); } - - /** Sets the specified value to the {@link XrFrameWaitInfo#type} field. */ - public XrFrameWaitInfo.Buffer type(@NativeType("XrStructureType") int value) { XrFrameWaitInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_FRAME_WAIT_INFO TYPE_FRAME_WAIT_INFO} value to the {@link XrFrameWaitInfo#type} field. */ - public XrFrameWaitInfo.Buffer type$Default() { return type(XR10.XR_TYPE_FRAME_WAIT_INFO); } - /** Sets the specified value to the {@link XrFrameWaitInfo#next} field. */ - public XrFrameWaitInfo.Buffer next(@NativeType("void const *") long value) { XrFrameWaitInfo.nnext(address(), value); return this; } + + /** @return the value of the {@link XrFrameWaitInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFrameWaitInfo.ntype(address()); } + /** @return the value of the {@link XrFrameWaitInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrFrameWaitInfo.nnext(address()); } + + /** Sets the specified value to the {@link XrFrameWaitInfo#type} field. */ + public XrFrameWaitInfo.Buffer type(@NativeType("XrStructureType") int value) { XrFrameWaitInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_FRAME_WAIT_INFO TYPE_FRAME_WAIT_INFO} value to the {@link XrFrameWaitInfo#type} field. */ + public XrFrameWaitInfo.Buffer type$Default() { return type(XR10.XR_TYPE_FRAME_WAIT_INFO); } + /** Sets the specified value to the {@link XrFrameWaitInfo#next} field. */ + public XrFrameWaitInfo.Buffer next(@NativeType("void const *") long value) { XrFrameWaitInfo.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceCreateInfoFB.java index 721984f188..82372da4b7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceCreateInfoFB.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.*; + /** * A create structure for geometry instance. * @@ -59,8 +59,8 @@ * {@link XrPosef XrPosef} pose; * {@link XrVector3f XrVector3f} scale; * } - */ -public class XrGeometryInstanceCreateInfoFB extends Struct implements NativeResource { + */ +public class XrGeometryInstanceCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -70,44 +70,35 @@ public class XrGeometryInstanceCreateInfoFB extends Struct consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrVector3f} to the {@code scale} field. */ - public XrGeometryInstanceCreateInfoFB scale(XrVector3f value) { nscale(address(), value); return this; } - /** Passes the {@code scale} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrGeometryInstanceCreateInfoFB scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** @return the value of the {@code layer} field. */ + @NativeType("XrPassthroughLayerFB") + public long layer() { return nlayer(address()); } + /** @return the value of the {@code mesh} field. */ + @NativeType("XrTriangleMeshFB") + public long mesh() { return nmesh(address()); } + /** @return the value of the {@code baseSpace} field. */ + @NativeType("XrSpace") + public long baseSpace() { return nbaseSpace(address()); } + /** @return a {@link XrPosef} view of the {@code pose} field. */ + public XrPosef pose() { return npose(address()); } + /** @return a {@link XrVector3f} view of the {@code scale} field. */ + public XrVector3f scale() { return nscale(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrGeometryInstanceCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB} value to the {@code type} field. */ + public XrGeometryInstanceCreateInfoFB type$Default() { return type(FBPassthrough.XR_TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrGeometryInstanceCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@code layer} field. */ + public XrGeometryInstanceCreateInfoFB layer(XrPassthroughLayerFB value) { nlayer(address(), value); return this; } + /** Sets the specified value to the {@code mesh} field. */ + public XrGeometryInstanceCreateInfoFB mesh(XrTriangleMeshFB value) { nmesh(address(), value); return this; } + /** Sets the specified value to the {@code baseSpace} field. */ + public XrGeometryInstanceCreateInfoFB baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@code pose} field. */ + public XrGeometryInstanceCreateInfoFB pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@code pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrGeometryInstanceCreateInfoFB pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrVector3f} to the {@code scale} field. */ + public XrGeometryInstanceCreateInfoFB scale(XrVector3f value) { nscale(address(), value); return this; } + /** Passes the {@code scale} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrGeometryInstanceCreateInfoFB scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } /** Initializes this struct with the specified values. */ public XrGeometryInstanceCreateInfoFB set( - int type, - long next, - XrPassthroughLayerFB layer, - XrTriangleMeshFB mesh, - XrSpace baseSpace, - XrPosef pose, + int type, + long next, + XrPassthroughLayerFB layer, + XrTriangleMeshFB mesh, + XrSpace baseSpace, + XrPosef pose, XrVector3f scale - ) { - type(type); - next(next); - layer(layer); - mesh(mesh); - baseSpace(baseSpace); - pose(pose); - scale(scale); + ) { + type(type); + next(next); + layer(layer); + mesh(mesh); + baseSpace(baseSpace); + pose(pose); + scale(scale); return this; } @@ -201,29 +192,29 @@ public XrGeometryInstanceCreateInfoFB set(XrGeometryInstanceCreateInfoFB src) { /** Returns a new {@code XrGeometryInstanceCreateInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrGeometryInstanceCreateInfoFB malloc() { - return new XrGeometryInstanceCreateInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrGeometryInstanceCreateInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrGeometryInstanceCreateInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrGeometryInstanceCreateInfoFB calloc() { - return new XrGeometryInstanceCreateInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrGeometryInstanceCreateInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrGeometryInstanceCreateInfoFB} instance allocated with {@link BufferUtils}. */ public static XrGeometryInstanceCreateInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrGeometryInstanceCreateInfoFB(memAddress(container), container); + return wrap(XrGeometryInstanceCreateInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrGeometryInstanceCreateInfoFB} instance for the specified memory address. */ public static XrGeometryInstanceCreateInfoFB create(long address) { - return new XrGeometryInstanceCreateInfoFB(address, null); + return wrap(XrGeometryInstanceCreateInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrGeometryInstanceCreateInfoFB createSafe(long address) { - return address == NULL ? null : new XrGeometryInstanceCreateInfoFB(address, null); + return address == NULL ? null : wrap(XrGeometryInstanceCreateInfoFB.class, address); } /** @@ -232,7 +223,7 @@ public static XrGeometryInstanceCreateInfoFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrGeometryInstanceCreateInfoFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -241,7 +232,7 @@ public static XrGeometryInstanceCreateInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrGeometryInstanceCreateInfoFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -251,7 +242,7 @@ public static XrGeometryInstanceCreateInfoFB.Buffer calloc(int capacity) { */ public static XrGeometryInstanceCreateInfoFB.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); } /** @@ -261,13 +252,13 @@ public static XrGeometryInstanceCreateInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrGeometryInstanceCreateInfoFB.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 XrGeometryInstanceCreateInfoFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -276,7 +267,7 @@ public static XrGeometryInstanceCreateInfoFB.Buffer createSafe(long address, int * @param stack the stack from which to allocate */ public static XrGeometryInstanceCreateInfoFB malloc(MemoryStack stack) { - return new XrGeometryInstanceCreateInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrGeometryInstanceCreateInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -285,7 +276,7 @@ public static XrGeometryInstanceCreateInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrGeometryInstanceCreateInfoFB calloc(MemoryStack stack) { - return new XrGeometryInstanceCreateInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrGeometryInstanceCreateInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -295,7 +286,7 @@ public static XrGeometryInstanceCreateInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrGeometryInstanceCreateInfoFB.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); } /** @@ -305,40 +296,40 @@ public static XrGeometryInstanceCreateInfoFB.Buffer malloc(int capacity, MemoryS * @param capacity the buffer capacity */ public static XrGeometryInstanceCreateInfoFB.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 + XrGeometryInstanceCreateInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrGeometryInstanceCreateInfoFB.NEXT); } - /** Unsafe version of {@link #layer}. */ - public static long nlayer(long struct) { return memGetAddress(struct + XrGeometryInstanceCreateInfoFB.LAYER); } - /** Unsafe version of {@link #mesh}. */ - public static long nmesh(long struct) { return memGetAddress(struct + XrGeometryInstanceCreateInfoFB.MESH); } - /** Unsafe version of {@link #baseSpace}. */ - public static long nbaseSpace(long struct) { return memGetAddress(struct + XrGeometryInstanceCreateInfoFB.BASESPACE); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrGeometryInstanceCreateInfoFB.POSE); } - /** Unsafe version of {@link #scale}. */ - public static XrVector3f nscale(long struct) { return XrVector3f.create(struct + XrGeometryInstanceCreateInfoFB.SCALE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrGeometryInstanceCreateInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrGeometryInstanceCreateInfoFB.NEXT, value); } - /** Unsafe version of {@link #layer(XrPassthroughLayerFB) layer}. */ - public static void nlayer(long struct, XrPassthroughLayerFB value) { memPutAddress(struct + XrGeometryInstanceCreateInfoFB.LAYER, value.address()); } - /** Unsafe version of {@link #mesh(XrTriangleMeshFB) mesh}. */ - public static void nmesh(long struct, XrTriangleMeshFB value) { memPutAddress(struct + XrGeometryInstanceCreateInfoFB.MESH, value.address()); } - /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ - public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrGeometryInstanceCreateInfoFB.BASESPACE, value.address()); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrGeometryInstanceCreateInfoFB.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #scale(XrVector3f) scale}. */ - public static void nscale(long struct, XrVector3f value) { memCopy(value.address(), struct + XrGeometryInstanceCreateInfoFB.SCALE, XrVector3f.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrGeometryInstanceCreateInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrGeometryInstanceCreateInfoFB.NEXT); } + /** Unsafe version of {@link #layer}. */ + public static long nlayer(long struct) { return memGetAddress(struct + XrGeometryInstanceCreateInfoFB.LAYER); } + /** Unsafe version of {@link #mesh}. */ + public static long nmesh(long struct) { return memGetAddress(struct + XrGeometryInstanceCreateInfoFB.MESH); } + /** Unsafe version of {@link #baseSpace}. */ + public static long nbaseSpace(long struct) { return memGetAddress(struct + XrGeometryInstanceCreateInfoFB.BASESPACE); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrGeometryInstanceCreateInfoFB.POSE); } + /** Unsafe version of {@link #scale}. */ + public static XrVector3f nscale(long struct) { return XrVector3f.create(struct + XrGeometryInstanceCreateInfoFB.SCALE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrGeometryInstanceCreateInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrGeometryInstanceCreateInfoFB.NEXT, value); } + /** Unsafe version of {@link #layer(XrPassthroughLayerFB) layer}. */ + public static void nlayer(long struct, XrPassthroughLayerFB value) { memPutAddress(struct + XrGeometryInstanceCreateInfoFB.LAYER, value.address()); } + /** Unsafe version of {@link #mesh(XrTriangleMeshFB) mesh}. */ + public static void nmesh(long struct, XrTriangleMeshFB value) { memPutAddress(struct + XrGeometryInstanceCreateInfoFB.MESH, value.address()); } + /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ + public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrGeometryInstanceCreateInfoFB.BASESPACE, value.address()); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrGeometryInstanceCreateInfoFB.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #scale(XrVector3f) scale}. */ + public static void nscale(long struct, XrVector3f value) { memCopy(value.address(), struct + XrGeometryInstanceCreateInfoFB.SCALE, XrVector3f.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -349,9 +340,9 @@ public static void validate(long struct) { check(memGetAddress(struct + XrGeometryInstanceCreateInfoFB.LAYER)); check(memGetAddress(struct + XrGeometryInstanceCreateInfoFB.MESH)); check(memGetAddress(struct + XrGeometryInstanceCreateInfoFB.BASESPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrGeometryInstanceCreateInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -361,9 +352,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 XrGeometryInstanceCreateInfoFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrGeometryInstanceCreateInfoFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -388,47 +379,47 @@ protected Buffer self() { protected XrGeometryInstanceCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGeometryInstanceCreateInfoFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrGeometryInstanceCreateInfoFB.nnext(address()); } - /** @return the value of the {@code layer} field. */ - @NativeType("XrPassthroughLayerFB") - public long layer() { return XrGeometryInstanceCreateInfoFB.nlayer(address()); } - /** @return the value of the {@code mesh} field. */ - @NativeType("XrTriangleMeshFB") - public long mesh() { return XrGeometryInstanceCreateInfoFB.nmesh(address()); } - /** @return the value of the {@code baseSpace} field. */ - @NativeType("XrSpace") - public long baseSpace() { return XrGeometryInstanceCreateInfoFB.nbaseSpace(address()); } - /** @return a {@link XrPosef} view of the {@code pose} field. */ - public XrPosef pose() { return XrGeometryInstanceCreateInfoFB.npose(address()); } - /** @return a {@link XrVector3f} view of the {@code scale} field. */ - public XrVector3f scale() { return XrGeometryInstanceCreateInfoFB.nscale(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrGeometryInstanceCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrGeometryInstanceCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB} value to the {@code type} field. */ - public XrGeometryInstanceCreateInfoFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrGeometryInstanceCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrGeometryInstanceCreateInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@code layer} field. */ - public XrGeometryInstanceCreateInfoFB.Buffer layer(XrPassthroughLayerFB value) { XrGeometryInstanceCreateInfoFB.nlayer(address(), value); return this; } - /** Sets the specified value to the {@code mesh} field. */ - public XrGeometryInstanceCreateInfoFB.Buffer mesh(XrTriangleMeshFB value) { XrGeometryInstanceCreateInfoFB.nmesh(address(), value); return this; } - /** Sets the specified value to the {@code baseSpace} field. */ - public XrGeometryInstanceCreateInfoFB.Buffer baseSpace(XrSpace value) { XrGeometryInstanceCreateInfoFB.nbaseSpace(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@code pose} field. */ - public XrGeometryInstanceCreateInfoFB.Buffer pose(XrPosef value) { XrGeometryInstanceCreateInfoFB.npose(address(), value); return this; } - /** Passes the {@code pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrGeometryInstanceCreateInfoFB.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrVector3f} to the {@code scale} field. */ - public XrGeometryInstanceCreateInfoFB.Buffer scale(XrVector3f value) { XrGeometryInstanceCreateInfoFB.nscale(address(), value); return this; } - /** Passes the {@code scale} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrGeometryInstanceCreateInfoFB.Buffer scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGeometryInstanceCreateInfoFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrGeometryInstanceCreateInfoFB.nnext(address()); } + /** @return the value of the {@code layer} field. */ + @NativeType("XrPassthroughLayerFB") + public long layer() { return XrGeometryInstanceCreateInfoFB.nlayer(address()); } + /** @return the value of the {@code mesh} field. */ + @NativeType("XrTriangleMeshFB") + public long mesh() { return XrGeometryInstanceCreateInfoFB.nmesh(address()); } + /** @return the value of the {@code baseSpace} field. */ + @NativeType("XrSpace") + public long baseSpace() { return XrGeometryInstanceCreateInfoFB.nbaseSpace(address()); } + /** @return a {@link XrPosef} view of the {@code pose} field. */ + public XrPosef pose() { return XrGeometryInstanceCreateInfoFB.npose(address()); } + /** @return a {@link XrVector3f} view of the {@code scale} field. */ + public XrVector3f scale() { return XrGeometryInstanceCreateInfoFB.nscale(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrGeometryInstanceCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrGeometryInstanceCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB} value to the {@code type} field. */ + public XrGeometryInstanceCreateInfoFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrGeometryInstanceCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrGeometryInstanceCreateInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@code layer} field. */ + public XrGeometryInstanceCreateInfoFB.Buffer layer(XrPassthroughLayerFB value) { XrGeometryInstanceCreateInfoFB.nlayer(address(), value); return this; } + /** Sets the specified value to the {@code mesh} field. */ + public XrGeometryInstanceCreateInfoFB.Buffer mesh(XrTriangleMeshFB value) { XrGeometryInstanceCreateInfoFB.nmesh(address(), value); return this; } + /** Sets the specified value to the {@code baseSpace} field. */ + public XrGeometryInstanceCreateInfoFB.Buffer baseSpace(XrSpace value) { XrGeometryInstanceCreateInfoFB.nbaseSpace(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@code pose} field. */ + public XrGeometryInstanceCreateInfoFB.Buffer pose(XrPosef value) { XrGeometryInstanceCreateInfoFB.npose(address(), value); return this; } + /** Passes the {@code pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrGeometryInstanceCreateInfoFB.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrVector3f} to the {@code scale} field. */ + public XrGeometryInstanceCreateInfoFB.Buffer scale(XrVector3f value) { XrGeometryInstanceCreateInfoFB.nscale(address(), value); return this; } + /** Passes the {@code scale} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrGeometryInstanceCreateInfoFB.Buffer scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceFB.java index 44d5c05e11..fb3f61bf4b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceFB.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrGeometryInstanceFB} handle. */ + +/** Wraps an {@code XrGeometryInstanceFB} handle. */ public class XrGeometryInstanceFB 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/XrGeometryInstanceTransformFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceTransformFB.java index 657648547b..2c1f46ccb3 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceTransformFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceTransformFB.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.*; + /** * A geometry transformation. * @@ -54,8 +54,8 @@ * {@link XrPosef XrPosef} pose; * {@link XrVector3f XrVector3f} scale; * } - */ -public class XrGeometryInstanceTransformFB extends Struct implements NativeResource { + */ +public class XrGeometryInstanceTransformFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -65,41 +65,32 @@ public class XrGeometryInstanceTransformFB extends Struct consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrVector3f} to the {@code scale} field. */ - public XrGeometryInstanceTransformFB scale(XrVector3f value) { nscale(address(), value); return this; } - /** Passes the {@code scale} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrGeometryInstanceTransformFB scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** @return the value of the {@code baseSpace} field. */ + @NativeType("XrSpace") + public long baseSpace() { return nbaseSpace(address()); } + /** @return the value of the {@code time} field. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + /** @return a {@link XrPosef} view of the {@code pose} field. */ + public XrPosef pose() { return npose(address()); } + /** @return a {@link XrVector3f} view of the {@code scale} field. */ + public XrVector3f scale() { return nscale(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrGeometryInstanceTransformFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB} value to the {@code type} field. */ + public XrGeometryInstanceTransformFB type$Default() { return type(FBPassthrough.XR_TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrGeometryInstanceTransformFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@code baseSpace} field. */ + public XrGeometryInstanceTransformFB baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@code time} field. */ + public XrGeometryInstanceTransformFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@code pose} field. */ + public XrGeometryInstanceTransformFB pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@code pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrGeometryInstanceTransformFB pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrVector3f} to the {@code scale} field. */ + public XrGeometryInstanceTransformFB scale(XrVector3f value) { nscale(address(), value); return this; } + /** Passes the {@code scale} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrGeometryInstanceTransformFB scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } /** Initializes this struct with the specified values. */ public XrGeometryInstanceTransformFB set( - int type, - long next, - XrSpace baseSpace, - long time, - XrPosef pose, + int type, + long next, + XrSpace baseSpace, + long time, + XrPosef pose, XrVector3f scale - ) { - type(type); - next(next); - baseSpace(baseSpace); - time(time); - pose(pose); - scale(scale); + ) { + type(type); + next(next); + baseSpace(baseSpace); + time(time); + pose(pose); + scale(scale); return this; } @@ -186,29 +177,29 @@ public XrGeometryInstanceTransformFB set(XrGeometryInstanceTransformFB src) { /** Returns a new {@code XrGeometryInstanceTransformFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrGeometryInstanceTransformFB malloc() { - return new XrGeometryInstanceTransformFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrGeometryInstanceTransformFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrGeometryInstanceTransformFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrGeometryInstanceTransformFB calloc() { - return new XrGeometryInstanceTransformFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrGeometryInstanceTransformFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrGeometryInstanceTransformFB} instance allocated with {@link BufferUtils}. */ public static XrGeometryInstanceTransformFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrGeometryInstanceTransformFB(memAddress(container), container); + return wrap(XrGeometryInstanceTransformFB.class, memAddress(container), container); } /** Returns a new {@code XrGeometryInstanceTransformFB} instance for the specified memory address. */ public static XrGeometryInstanceTransformFB create(long address) { - return new XrGeometryInstanceTransformFB(address, null); + return wrap(XrGeometryInstanceTransformFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrGeometryInstanceTransformFB createSafe(long address) { - return address == NULL ? null : new XrGeometryInstanceTransformFB(address, null); + return address == NULL ? null : wrap(XrGeometryInstanceTransformFB.class, address); } /** @@ -217,7 +208,7 @@ public static XrGeometryInstanceTransformFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrGeometryInstanceTransformFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -226,7 +217,7 @@ public static XrGeometryInstanceTransformFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrGeometryInstanceTransformFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -236,7 +227,7 @@ public static XrGeometryInstanceTransformFB.Buffer calloc(int capacity) { */ public static XrGeometryInstanceTransformFB.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); } /** @@ -246,13 +237,13 @@ public static XrGeometryInstanceTransformFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrGeometryInstanceTransformFB.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 XrGeometryInstanceTransformFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -261,7 +252,7 @@ public static XrGeometryInstanceTransformFB.Buffer createSafe(long address, int * @param stack the stack from which to allocate */ public static XrGeometryInstanceTransformFB malloc(MemoryStack stack) { - return new XrGeometryInstanceTransformFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrGeometryInstanceTransformFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -270,7 +261,7 @@ public static XrGeometryInstanceTransformFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrGeometryInstanceTransformFB calloc(MemoryStack stack) { - return new XrGeometryInstanceTransformFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrGeometryInstanceTransformFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -280,7 +271,7 @@ public static XrGeometryInstanceTransformFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrGeometryInstanceTransformFB.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); } /** @@ -290,36 +281,36 @@ public static XrGeometryInstanceTransformFB.Buffer malloc(int capacity, MemorySt * @param capacity the buffer capacity */ public static XrGeometryInstanceTransformFB.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 + XrGeometryInstanceTransformFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrGeometryInstanceTransformFB.NEXT); } - /** Unsafe version of {@link #baseSpace}. */ - public static long nbaseSpace(long struct) { return memGetAddress(struct + XrGeometryInstanceTransformFB.BASESPACE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrGeometryInstanceTransformFB.TIME); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrGeometryInstanceTransformFB.POSE); } - /** Unsafe version of {@link #scale}. */ - public static XrVector3f nscale(long struct) { return XrVector3f.create(struct + XrGeometryInstanceTransformFB.SCALE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrGeometryInstanceTransformFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrGeometryInstanceTransformFB.NEXT, value); } - /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ - public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrGeometryInstanceTransformFB.BASESPACE, value.address()); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrGeometryInstanceTransformFB.TIME, value); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrGeometryInstanceTransformFB.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #scale(XrVector3f) scale}. */ - public static void nscale(long struct, XrVector3f value) { memCopy(value.address(), struct + XrGeometryInstanceTransformFB.SCALE, XrVector3f.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrGeometryInstanceTransformFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrGeometryInstanceTransformFB.NEXT); } + /** Unsafe version of {@link #baseSpace}. */ + public static long nbaseSpace(long struct) { return memGetAddress(struct + XrGeometryInstanceTransformFB.BASESPACE); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrGeometryInstanceTransformFB.TIME); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrGeometryInstanceTransformFB.POSE); } + /** Unsafe version of {@link #scale}. */ + public static XrVector3f nscale(long struct) { return XrVector3f.create(struct + XrGeometryInstanceTransformFB.SCALE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrGeometryInstanceTransformFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrGeometryInstanceTransformFB.NEXT, value); } + /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ + public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrGeometryInstanceTransformFB.BASESPACE, value.address()); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrGeometryInstanceTransformFB.TIME, value); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrGeometryInstanceTransformFB.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #scale(XrVector3f) scale}. */ + public static void nscale(long struct, XrVector3f value) { memCopy(value.address(), struct + XrGeometryInstanceTransformFB.SCALE, XrVector3f.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -328,9 +319,9 @@ public static XrGeometryInstanceTransformFB.Buffer calloc(int capacity, MemorySt */ public static void validate(long struct) { check(memGetAddress(struct + XrGeometryInstanceTransformFB.BASESPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrGeometryInstanceTransformFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -340,9 +331,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 XrGeometryInstanceTransformFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrGeometryInstanceTransformFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -367,42 +358,42 @@ protected Buffer self() { protected XrGeometryInstanceTransformFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGeometryInstanceTransformFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrGeometryInstanceTransformFB.nnext(address()); } - /** @return the value of the {@code baseSpace} field. */ - @NativeType("XrSpace") - public long baseSpace() { return XrGeometryInstanceTransformFB.nbaseSpace(address()); } - /** @return the value of the {@code time} field. */ - @NativeType("XrTime") - public long time() { return XrGeometryInstanceTransformFB.ntime(address()); } - /** @return a {@link XrPosef} view of the {@code pose} field. */ - public XrPosef pose() { return XrGeometryInstanceTransformFB.npose(address()); } - /** @return a {@link XrVector3f} view of the {@code scale} field. */ - public XrVector3f scale() { return XrGeometryInstanceTransformFB.nscale(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrGeometryInstanceTransformFB.Buffer type(@NativeType("XrStructureType") int value) { XrGeometryInstanceTransformFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB} value to the {@code type} field. */ - public XrGeometryInstanceTransformFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrGeometryInstanceTransformFB.Buffer next(@NativeType("void const *") long value) { XrGeometryInstanceTransformFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@code baseSpace} field. */ - public XrGeometryInstanceTransformFB.Buffer baseSpace(XrSpace value) { XrGeometryInstanceTransformFB.nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@code time} field. */ - public XrGeometryInstanceTransformFB.Buffer time(@NativeType("XrTime") long value) { XrGeometryInstanceTransformFB.ntime(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@code pose} field. */ - public XrGeometryInstanceTransformFB.Buffer pose(XrPosef value) { XrGeometryInstanceTransformFB.npose(address(), value); return this; } - /** Passes the {@code pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrGeometryInstanceTransformFB.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrVector3f} to the {@code scale} field. */ - public XrGeometryInstanceTransformFB.Buffer scale(XrVector3f value) { XrGeometryInstanceTransformFB.nscale(address(), value); return this; } - /** Passes the {@code scale} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrGeometryInstanceTransformFB.Buffer scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGeometryInstanceTransformFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrGeometryInstanceTransformFB.nnext(address()); } + /** @return the value of the {@code baseSpace} field. */ + @NativeType("XrSpace") + public long baseSpace() { return XrGeometryInstanceTransformFB.nbaseSpace(address()); } + /** @return the value of the {@code time} field. */ + @NativeType("XrTime") + public long time() { return XrGeometryInstanceTransformFB.ntime(address()); } + /** @return a {@link XrPosef} view of the {@code pose} field. */ + public XrPosef pose() { return XrGeometryInstanceTransformFB.npose(address()); } + /** @return a {@link XrVector3f} view of the {@code scale} field. */ + public XrVector3f scale() { return XrGeometryInstanceTransformFB.nscale(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrGeometryInstanceTransformFB.Buffer type(@NativeType("XrStructureType") int value) { XrGeometryInstanceTransformFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB} value to the {@code type} field. */ + public XrGeometryInstanceTransformFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrGeometryInstanceTransformFB.Buffer next(@NativeType("void const *") long value) { XrGeometryInstanceTransformFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@code baseSpace} field. */ + public XrGeometryInstanceTransformFB.Buffer baseSpace(XrSpace value) { XrGeometryInstanceTransformFB.nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@code time} field. */ + public XrGeometryInstanceTransformFB.Buffer time(@NativeType("XrTime") long value) { XrGeometryInstanceTransformFB.ntime(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@code pose} field. */ + public XrGeometryInstanceTransformFB.Buffer pose(XrPosef value) { XrGeometryInstanceTransformFB.npose(address(), value); return this; } + /** Passes the {@code pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrGeometryInstanceTransformFB.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrVector3f} to the {@code scale} field. */ + public XrGeometryInstanceTransformFB.Buffer scale(XrVector3f value) { XrGeometryInstanceTransformFB.nscale(address(), value); return this; } + /** Passes the {@code scale} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrGeometryInstanceTransformFB.Buffer scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGlobalDimmerFrameEndInfoML.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGlobalDimmerFrameEndInfoML.java index edd5032d97..ea99447439 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGlobalDimmerFrameEndInfoML.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGlobalDimmerFrameEndInfoML.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.*; + /** * Global Dimmer End Frame Information. * @@ -36,8 +36,8 @@ * float {@link #dimmerValue}; * XrGlobalDimmerFrameEndInfoFlagsML {@link #flags}; * } - */ -public class XrGlobalDimmerFrameEndInfoML extends Struct implements NativeResource { + */ +public class XrGlobalDimmerFrameEndInfoML extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -47,35 +47,26 @@ public class XrGlobalDimmerFrameEndInfoML extends Structmay adjust the dimmerValue used during composition at the runtime’s discretion. This may be done for user safety, display performance, or other reasons. Values outside of the range are silently clamped. */ - public float dimmerValue() { return ndimmerValue(address()); } - /** a bitmask of {@code XrGlobalDimmerFrameEndInfoFlagsML} */ - @NativeType("XrGlobalDimmerFrameEndInfoFlagsML") - public long flags() { return nflags(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrGlobalDimmerFrameEndInfoML type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MLGlobalDimmer#XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML} value to the {@link #type} field. */ - public XrGlobalDimmerFrameEndInfoML type$Default() { return type(MLGlobalDimmer.XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML); } - /** Sets the specified value to the {@link #next} field. */ - public XrGlobalDimmerFrameEndInfoML next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #dimmerValue} field. */ - public XrGlobalDimmerFrameEndInfoML dimmerValue(float value) { ndimmerValue(address(), value); return this; } - /** Sets the specified value to the {@link #flags} field. */ - public XrGlobalDimmerFrameEndInfoML flags(@NativeType("XrGlobalDimmerFrameEndInfoFlagsML") long value) { nflags(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()); } + /** a value between 0.0 (transparent) and 1.0 (opaque). The runtime may adjust the dimmerValue used during composition at the runtime’s discretion. This may be done for user safety, display performance, or other reasons. Values outside of the range are silently clamped. */ + public float dimmerValue() { return ndimmerValue(address()); } + /** a bitmask of {@code XrGlobalDimmerFrameEndInfoFlagsML} */ + @NativeType("XrGlobalDimmerFrameEndInfoFlagsML") + public long flags() { return nflags(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrGlobalDimmerFrameEndInfoML type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MLGlobalDimmer#XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML} value to the {@link #type} field. */ + public XrGlobalDimmerFrameEndInfoML type$Default() { return type(MLGlobalDimmer.XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML); } + /** Sets the specified value to the {@link #next} field. */ + public XrGlobalDimmerFrameEndInfoML next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #dimmerValue} field. */ + public XrGlobalDimmerFrameEndInfoML dimmerValue(float value) { ndimmerValue(address(), value); return this; } + /** Sets the specified value to the {@link #flags} field. */ + public XrGlobalDimmerFrameEndInfoML flags(@NativeType("XrGlobalDimmerFrameEndInfoFlagsML") long value) { nflags(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrGlobalDimmerFrameEndInfoML set( - int type, - long next, - float dimmerValue, + int type, + long next, + float dimmerValue, long flags - ) { - type(type); - next(next); - dimmerValue(dimmerValue); - flags(flags); + ) { + type(type); + next(next); + dimmerValue(dimmerValue); + flags(flags); return this; } @@ -145,29 +136,29 @@ public XrGlobalDimmerFrameEndInfoML set(XrGlobalDimmerFrameEndInfoML src) { /** Returns a new {@code XrGlobalDimmerFrameEndInfoML} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrGlobalDimmerFrameEndInfoML malloc() { - return new XrGlobalDimmerFrameEndInfoML(nmemAllocChecked(SIZEOF), null); + return wrap(XrGlobalDimmerFrameEndInfoML.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrGlobalDimmerFrameEndInfoML} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrGlobalDimmerFrameEndInfoML calloc() { - return new XrGlobalDimmerFrameEndInfoML(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrGlobalDimmerFrameEndInfoML.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrGlobalDimmerFrameEndInfoML} instance allocated with {@link BufferUtils}. */ public static XrGlobalDimmerFrameEndInfoML create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrGlobalDimmerFrameEndInfoML(memAddress(container), container); + return wrap(XrGlobalDimmerFrameEndInfoML.class, memAddress(container), container); } /** Returns a new {@code XrGlobalDimmerFrameEndInfoML} instance for the specified memory address. */ public static XrGlobalDimmerFrameEndInfoML create(long address) { - return new XrGlobalDimmerFrameEndInfoML(address, null); + return wrap(XrGlobalDimmerFrameEndInfoML.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrGlobalDimmerFrameEndInfoML createSafe(long address) { - return address == NULL ? null : new XrGlobalDimmerFrameEndInfoML(address, null); + return address == NULL ? null : wrap(XrGlobalDimmerFrameEndInfoML.class, address); } /** @@ -176,7 +167,7 @@ public static XrGlobalDimmerFrameEndInfoML createSafe(long address) { * @param capacity the buffer capacity */ public static XrGlobalDimmerFrameEndInfoML.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -185,7 +176,7 @@ public static XrGlobalDimmerFrameEndInfoML.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrGlobalDimmerFrameEndInfoML.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -195,7 +186,7 @@ public static XrGlobalDimmerFrameEndInfoML.Buffer calloc(int capacity) { */ public static XrGlobalDimmerFrameEndInfoML.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); } /** @@ -205,13 +196,13 @@ public static XrGlobalDimmerFrameEndInfoML.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrGlobalDimmerFrameEndInfoML.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 XrGlobalDimmerFrameEndInfoML.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -220,7 +211,7 @@ public static XrGlobalDimmerFrameEndInfoML.Buffer createSafe(long address, int c * @param stack the stack from which to allocate */ public static XrGlobalDimmerFrameEndInfoML malloc(MemoryStack stack) { - return new XrGlobalDimmerFrameEndInfoML(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrGlobalDimmerFrameEndInfoML.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -229,7 +220,7 @@ public static XrGlobalDimmerFrameEndInfoML malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrGlobalDimmerFrameEndInfoML calloc(MemoryStack stack) { - return new XrGlobalDimmerFrameEndInfoML(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrGlobalDimmerFrameEndInfoML.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -239,7 +230,7 @@ public static XrGlobalDimmerFrameEndInfoML calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrGlobalDimmerFrameEndInfoML.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); } /** @@ -249,30 +240,30 @@ public static XrGlobalDimmerFrameEndInfoML.Buffer malloc(int capacity, MemorySta * @param capacity the buffer capacity */ public static XrGlobalDimmerFrameEndInfoML.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 + XrGlobalDimmerFrameEndInfoML.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrGlobalDimmerFrameEndInfoML.NEXT); } - /** Unsafe version of {@link #dimmerValue}. */ - public static float ndimmerValue(long struct) { return UNSAFE.getFloat(null, struct + XrGlobalDimmerFrameEndInfoML.DIMMERVALUE); } - /** Unsafe version of {@link #flags}. */ - public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrGlobalDimmerFrameEndInfoML.FLAGS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrGlobalDimmerFrameEndInfoML.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrGlobalDimmerFrameEndInfoML.NEXT, value); } - /** Unsafe version of {@link #dimmerValue(float) dimmerValue}. */ - public static void ndimmerValue(long struct, float value) { UNSAFE.putFloat(null, struct + XrGlobalDimmerFrameEndInfoML.DIMMERVALUE, value); } - /** Unsafe version of {@link #flags(long) flags}. */ - public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrGlobalDimmerFrameEndInfoML.FLAGS, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrGlobalDimmerFrameEndInfoML.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrGlobalDimmerFrameEndInfoML.NEXT); } + /** Unsafe version of {@link #dimmerValue}. */ + public static float ndimmerValue(long struct) { return UNSAFE.getFloat(null, struct + XrGlobalDimmerFrameEndInfoML.DIMMERVALUE); } + /** Unsafe version of {@link #flags}. */ + public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrGlobalDimmerFrameEndInfoML.FLAGS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrGlobalDimmerFrameEndInfoML.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrGlobalDimmerFrameEndInfoML.NEXT, value); } + /** Unsafe version of {@link #dimmerValue(float) dimmerValue}. */ + public static void ndimmerValue(long struct, float value) { UNSAFE.putFloat(null, struct + XrGlobalDimmerFrameEndInfoML.DIMMERVALUE, value); } + /** Unsafe version of {@link #flags(long) flags}. */ + public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrGlobalDimmerFrameEndInfoML.FLAGS, value); } + + // ----------------------------------- /** An array of {@link XrGlobalDimmerFrameEndInfoML} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -282,9 +273,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 XrGlobalDimmerFrameEndInfoML#SIZEOF}, and its mark will be undefined.

    + * by {@link XrGlobalDimmerFrameEndInfoML#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -309,29 +300,29 @@ protected Buffer self() { protected XrGlobalDimmerFrameEndInfoML getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGlobalDimmerFrameEndInfoML#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGlobalDimmerFrameEndInfoML.ntype(address()); } - /** @return the value of the {@link XrGlobalDimmerFrameEndInfoML#next} field. */ - @NativeType("void const *") - public long next() { return XrGlobalDimmerFrameEndInfoML.nnext(address()); } - /** @return the value of the {@link XrGlobalDimmerFrameEndInfoML#dimmerValue} field. */ - public float dimmerValue() { return XrGlobalDimmerFrameEndInfoML.ndimmerValue(address()); } - /** @return the value of the {@link XrGlobalDimmerFrameEndInfoML#flags} field. */ - @NativeType("XrGlobalDimmerFrameEndInfoFlagsML") - public long flags() { return XrGlobalDimmerFrameEndInfoML.nflags(address()); } - - /** Sets the specified value to the {@link XrGlobalDimmerFrameEndInfoML#type} field. */ - public XrGlobalDimmerFrameEndInfoML.Buffer type(@NativeType("XrStructureType") int value) { XrGlobalDimmerFrameEndInfoML.ntype(address(), value); return this; } - /** Sets the {@link MLGlobalDimmer#XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML} value to the {@link XrGlobalDimmerFrameEndInfoML#type} field. */ - public XrGlobalDimmerFrameEndInfoML.Buffer type$Default() { return type(MLGlobalDimmer.XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML); } - /** Sets the specified value to the {@link XrGlobalDimmerFrameEndInfoML#next} field. */ - public XrGlobalDimmerFrameEndInfoML.Buffer next(@NativeType("void const *") long value) { XrGlobalDimmerFrameEndInfoML.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGlobalDimmerFrameEndInfoML#dimmerValue} field. */ - public XrGlobalDimmerFrameEndInfoML.Buffer dimmerValue(float value) { XrGlobalDimmerFrameEndInfoML.ndimmerValue(address(), value); return this; } - /** Sets the specified value to the {@link XrGlobalDimmerFrameEndInfoML#flags} field. */ - public XrGlobalDimmerFrameEndInfoML.Buffer flags(@NativeType("XrGlobalDimmerFrameEndInfoFlagsML") long value) { XrGlobalDimmerFrameEndInfoML.nflags(address(), value); return this; } + + /** @return the value of the {@link XrGlobalDimmerFrameEndInfoML#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGlobalDimmerFrameEndInfoML.ntype(address()); } + /** @return the value of the {@link XrGlobalDimmerFrameEndInfoML#next} field. */ + @NativeType("void const *") + public long next() { return XrGlobalDimmerFrameEndInfoML.nnext(address()); } + /** @return the value of the {@link XrGlobalDimmerFrameEndInfoML#dimmerValue} field. */ + public float dimmerValue() { return XrGlobalDimmerFrameEndInfoML.ndimmerValue(address()); } + /** @return the value of the {@link XrGlobalDimmerFrameEndInfoML#flags} field. */ + @NativeType("XrGlobalDimmerFrameEndInfoFlagsML") + public long flags() { return XrGlobalDimmerFrameEndInfoML.nflags(address()); } + + /** Sets the specified value to the {@link XrGlobalDimmerFrameEndInfoML#type} field. */ + public XrGlobalDimmerFrameEndInfoML.Buffer type(@NativeType("XrStructureType") int value) { XrGlobalDimmerFrameEndInfoML.ntype(address(), value); return this; } + /** Sets the {@link MLGlobalDimmer#XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML} value to the {@link XrGlobalDimmerFrameEndInfoML#type} field. */ + public XrGlobalDimmerFrameEndInfoML.Buffer type$Default() { return type(MLGlobalDimmer.XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML); } + /** Sets the specified value to the {@link XrGlobalDimmerFrameEndInfoML#next} field. */ + public XrGlobalDimmerFrameEndInfoML.Buffer next(@NativeType("void const *") long value) { XrGlobalDimmerFrameEndInfoML.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGlobalDimmerFrameEndInfoML#dimmerValue} field. */ + public XrGlobalDimmerFrameEndInfoML.Buffer dimmerValue(float value) { XrGlobalDimmerFrameEndInfoML.ndimmerValue(address(), value); return this; } + /** Sets the specified value to the {@link XrGlobalDimmerFrameEndInfoML#flags} field. */ + public XrGlobalDimmerFrameEndInfoML.Buffer flags(@NativeType("XrGlobalDimmerFrameEndInfoFlagsML") long value) { XrGlobalDimmerFrameEndInfoML.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingEGLMNDX.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingEGLMNDX.java index f17c903075..f3fa2734d7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingEGLMNDX.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingEGLMNDX.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 org.lwjgl.egl.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.egl.*; + /** * The graphics binding structure to be passed at session creation to EGL. * @@ -53,8 +53,8 @@ * EGLConfig {@link #config}; * EGLContext {@link #context}; * } - */ -public class XrGraphicsBindingEGLMNDX extends Struct implements NativeResource { + */ +public class XrGraphicsBindingEGLMNDX extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -64,38 +64,29 @@ public class XrGraphicsBindingEGLMNDX extends Struct i /** The struct member offsets. */ public static final int - TYPE, - NEXT, - DISPLAY, - CONFIG, - CONTEXT; + TYPE, + NEXT, + DISPLAY, + CONFIG, + CONTEXT; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(POINTER_SIZE), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - DISPLAY = layout.offsetof(2); - CONFIG = layout.offsetof(3); - CONTEXT = layout.offsetof(4); - } - - protected XrGraphicsBindingEGLMNDX(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrGraphicsBindingEGLMNDX create(long address, @Nullable ByteBuffer container) { - return new XrGraphicsBindingEGLMNDX(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + DISPLAY = layout.offsetof(2); + CONFIG = layout.offsetof(3); + CONTEXT = layout.offsetof(4); } /** @@ -110,49 +101,49 @@ public XrGraphicsBindingEGLMNDX(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()); } - /** a valid EGL {@code EGLDisplay}. */ - @NativeType("EGLDisplay") - public long display() { return ndisplay(address()); } - /** a valid EGL {@code EGLConfig}. */ - @NativeType("EGLConfig") - public long config() { return nconfig(address()); } - /** a valid EGL {@code EGLContext}. */ - @NativeType("EGLContext") - public long context() { return ncontext(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrGraphicsBindingEGLMNDX type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MNDXEGLEnable#XR_TYPE_GRAPHICS_BINDING_EGL_MNDX TYPE_GRAPHICS_BINDING_EGL_MNDX} value to the {@link #type} field. */ - public XrGraphicsBindingEGLMNDX type$Default() { return type(MNDXEGLEnable.XR_TYPE_GRAPHICS_BINDING_EGL_MNDX); } - /** Sets the specified value to the {@link #next} field. */ - public XrGraphicsBindingEGLMNDX next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #display} field. */ - public XrGraphicsBindingEGLMNDX display(@NativeType("EGLDisplay") long value) { ndisplay(address(), value); return this; } - /** Sets the specified value to the {@link #config} field. */ - public XrGraphicsBindingEGLMNDX config(@NativeType("EGLConfig") long value) { nconfig(address(), value); return this; } - /** Sets the specified value to the {@link #context} field. */ - public XrGraphicsBindingEGLMNDX context(@NativeType("EGLContext") long value) { ncontext(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()); } + /** a valid EGL {@code EGLDisplay}. */ + @NativeType("EGLDisplay") + public long display() { return ndisplay(address()); } + /** a valid EGL {@code EGLConfig}. */ + @NativeType("EGLConfig") + public long config() { return nconfig(address()); } + /** a valid EGL {@code EGLContext}. */ + @NativeType("EGLContext") + public long context() { return ncontext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrGraphicsBindingEGLMNDX type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MNDXEGLEnable#XR_TYPE_GRAPHICS_BINDING_EGL_MNDX TYPE_GRAPHICS_BINDING_EGL_MNDX} value to the {@link #type} field. */ + public XrGraphicsBindingEGLMNDX type$Default() { return type(MNDXEGLEnable.XR_TYPE_GRAPHICS_BINDING_EGL_MNDX); } + /** Sets the specified value to the {@link #next} field. */ + public XrGraphicsBindingEGLMNDX next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #display} field. */ + public XrGraphicsBindingEGLMNDX display(@NativeType("EGLDisplay") long value) { ndisplay(address(), value); return this; } + /** Sets the specified value to the {@link #config} field. */ + public XrGraphicsBindingEGLMNDX config(@NativeType("EGLConfig") long value) { nconfig(address(), value); return this; } + /** Sets the specified value to the {@link #context} field. */ + public XrGraphicsBindingEGLMNDX context(@NativeType("EGLContext") long value) { ncontext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrGraphicsBindingEGLMNDX set( - int type, - long next, - long display, - long config, + int type, + long next, + long display, + long config, long context - ) { - type(type); - next(next); - display(display); - config(config); - context(context); + ) { + type(type); + next(next); + display(display); + config(config); + context(context); return this; } @@ -173,29 +164,29 @@ public XrGraphicsBindingEGLMNDX set(XrGraphicsBindingEGLMNDX src) { /** Returns a new {@code XrGraphicsBindingEGLMNDX} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrGraphicsBindingEGLMNDX malloc() { - return new XrGraphicsBindingEGLMNDX(nmemAllocChecked(SIZEOF), null); + return wrap(XrGraphicsBindingEGLMNDX.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrGraphicsBindingEGLMNDX} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrGraphicsBindingEGLMNDX calloc() { - return new XrGraphicsBindingEGLMNDX(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrGraphicsBindingEGLMNDX.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrGraphicsBindingEGLMNDX} instance allocated with {@link BufferUtils}. */ public static XrGraphicsBindingEGLMNDX create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrGraphicsBindingEGLMNDX(memAddress(container), container); + return wrap(XrGraphicsBindingEGLMNDX.class, memAddress(container), container); } /** Returns a new {@code XrGraphicsBindingEGLMNDX} instance for the specified memory address. */ public static XrGraphicsBindingEGLMNDX create(long address) { - return new XrGraphicsBindingEGLMNDX(address, null); + return wrap(XrGraphicsBindingEGLMNDX.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrGraphicsBindingEGLMNDX createSafe(long address) { - return address == NULL ? null : new XrGraphicsBindingEGLMNDX(address, null); + return address == NULL ? null : wrap(XrGraphicsBindingEGLMNDX.class, address); } /** @@ -204,7 +195,7 @@ public static XrGraphicsBindingEGLMNDX createSafe(long address) { * @param capacity the buffer capacity */ public static XrGraphicsBindingEGLMNDX.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 XrGraphicsBindingEGLMNDX.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrGraphicsBindingEGLMNDX.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 XrGraphicsBindingEGLMNDX.Buffer calloc(int capacity) { */ public static XrGraphicsBindingEGLMNDX.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 XrGraphicsBindingEGLMNDX.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrGraphicsBindingEGLMNDX.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 XrGraphicsBindingEGLMNDX.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 XrGraphicsBindingEGLMNDX.Buffer createSafe(long address, int capac * @param stack the stack from which to allocate */ public static XrGraphicsBindingEGLMNDX malloc(MemoryStack stack) { - return new XrGraphicsBindingEGLMNDX(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrGraphicsBindingEGLMNDX.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -257,7 +248,7 @@ public static XrGraphicsBindingEGLMNDX malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrGraphicsBindingEGLMNDX calloc(MemoryStack stack) { - return new XrGraphicsBindingEGLMNDX(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrGraphicsBindingEGLMNDX.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -267,7 +258,7 @@ public static XrGraphicsBindingEGLMNDX calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrGraphicsBindingEGLMNDX.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,32 +268,32 @@ public static XrGraphicsBindingEGLMNDX.Buffer malloc(int capacity, MemoryStack s * @param capacity the buffer capacity */ public static XrGraphicsBindingEGLMNDX.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 + XrGraphicsBindingEGLMNDX.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrGraphicsBindingEGLMNDX.NEXT); } - /** Unsafe version of {@link #display}. */ - public static long ndisplay(long struct) { return memGetAddress(struct + XrGraphicsBindingEGLMNDX.DISPLAY); } - /** Unsafe version of {@link #config}. */ - public static long nconfig(long struct) { return memGetAddress(struct + XrGraphicsBindingEGLMNDX.CONFIG); } - /** Unsafe version of {@link #context}. */ - public static long ncontext(long struct) { return memGetAddress(struct + XrGraphicsBindingEGLMNDX.CONTEXT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrGraphicsBindingEGLMNDX.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrGraphicsBindingEGLMNDX.NEXT, value); } - /** Unsafe version of {@link #display(long) display}. */ - public static void ndisplay(long struct, long value) { memPutAddress(struct + XrGraphicsBindingEGLMNDX.DISPLAY, check(value)); } - /** Unsafe version of {@link #config(long) config}. */ - public static void nconfig(long struct, long value) { memPutAddress(struct + XrGraphicsBindingEGLMNDX.CONFIG, check(value)); } - /** Unsafe version of {@link #context(long) context}. */ - public static void ncontext(long struct, long value) { memPutAddress(struct + XrGraphicsBindingEGLMNDX.CONTEXT, check(value)); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrGraphicsBindingEGLMNDX.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrGraphicsBindingEGLMNDX.NEXT); } + /** Unsafe version of {@link #display}. */ + public static long ndisplay(long struct) { return memGetAddress(struct + XrGraphicsBindingEGLMNDX.DISPLAY); } + /** Unsafe version of {@link #config}. */ + public static long nconfig(long struct) { return memGetAddress(struct + XrGraphicsBindingEGLMNDX.CONFIG); } + /** Unsafe version of {@link #context}. */ + public static long ncontext(long struct) { return memGetAddress(struct + XrGraphicsBindingEGLMNDX.CONTEXT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrGraphicsBindingEGLMNDX.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrGraphicsBindingEGLMNDX.NEXT, value); } + /** Unsafe version of {@link #display(long) display}. */ + public static void ndisplay(long struct, long value) { memPutAddress(struct + XrGraphicsBindingEGLMNDX.DISPLAY, check(value)); } + /** Unsafe version of {@link #config(long) config}. */ + public static void nconfig(long struct, long value) { memPutAddress(struct + XrGraphicsBindingEGLMNDX.CONFIG, check(value)); } + /** Unsafe version of {@link #context(long) context}. */ + public static void ncontext(long struct, long value) { memPutAddress(struct + XrGraphicsBindingEGLMNDX.CONTEXT, check(value)); } /** * Validates pointer members that should not be {@code NULL}. @@ -313,9 +304,9 @@ public static void validate(long struct) { check(memGetAddress(struct + XrGraphicsBindingEGLMNDX.DISPLAY)); check(memGetAddress(struct + XrGraphicsBindingEGLMNDX.CONFIG)); check(memGetAddress(struct + XrGraphicsBindingEGLMNDX.CONTEXT)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrGraphicsBindingEGLMNDX} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -325,9 +316,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 XrGraphicsBindingEGLMNDX#SIZEOF}, and its mark will be undefined.

    + * by {@link XrGraphicsBindingEGLMNDX#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -352,35 +343,35 @@ protected Buffer self() { protected XrGraphicsBindingEGLMNDX getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGraphicsBindingEGLMNDX#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGraphicsBindingEGLMNDX.ntype(address()); } - /** @return the value of the {@link XrGraphicsBindingEGLMNDX#next} field. */ - @NativeType("void const *") - public long next() { return XrGraphicsBindingEGLMNDX.nnext(address()); } - /** @return the value of the {@link XrGraphicsBindingEGLMNDX#display} field. */ - @NativeType("EGLDisplay") - public long display() { return XrGraphicsBindingEGLMNDX.ndisplay(address()); } - /** @return the value of the {@link XrGraphicsBindingEGLMNDX#config} field. */ - @NativeType("EGLConfig") - public long config() { return XrGraphicsBindingEGLMNDX.nconfig(address()); } - /** @return the value of the {@link XrGraphicsBindingEGLMNDX#context} field. */ - @NativeType("EGLContext") - public long context() { return XrGraphicsBindingEGLMNDX.ncontext(address()); } - - /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#type} field. */ - public XrGraphicsBindingEGLMNDX.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingEGLMNDX.ntype(address(), value); return this; } - /** Sets the {@link MNDXEGLEnable#XR_TYPE_GRAPHICS_BINDING_EGL_MNDX TYPE_GRAPHICS_BINDING_EGL_MNDX} value to the {@link XrGraphicsBindingEGLMNDX#type} field. */ - public XrGraphicsBindingEGLMNDX.Buffer type$Default() { return type(MNDXEGLEnable.XR_TYPE_GRAPHICS_BINDING_EGL_MNDX); } - /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#next} field. */ - public XrGraphicsBindingEGLMNDX.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingEGLMNDX.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#display} field. */ - public XrGraphicsBindingEGLMNDX.Buffer display(@NativeType("EGLDisplay") long value) { XrGraphicsBindingEGLMNDX.ndisplay(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#config} field. */ - public XrGraphicsBindingEGLMNDX.Buffer config(@NativeType("EGLConfig") long value) { XrGraphicsBindingEGLMNDX.nconfig(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#context} field. */ - public XrGraphicsBindingEGLMNDX.Buffer context(@NativeType("EGLContext") long value) { XrGraphicsBindingEGLMNDX.ncontext(address(), value); return this; } + + /** @return the value of the {@link XrGraphicsBindingEGLMNDX#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsBindingEGLMNDX.ntype(address()); } + /** @return the value of the {@link XrGraphicsBindingEGLMNDX#next} field. */ + @NativeType("void const *") + public long next() { return XrGraphicsBindingEGLMNDX.nnext(address()); } + /** @return the value of the {@link XrGraphicsBindingEGLMNDX#display} field. */ + @NativeType("EGLDisplay") + public long display() { return XrGraphicsBindingEGLMNDX.ndisplay(address()); } + /** @return the value of the {@link XrGraphicsBindingEGLMNDX#config} field. */ + @NativeType("EGLConfig") + public long config() { return XrGraphicsBindingEGLMNDX.nconfig(address()); } + /** @return the value of the {@link XrGraphicsBindingEGLMNDX#context} field. */ + @NativeType("EGLContext") + public long context() { return XrGraphicsBindingEGLMNDX.ncontext(address()); } + + /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#type} field. */ + public XrGraphicsBindingEGLMNDX.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingEGLMNDX.ntype(address(), value); return this; } + /** Sets the {@link MNDXEGLEnable#XR_TYPE_GRAPHICS_BINDING_EGL_MNDX TYPE_GRAPHICS_BINDING_EGL_MNDX} value to the {@link XrGraphicsBindingEGLMNDX#type} field. */ + public XrGraphicsBindingEGLMNDX.Buffer type$Default() { return type(MNDXEGLEnable.XR_TYPE_GRAPHICS_BINDING_EGL_MNDX); } + /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#next} field. */ + public XrGraphicsBindingEGLMNDX.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingEGLMNDX.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#display} field. */ + public XrGraphicsBindingEGLMNDX.Buffer display(@NativeType("EGLDisplay") long value) { XrGraphicsBindingEGLMNDX.ndisplay(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#config} field. */ + public XrGraphicsBindingEGLMNDX.Buffer config(@NativeType("EGLConfig") long value) { XrGraphicsBindingEGLMNDX.nconfig(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#context} field. */ + public XrGraphicsBindingEGLMNDX.Buffer context(@NativeType("EGLContext") long value) { XrGraphicsBindingEGLMNDX.ncontext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLESAndroidKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLESAndroidKHR.java index f011a6fb95..9dc2b9d718 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLESAndroidKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLESAndroidKHR.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 org.lwjgl.egl.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.egl.*; + /** * The graphics binding structure to be passed at session creation to use OpenGL ES on Android. * @@ -52,8 +52,8 @@ * EGLConfig {@link #config}; * EGLContext {@link #context}; * } - */ -public class XrGraphicsBindingOpenGLESAndroidKHR extends Struct implements NativeResource { + */ +public class XrGraphicsBindingOpenGLESAndroidKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -63,38 +63,29 @@ public class XrGraphicsBindingOpenGLESAndroidKHR extends Struct implements NativeResource { @@ -324,9 +315,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 XrGraphicsBindingOpenGLESAndroidKHR#SIZEOF}, and its mark will be undefined.

    + * by {@link XrGraphicsBindingOpenGLESAndroidKHR#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -351,35 +342,35 @@ protected Buffer self() { protected XrGraphicsBindingOpenGLESAndroidKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGraphicsBindingOpenGLESAndroidKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGraphicsBindingOpenGLESAndroidKHR.ntype(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLESAndroidKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrGraphicsBindingOpenGLESAndroidKHR.nnext(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLESAndroidKHR#display} field. */ - @NativeType("EGLDisplay") - public long display() { return XrGraphicsBindingOpenGLESAndroidKHR.ndisplay(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLESAndroidKHR#config} field. */ - @NativeType("EGLConfig") - public long config() { return XrGraphicsBindingOpenGLESAndroidKHR.nconfig(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLESAndroidKHR#context} field. */ - @NativeType("EGLContext") - public long context() { return XrGraphicsBindingOpenGLESAndroidKHR.ncontext(address()); } - - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLESAndroidKHR#type} field. */ - public XrGraphicsBindingOpenGLESAndroidKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingOpenGLESAndroidKHR.ntype(address(), value); return this; } - /** Sets the {@link KHROpenGLESEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR} value to the {@link XrGraphicsBindingOpenGLESAndroidKHR#type} field. */ - public XrGraphicsBindingOpenGLESAndroidKHR.Buffer type$Default() { return type(KHROpenGLESEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR); } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLESAndroidKHR#next} field. */ - public XrGraphicsBindingOpenGLESAndroidKHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingOpenGLESAndroidKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLESAndroidKHR#display} field. */ - public XrGraphicsBindingOpenGLESAndroidKHR.Buffer display(@NativeType("EGLDisplay") long value) { XrGraphicsBindingOpenGLESAndroidKHR.ndisplay(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLESAndroidKHR#config} field. */ - public XrGraphicsBindingOpenGLESAndroidKHR.Buffer config(@NativeType("EGLConfig") long value) { XrGraphicsBindingOpenGLESAndroidKHR.nconfig(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLESAndroidKHR#context} field. */ - public XrGraphicsBindingOpenGLESAndroidKHR.Buffer context(@NativeType("EGLContext") long value) { XrGraphicsBindingOpenGLESAndroidKHR.ncontext(address(), value); return this; } + + /** @return the value of the {@link XrGraphicsBindingOpenGLESAndroidKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsBindingOpenGLESAndroidKHR.ntype(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLESAndroidKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrGraphicsBindingOpenGLESAndroidKHR.nnext(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLESAndroidKHR#display} field. */ + @NativeType("EGLDisplay") + public long display() { return XrGraphicsBindingOpenGLESAndroidKHR.ndisplay(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLESAndroidKHR#config} field. */ + @NativeType("EGLConfig") + public long config() { return XrGraphicsBindingOpenGLESAndroidKHR.nconfig(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLESAndroidKHR#context} field. */ + @NativeType("EGLContext") + public long context() { return XrGraphicsBindingOpenGLESAndroidKHR.ncontext(address()); } + + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLESAndroidKHR#type} field. */ + public XrGraphicsBindingOpenGLESAndroidKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingOpenGLESAndroidKHR.ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLESEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR} value to the {@link XrGraphicsBindingOpenGLESAndroidKHR#type} field. */ + public XrGraphicsBindingOpenGLESAndroidKHR.Buffer type$Default() { return type(KHROpenGLESEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR); } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLESAndroidKHR#next} field. */ + public XrGraphicsBindingOpenGLESAndroidKHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingOpenGLESAndroidKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLESAndroidKHR#display} field. */ + public XrGraphicsBindingOpenGLESAndroidKHR.Buffer display(@NativeType("EGLDisplay") long value) { XrGraphicsBindingOpenGLESAndroidKHR.ndisplay(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLESAndroidKHR#config} field. */ + public XrGraphicsBindingOpenGLESAndroidKHR.Buffer config(@NativeType("EGLConfig") long value) { XrGraphicsBindingOpenGLESAndroidKHR.nconfig(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLESAndroidKHR#context} field. */ + public XrGraphicsBindingOpenGLESAndroidKHR.Buffer context(@NativeType("EGLContext") long value) { XrGraphicsBindingOpenGLESAndroidKHR.ncontext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLWaylandKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLWaylandKHR.java index d080e80ed8..08cae4cf41 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLWaylandKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLWaylandKHR.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.*; + /** * The graphics binding structure to be passed at session creation to use OpenGL on Wayland. * @@ -46,8 +46,8 @@ * void const * {@link #next}; * struct wl_display * {@link #display}; * } - */ -public class XrGraphicsBindingOpenGLWaylandKHR extends Struct implements NativeResource { + */ +public class XrGraphicsBindingOpenGLWaylandKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,32 +57,23 @@ public class XrGraphicsBindingOpenGLWaylandKHR extends Struct 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 XrGraphicsBindingOpenGLWaylandKHR#SIZEOF}, and its mark will be undefined.

    + * by {@link XrGraphicsBindingOpenGLWaylandKHR#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -315,25 +306,25 @@ protected Buffer self() { protected XrGraphicsBindingOpenGLWaylandKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGraphicsBindingOpenGLWaylandKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGraphicsBindingOpenGLWaylandKHR.ntype(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLWaylandKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrGraphicsBindingOpenGLWaylandKHR.nnext(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLWaylandKHR#display} field. */ - @NativeType("struct wl_display *") - public long display() { return XrGraphicsBindingOpenGLWaylandKHR.ndisplay(address()); } - - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWaylandKHR#type} field. */ - public XrGraphicsBindingOpenGLWaylandKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingOpenGLWaylandKHR.ntype(address(), value); return this; } - /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR} value to the {@link XrGraphicsBindingOpenGLWaylandKHR#type} field. */ - public XrGraphicsBindingOpenGLWaylandKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR); } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWaylandKHR#next} field. */ - public XrGraphicsBindingOpenGLWaylandKHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingOpenGLWaylandKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWaylandKHR#display} field. */ - public XrGraphicsBindingOpenGLWaylandKHR.Buffer display(@NativeType("struct wl_display *") long value) { XrGraphicsBindingOpenGLWaylandKHR.ndisplay(address(), value); return this; } + + /** @return the value of the {@link XrGraphicsBindingOpenGLWaylandKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsBindingOpenGLWaylandKHR.ntype(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLWaylandKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrGraphicsBindingOpenGLWaylandKHR.nnext(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLWaylandKHR#display} field. */ + @NativeType("struct wl_display *") + public long display() { return XrGraphicsBindingOpenGLWaylandKHR.ndisplay(address()); } + + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWaylandKHR#type} field. */ + public XrGraphicsBindingOpenGLWaylandKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingOpenGLWaylandKHR.ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR} value to the {@link XrGraphicsBindingOpenGLWaylandKHR#type} field. */ + public XrGraphicsBindingOpenGLWaylandKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR); } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWaylandKHR#next} field. */ + public XrGraphicsBindingOpenGLWaylandKHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingOpenGLWaylandKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWaylandKHR#display} field. */ + public XrGraphicsBindingOpenGLWaylandKHR.Buffer display(@NativeType("struct wl_display *") long value) { XrGraphicsBindingOpenGLWaylandKHR.ndisplay(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLWin32KHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLWin32KHR.java index 362f97f5be..14c7d570b3 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLWin32KHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLWin32KHR.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 org.lwjgl.system.windows.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.system.windows.*; + /** * The graphics binding structure to be passed at session creation to use OpenGL on Windows. * @@ -50,8 +50,8 @@ * HDC {@link #hDC}; * HGLRC {@link #hGLRC}; * } - */ -public class XrGraphicsBindingOpenGLWin32KHR extends Struct implements NativeResource { + */ +public class XrGraphicsBindingOpenGLWin32KHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -61,35 +61,26 @@ public class XrGraphicsBindingOpenGLWin32KHR extends Struct implements NativeResource { @@ -307,9 +298,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 XrGraphicsBindingOpenGLWin32KHR#SIZEOF}, and its mark will be undefined.

    + * by {@link XrGraphicsBindingOpenGLWin32KHR#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -334,30 +325,30 @@ protected Buffer self() { protected XrGraphicsBindingOpenGLWin32KHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGraphicsBindingOpenGLWin32KHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGraphicsBindingOpenGLWin32KHR.ntype(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLWin32KHR#next} field. */ - @NativeType("void const *") - public long next() { return XrGraphicsBindingOpenGLWin32KHR.nnext(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLWin32KHR#hDC} field. */ - @NativeType("HDC") - public long hDC() { return XrGraphicsBindingOpenGLWin32KHR.nhDC(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLWin32KHR#hGLRC} field. */ - @NativeType("HGLRC") - public long hGLRC() { return XrGraphicsBindingOpenGLWin32KHR.nhGLRC(address()); } - - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWin32KHR#type} field. */ - public XrGraphicsBindingOpenGLWin32KHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingOpenGLWin32KHR.ntype(address(), value); return this; } - /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR} value to the {@link XrGraphicsBindingOpenGLWin32KHR#type} field. */ - public XrGraphicsBindingOpenGLWin32KHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR); } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWin32KHR#next} field. */ - public XrGraphicsBindingOpenGLWin32KHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingOpenGLWin32KHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWin32KHR#hDC} field. */ - public XrGraphicsBindingOpenGLWin32KHR.Buffer hDC(@NativeType("HDC") long value) { XrGraphicsBindingOpenGLWin32KHR.nhDC(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWin32KHR#hGLRC} field. */ - public XrGraphicsBindingOpenGLWin32KHR.Buffer hGLRC(@NativeType("HGLRC") long value) { XrGraphicsBindingOpenGLWin32KHR.nhGLRC(address(), value); return this; } + + /** @return the value of the {@link XrGraphicsBindingOpenGLWin32KHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsBindingOpenGLWin32KHR.ntype(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLWin32KHR#next} field. */ + @NativeType("void const *") + public long next() { return XrGraphicsBindingOpenGLWin32KHR.nnext(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLWin32KHR#hDC} field. */ + @NativeType("HDC") + public long hDC() { return XrGraphicsBindingOpenGLWin32KHR.nhDC(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLWin32KHR#hGLRC} field. */ + @NativeType("HGLRC") + public long hGLRC() { return XrGraphicsBindingOpenGLWin32KHR.nhGLRC(address()); } + + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWin32KHR#type} field. */ + public XrGraphicsBindingOpenGLWin32KHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingOpenGLWin32KHR.ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR} value to the {@link XrGraphicsBindingOpenGLWin32KHR#type} field. */ + public XrGraphicsBindingOpenGLWin32KHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR); } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWin32KHR#next} field. */ + public XrGraphicsBindingOpenGLWin32KHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingOpenGLWin32KHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWin32KHR#hDC} field. */ + public XrGraphicsBindingOpenGLWin32KHR.Buffer hDC(@NativeType("HDC") long value) { XrGraphicsBindingOpenGLWin32KHR.nhDC(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWin32KHR#hGLRC} field. */ + public XrGraphicsBindingOpenGLWin32KHR.Buffer hGLRC(@NativeType("HGLRC") long value) { XrGraphicsBindingOpenGLWin32KHR.nhGLRC(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLXcbKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLXcbKHR.java index 4b34288629..38bfd0959c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLXcbKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLXcbKHR.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.*; + /** * The graphics binding structure to be passed at session creation to use OpenGL on X11 via XCB. * @@ -55,8 +55,8 @@ * xcb_glx_drawable_t {@link #glxDrawable}; * xcb_glx_context_t {@link #glxContext}; * } - */ -public class XrGraphicsBindingOpenGLXcbKHR extends Struct implements NativeResource { + */ +public class XrGraphicsBindingOpenGLXcbKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -66,47 +66,38 @@ public class XrGraphicsBindingOpenGLXcbKHR extends Struct implements NativeResource { @@ -367,9 +358,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 XrGraphicsBindingOpenGLXcbKHR#SIZEOF}, and its mark will be undefined.

    + * by {@link XrGraphicsBindingOpenGLXcbKHR#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -394,50 +385,50 @@ protected Buffer self() { protected XrGraphicsBindingOpenGLXcbKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGraphicsBindingOpenGLXcbKHR.ntype(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrGraphicsBindingOpenGLXcbKHR.nnext(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#connection} field. */ - @NativeType("xcb_connection_t *") - public long connection() { return XrGraphicsBindingOpenGLXcbKHR.nconnection(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#screenNumber} field. */ - @NativeType("uint32_t") - public int screenNumber() { return XrGraphicsBindingOpenGLXcbKHR.nscreenNumber(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#fbconfigid} field. */ - @NativeType("xcb_glx_fbconfig_t") - public int fbconfigid() { return XrGraphicsBindingOpenGLXcbKHR.nfbconfigid(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#visualid} field. */ - @NativeType("xcb_visualid_t") - public int visualid() { return XrGraphicsBindingOpenGLXcbKHR.nvisualid(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#glxDrawable} field. */ - @NativeType("xcb_glx_drawable_t") - public int glxDrawable() { return XrGraphicsBindingOpenGLXcbKHR.nglxDrawable(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#glxContext} field. */ - @NativeType("xcb_glx_context_t") - public int glxContext() { return XrGraphicsBindingOpenGLXcbKHR.nglxContext(address()); } - - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#type} field. */ - public XrGraphicsBindingOpenGLXcbKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingOpenGLXcbKHR.ntype(address(), value); return this; } - /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR} value to the {@link XrGraphicsBindingOpenGLXcbKHR#type} field. */ - public XrGraphicsBindingOpenGLXcbKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR); } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#next} field. */ - public XrGraphicsBindingOpenGLXcbKHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingOpenGLXcbKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#connection} field. */ - public XrGraphicsBindingOpenGLXcbKHR.Buffer connection(@NativeType("xcb_connection_t *") long value) { XrGraphicsBindingOpenGLXcbKHR.nconnection(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#screenNumber} field. */ - public XrGraphicsBindingOpenGLXcbKHR.Buffer screenNumber(@NativeType("uint32_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nscreenNumber(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#fbconfigid} field. */ - public XrGraphicsBindingOpenGLXcbKHR.Buffer fbconfigid(@NativeType("xcb_glx_fbconfig_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nfbconfigid(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#visualid} field. */ - public XrGraphicsBindingOpenGLXcbKHR.Buffer visualid(@NativeType("xcb_visualid_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nvisualid(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#glxDrawable} field. */ - public XrGraphicsBindingOpenGLXcbKHR.Buffer glxDrawable(@NativeType("xcb_glx_drawable_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nglxDrawable(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#glxContext} field. */ - public XrGraphicsBindingOpenGLXcbKHR.Buffer glxContext(@NativeType("xcb_glx_context_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nglxContext(address(), value); return this; } + + /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsBindingOpenGLXcbKHR.ntype(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrGraphicsBindingOpenGLXcbKHR.nnext(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#connection} field. */ + @NativeType("xcb_connection_t *") + public long connection() { return XrGraphicsBindingOpenGLXcbKHR.nconnection(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#screenNumber} field. */ + @NativeType("uint32_t") + public int screenNumber() { return XrGraphicsBindingOpenGLXcbKHR.nscreenNumber(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#fbconfigid} field. */ + @NativeType("xcb_glx_fbconfig_t") + public int fbconfigid() { return XrGraphicsBindingOpenGLXcbKHR.nfbconfigid(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#visualid} field. */ + @NativeType("xcb_visualid_t") + public int visualid() { return XrGraphicsBindingOpenGLXcbKHR.nvisualid(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#glxDrawable} field. */ + @NativeType("xcb_glx_drawable_t") + public int glxDrawable() { return XrGraphicsBindingOpenGLXcbKHR.nglxDrawable(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#glxContext} field. */ + @NativeType("xcb_glx_context_t") + public int glxContext() { return XrGraphicsBindingOpenGLXcbKHR.nglxContext(address()); } + + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#type} field. */ + public XrGraphicsBindingOpenGLXcbKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingOpenGLXcbKHR.ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR} value to the {@link XrGraphicsBindingOpenGLXcbKHR#type} field. */ + public XrGraphicsBindingOpenGLXcbKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR); } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#next} field. */ + public XrGraphicsBindingOpenGLXcbKHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingOpenGLXcbKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#connection} field. */ + public XrGraphicsBindingOpenGLXcbKHR.Buffer connection(@NativeType("xcb_connection_t *") long value) { XrGraphicsBindingOpenGLXcbKHR.nconnection(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#screenNumber} field. */ + public XrGraphicsBindingOpenGLXcbKHR.Buffer screenNumber(@NativeType("uint32_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nscreenNumber(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#fbconfigid} field. */ + public XrGraphicsBindingOpenGLXcbKHR.Buffer fbconfigid(@NativeType("xcb_glx_fbconfig_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nfbconfigid(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#visualid} field. */ + public XrGraphicsBindingOpenGLXcbKHR.Buffer visualid(@NativeType("xcb_visualid_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nvisualid(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#glxDrawable} field. */ + public XrGraphicsBindingOpenGLXcbKHR.Buffer glxDrawable(@NativeType("xcb_glx_drawable_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nglxDrawable(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#glxContext} field. */ + public XrGraphicsBindingOpenGLXcbKHR.Buffer glxContext(@NativeType("xcb_glx_context_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nglxContext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLXlibKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLXlibKHR.java index 36bb9434e2..532e48013c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLXlibKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLXlibKHR.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.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import org.lwjgl.system.linux.*; -import org.lwjgl.opengl.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.system.linux.*; +import org.lwjgl.opengl.*; + /** * The graphics binding structure to be passed at session creation to use OpenGL on X11 via Xlib. * @@ -56,8 +56,8 @@ * GLXDrawable {@link #glxDrawable}; * GLXContext {@link #glxContext}; * } - */ -public class XrGraphicsBindingOpenGLXlibKHR extends Struct implements NativeResource { + */ +public class XrGraphicsBindingOpenGLXlibKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -67,44 +67,35 @@ public class XrGraphicsBindingOpenGLXlibKHR extends Struct implements NativeResource { @@ -357,9 +348,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 XrGraphicsBindingOpenGLXlibKHR#SIZEOF}, and its mark will be undefined.

    + * by {@link XrGraphicsBindingOpenGLXlibKHR#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -384,45 +375,45 @@ protected Buffer self() { protected XrGraphicsBindingOpenGLXlibKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGraphicsBindingOpenGLXlibKHR.ntype(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrGraphicsBindingOpenGLXlibKHR.nnext(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#xDisplay} field. */ - @NativeType("Display *") - public long xDisplay() { return XrGraphicsBindingOpenGLXlibKHR.nxDisplay(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#visualid} field. */ - @NativeType("uint32_t") - public int visualid() { return XrGraphicsBindingOpenGLXlibKHR.nvisualid(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#glxFBConfig} field. */ - @NativeType("GLXFBConfig") - public long glxFBConfig() { return XrGraphicsBindingOpenGLXlibKHR.nglxFBConfig(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#glxDrawable} field. */ - @NativeType("GLXDrawable") - public long glxDrawable() { return XrGraphicsBindingOpenGLXlibKHR.nglxDrawable(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#glxContext} field. */ - @NativeType("GLXContext") - public long glxContext() { return XrGraphicsBindingOpenGLXlibKHR.nglxContext(address()); } - - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#type} field. */ - public XrGraphicsBindingOpenGLXlibKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingOpenGLXlibKHR.ntype(address(), value); return this; } - /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR} value to the {@link XrGraphicsBindingOpenGLXlibKHR#type} field. */ - public XrGraphicsBindingOpenGLXlibKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR); } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#next} field. */ - public XrGraphicsBindingOpenGLXlibKHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingOpenGLXlibKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#xDisplay} field. */ - public XrGraphicsBindingOpenGLXlibKHR.Buffer xDisplay(@NativeType("Display *") long value) { XrGraphicsBindingOpenGLXlibKHR.nxDisplay(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#visualid} field. */ - public XrGraphicsBindingOpenGLXlibKHR.Buffer visualid(@NativeType("uint32_t") int value) { XrGraphicsBindingOpenGLXlibKHR.nvisualid(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#glxFBConfig} field. */ - public XrGraphicsBindingOpenGLXlibKHR.Buffer glxFBConfig(@NativeType("GLXFBConfig") long value) { XrGraphicsBindingOpenGLXlibKHR.nglxFBConfig(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#glxDrawable} field. */ - public XrGraphicsBindingOpenGLXlibKHR.Buffer glxDrawable(@NativeType("GLXDrawable") long value) { XrGraphicsBindingOpenGLXlibKHR.nglxDrawable(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#glxContext} field. */ - public XrGraphicsBindingOpenGLXlibKHR.Buffer glxContext(@NativeType("GLXContext") long value) { XrGraphicsBindingOpenGLXlibKHR.nglxContext(address(), value); return this; } + + /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsBindingOpenGLXlibKHR.ntype(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrGraphicsBindingOpenGLXlibKHR.nnext(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#xDisplay} field. */ + @NativeType("Display *") + public long xDisplay() { return XrGraphicsBindingOpenGLXlibKHR.nxDisplay(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#visualid} field. */ + @NativeType("uint32_t") + public int visualid() { return XrGraphicsBindingOpenGLXlibKHR.nvisualid(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#glxFBConfig} field. */ + @NativeType("GLXFBConfig") + public long glxFBConfig() { return XrGraphicsBindingOpenGLXlibKHR.nglxFBConfig(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#glxDrawable} field. */ + @NativeType("GLXDrawable") + public long glxDrawable() { return XrGraphicsBindingOpenGLXlibKHR.nglxDrawable(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#glxContext} field. */ + @NativeType("GLXContext") + public long glxContext() { return XrGraphicsBindingOpenGLXlibKHR.nglxContext(address()); } + + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#type} field. */ + public XrGraphicsBindingOpenGLXlibKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingOpenGLXlibKHR.ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR} value to the {@link XrGraphicsBindingOpenGLXlibKHR#type} field. */ + public XrGraphicsBindingOpenGLXlibKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR); } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#next} field. */ + public XrGraphicsBindingOpenGLXlibKHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingOpenGLXlibKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#xDisplay} field. */ + public XrGraphicsBindingOpenGLXlibKHR.Buffer xDisplay(@NativeType("Display *") long value) { XrGraphicsBindingOpenGLXlibKHR.nxDisplay(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#visualid} field. */ + public XrGraphicsBindingOpenGLXlibKHR.Buffer visualid(@NativeType("uint32_t") int value) { XrGraphicsBindingOpenGLXlibKHR.nvisualid(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#glxFBConfig} field. */ + public XrGraphicsBindingOpenGLXlibKHR.Buffer glxFBConfig(@NativeType("GLXFBConfig") long value) { XrGraphicsBindingOpenGLXlibKHR.nglxFBConfig(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#glxDrawable} field. */ + public XrGraphicsBindingOpenGLXlibKHR.Buffer glxDrawable(@NativeType("GLXDrawable") long value) { XrGraphicsBindingOpenGLXlibKHR.nglxDrawable(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#glxContext} field. */ + public XrGraphicsBindingOpenGLXlibKHR.Buffer glxContext(@NativeType("GLXContext") long value) { XrGraphicsBindingOpenGLXlibKHR.nglxContext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingVulkan2KHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingVulkan2KHR.java index 71e7e058a2..6d2778cba3 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingVulkan2KHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingVulkan2KHR.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 org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * See {@link XrGraphicsBindingVulkanKHR}. * @@ -33,8 +33,8 @@ * uint32_t queueFamilyIndex; * uint32_t queueIndex; * } - */ -public class XrGraphicsBindingVulkan2KHR extends XrGraphicsBindingVulkanKHR { + */ +public class XrGraphicsBindingVulkan2KHR extends XrGraphicsBindingVulkanKHR { /** * Creates a {@code XrGraphicsBindingVulkan2KHR} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be @@ -45,50 +45,50 @@ public class XrGraphicsBindingVulkan2KHR extends XrGraphicsBindingVulkanKHR { public XrGraphicsBindingVulkan2KHR(ByteBuffer container) { super(container); } - - /** Sets the specified value to the {@code type} field. */ - @Override - public XrGraphicsBindingVulkan2KHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR TYPE_GRAPHICS_BINDING_VULKAN_KHR} value to the {@code type} field. */ - @Override - public XrGraphicsBindingVulkan2KHR type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR); } - /** Sets the specified value to the {@code next} field. */ - @Override - public XrGraphicsBindingVulkan2KHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@code instance} field. */ - @Override - public XrGraphicsBindingVulkan2KHR instance(VkInstance value) { ninstance(address(), value); return this; } - /** Sets the specified value to the {@code physicalDevice} field. */ - @Override - public XrGraphicsBindingVulkan2KHR physicalDevice(VkPhysicalDevice value) { nphysicalDevice(address(), value); return this; } - /** Sets the specified value to the {@code device} field. */ - @Override - public XrGraphicsBindingVulkan2KHR device(VkDevice value) { ndevice(address(), value); return this; } - /** Sets the specified value to the {@code queueFamilyIndex} field. */ - @Override - public XrGraphicsBindingVulkan2KHR queueFamilyIndex(@NativeType("uint32_t") int value) { nqueueFamilyIndex(address(), value); return this; } - /** Sets the specified value to the {@code queueIndex} field. */ - @Override - public XrGraphicsBindingVulkan2KHR queueIndex(@NativeType("uint32_t") int value) { nqueueIndex(address(), value); return this; } + + /** Sets the specified value to the {@code type} field. */ + @Override + public XrGraphicsBindingVulkan2KHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR TYPE_GRAPHICS_BINDING_VULKAN_KHR} value to the {@code type} field. */ + @Override + public XrGraphicsBindingVulkan2KHR type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR); } + /** Sets the specified value to the {@code next} field. */ + @Override + public XrGraphicsBindingVulkan2KHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@code instance} field. */ + @Override + public XrGraphicsBindingVulkan2KHR instance(VkInstance value) { ninstance(address(), value); return this; } + /** Sets the specified value to the {@code physicalDevice} field. */ + @Override + public XrGraphicsBindingVulkan2KHR physicalDevice(VkPhysicalDevice value) { nphysicalDevice(address(), value); return this; } + /** Sets the specified value to the {@code device} field. */ + @Override + public XrGraphicsBindingVulkan2KHR device(VkDevice value) { ndevice(address(), value); return this; } + /** Sets the specified value to the {@code queueFamilyIndex} field. */ + @Override + public XrGraphicsBindingVulkan2KHR queueFamilyIndex(@NativeType("uint32_t") int value) { nqueueFamilyIndex(address(), value); return this; } + /** Sets the specified value to the {@code queueIndex} field. */ + @Override + public XrGraphicsBindingVulkan2KHR queueIndex(@NativeType("uint32_t") int value) { nqueueIndex(address(), value); return this; } /** Initializes this struct with the specified values. */ @Override public XrGraphicsBindingVulkan2KHR set( - int type, - long next, - VkInstance instance, - VkPhysicalDevice physicalDevice, - VkDevice device, - int queueFamilyIndex, + int type, + long next, + VkInstance instance, + VkPhysicalDevice physicalDevice, + VkDevice device, + int queueFamilyIndex, int queueIndex - ) { - type(type); - next(next); - instance(instance); - physicalDevice(physicalDevice); - device(device); - queueFamilyIndex(queueFamilyIndex); - queueIndex(queueIndex); + ) { + type(type); + next(next); + instance(instance); + physicalDevice(physicalDevice); + device(device); + queueFamilyIndex(queueFamilyIndex); + queueIndex(queueIndex); return this; } @@ -216,7 +216,7 @@ public static XrGraphicsBindingVulkan2KHR.Buffer calloc(int capacity, MemoryStac return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrGraphicsBindingVulkan2KHR} structs. */ public static class Buffer extends XrGraphicsBindingVulkanKHR.Buffer { @@ -253,31 +253,31 @@ protected Buffer self() { protected XrGraphicsBindingVulkan2KHR getElementFactory() { return ELEMENT_FACTORY; } - - /** Sets the specified value to the {@code type} field. */ - @Override - public XrGraphicsBindingVulkan2KHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingVulkan2KHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR TYPE_GRAPHICS_BINDING_VULKAN_KHR} value to the {@code type} field. */ - @Override - public XrGraphicsBindingVulkan2KHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR); } - /** Sets the specified value to the {@code next} field. */ - @Override - public XrGraphicsBindingVulkan2KHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingVulkan2KHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@code instance} field. */ - @Override - public XrGraphicsBindingVulkan2KHR.Buffer instance(VkInstance value) { XrGraphicsBindingVulkan2KHR.ninstance(address(), value); return this; } - /** Sets the specified value to the {@code physicalDevice} field. */ - @Override - public XrGraphicsBindingVulkan2KHR.Buffer physicalDevice(VkPhysicalDevice value) { XrGraphicsBindingVulkan2KHR.nphysicalDevice(address(), value); return this; } - /** Sets the specified value to the {@code device} field. */ - @Override - public XrGraphicsBindingVulkan2KHR.Buffer device(VkDevice value) { XrGraphicsBindingVulkan2KHR.ndevice(address(), value); return this; } - /** Sets the specified value to the {@code queueFamilyIndex} field. */ - @Override - public XrGraphicsBindingVulkan2KHR.Buffer queueFamilyIndex(@NativeType("uint32_t") int value) { XrGraphicsBindingVulkan2KHR.nqueueFamilyIndex(address(), value); return this; } - /** Sets the specified value to the {@code queueIndex} field. */ - @Override - public XrGraphicsBindingVulkan2KHR.Buffer queueIndex(@NativeType("uint32_t") int value) { XrGraphicsBindingVulkan2KHR.nqueueIndex(address(), value); return this; } + + /** Sets the specified value to the {@code type} field. */ + @Override + public XrGraphicsBindingVulkan2KHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingVulkan2KHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR TYPE_GRAPHICS_BINDING_VULKAN_KHR} value to the {@code type} field. */ + @Override + public XrGraphicsBindingVulkan2KHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR); } + /** Sets the specified value to the {@code next} field. */ + @Override + public XrGraphicsBindingVulkan2KHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingVulkan2KHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@code instance} field. */ + @Override + public XrGraphicsBindingVulkan2KHR.Buffer instance(VkInstance value) { XrGraphicsBindingVulkan2KHR.ninstance(address(), value); return this; } + /** Sets the specified value to the {@code physicalDevice} field. */ + @Override + public XrGraphicsBindingVulkan2KHR.Buffer physicalDevice(VkPhysicalDevice value) { XrGraphicsBindingVulkan2KHR.nphysicalDevice(address(), value); return this; } + /** Sets the specified value to the {@code device} field. */ + @Override + public XrGraphicsBindingVulkan2KHR.Buffer device(VkDevice value) { XrGraphicsBindingVulkan2KHR.ndevice(address(), value); return this; } + /** Sets the specified value to the {@code queueFamilyIndex} field. */ + @Override + public XrGraphicsBindingVulkan2KHR.Buffer queueFamilyIndex(@NativeType("uint32_t") int value) { XrGraphicsBindingVulkan2KHR.nqueueFamilyIndex(address(), value); return this; } + /** Sets the specified value to the {@code queueIndex} field. */ + @Override + public XrGraphicsBindingVulkan2KHR.Buffer queueIndex(@NativeType("uint32_t") int value) { XrGraphicsBindingVulkan2KHR.nqueueIndex(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingVulkanKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingVulkanKHR.java index ee45196bdf..9b8ea7e1b7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingVulkanKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingVulkanKHR.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 org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * The graphics binding structure to be passed at session creation to use Vulkan. * @@ -61,8 +61,8 @@ * uint32_t {@link #queueFamilyIndex}; * uint32_t {@link #queueIndex}; * } - */ -public class XrGraphicsBindingVulkanKHR extends Struct implements NativeResource { + */ +public class XrGraphicsBindingVulkanKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -72,44 +72,35 @@ public class XrGraphicsBindingVulkanKHR extends Struct implements NativeResource { @@ -361,9 +352,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 XrGraphicsBindingVulkanKHR#SIZEOF}, and its mark will be undefined.

    + * by {@link XrGraphicsBindingVulkanKHR#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -388,45 +379,45 @@ protected Buffer self() { protected XrGraphicsBindingVulkanKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGraphicsBindingVulkanKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGraphicsBindingVulkanKHR.ntype(address()); } - /** @return the value of the {@link XrGraphicsBindingVulkanKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrGraphicsBindingVulkanKHR.nnext(address()); } - /** @return the value of the {@link XrGraphicsBindingVulkanKHR#instance} field. */ - @NativeType("VkInstance") - public long instance() { return XrGraphicsBindingVulkanKHR.ninstance(address()); } - /** @return the value of the {@link XrGraphicsBindingVulkanKHR#physicalDevice} field. */ - @NativeType("VkPhysicalDevice") - public long physicalDevice() { return XrGraphicsBindingVulkanKHR.nphysicalDevice(address()); } - /** @return the value of the {@link XrGraphicsBindingVulkanKHR#device} field. */ - @NativeType("VkDevice") - public long device() { return XrGraphicsBindingVulkanKHR.ndevice(address()); } - /** @return the value of the {@link XrGraphicsBindingVulkanKHR#queueFamilyIndex} field. */ - @NativeType("uint32_t") - public int queueFamilyIndex() { return XrGraphicsBindingVulkanKHR.nqueueFamilyIndex(address()); } - /** @return the value of the {@link XrGraphicsBindingVulkanKHR#queueIndex} field. */ - @NativeType("uint32_t") - public int queueIndex() { return XrGraphicsBindingVulkanKHR.nqueueIndex(address()); } - - /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#type} field. */ - public XrGraphicsBindingVulkanKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingVulkanKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR TYPE_GRAPHICS_BINDING_VULKAN_KHR} value to the {@link XrGraphicsBindingVulkanKHR#type} field. */ - public XrGraphicsBindingVulkanKHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR); } - /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#next} field. */ - public XrGraphicsBindingVulkanKHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingVulkanKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#instance} field. */ - public XrGraphicsBindingVulkanKHR.Buffer instance(VkInstance value) { XrGraphicsBindingVulkanKHR.ninstance(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#physicalDevice} field. */ - public XrGraphicsBindingVulkanKHR.Buffer physicalDevice(VkPhysicalDevice value) { XrGraphicsBindingVulkanKHR.nphysicalDevice(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#device} field. */ - public XrGraphicsBindingVulkanKHR.Buffer device(VkDevice value) { XrGraphicsBindingVulkanKHR.ndevice(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#queueFamilyIndex} field. */ - public XrGraphicsBindingVulkanKHR.Buffer queueFamilyIndex(@NativeType("uint32_t") int value) { XrGraphicsBindingVulkanKHR.nqueueFamilyIndex(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#queueIndex} field. */ - public XrGraphicsBindingVulkanKHR.Buffer queueIndex(@NativeType("uint32_t") int value) { XrGraphicsBindingVulkanKHR.nqueueIndex(address(), value); return this; } + + /** @return the value of the {@link XrGraphicsBindingVulkanKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsBindingVulkanKHR.ntype(address()); } + /** @return the value of the {@link XrGraphicsBindingVulkanKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrGraphicsBindingVulkanKHR.nnext(address()); } + /** @return the value of the {@link XrGraphicsBindingVulkanKHR#instance} field. */ + @NativeType("VkInstance") + public long instance() { return XrGraphicsBindingVulkanKHR.ninstance(address()); } + /** @return the value of the {@link XrGraphicsBindingVulkanKHR#physicalDevice} field. */ + @NativeType("VkPhysicalDevice") + public long physicalDevice() { return XrGraphicsBindingVulkanKHR.nphysicalDevice(address()); } + /** @return the value of the {@link XrGraphicsBindingVulkanKHR#device} field. */ + @NativeType("VkDevice") + public long device() { return XrGraphicsBindingVulkanKHR.ndevice(address()); } + /** @return the value of the {@link XrGraphicsBindingVulkanKHR#queueFamilyIndex} field. */ + @NativeType("uint32_t") + public int queueFamilyIndex() { return XrGraphicsBindingVulkanKHR.nqueueFamilyIndex(address()); } + /** @return the value of the {@link XrGraphicsBindingVulkanKHR#queueIndex} field. */ + @NativeType("uint32_t") + public int queueIndex() { return XrGraphicsBindingVulkanKHR.nqueueIndex(address()); } + + /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#type} field. */ + public XrGraphicsBindingVulkanKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingVulkanKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR TYPE_GRAPHICS_BINDING_VULKAN_KHR} value to the {@link XrGraphicsBindingVulkanKHR#type} field. */ + public XrGraphicsBindingVulkanKHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR); } + /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#next} field. */ + public XrGraphicsBindingVulkanKHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingVulkanKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#instance} field. */ + public XrGraphicsBindingVulkanKHR.Buffer instance(VkInstance value) { XrGraphicsBindingVulkanKHR.ninstance(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#physicalDevice} field. */ + public XrGraphicsBindingVulkanKHR.Buffer physicalDevice(VkPhysicalDevice value) { XrGraphicsBindingVulkanKHR.nphysicalDevice(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#device} field. */ + public XrGraphicsBindingVulkanKHR.Buffer device(VkDevice value) { XrGraphicsBindingVulkanKHR.ndevice(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#queueFamilyIndex} field. */ + public XrGraphicsBindingVulkanKHR.Buffer queueFamilyIndex(@NativeType("uint32_t") int value) { XrGraphicsBindingVulkanKHR.nqueueFamilyIndex(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#queueIndex} field. */ + public XrGraphicsBindingVulkanKHR.Buffer queueIndex(@NativeType("uint32_t") int value) { XrGraphicsBindingVulkanKHR.nqueueIndex(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsOpenGLESKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsOpenGLESKHR.java index c5f4e39136..a1599c490d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsOpenGLESKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsOpenGLESKHR.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.*; + /** * OpenGL ES API version requirements. * @@ -43,8 +43,8 @@ * XrVersion {@link #minApiVersionSupported}; * XrVersion {@link #maxApiVersionSupported}; * } - */ -public class XrGraphicsRequirementsOpenGLESKHR extends Struct implements NativeResource { + */ +public class XrGraphicsRequirementsOpenGLESKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,35 +54,26 @@ public class XrGraphicsRequirementsOpenGLESKHR extends Struct implements NativeResource { @@ -290,9 +281,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 XrGraphicsRequirementsOpenGLESKHR#SIZEOF}, and its mark will be undefined.

    + * by {@link XrGraphicsRequirementsOpenGLESKHR#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -317,30 +308,30 @@ protected Buffer self() { protected XrGraphicsRequirementsOpenGLESKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGraphicsRequirementsOpenGLESKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGraphicsRequirementsOpenGLESKHR.ntype(address()); } - /** @return the value of the {@link XrGraphicsRequirementsOpenGLESKHR#next} field. */ - @NativeType("void *") - public long next() { return XrGraphicsRequirementsOpenGLESKHR.nnext(address()); } - /** @return the value of the {@link XrGraphicsRequirementsOpenGLESKHR#minApiVersionSupported} field. */ - @NativeType("XrVersion") - public long minApiVersionSupported() { return XrGraphicsRequirementsOpenGLESKHR.nminApiVersionSupported(address()); } - /** @return the value of the {@link XrGraphicsRequirementsOpenGLESKHR#maxApiVersionSupported} field. */ - @NativeType("XrVersion") - public long maxApiVersionSupported() { return XrGraphicsRequirementsOpenGLESKHR.nmaxApiVersionSupported(address()); } - - /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLESKHR#type} field. */ - public XrGraphicsRequirementsOpenGLESKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsRequirementsOpenGLESKHR.ntype(address(), value); return this; } - /** Sets the {@link KHROpenGLESEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR} value to the {@link XrGraphicsRequirementsOpenGLESKHR#type} field. */ - public XrGraphicsRequirementsOpenGLESKHR.Buffer type$Default() { return type(KHROpenGLESEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR); } - /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLESKHR#next} field. */ - public XrGraphicsRequirementsOpenGLESKHR.Buffer next(@NativeType("void *") long value) { XrGraphicsRequirementsOpenGLESKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLESKHR#minApiVersionSupported} field. */ - public XrGraphicsRequirementsOpenGLESKHR.Buffer minApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsOpenGLESKHR.nminApiVersionSupported(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLESKHR#maxApiVersionSupported} field. */ - public XrGraphicsRequirementsOpenGLESKHR.Buffer maxApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsOpenGLESKHR.nmaxApiVersionSupported(address(), value); return this; } + + /** @return the value of the {@link XrGraphicsRequirementsOpenGLESKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsRequirementsOpenGLESKHR.ntype(address()); } + /** @return the value of the {@link XrGraphicsRequirementsOpenGLESKHR#next} field. */ + @NativeType("void *") + public long next() { return XrGraphicsRequirementsOpenGLESKHR.nnext(address()); } + /** @return the value of the {@link XrGraphicsRequirementsOpenGLESKHR#minApiVersionSupported} field. */ + @NativeType("XrVersion") + public long minApiVersionSupported() { return XrGraphicsRequirementsOpenGLESKHR.nminApiVersionSupported(address()); } + /** @return the value of the {@link XrGraphicsRequirementsOpenGLESKHR#maxApiVersionSupported} field. */ + @NativeType("XrVersion") + public long maxApiVersionSupported() { return XrGraphicsRequirementsOpenGLESKHR.nmaxApiVersionSupported(address()); } + + /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLESKHR#type} field. */ + public XrGraphicsRequirementsOpenGLESKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsRequirementsOpenGLESKHR.ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLESEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR} value to the {@link XrGraphicsRequirementsOpenGLESKHR#type} field. */ + public XrGraphicsRequirementsOpenGLESKHR.Buffer type$Default() { return type(KHROpenGLESEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR); } + /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLESKHR#next} field. */ + public XrGraphicsRequirementsOpenGLESKHR.Buffer next(@NativeType("void *") long value) { XrGraphicsRequirementsOpenGLESKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLESKHR#minApiVersionSupported} field. */ + public XrGraphicsRequirementsOpenGLESKHR.Buffer minApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsOpenGLESKHR.nminApiVersionSupported(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLESKHR#maxApiVersionSupported} field. */ + public XrGraphicsRequirementsOpenGLESKHR.Buffer maxApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsOpenGLESKHR.nmaxApiVersionSupported(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsOpenGLKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsOpenGLKHR.java index a03659dac0..1141ce0dfe 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsOpenGLKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsOpenGLKHR.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.*; + /** * OpenGL API version requirements. * @@ -43,8 +43,8 @@ * XrVersion {@link #minApiVersionSupported}; * XrVersion {@link #maxApiVersionSupported}; * } - */ -public class XrGraphicsRequirementsOpenGLKHR extends Struct implements NativeResource { + */ +public class XrGraphicsRequirementsOpenGLKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,35 +54,26 @@ public class XrGraphicsRequirementsOpenGLKHR extends Struct implements NativeResource { @@ -290,9 +281,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 XrGraphicsRequirementsOpenGLKHR#SIZEOF}, and its mark will be undefined.

    + * by {@link XrGraphicsRequirementsOpenGLKHR#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -317,30 +308,30 @@ protected Buffer self() { protected XrGraphicsRequirementsOpenGLKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGraphicsRequirementsOpenGLKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGraphicsRequirementsOpenGLKHR.ntype(address()); } - /** @return the value of the {@link XrGraphicsRequirementsOpenGLKHR#next} field. */ - @NativeType("void *") - public long next() { return XrGraphicsRequirementsOpenGLKHR.nnext(address()); } - /** @return the value of the {@link XrGraphicsRequirementsOpenGLKHR#minApiVersionSupported} field. */ - @NativeType("XrVersion") - public long minApiVersionSupported() { return XrGraphicsRequirementsOpenGLKHR.nminApiVersionSupported(address()); } - /** @return the value of the {@link XrGraphicsRequirementsOpenGLKHR#maxApiVersionSupported} field. */ - @NativeType("XrVersion") - public long maxApiVersionSupported() { return XrGraphicsRequirementsOpenGLKHR.nmaxApiVersionSupported(address()); } - - /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLKHR#type} field. */ - public XrGraphicsRequirementsOpenGLKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsRequirementsOpenGLKHR.ntype(address(), value); return this; } - /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR} value to the {@link XrGraphicsRequirementsOpenGLKHR#type} field. */ - public XrGraphicsRequirementsOpenGLKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR); } - /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLKHR#next} field. */ - public XrGraphicsRequirementsOpenGLKHR.Buffer next(@NativeType("void *") long value) { XrGraphicsRequirementsOpenGLKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLKHR#minApiVersionSupported} field. */ - public XrGraphicsRequirementsOpenGLKHR.Buffer minApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsOpenGLKHR.nminApiVersionSupported(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLKHR#maxApiVersionSupported} field. */ - public XrGraphicsRequirementsOpenGLKHR.Buffer maxApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsOpenGLKHR.nmaxApiVersionSupported(address(), value); return this; } + + /** @return the value of the {@link XrGraphicsRequirementsOpenGLKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsRequirementsOpenGLKHR.ntype(address()); } + /** @return the value of the {@link XrGraphicsRequirementsOpenGLKHR#next} field. */ + @NativeType("void *") + public long next() { return XrGraphicsRequirementsOpenGLKHR.nnext(address()); } + /** @return the value of the {@link XrGraphicsRequirementsOpenGLKHR#minApiVersionSupported} field. */ + @NativeType("XrVersion") + public long minApiVersionSupported() { return XrGraphicsRequirementsOpenGLKHR.nminApiVersionSupported(address()); } + /** @return the value of the {@link XrGraphicsRequirementsOpenGLKHR#maxApiVersionSupported} field. */ + @NativeType("XrVersion") + public long maxApiVersionSupported() { return XrGraphicsRequirementsOpenGLKHR.nmaxApiVersionSupported(address()); } + + /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLKHR#type} field. */ + public XrGraphicsRequirementsOpenGLKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsRequirementsOpenGLKHR.ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR} value to the {@link XrGraphicsRequirementsOpenGLKHR#type} field. */ + public XrGraphicsRequirementsOpenGLKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR); } + /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLKHR#next} field. */ + public XrGraphicsRequirementsOpenGLKHR.Buffer next(@NativeType("void *") long value) { XrGraphicsRequirementsOpenGLKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLKHR#minApiVersionSupported} field. */ + public XrGraphicsRequirementsOpenGLKHR.Buffer minApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsOpenGLKHR.nminApiVersionSupported(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLKHR#maxApiVersionSupported} field. */ + public XrGraphicsRequirementsOpenGLKHR.Buffer maxApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsOpenGLKHR.nmaxApiVersionSupported(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsVulkan2KHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsVulkan2KHR.java index 66ddf51694..b9b050f6d4 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsVulkan2KHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsVulkan2KHR.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.*; + /** * See {@link XrGraphicsRequirementsVulkanKHR}. * @@ -27,8 +27,8 @@ * XrVersion minApiVersionSupported; * XrVersion maxApiVersionSupported; * } - */ -public class XrGraphicsRequirementsVulkan2KHR extends XrGraphicsRequirementsVulkanKHR { + */ +public class XrGraphicsRequirementsVulkan2KHR extends XrGraphicsRequirementsVulkanKHR { /** * Creates a {@code XrGraphicsRequirementsVulkan2KHR} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be @@ -39,35 +39,35 @@ public class XrGraphicsRequirementsVulkan2KHR extends XrGraphicsRequirementsVulk public XrGraphicsRequirementsVulkan2KHR(ByteBuffer container) { super(container); } - - /** Sets the specified value to the {@code type} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR} value to the {@code type} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR); } - /** Sets the specified value to the {@code next} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@code minApiVersionSupported} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR minApiVersionSupported(@NativeType("XrVersion") long value) { nminApiVersionSupported(address(), value); return this; } - /** Sets the specified value to the {@code maxApiVersionSupported} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR maxApiVersionSupported(@NativeType("XrVersion") long value) { nmaxApiVersionSupported(address(), value); return this; } + + /** Sets the specified value to the {@code type} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR} value to the {@code type} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR); } + /** Sets the specified value to the {@code next} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@code minApiVersionSupported} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR minApiVersionSupported(@NativeType("XrVersion") long value) { nminApiVersionSupported(address(), value); return this; } + /** Sets the specified value to the {@code maxApiVersionSupported} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR maxApiVersionSupported(@NativeType("XrVersion") long value) { nmaxApiVersionSupported(address(), value); return this; } /** Initializes this struct with the specified values. */ @Override public XrGraphicsRequirementsVulkan2KHR set( - int type, - long next, - long minApiVersionSupported, + int type, + long next, + long minApiVersionSupported, long maxApiVersionSupported - ) { - type(type); - next(next); - minApiVersionSupported(minApiVersionSupported); - maxApiVersionSupported(maxApiVersionSupported); + ) { + type(type); + next(next); + minApiVersionSupported(minApiVersionSupported); + maxApiVersionSupported(maxApiVersionSupported); return this; } @@ -195,7 +195,7 @@ public static XrGraphicsRequirementsVulkan2KHR.Buffer calloc(int capacity, Memor return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrGraphicsRequirementsVulkan2KHR} structs. */ public static class Buffer extends XrGraphicsRequirementsVulkanKHR.Buffer { @@ -232,22 +232,22 @@ protected Buffer self() { protected XrGraphicsRequirementsVulkan2KHR getElementFactory() { return ELEMENT_FACTORY; } - - /** Sets the specified value to the {@code type} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsRequirementsVulkan2KHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR} value to the {@code type} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR); } - /** Sets the specified value to the {@code next} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR.Buffer next(@NativeType("void *") long value) { XrGraphicsRequirementsVulkan2KHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@code minApiVersionSupported} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR.Buffer minApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsVulkan2KHR.nminApiVersionSupported(address(), value); return this; } - /** Sets the specified value to the {@code maxApiVersionSupported} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR.Buffer maxApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsVulkan2KHR.nmaxApiVersionSupported(address(), value); return this; } + + /** Sets the specified value to the {@code type} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsRequirementsVulkan2KHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR} value to the {@code type} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR); } + /** Sets the specified value to the {@code next} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR.Buffer next(@NativeType("void *") long value) { XrGraphicsRequirementsVulkan2KHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@code minApiVersionSupported} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR.Buffer minApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsVulkan2KHR.nminApiVersionSupported(address(), value); return this; } + /** Sets the specified value to the {@code maxApiVersionSupported} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR.Buffer maxApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsVulkan2KHR.nmaxApiVersionSupported(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsVulkanKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsVulkanKHR.java index b8eba3fc31..23fb0466ef 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsVulkanKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsVulkanKHR.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.*; + /** * Vulkan API version requirements. * @@ -43,8 +43,8 @@ * XrVersion {@link #minApiVersionSupported}; * XrVersion {@link #maxApiVersionSupported}; * } - */ -public class XrGraphicsRequirementsVulkanKHR extends Struct implements NativeResource { + */ +public class XrGraphicsRequirementsVulkanKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,35 +54,26 @@ public class XrGraphicsRequirementsVulkanKHR extends Struct implements NativeResource { @@ -290,9 +281,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 XrGraphicsRequirementsVulkanKHR#SIZEOF}, and its mark will be undefined.

    + * by {@link XrGraphicsRequirementsVulkanKHR#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -317,30 +308,30 @@ protected Buffer self() { protected XrGraphicsRequirementsVulkanKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGraphicsRequirementsVulkanKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGraphicsRequirementsVulkanKHR.ntype(address()); } - /** @return the value of the {@link XrGraphicsRequirementsVulkanKHR#next} field. */ - @NativeType("void *") - public long next() { return XrGraphicsRequirementsVulkanKHR.nnext(address()); } - /** @return the value of the {@link XrGraphicsRequirementsVulkanKHR#minApiVersionSupported} field. */ - @NativeType("XrVersion") - public long minApiVersionSupported() { return XrGraphicsRequirementsVulkanKHR.nminApiVersionSupported(address()); } - /** @return the value of the {@link XrGraphicsRequirementsVulkanKHR#maxApiVersionSupported} field. */ - @NativeType("XrVersion") - public long maxApiVersionSupported() { return XrGraphicsRequirementsVulkanKHR.nmaxApiVersionSupported(address()); } - - /** Sets the specified value to the {@link XrGraphicsRequirementsVulkanKHR#type} field. */ - public XrGraphicsRequirementsVulkanKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsRequirementsVulkanKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR} value to the {@link XrGraphicsRequirementsVulkanKHR#type} field. */ - public XrGraphicsRequirementsVulkanKHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR); } - /** Sets the specified value to the {@link XrGraphicsRequirementsVulkanKHR#next} field. */ - public XrGraphicsRequirementsVulkanKHR.Buffer next(@NativeType("void *") long value) { XrGraphicsRequirementsVulkanKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsRequirementsVulkanKHR#minApiVersionSupported} field. */ - public XrGraphicsRequirementsVulkanKHR.Buffer minApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsVulkanKHR.nminApiVersionSupported(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsRequirementsVulkanKHR#maxApiVersionSupported} field. */ - public XrGraphicsRequirementsVulkanKHR.Buffer maxApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsVulkanKHR.nmaxApiVersionSupported(address(), value); return this; } + + /** @return the value of the {@link XrGraphicsRequirementsVulkanKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsRequirementsVulkanKHR.ntype(address()); } + /** @return the value of the {@link XrGraphicsRequirementsVulkanKHR#next} field. */ + @NativeType("void *") + public long next() { return XrGraphicsRequirementsVulkanKHR.nnext(address()); } + /** @return the value of the {@link XrGraphicsRequirementsVulkanKHR#minApiVersionSupported} field. */ + @NativeType("XrVersion") + public long minApiVersionSupported() { return XrGraphicsRequirementsVulkanKHR.nminApiVersionSupported(address()); } + /** @return the value of the {@link XrGraphicsRequirementsVulkanKHR#maxApiVersionSupported} field. */ + @NativeType("XrVersion") + public long maxApiVersionSupported() { return XrGraphicsRequirementsVulkanKHR.nmaxApiVersionSupported(address()); } + + /** Sets the specified value to the {@link XrGraphicsRequirementsVulkanKHR#type} field. */ + public XrGraphicsRequirementsVulkanKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsRequirementsVulkanKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR} value to the {@link XrGraphicsRequirementsVulkanKHR#type} field. */ + public XrGraphicsRequirementsVulkanKHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR); } + /** Sets the specified value to the {@link XrGraphicsRequirementsVulkanKHR#next} field. */ + public XrGraphicsRequirementsVulkanKHR.Buffer next(@NativeType("void *") long value) { XrGraphicsRequirementsVulkanKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsRequirementsVulkanKHR#minApiVersionSupported} field. */ + public XrGraphicsRequirementsVulkanKHR.Buffer minApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsVulkanKHR.nminApiVersionSupported(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsRequirementsVulkanKHR#maxApiVersionSupported} field. */ + public XrGraphicsRequirementsVulkanKHR.Buffer maxApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsVulkanKHR.nmaxApiVersionSupported(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandCapsuleFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandCapsuleFB.java index 7b773a57c1..2accde6571 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandCapsuleFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandCapsuleFB.java @@ -4,18 +4,18 @@ * 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.openxr.FBHandTrackingCapsules.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; + +import static org.lwjgl.openxr.FBHandTrackingCapsules.*; + /** * A 3D capsule defined by two points and a radius. * @@ -45,8 +45,8 @@ * float radius; * XrHandJointEXT joint; * } - */ -public class XrHandCapsuleFB extends Struct { + */ +public class XrHandCapsuleFB extends Struct { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,32 +56,23 @@ public class XrHandCapsuleFB extends Struct { /** The struct member offsets. */ public static final int - POINTS, - RADIUS, - JOINT; + POINTS, + RADIUS, + JOINT; static { - Layout layout = __struct( - __array(XrVector3f.SIZEOF, XrVector3f.ALIGNOF, XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB), - __member(4), + Layout layout = __struct( + __array(XrVector3f.SIZEOF, XrVector3f.ALIGNOF, XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - POINTS = layout.offsetof(0); - RADIUS = layout.offsetof(1); - JOINT = layout.offsetof(2); - } - - protected XrHandCapsuleFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrHandCapsuleFB create(long address, @Nullable ByteBuffer container) { - return new XrHandCapsuleFB(address, container); + POINTS = layout.offsetof(0); + RADIUS = layout.offsetof(1); + JOINT = layout.offsetof(2); } /** @@ -96,29 +87,29 @@ public XrHandCapsuleFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** @return a {@link XrVector3f}.Buffer view of the {@code points} field. */ - @NativeType("XrVector3f[XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB]") - public XrVector3f.Buffer points() { return npoints(address()); } - /** @return a {@link XrVector3f} view of the struct at the specified index of the {@code points} field. */ - public XrVector3f points(int index) { return npoints(address(), index); } - /** @return the value of the {@code radius} field. */ - public float radius() { return nradius(address()); } - /** @return the value of the {@code joint} field. */ - @NativeType("XrHandJointEXT") - public int joint() { return njoint(address()); } + + /** @return a {@link XrVector3f}.Buffer view of the {@code points} field. */ + @NativeType("XrVector3f[XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB]") + public XrVector3f.Buffer points() { return npoints(address()); } + /** @return a {@link XrVector3f} view of the struct at the specified index of the {@code points} field. */ + public XrVector3f points(int index) { return npoints(address(), index); } + /** @return the value of the {@code radius} field. */ + public float radius() { return nradius(address()); } + /** @return the value of the {@code joint} field. */ + @NativeType("XrHandJointEXT") + public int joint() { return njoint(address()); } // ----------------------------------- /** Returns a new {@code XrHandCapsuleFB} instance for the specified memory address. */ public static XrHandCapsuleFB create(long address) { - return new XrHandCapsuleFB(address, null); + return wrap(XrHandCapsuleFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrHandCapsuleFB createSafe(long address) { - return address == NULL ? null : new XrHandCapsuleFB(address, null); + return address == NULL ? null : wrap(XrHandCapsuleFB.class, address); } /** @@ -128,29 +119,29 @@ public static XrHandCapsuleFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrHandCapsuleFB.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 XrHandCapsuleFB.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 #points}. */ + public static XrVector3f.Buffer npoints(long struct) { return XrVector3f.create(struct + XrHandCapsuleFB.POINTS, XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB); } + /** Unsafe version of {@link #points(int) points}. */ + public static XrVector3f npoints(long struct, int index) { + return XrVector3f.create(struct + XrHandCapsuleFB.POINTS + check(index, XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB) * XrVector3f.SIZEOF); } + /** Unsafe version of {@link #radius}. */ + public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrHandCapsuleFB.RADIUS); } + /** Unsafe version of {@link #joint}. */ + public static int njoint(long struct) { return UNSAFE.getInt(null, struct + XrHandCapsuleFB.JOINT); } // ----------------------------------- - - /** Unsafe version of {@link #points}. */ - public static XrVector3f.Buffer npoints(long struct) { return XrVector3f.create(struct + XrHandCapsuleFB.POINTS, XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB); } - /** Unsafe version of {@link #points(int) points}. */ - public static XrVector3f npoints(long struct, int index) { - return XrVector3f.create(struct + XrHandCapsuleFB.POINTS + check(index, XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB) * XrVector3f.SIZEOF); - } - /** Unsafe version of {@link #radius}. */ - public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrHandCapsuleFB.RADIUS); } - /** Unsafe version of {@link #joint}. */ - public static int njoint(long struct) { return UNSAFE.getInt(null, struct + XrHandCapsuleFB.JOINT); } - - // ----------------------------------- /** An array of {@link XrHandCapsuleFB} structs. */ public static class Buffer extends StructBuffer { @@ -160,9 +151,9 @@ public static class Buffer extends StructBuffer { /** * Creates a new {@code XrHandCapsuleFB.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 XrHandCapsuleFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHandCapsuleFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -187,17 +178,17 @@ protected Buffer self() { protected XrHandCapsuleFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link XrVector3f}.Buffer view of the {@code points} field. */ - @NativeType("XrVector3f[XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB]") - public XrVector3f.Buffer points() { return XrHandCapsuleFB.npoints(address()); } - /** @return a {@link XrVector3f} view of the struct at the specified index of the {@code points} field. */ - public XrVector3f points(int index) { return XrHandCapsuleFB.npoints(address(), index); } - /** @return the value of the {@code radius} field. */ - public float radius() { return XrHandCapsuleFB.nradius(address()); } - /** @return the value of the {@code joint} field. */ - @NativeType("XrHandJointEXT") - public int joint() { return XrHandCapsuleFB.njoint(address()); } + + /** @return a {@link XrVector3f}.Buffer view of the {@code points} field. */ + @NativeType("XrVector3f[XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB]") + public XrVector3f.Buffer points() { return XrHandCapsuleFB.npoints(address()); } + /** @return a {@link XrVector3f} view of the struct at the specified index of the {@code points} field. */ + public XrVector3f points(int index) { return XrHandCapsuleFB.npoints(address(), index); } + /** @return the value of the {@code radius} field. */ + public float radius() { return XrHandCapsuleFB.nradius(address()); } + /** @return the value of the {@code joint} field. */ + @NativeType("XrHandJointEXT") + public int joint() { return XrHandCapsuleFB.njoint(address()); } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointLocationEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointLocationEXT.java index 8cd37e5428..aa67fe4cc1 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointLocationEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointLocationEXT.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 hand joint. * @@ -43,8 +43,8 @@ * {@link XrPosef XrPosef} {@link #pose}; * float {@link #radius}; * } - */ -public class XrHandJointLocationEXT extends Struct implements NativeResource { + */ +public class XrHandJointLocationEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,32 +54,23 @@ public class XrHandJointLocationEXT extends Struct imple /** The struct member offsets. */ public static final int - LOCATIONFLAGS, - POSE, - RADIUS; + LOCATIONFLAGS, + POSE, + RADIUS; static { - Layout layout = __struct( - __member(8), - __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), + Layout layout = __struct( + __member(8), + __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - LOCATIONFLAGS = layout.offsetof(0); - POSE = layout.offsetof(1); - RADIUS = layout.offsetof(2); - } - - protected XrHandJointLocationEXT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrHandJointLocationEXT create(long address, @Nullable ByteBuffer container) { - return new XrHandJointLocationEXT(address, container); + LOCATIONFLAGS = layout.offsetof(0); + POSE = layout.offsetof(1); + RADIUS = layout.offsetof(2); } /** @@ -94,33 +85,33 @@ public XrHandJointLocationEXT(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 hand joint within the reference frame of the corresponding {@link XrHandJointsLocateInfoEXT}{@code ::baseSpace}. */ - public XrPosef pose() { return npose(address()); } - /** a {@code float} value radius of the corresponding joint in units of meters. */ - public float radius() { return nradius(address()); } - - /** Sets the specified value to the {@link #locationFlags} field. */ - public XrHandJointLocationEXT locationFlags(@NativeType("XrSpaceLocationFlags") long value) { nlocationFlags(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrHandJointLocationEXT pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandJointLocationEXT pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Sets the specified value to the {@link #radius} field. */ - public XrHandJointLocationEXT radius(float value) { nradius(address(), value); 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 hand joint within the reference frame of the corresponding {@link XrHandJointsLocateInfoEXT}{@code ::baseSpace}. */ + public XrPosef pose() { return npose(address()); } + /** a {@code float} value radius of the corresponding joint in units of meters. */ + public float radius() { return nradius(address()); } + + /** Sets the specified value to the {@link #locationFlags} field. */ + public XrHandJointLocationEXT locationFlags(@NativeType("XrSpaceLocationFlags") long value) { nlocationFlags(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrHandJointLocationEXT pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandJointLocationEXT pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Sets the specified value to the {@link #radius} field. */ + public XrHandJointLocationEXT radius(float value) { nradius(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandJointLocationEXT set( - long locationFlags, - XrPosef pose, + long locationFlags, + XrPosef pose, float radius - ) { - locationFlags(locationFlags); - pose(pose); - radius(radius); + ) { + locationFlags(locationFlags); + pose(pose); + radius(radius); return this; } @@ -141,29 +132,29 @@ public XrHandJointLocationEXT set(XrHandJointLocationEXT src) { /** Returns a new {@code XrHandJointLocationEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrHandJointLocationEXT malloc() { - return new XrHandJointLocationEXT(nmemAllocChecked(SIZEOF), null); + return wrap(XrHandJointLocationEXT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrHandJointLocationEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrHandJointLocationEXT calloc() { - return new XrHandJointLocationEXT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrHandJointLocationEXT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrHandJointLocationEXT} instance allocated with {@link BufferUtils}. */ public static XrHandJointLocationEXT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrHandJointLocationEXT(memAddress(container), container); + return wrap(XrHandJointLocationEXT.class, memAddress(container), container); } /** Returns a new {@code XrHandJointLocationEXT} instance for the specified memory address. */ public static XrHandJointLocationEXT create(long address) { - return new XrHandJointLocationEXT(address, null); + return wrap(XrHandJointLocationEXT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrHandJointLocationEXT createSafe(long address) { - return address == NULL ? null : new XrHandJointLocationEXT(address, null); + return address == NULL ? null : wrap(XrHandJointLocationEXT.class, address); } /** @@ -172,7 +163,7 @@ public static XrHandJointLocationEXT createSafe(long address) { * @param capacity the buffer capacity */ public static XrHandJointLocationEXT.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 XrHandJointLocationEXT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrHandJointLocationEXT.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 XrHandJointLocationEXT.Buffer calloc(int capacity) { */ public static XrHandJointLocationEXT.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 XrHandJointLocationEXT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrHandJointLocationEXT.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 XrHandJointLocationEXT.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 XrHandJointLocationEXT.Buffer createSafe(long address, int capacit * @param stack the stack from which to allocate */ public static XrHandJointLocationEXT malloc(MemoryStack stack) { - return new XrHandJointLocationEXT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrHandJointLocationEXT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -225,7 +216,7 @@ public static XrHandJointLocationEXT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrHandJointLocationEXT calloc(MemoryStack stack) { - return new XrHandJointLocationEXT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrHandJointLocationEXT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -235,7 +226,7 @@ public static XrHandJointLocationEXT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHandJointLocationEXT.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 XrHandJointLocationEXT.Buffer malloc(int capacity, MemoryStack sta * @param capacity the buffer capacity */ public static XrHandJointLocationEXT.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 + XrHandJointLocationEXT.LOCATIONFLAGS); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrHandJointLocationEXT.POSE); } - /** Unsafe version of {@link #radius}. */ - public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrHandJointLocationEXT.RADIUS); } - - /** Unsafe version of {@link #locationFlags(long) locationFlags}. */ - public static void nlocationFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrHandJointLocationEXT.LOCATIONFLAGS, value); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrHandJointLocationEXT.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #radius(float) radius}. */ - public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrHandJointLocationEXT.RADIUS, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #locationFlags}. */ + public static long nlocationFlags(long struct) { return UNSAFE.getLong(null, struct + XrHandJointLocationEXT.LOCATIONFLAGS); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrHandJointLocationEXT.POSE); } + /** Unsafe version of {@link #radius}. */ + public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrHandJointLocationEXT.RADIUS); } + + /** Unsafe version of {@link #locationFlags(long) locationFlags}. */ + public static void nlocationFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrHandJointLocationEXT.LOCATIONFLAGS, value); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrHandJointLocationEXT.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #radius(float) radius}. */ + public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrHandJointLocationEXT.RADIUS, value); } + + // ----------------------------------- /** An array of {@link XrHandJointLocationEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -274,9 +265,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrHandJointLocationEXT.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 XrHandJointLocationEXT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHandJointLocationEXT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -301,23 +292,23 @@ protected Buffer self() { protected XrHandJointLocationEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandJointLocationEXT#locationFlags} field. */ - @NativeType("XrSpaceLocationFlags") - public long locationFlags() { return XrHandJointLocationEXT.nlocationFlags(address()); } - /** @return a {@link XrPosef} view of the {@link XrHandJointLocationEXT#pose} field. */ - public XrPosef pose() { return XrHandJointLocationEXT.npose(address()); } - /** @return the value of the {@link XrHandJointLocationEXT#radius} field. */ - public float radius() { return XrHandJointLocationEXT.nradius(address()); } - - /** Sets the specified value to the {@link XrHandJointLocationEXT#locationFlags} field. */ - public XrHandJointLocationEXT.Buffer locationFlags(@NativeType("XrSpaceLocationFlags") long value) { XrHandJointLocationEXT.nlocationFlags(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrHandJointLocationEXT#pose} field. */ - public XrHandJointLocationEXT.Buffer pose(XrPosef value) { XrHandJointLocationEXT.npose(address(), value); return this; } - /** Passes the {@link XrHandJointLocationEXT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandJointLocationEXT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Sets the specified value to the {@link XrHandJointLocationEXT#radius} field. */ - public XrHandJointLocationEXT.Buffer radius(float value) { XrHandJointLocationEXT.nradius(address(), value); return this; } + + /** @return the value of the {@link XrHandJointLocationEXT#locationFlags} field. */ + @NativeType("XrSpaceLocationFlags") + public long locationFlags() { return XrHandJointLocationEXT.nlocationFlags(address()); } + /** @return a {@link XrPosef} view of the {@link XrHandJointLocationEXT#pose} field. */ + public XrPosef pose() { return XrHandJointLocationEXT.npose(address()); } + /** @return the value of the {@link XrHandJointLocationEXT#radius} field. */ + public float radius() { return XrHandJointLocationEXT.nradius(address()); } + + /** Sets the specified value to the {@link XrHandJointLocationEXT#locationFlags} field. */ + public XrHandJointLocationEXT.Buffer locationFlags(@NativeType("XrSpaceLocationFlags") long value) { XrHandJointLocationEXT.nlocationFlags(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrHandJointLocationEXT#pose} field. */ + public XrHandJointLocationEXT.Buffer pose(XrPosef value) { XrHandJointLocationEXT.npose(address(), value); return this; } + /** Passes the {@link XrHandJointLocationEXT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandJointLocationEXT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Sets the specified value to the {@link XrHandJointLocationEXT#radius} field. */ + public XrHandJointLocationEXT.Buffer radius(float value) { XrHandJointLocationEXT.nradius(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointLocationsEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointLocationsEXT.java index 3656863375..0fc5a3f530 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointLocationsEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointLocationsEXT.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 hand joint locations. * @@ -57,8 +57,8 @@ * uint32_t {@link #jointCount}; * {@link XrHandJointLocationEXT XrHandJointLocationEXT} * {@link #jointLocations}; * } - */ -public class XrHandJointLocationsEXT extends Struct implements NativeResource { + */ +public class XrHandJointLocationsEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -68,38 +68,29 @@ public class XrHandJointLocationsEXT extends Struct imp /** The struct member offsets. */ public static final int - TYPE, - NEXT, - ISACTIVE, - JOINTCOUNT, - JOINTLOCATIONS; + TYPE, + NEXT, + ISACTIVE, + JOINTCOUNT, + JOINTLOCATIONS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - ISACTIVE = layout.offsetof(2); - JOINTCOUNT = layout.offsetof(3); - JOINTLOCATIONS = layout.offsetof(4); - } - - protected XrHandJointLocationsEXT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrHandJointLocationsEXT create(long address, @Nullable ByteBuffer container) { - return new XrHandJointLocationsEXT(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + ISACTIVE = layout.offsetof(2); + JOINTCOUNT = layout.offsetof(3); + JOINTLOCATIONS = layout.offsetof(4); } /** @@ -114,53 +105,53 @@ public XrHandJointLocationsEXT(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, such as {@link XrHandJointVelocitiesEXT}. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** an {@code XrBool32} indicating if the hand tracker is actively tracking. */ - @NativeType("XrBool32") - public boolean isActive() { return nisActive(address()) != 0; } - /** a {@code uint32_t} describing the count of elements in {@code jointLocations} array. */ - @NativeType("uint32_t") - public int jointCount() { return njointCount(address()); } - /** an array of {@link XrHandJointLocationEXT} receiving the returned hand joint locations. */ - @NativeType("XrHandJointLocationEXT *") - public XrHandJointLocationEXT.Buffer jointLocations() { return njointLocations(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHandJointLocationsEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINT_LOCATIONS_EXT TYPE_HAND_JOINT_LOCATIONS_EXT} value to the {@link #type} field. */ - public XrHandJointLocationsEXT type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINT_LOCATIONS_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrHandJointLocationsEXT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrHandJointVelocitiesEXT} value to the {@code next} chain. */ - public XrHandJointLocationsEXT next(XrHandJointVelocitiesEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrHandTrackingAimStateFB} value to the {@code next} chain. */ - public XrHandJointLocationsEXT next(XrHandTrackingAimStateFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrHandTrackingCapsulesStateFB} value to the {@code next} chain. */ - public XrHandJointLocationsEXT next(XrHandTrackingCapsulesStateFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrHandTrackingScaleFB} value to the {@code next} chain. */ - public XrHandJointLocationsEXT next(XrHandTrackingScaleFB value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #isActive} field. */ - public XrHandJointLocationsEXT isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } - /** Sets the address of the specified {@link XrHandJointLocationEXT.Buffer} to the {@link #jointLocations} field. */ - public XrHandJointLocationsEXT jointLocations(@NativeType("XrHandJointLocationEXT *") XrHandJointLocationEXT.Buffer value) { njointLocations(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, such as {@link XrHandJointVelocitiesEXT}. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** an {@code XrBool32} indicating if the hand tracker is actively tracking. */ + @NativeType("XrBool32") + public boolean isActive() { return nisActive(address()) != 0; } + /** a {@code uint32_t} describing the count of elements in {@code jointLocations} array. */ + @NativeType("uint32_t") + public int jointCount() { return njointCount(address()); } + /** an array of {@link XrHandJointLocationEXT} receiving the returned hand joint locations. */ + @NativeType("XrHandJointLocationEXT *") + public XrHandJointLocationEXT.Buffer jointLocations() { return njointLocations(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandJointLocationsEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINT_LOCATIONS_EXT TYPE_HAND_JOINT_LOCATIONS_EXT} value to the {@link #type} field. */ + public XrHandJointLocationsEXT type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINT_LOCATIONS_EXT); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandJointLocationsEXT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrHandJointVelocitiesEXT} value to the {@code next} chain. */ + public XrHandJointLocationsEXT next(XrHandJointVelocitiesEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrHandTrackingAimStateFB} value to the {@code next} chain. */ + public XrHandJointLocationsEXT next(XrHandTrackingAimStateFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrHandTrackingCapsulesStateFB} value to the {@code next} chain. */ + public XrHandJointLocationsEXT next(XrHandTrackingCapsulesStateFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrHandTrackingScaleFB} value to the {@code next} chain. */ + public XrHandJointLocationsEXT next(XrHandTrackingScaleFB value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #isActive} field. */ + public XrHandJointLocationsEXT isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } + /** Sets the address of the specified {@link XrHandJointLocationEXT.Buffer} to the {@link #jointLocations} field. */ + public XrHandJointLocationsEXT jointLocations(@NativeType("XrHandJointLocationEXT *") XrHandJointLocationEXT.Buffer value) { njointLocations(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandJointLocationsEXT set( - int type, - long next, - boolean isActive, + int type, + long next, + boolean isActive, XrHandJointLocationEXT.Buffer jointLocations - ) { - type(type); - next(next); - isActive(isActive); - jointLocations(jointLocations); + ) { + type(type); + next(next); + isActive(isActive); + jointLocations(jointLocations); return this; } @@ -181,29 +172,29 @@ public XrHandJointLocationsEXT set(XrHandJointLocationsEXT src) { /** Returns a new {@code XrHandJointLocationsEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrHandJointLocationsEXT malloc() { - return new XrHandJointLocationsEXT(nmemAllocChecked(SIZEOF), null); + return wrap(XrHandJointLocationsEXT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrHandJointLocationsEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrHandJointLocationsEXT calloc() { - return new XrHandJointLocationsEXT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrHandJointLocationsEXT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrHandJointLocationsEXT} instance allocated with {@link BufferUtils}. */ public static XrHandJointLocationsEXT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrHandJointLocationsEXT(memAddress(container), container); + return wrap(XrHandJointLocationsEXT.class, memAddress(container), container); } /** Returns a new {@code XrHandJointLocationsEXT} instance for the specified memory address. */ public static XrHandJointLocationsEXT create(long address) { - return new XrHandJointLocationsEXT(address, null); + return wrap(XrHandJointLocationsEXT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrHandJointLocationsEXT createSafe(long address) { - return address == NULL ? null : new XrHandJointLocationsEXT(address, null); + return address == NULL ? null : wrap(XrHandJointLocationsEXT.class, address); } /** @@ -212,7 +203,7 @@ public static XrHandJointLocationsEXT createSafe(long address) { * @param capacity the buffer capacity */ public static XrHandJointLocationsEXT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -221,7 +212,7 @@ public static XrHandJointLocationsEXT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrHandJointLocationsEXT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -231,7 +222,7 @@ public static XrHandJointLocationsEXT.Buffer calloc(int capacity) { */ public static XrHandJointLocationsEXT.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); } /** @@ -241,13 +232,13 @@ public static XrHandJointLocationsEXT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrHandJointLocationsEXT.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 XrHandJointLocationsEXT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -256,7 +247,7 @@ public static XrHandJointLocationsEXT.Buffer createSafe(long address, int capaci * @param stack the stack from which to allocate */ public static XrHandJointLocationsEXT malloc(MemoryStack stack) { - return new XrHandJointLocationsEXT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrHandJointLocationsEXT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -265,7 +256,7 @@ public static XrHandJointLocationsEXT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrHandJointLocationsEXT calloc(MemoryStack stack) { - return new XrHandJointLocationsEXT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrHandJointLocationsEXT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -275,7 +266,7 @@ public static XrHandJointLocationsEXT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHandJointLocationsEXT.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); } /** @@ -285,32 +276,32 @@ public static XrHandJointLocationsEXT.Buffer malloc(int capacity, MemoryStack st * @param capacity the buffer capacity */ public static XrHandJointLocationsEXT.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 + XrHandJointLocationsEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandJointLocationsEXT.NEXT); } - /** Unsafe version of {@link #isActive}. */ - public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrHandJointLocationsEXT.ISACTIVE); } - /** Unsafe version of {@link #jointCount}. */ - public static int njointCount(long struct) { return UNSAFE.getInt(null, struct + XrHandJointLocationsEXT.JOINTCOUNT); } - /** Unsafe version of {@link #jointLocations}. */ - public static XrHandJointLocationEXT.Buffer njointLocations(long struct) { return XrHandJointLocationEXT.create(memGetAddress(struct + XrHandJointLocationsEXT.JOINTLOCATIONS), njointCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointLocationsEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandJointLocationsEXT.NEXT, value); } - /** Unsafe version of {@link #isActive(boolean) isActive}. */ - public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointLocationsEXT.ISACTIVE, 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 + XrHandJointLocationsEXT.JOINTCOUNT, value); } - /** Unsafe version of {@link #jointLocations(XrHandJointLocationEXT.Buffer) jointLocations}. */ - public static void njointLocations(long struct, XrHandJointLocationEXT.Buffer value) { memPutAddress(struct + XrHandJointLocationsEXT.JOINTLOCATIONS, value.address()); njointCount(struct, value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandJointLocationsEXT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandJointLocationsEXT.NEXT); } + /** Unsafe version of {@link #isActive}. */ + public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrHandJointLocationsEXT.ISACTIVE); } + /** Unsafe version of {@link #jointCount}. */ + public static int njointCount(long struct) { return UNSAFE.getInt(null, struct + XrHandJointLocationsEXT.JOINTCOUNT); } + /** Unsafe version of {@link #jointLocations}. */ + public static XrHandJointLocationEXT.Buffer njointLocations(long struct) { return XrHandJointLocationEXT.create(memGetAddress(struct + XrHandJointLocationsEXT.JOINTLOCATIONS), njointCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointLocationsEXT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandJointLocationsEXT.NEXT, value); } + /** Unsafe version of {@link #isActive(boolean) isActive}. */ + public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointLocationsEXT.ISACTIVE, 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 + XrHandJointLocationsEXT.JOINTCOUNT, value); } + /** Unsafe version of {@link #jointLocations(XrHandJointLocationEXT.Buffer) jointLocations}. */ + public static void njointLocations(long struct, XrHandJointLocationEXT.Buffer value) { memPutAddress(struct + XrHandJointLocationsEXT.JOINTLOCATIONS, value.address()); njointCount(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -319,9 +310,9 @@ public static XrHandJointLocationsEXT.Buffer calloc(int capacity, MemoryStack st */ public static void validate(long struct) { check(memGetAddress(struct + XrHandJointLocationsEXT.JOINTLOCATIONS)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrHandJointLocationsEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -331,9 +322,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrHandJointLocationsEXT.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 XrHandJointLocationsEXT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHandJointLocationsEXT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -358,41 +349,41 @@ protected Buffer self() { protected XrHandJointLocationsEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandJointLocationsEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandJointLocationsEXT.ntype(address()); } - /** @return the value of the {@link XrHandJointLocationsEXT#next} field. */ - @NativeType("void *") - public long next() { return XrHandJointLocationsEXT.nnext(address()); } - /** @return the value of the {@link XrHandJointLocationsEXT#isActive} field. */ - @NativeType("XrBool32") - public boolean isActive() { return XrHandJointLocationsEXT.nisActive(address()) != 0; } - /** @return the value of the {@link XrHandJointLocationsEXT#jointCount} field. */ - @NativeType("uint32_t") - public int jointCount() { return XrHandJointLocationsEXT.njointCount(address()); } - /** @return a {@link XrHandJointLocationEXT.Buffer} view of the struct array pointed to by the {@link XrHandJointLocationsEXT#jointLocations} field. */ - @NativeType("XrHandJointLocationEXT *") - public XrHandJointLocationEXT.Buffer jointLocations() { return XrHandJointLocationsEXT.njointLocations(address()); } - - /** Sets the specified value to the {@link XrHandJointLocationsEXT#type} field. */ - public XrHandJointLocationsEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandJointLocationsEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINT_LOCATIONS_EXT TYPE_HAND_JOINT_LOCATIONS_EXT} value to the {@link XrHandJointLocationsEXT#type} field. */ - public XrHandJointLocationsEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINT_LOCATIONS_EXT); } - /** Sets the specified value to the {@link XrHandJointLocationsEXT#next} field. */ - public XrHandJointLocationsEXT.Buffer next(@NativeType("void *") long value) { XrHandJointLocationsEXT.nnext(address(), value); return this; } - /** Prepends the specified {@link XrHandJointVelocitiesEXT} value to the {@code next} chain. */ - public XrHandJointLocationsEXT.Buffer next(XrHandJointVelocitiesEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrHandTrackingAimStateFB} value to the {@code next} chain. */ - public XrHandJointLocationsEXT.Buffer next(XrHandTrackingAimStateFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrHandTrackingCapsulesStateFB} value to the {@code next} chain. */ - public XrHandJointLocationsEXT.Buffer next(XrHandTrackingCapsulesStateFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrHandTrackingScaleFB} value to the {@code next} chain. */ - public XrHandJointLocationsEXT.Buffer next(XrHandTrackingScaleFB value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrHandJointLocationsEXT#isActive} field. */ - public XrHandJointLocationsEXT.Buffer isActive(@NativeType("XrBool32") boolean value) { XrHandJointLocationsEXT.nisActive(address(), value ? 1 : 0); return this; } - /** Sets the address of the specified {@link XrHandJointLocationEXT.Buffer} to the {@link XrHandJointLocationsEXT#jointLocations} field. */ - public XrHandJointLocationsEXT.Buffer jointLocations(@NativeType("XrHandJointLocationEXT *") XrHandJointLocationEXT.Buffer value) { XrHandJointLocationsEXT.njointLocations(address(), value); return this; } + + /** @return the value of the {@link XrHandJointLocationsEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandJointLocationsEXT.ntype(address()); } + /** @return the value of the {@link XrHandJointLocationsEXT#next} field. */ + @NativeType("void *") + public long next() { return XrHandJointLocationsEXT.nnext(address()); } + /** @return the value of the {@link XrHandJointLocationsEXT#isActive} field. */ + @NativeType("XrBool32") + public boolean isActive() { return XrHandJointLocationsEXT.nisActive(address()) != 0; } + /** @return the value of the {@link XrHandJointLocationsEXT#jointCount} field. */ + @NativeType("uint32_t") + public int jointCount() { return XrHandJointLocationsEXT.njointCount(address()); } + /** @return a {@link XrHandJointLocationEXT.Buffer} view of the struct array pointed to by the {@link XrHandJointLocationsEXT#jointLocations} field. */ + @NativeType("XrHandJointLocationEXT *") + public XrHandJointLocationEXT.Buffer jointLocations() { return XrHandJointLocationsEXT.njointLocations(address()); } + + /** Sets the specified value to the {@link XrHandJointLocationsEXT#type} field. */ + public XrHandJointLocationsEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandJointLocationsEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINT_LOCATIONS_EXT TYPE_HAND_JOINT_LOCATIONS_EXT} value to the {@link XrHandJointLocationsEXT#type} field. */ + public XrHandJointLocationsEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINT_LOCATIONS_EXT); } + /** Sets the specified value to the {@link XrHandJointLocationsEXT#next} field. */ + public XrHandJointLocationsEXT.Buffer next(@NativeType("void *") long value) { XrHandJointLocationsEXT.nnext(address(), value); return this; } + /** Prepends the specified {@link XrHandJointVelocitiesEXT} value to the {@code next} chain. */ + public XrHandJointLocationsEXT.Buffer next(XrHandJointVelocitiesEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrHandTrackingAimStateFB} value to the {@code next} chain. */ + public XrHandJointLocationsEXT.Buffer next(XrHandTrackingAimStateFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrHandTrackingCapsulesStateFB} value to the {@code next} chain. */ + public XrHandJointLocationsEXT.Buffer next(XrHandTrackingCapsulesStateFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrHandTrackingScaleFB} value to the {@code next} chain. */ + public XrHandJointLocationsEXT.Buffer next(XrHandTrackingScaleFB value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrHandJointLocationsEXT#isActive} field. */ + public XrHandJointLocationsEXT.Buffer isActive(@NativeType("XrBool32") boolean value) { XrHandJointLocationsEXT.nisActive(address(), value ? 1 : 0); return this; } + /** Sets the address of the specified {@link XrHandJointLocationEXT.Buffer} to the {@link XrHandJointLocationsEXT#jointLocations} field. */ + public XrHandJointLocationsEXT.Buffer jointLocations(@NativeType("XrHandJointLocationEXT *") XrHandJointLocationEXT.Buffer value) { XrHandJointLocationsEXT.njointLocations(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointVelocitiesEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointVelocitiesEXT.java index 7b2bdb9b14..35cc52744d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointVelocitiesEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointVelocitiesEXT.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 hand joint velocities. * @@ -54,8 +54,8 @@ * uint32_t {@link #jointCount}; * {@link XrHandJointVelocityEXT XrHandJointVelocityEXT} * {@link #jointVelocities}; * } - */ -public class XrHandJointVelocitiesEXT extends Struct implements NativeResource { + */ +public class XrHandJointVelocitiesEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -65,35 +65,26 @@ public class XrHandJointVelocitiesEXT extends Struct i /** The struct member offsets. */ public static final int - TYPE, - NEXT, - JOINTCOUNT, - JOINTVELOCITIES; + TYPE, + NEXT, + JOINTCOUNT, + JOINTVELOCITIES; 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); - JOINTVELOCITIES = layout.offsetof(3); - } - - protected XrHandJointVelocitiesEXT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrHandJointVelocitiesEXT create(long address, @Nullable ByteBuffer container) { - return new XrHandJointVelocitiesEXT(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + JOINTCOUNT = layout.offsetof(2); + JOINTVELOCITIES = layout.offsetof(3); } /** @@ -108,38 +99,38 @@ public XrHandJointVelocitiesEXT(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()); } - /** a {@code uint32_t} describing the number of elements in {@code jointVelocities} array. */ - @NativeType("uint32_t") - public int jointCount() { return njointCount(address()); } - /** an array of {@link XrHandJointVelocityEXT} receiving the returned hand joint velocities. */ - @NativeType("XrHandJointVelocityEXT *") - public XrHandJointVelocityEXT.Buffer jointVelocities() { return njointVelocities(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHandJointVelocitiesEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINT_VELOCITIES_EXT TYPE_HAND_JOINT_VELOCITIES_EXT} value to the {@link #type} field. */ - public XrHandJointVelocitiesEXT type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINT_VELOCITIES_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrHandJointVelocitiesEXT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrHandJointVelocityEXT.Buffer} to the {@link #jointVelocities} field. */ - public XrHandJointVelocitiesEXT jointVelocities(@NativeType("XrHandJointVelocityEXT *") XrHandJointVelocityEXT.Buffer value) { njointVelocities(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()); } + /** a {@code uint32_t} describing the number of elements in {@code jointVelocities} array. */ + @NativeType("uint32_t") + public int jointCount() { return njointCount(address()); } + /** an array of {@link XrHandJointVelocityEXT} receiving the returned hand joint velocities. */ + @NativeType("XrHandJointVelocityEXT *") + public XrHandJointVelocityEXT.Buffer jointVelocities() { return njointVelocities(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandJointVelocitiesEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINT_VELOCITIES_EXT TYPE_HAND_JOINT_VELOCITIES_EXT} value to the {@link #type} field. */ + public XrHandJointVelocitiesEXT type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINT_VELOCITIES_EXT); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandJointVelocitiesEXT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrHandJointVelocityEXT.Buffer} to the {@link #jointVelocities} field. */ + public XrHandJointVelocitiesEXT jointVelocities(@NativeType("XrHandJointVelocityEXT *") XrHandJointVelocityEXT.Buffer value) { njointVelocities(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandJointVelocitiesEXT set( - int type, - long next, + int type, + long next, XrHandJointVelocityEXT.Buffer jointVelocities - ) { - type(type); - next(next); - jointVelocities(jointVelocities); + ) { + type(type); + next(next); + jointVelocities(jointVelocities); return this; } @@ -160,29 +151,29 @@ public XrHandJointVelocitiesEXT set(XrHandJointVelocitiesEXT src) { /** Returns a new {@code XrHandJointVelocitiesEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrHandJointVelocitiesEXT malloc() { - return new XrHandJointVelocitiesEXT(nmemAllocChecked(SIZEOF), null); + return wrap(XrHandJointVelocitiesEXT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrHandJointVelocitiesEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrHandJointVelocitiesEXT calloc() { - return new XrHandJointVelocitiesEXT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrHandJointVelocitiesEXT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrHandJointVelocitiesEXT} instance allocated with {@link BufferUtils}. */ public static XrHandJointVelocitiesEXT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrHandJointVelocitiesEXT(memAddress(container), container); + return wrap(XrHandJointVelocitiesEXT.class, memAddress(container), container); } /** Returns a new {@code XrHandJointVelocitiesEXT} instance for the specified memory address. */ public static XrHandJointVelocitiesEXT create(long address) { - return new XrHandJointVelocitiesEXT(address, null); + return wrap(XrHandJointVelocitiesEXT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrHandJointVelocitiesEXT createSafe(long address) { - return address == NULL ? null : new XrHandJointVelocitiesEXT(address, null); + return address == NULL ? null : wrap(XrHandJointVelocitiesEXT.class, address); } /** @@ -191,7 +182,7 @@ public static XrHandJointVelocitiesEXT createSafe(long address) { * @param capacity the buffer capacity */ public static XrHandJointVelocitiesEXT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -200,7 +191,7 @@ public static XrHandJointVelocitiesEXT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrHandJointVelocitiesEXT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -210,7 +201,7 @@ public static XrHandJointVelocitiesEXT.Buffer calloc(int capacity) { */ public static XrHandJointVelocitiesEXT.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); } /** @@ -220,13 +211,13 @@ public static XrHandJointVelocitiesEXT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrHandJointVelocitiesEXT.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 XrHandJointVelocitiesEXT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -235,7 +226,7 @@ public static XrHandJointVelocitiesEXT.Buffer createSafe(long address, int capac * @param stack the stack from which to allocate */ public static XrHandJointVelocitiesEXT malloc(MemoryStack stack) { - return new XrHandJointVelocitiesEXT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrHandJointVelocitiesEXT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -244,7 +235,7 @@ public static XrHandJointVelocitiesEXT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrHandJointVelocitiesEXT calloc(MemoryStack stack) { - return new XrHandJointVelocitiesEXT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrHandJointVelocitiesEXT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -254,7 +245,7 @@ public static XrHandJointVelocitiesEXT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHandJointVelocitiesEXT.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); } /** @@ -264,28 +255,28 @@ public static XrHandJointVelocitiesEXT.Buffer malloc(int capacity, MemoryStack s * @param capacity the buffer capacity */ public static XrHandJointVelocitiesEXT.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 + XrHandJointVelocitiesEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandJointVelocitiesEXT.NEXT); } - /** Unsafe version of {@link #jointCount}. */ - public static int njointCount(long struct) { return UNSAFE.getInt(null, struct + XrHandJointVelocitiesEXT.JOINTCOUNT); } - /** Unsafe version of {@link #jointVelocities}. */ - public static XrHandJointVelocityEXT.Buffer njointVelocities(long struct) { return XrHandJointVelocityEXT.create(memGetAddress(struct + XrHandJointVelocitiesEXT.JOINTVELOCITIES), njointCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointVelocitiesEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandJointVelocitiesEXT.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 + XrHandJointVelocitiesEXT.JOINTCOUNT, value); } - /** Unsafe version of {@link #jointVelocities(XrHandJointVelocityEXT.Buffer) jointVelocities}. */ - public static void njointVelocities(long struct, XrHandJointVelocityEXT.Buffer value) { memPutAddress(struct + XrHandJointVelocitiesEXT.JOINTVELOCITIES, value.address()); njointCount(struct, value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandJointVelocitiesEXT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandJointVelocitiesEXT.NEXT); } + /** Unsafe version of {@link #jointCount}. */ + public static int njointCount(long struct) { return UNSAFE.getInt(null, struct + XrHandJointVelocitiesEXT.JOINTCOUNT); } + /** Unsafe version of {@link #jointVelocities}. */ + public static XrHandJointVelocityEXT.Buffer njointVelocities(long struct) { return XrHandJointVelocityEXT.create(memGetAddress(struct + XrHandJointVelocitiesEXT.JOINTVELOCITIES), njointCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointVelocitiesEXT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandJointVelocitiesEXT.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 + XrHandJointVelocitiesEXT.JOINTCOUNT, value); } + /** Unsafe version of {@link #jointVelocities(XrHandJointVelocityEXT.Buffer) jointVelocities}. */ + public static void njointVelocities(long struct, XrHandJointVelocityEXT.Buffer value) { memPutAddress(struct + XrHandJointVelocitiesEXT.JOINTVELOCITIES, value.address()); njointCount(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -294,9 +285,9 @@ public static XrHandJointVelocitiesEXT.Buffer calloc(int capacity, MemoryStack s */ public static void validate(long struct) { check(memGetAddress(struct + XrHandJointVelocitiesEXT.JOINTVELOCITIES)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrHandJointVelocitiesEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -306,9 +297,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 XrHandJointVelocitiesEXT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHandJointVelocitiesEXT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -333,28 +324,28 @@ protected Buffer self() { protected XrHandJointVelocitiesEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandJointVelocitiesEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandJointVelocitiesEXT.ntype(address()); } - /** @return the value of the {@link XrHandJointVelocitiesEXT#next} field. */ - @NativeType("void *") - public long next() { return XrHandJointVelocitiesEXT.nnext(address()); } - /** @return the value of the {@link XrHandJointVelocitiesEXT#jointCount} field. */ - @NativeType("uint32_t") - public int jointCount() { return XrHandJointVelocitiesEXT.njointCount(address()); } - /** @return a {@link XrHandJointVelocityEXT.Buffer} view of the struct array pointed to by the {@link XrHandJointVelocitiesEXT#jointVelocities} field. */ - @NativeType("XrHandJointVelocityEXT *") - public XrHandJointVelocityEXT.Buffer jointVelocities() { return XrHandJointVelocitiesEXT.njointVelocities(address()); } - - /** Sets the specified value to the {@link XrHandJointVelocitiesEXT#type} field. */ - public XrHandJointVelocitiesEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandJointVelocitiesEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINT_VELOCITIES_EXT TYPE_HAND_JOINT_VELOCITIES_EXT} value to the {@link XrHandJointVelocitiesEXT#type} field. */ - public XrHandJointVelocitiesEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINT_VELOCITIES_EXT); } - /** Sets the specified value to the {@link XrHandJointVelocitiesEXT#next} field. */ - public XrHandJointVelocitiesEXT.Buffer next(@NativeType("void *") long value) { XrHandJointVelocitiesEXT.nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrHandJointVelocityEXT.Buffer} to the {@link XrHandJointVelocitiesEXT#jointVelocities} field. */ - public XrHandJointVelocitiesEXT.Buffer jointVelocities(@NativeType("XrHandJointVelocityEXT *") XrHandJointVelocityEXT.Buffer value) { XrHandJointVelocitiesEXT.njointVelocities(address(), value); return this; } + + /** @return the value of the {@link XrHandJointVelocitiesEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandJointVelocitiesEXT.ntype(address()); } + /** @return the value of the {@link XrHandJointVelocitiesEXT#next} field. */ + @NativeType("void *") + public long next() { return XrHandJointVelocitiesEXT.nnext(address()); } + /** @return the value of the {@link XrHandJointVelocitiesEXT#jointCount} field. */ + @NativeType("uint32_t") + public int jointCount() { return XrHandJointVelocitiesEXT.njointCount(address()); } + /** @return a {@link XrHandJointVelocityEXT.Buffer} view of the struct array pointed to by the {@link XrHandJointVelocitiesEXT#jointVelocities} field. */ + @NativeType("XrHandJointVelocityEXT *") + public XrHandJointVelocityEXT.Buffer jointVelocities() { return XrHandJointVelocitiesEXT.njointVelocities(address()); } + + /** Sets the specified value to the {@link XrHandJointVelocitiesEXT#type} field. */ + public XrHandJointVelocitiesEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandJointVelocitiesEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINT_VELOCITIES_EXT TYPE_HAND_JOINT_VELOCITIES_EXT} value to the {@link XrHandJointVelocitiesEXT#type} field. */ + public XrHandJointVelocitiesEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINT_VELOCITIES_EXT); } + /** Sets the specified value to the {@link XrHandJointVelocitiesEXT#next} field. */ + public XrHandJointVelocitiesEXT.Buffer next(@NativeType("void *") long value) { XrHandJointVelocitiesEXT.nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrHandJointVelocityEXT.Buffer} to the {@link XrHandJointVelocitiesEXT#jointVelocities} field. */ + public XrHandJointVelocitiesEXT.Buffer jointVelocities(@NativeType("XrHandJointVelocityEXT *") XrHandJointVelocityEXT.Buffer value) { XrHandJointVelocitiesEXT.njointVelocities(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointVelocityEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointVelocityEXT.java index 74a601532e..b0ebd62d68 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointVelocityEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointVelocityEXT.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 velocity of a hand joint. * @@ -38,8 +38,8 @@ * {@link XrVector3f XrVector3f} {@link #linearVelocity}; * {@link XrVector3f XrVector3f} {@link #angularVelocity}; * } - */ -public class XrHandJointVelocityEXT extends Struct implements NativeResource { + */ +public class XrHandJointVelocityEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,32 +49,23 @@ public class XrHandJointVelocityEXT extends Struct imple /** The struct member offsets. */ public static final int - VELOCITYFLAGS, - LINEARVELOCITY, - ANGULARVELOCITY; + VELOCITYFLAGS, + LINEARVELOCITY, + ANGULARVELOCITY; static { - Layout layout = __struct( - __member(8), - __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF), + Layout layout = __struct( + __member(8), + __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF), __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - VELOCITYFLAGS = layout.offsetof(0); - LINEARVELOCITY = layout.offsetof(1); - ANGULARVELOCITY = layout.offsetof(2); - } - - protected XrHandJointVelocityEXT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrHandJointVelocityEXT create(long address, @Nullable ByteBuffer container) { - return new XrHandJointVelocityEXT(address, container); + VELOCITYFLAGS = layout.offsetof(0); + LINEARVELOCITY = layout.offsetof(1); + ANGULARVELOCITY = layout.offsetof(2); } /** @@ -89,35 +80,35 @@ public XrHandJointVelocityEXT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** a bitfield, with bit masks defined in {@code XrSpaceVelocityFlagBits}, 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("XrSpaceVelocityFlags") - public long velocityFlags() { return nvelocityFlags(address()); } - /** the relative linear velocity of the hand joint with respect to and expressed in the reference frame of the corresponding {@link XrHandJointsLocateInfoEXT}{@code ::baseSpace}, in units of meters per second. */ - public XrVector3f linearVelocity() { return nlinearVelocity(address()); } - /** the relative angular velocity of the hand joint with respect to the corresponding {@link XrHandJointsLocateInfoEXT}{@code ::baseSpace}. The vector’s direction is expressed in the reference frame of the corresponding {@link XrHandJointsLocateInfoEXT}{@code ::baseSpace} and is parallel to the rotational axis of the hand joint. The vector’s magnitude is the relative angular speed of the hand joint in radians per second. The vector follows the right-hand rule for torque/rotation. */ - public XrVector3f angularVelocity() { return nangularVelocity(address()); } - - /** Sets the specified value to the {@link #velocityFlags} field. */ - public XrHandJointVelocityEXT velocityFlags(@NativeType("XrSpaceVelocityFlags") long value) { nvelocityFlags(address(), value); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #linearVelocity} field. */ - public XrHandJointVelocityEXT linearVelocity(XrVector3f value) { nlinearVelocity(address(), value); return this; } - /** Passes the {@link #linearVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandJointVelocityEXT linearVelocity(java.util.function.Consumer consumer) { consumer.accept(linearVelocity()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #angularVelocity} field. */ - public XrHandJointVelocityEXT angularVelocity(XrVector3f value) { nangularVelocity(address(), value); return this; } - /** Passes the {@link #angularVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandJointVelocityEXT angularVelocity(java.util.function.Consumer consumer) { consumer.accept(angularVelocity()); return this; } + + /** a bitfield, with bit masks defined in {@code XrSpaceVelocityFlagBits}, 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("XrSpaceVelocityFlags") + public long velocityFlags() { return nvelocityFlags(address()); } + /** the relative linear velocity of the hand joint with respect to and expressed in the reference frame of the corresponding {@link XrHandJointsLocateInfoEXT}{@code ::baseSpace}, in units of meters per second. */ + public XrVector3f linearVelocity() { return nlinearVelocity(address()); } + /** the relative angular velocity of the hand joint with respect to the corresponding {@link XrHandJointsLocateInfoEXT}{@code ::baseSpace}. The vector’s direction is expressed in the reference frame of the corresponding {@link XrHandJointsLocateInfoEXT}{@code ::baseSpace} and is parallel to the rotational axis of the hand joint. The vector’s magnitude is the relative angular speed of the hand joint in radians per second. The vector follows the right-hand rule for torque/rotation. */ + public XrVector3f angularVelocity() { return nangularVelocity(address()); } + + /** Sets the specified value to the {@link #velocityFlags} field. */ + public XrHandJointVelocityEXT velocityFlags(@NativeType("XrSpaceVelocityFlags") long value) { nvelocityFlags(address(), value); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #linearVelocity} field. */ + public XrHandJointVelocityEXT linearVelocity(XrVector3f value) { nlinearVelocity(address(), value); return this; } + /** Passes the {@link #linearVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandJointVelocityEXT linearVelocity(java.util.function.Consumer consumer) { consumer.accept(linearVelocity()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #angularVelocity} field. */ + public XrHandJointVelocityEXT angularVelocity(XrVector3f value) { nangularVelocity(address(), value); return this; } + /** Passes the {@link #angularVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandJointVelocityEXT angularVelocity(java.util.function.Consumer consumer) { consumer.accept(angularVelocity()); return this; } /** Initializes this struct with the specified values. */ public XrHandJointVelocityEXT set( - long velocityFlags, - XrVector3f linearVelocity, + long velocityFlags, + XrVector3f linearVelocity, XrVector3f angularVelocity - ) { - velocityFlags(velocityFlags); - linearVelocity(linearVelocity); - angularVelocity(angularVelocity); + ) { + velocityFlags(velocityFlags); + linearVelocity(linearVelocity); + angularVelocity(angularVelocity); return this; } @@ -138,29 +129,29 @@ public XrHandJointVelocityEXT set(XrHandJointVelocityEXT src) { /** Returns a new {@code XrHandJointVelocityEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrHandJointVelocityEXT malloc() { - return new XrHandJointVelocityEXT(nmemAllocChecked(SIZEOF), null); + return wrap(XrHandJointVelocityEXT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrHandJointVelocityEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrHandJointVelocityEXT calloc() { - return new XrHandJointVelocityEXT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrHandJointVelocityEXT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrHandJointVelocityEXT} instance allocated with {@link BufferUtils}. */ public static XrHandJointVelocityEXT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrHandJointVelocityEXT(memAddress(container), container); + return wrap(XrHandJointVelocityEXT.class, memAddress(container), container); } /** Returns a new {@code XrHandJointVelocityEXT} instance for the specified memory address. */ public static XrHandJointVelocityEXT create(long address) { - return new XrHandJointVelocityEXT(address, null); + return wrap(XrHandJointVelocityEXT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrHandJointVelocityEXT createSafe(long address) { - return address == NULL ? null : new XrHandJointVelocityEXT(address, null); + return address == NULL ? null : wrap(XrHandJointVelocityEXT.class, address); } /** @@ -169,7 +160,7 @@ public static XrHandJointVelocityEXT createSafe(long address) { * @param capacity the buffer capacity */ public static XrHandJointVelocityEXT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -178,7 +169,7 @@ public static XrHandJointVelocityEXT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrHandJointVelocityEXT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -188,7 +179,7 @@ public static XrHandJointVelocityEXT.Buffer calloc(int capacity) { */ public static XrHandJointVelocityEXT.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); } /** @@ -198,13 +189,13 @@ public static XrHandJointVelocityEXT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrHandJointVelocityEXT.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 XrHandJointVelocityEXT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -213,7 +204,7 @@ public static XrHandJointVelocityEXT.Buffer createSafe(long address, int capacit * @param stack the stack from which to allocate */ public static XrHandJointVelocityEXT malloc(MemoryStack stack) { - return new XrHandJointVelocityEXT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrHandJointVelocityEXT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -222,7 +213,7 @@ public static XrHandJointVelocityEXT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrHandJointVelocityEXT calloc(MemoryStack stack) { - return new XrHandJointVelocityEXT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrHandJointVelocityEXT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -232,7 +223,7 @@ public static XrHandJointVelocityEXT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHandJointVelocityEXT.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); } /** @@ -242,26 +233,26 @@ public static XrHandJointVelocityEXT.Buffer malloc(int capacity, MemoryStack sta * @param capacity the buffer capacity */ public static XrHandJointVelocityEXT.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 #velocityFlags}. */ - public static long nvelocityFlags(long struct) { return UNSAFE.getLong(null, struct + XrHandJointVelocityEXT.VELOCITYFLAGS); } - /** Unsafe version of {@link #linearVelocity}. */ - public static XrVector3f nlinearVelocity(long struct) { return XrVector3f.create(struct + XrHandJointVelocityEXT.LINEARVELOCITY); } - /** Unsafe version of {@link #angularVelocity}. */ - public static XrVector3f nangularVelocity(long struct) { return XrVector3f.create(struct + XrHandJointVelocityEXT.ANGULARVELOCITY); } - - /** Unsafe version of {@link #velocityFlags(long) velocityFlags}. */ - public static void nvelocityFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrHandJointVelocityEXT.VELOCITYFLAGS, value); } - /** Unsafe version of {@link #linearVelocity(XrVector3f) linearVelocity}. */ - public static void nlinearVelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrHandJointVelocityEXT.LINEARVELOCITY, XrVector3f.SIZEOF); } - /** Unsafe version of {@link #angularVelocity(XrVector3f) angularVelocity}. */ - public static void nangularVelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrHandJointVelocityEXT.ANGULARVELOCITY, XrVector3f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #velocityFlags}. */ + public static long nvelocityFlags(long struct) { return UNSAFE.getLong(null, struct + XrHandJointVelocityEXT.VELOCITYFLAGS); } + /** Unsafe version of {@link #linearVelocity}. */ + public static XrVector3f nlinearVelocity(long struct) { return XrVector3f.create(struct + XrHandJointVelocityEXT.LINEARVELOCITY); } + /** Unsafe version of {@link #angularVelocity}. */ + public static XrVector3f nangularVelocity(long struct) { return XrVector3f.create(struct + XrHandJointVelocityEXT.ANGULARVELOCITY); } + + /** Unsafe version of {@link #velocityFlags(long) velocityFlags}. */ + public static void nvelocityFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrHandJointVelocityEXT.VELOCITYFLAGS, value); } + /** Unsafe version of {@link #linearVelocity(XrVector3f) linearVelocity}. */ + public static void nlinearVelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrHandJointVelocityEXT.LINEARVELOCITY, XrVector3f.SIZEOF); } + /** Unsafe version of {@link #angularVelocity(XrVector3f) angularVelocity}. */ + public static void nangularVelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrHandJointVelocityEXT.ANGULARVELOCITY, XrVector3f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrHandJointVelocityEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -271,9 +262,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrHandJointVelocityEXT.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 XrHandJointVelocityEXT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHandJointVelocityEXT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -298,25 +289,25 @@ protected Buffer self() { protected XrHandJointVelocityEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandJointVelocityEXT#velocityFlags} field. */ - @NativeType("XrSpaceVelocityFlags") - public long velocityFlags() { return XrHandJointVelocityEXT.nvelocityFlags(address()); } - /** @return a {@link XrVector3f} view of the {@link XrHandJointVelocityEXT#linearVelocity} field. */ - public XrVector3f linearVelocity() { return XrHandJointVelocityEXT.nlinearVelocity(address()); } - /** @return a {@link XrVector3f} view of the {@link XrHandJointVelocityEXT#angularVelocity} field. */ - public XrVector3f angularVelocity() { return XrHandJointVelocityEXT.nangularVelocity(address()); } - - /** Sets the specified value to the {@link XrHandJointVelocityEXT#velocityFlags} field. */ - public XrHandJointVelocityEXT.Buffer velocityFlags(@NativeType("XrSpaceVelocityFlags") long value) { XrHandJointVelocityEXT.nvelocityFlags(address(), value); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrHandJointVelocityEXT#linearVelocity} field. */ - public XrHandJointVelocityEXT.Buffer linearVelocity(XrVector3f value) { XrHandJointVelocityEXT.nlinearVelocity(address(), value); return this; } - /** Passes the {@link XrHandJointVelocityEXT#linearVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandJointVelocityEXT.Buffer linearVelocity(java.util.function.Consumer consumer) { consumer.accept(linearVelocity()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrHandJointVelocityEXT#angularVelocity} field. */ - public XrHandJointVelocityEXT.Buffer angularVelocity(XrVector3f value) { XrHandJointVelocityEXT.nangularVelocity(address(), value); return this; } - /** Passes the {@link XrHandJointVelocityEXT#angularVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandJointVelocityEXT.Buffer angularVelocity(java.util.function.Consumer consumer) { consumer.accept(angularVelocity()); return this; } + + /** @return the value of the {@link XrHandJointVelocityEXT#velocityFlags} field. */ + @NativeType("XrSpaceVelocityFlags") + public long velocityFlags() { return XrHandJointVelocityEXT.nvelocityFlags(address()); } + /** @return a {@link XrVector3f} view of the {@link XrHandJointVelocityEXT#linearVelocity} field. */ + public XrVector3f linearVelocity() { return XrHandJointVelocityEXT.nlinearVelocity(address()); } + /** @return a {@link XrVector3f} view of the {@link XrHandJointVelocityEXT#angularVelocity} field. */ + public XrVector3f angularVelocity() { return XrHandJointVelocityEXT.nangularVelocity(address()); } + + /** Sets the specified value to the {@link XrHandJointVelocityEXT#velocityFlags} field. */ + public XrHandJointVelocityEXT.Buffer velocityFlags(@NativeType("XrSpaceVelocityFlags") long value) { XrHandJointVelocityEXT.nvelocityFlags(address(), value); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrHandJointVelocityEXT#linearVelocity} field. */ + public XrHandJointVelocityEXT.Buffer linearVelocity(XrVector3f value) { XrHandJointVelocityEXT.nlinearVelocity(address(), value); return this; } + /** Passes the {@link XrHandJointVelocityEXT#linearVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandJointVelocityEXT.Buffer linearVelocity(java.util.function.Consumer consumer) { consumer.accept(linearVelocity()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrHandJointVelocityEXT#angularVelocity} field. */ + public XrHandJointVelocityEXT.Buffer angularVelocity(XrVector3f value) { XrHandJointVelocityEXT.nangularVelocity(address(), value); return this; } + /** Passes the {@link XrHandJointVelocityEXT#angularVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandJointVelocityEXT.Buffer angularVelocity(java.util.function.Consumer consumer) { consumer.accept(angularVelocity()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointsLocateInfoEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointsLocateInfoEXT.java index bf8a585712..8940c6ba26 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointsLocateInfoEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointsLocateInfoEXT.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 hand joints. * @@ -41,8 +41,8 @@ * XrSpace {@link #baseSpace}; * XrTime {@link #time}; * } - */ -public class XrHandJointsLocateInfoEXT extends Struct implements NativeResource { + */ +public class XrHandJointsLocateInfoEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,35 +52,26 @@ public class XrHandJointsLocateInfoEXT extends Struct /** 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 XrHandJointsLocateInfoEXT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrHandJointsLocateInfoEXT create(long address, @Nullable ByteBuffer container) { - return new XrHandJointsLocateInfoEXT(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + BASESPACE = layout.offsetof(2); + TIME = layout.offsetof(3); } /** @@ -95,44 +86,44 @@ public XrHandJointsLocateInfoEXT(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 hand joint locations will be represented. */ - @NativeType("XrSpace") - public long baseSpace() { return nbaseSpace(address()); } - /** an {@code XrTime} at which to locate the hand joints. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHandJointsLocateInfoEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT TYPE_HAND_JOINTS_LOCATE_INFO_EXT} value to the {@link #type} field. */ - public XrHandJointsLocateInfoEXT type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrHandJointsLocateInfoEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrHandJointsMotionRangeInfoEXT} value to the {@code next} chain. */ - public XrHandJointsLocateInfoEXT next(XrHandJointsMotionRangeInfoEXT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #baseSpace} field. */ - public XrHandJointsLocateInfoEXT baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrHandJointsLocateInfoEXT 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 hand joint locations will be represented. */ + @NativeType("XrSpace") + public long baseSpace() { return nbaseSpace(address()); } + /** an {@code XrTime} at which to locate the hand joints. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandJointsLocateInfoEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT TYPE_HAND_JOINTS_LOCATE_INFO_EXT} value to the {@link #type} field. */ + public XrHandJointsLocateInfoEXT type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandJointsLocateInfoEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrHandJointsMotionRangeInfoEXT} value to the {@code next} chain. */ + public XrHandJointsLocateInfoEXT next(XrHandJointsMotionRangeInfoEXT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #baseSpace} field. */ + public XrHandJointsLocateInfoEXT baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrHandJointsLocateInfoEXT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandJointsLocateInfoEXT 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; } @@ -153,29 +144,29 @@ public XrHandJointsLocateInfoEXT set(XrHandJointsLocateInfoEXT src) { /** Returns a new {@code XrHandJointsLocateInfoEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrHandJointsLocateInfoEXT malloc() { - return new XrHandJointsLocateInfoEXT(nmemAllocChecked(SIZEOF), null); + return wrap(XrHandJointsLocateInfoEXT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrHandJointsLocateInfoEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrHandJointsLocateInfoEXT calloc() { - return new XrHandJointsLocateInfoEXT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrHandJointsLocateInfoEXT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrHandJointsLocateInfoEXT} instance allocated with {@link BufferUtils}. */ public static XrHandJointsLocateInfoEXT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrHandJointsLocateInfoEXT(memAddress(container), container); + return wrap(XrHandJointsLocateInfoEXT.class, memAddress(container), container); } /** Returns a new {@code XrHandJointsLocateInfoEXT} instance for the specified memory address. */ public static XrHandJointsLocateInfoEXT create(long address) { - return new XrHandJointsLocateInfoEXT(address, null); + return wrap(XrHandJointsLocateInfoEXT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrHandJointsLocateInfoEXT createSafe(long address) { - return address == NULL ? null : new XrHandJointsLocateInfoEXT(address, null); + return address == NULL ? null : wrap(XrHandJointsLocateInfoEXT.class, address); } /** @@ -184,7 +175,7 @@ public static XrHandJointsLocateInfoEXT createSafe(long address) { * @param capacity the buffer capacity */ public static XrHandJointsLocateInfoEXT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -193,7 +184,7 @@ public static XrHandJointsLocateInfoEXT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrHandJointsLocateInfoEXT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -203,7 +194,7 @@ public static XrHandJointsLocateInfoEXT.Buffer calloc(int capacity) { */ public static XrHandJointsLocateInfoEXT.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); } /** @@ -213,13 +204,13 @@ public static XrHandJointsLocateInfoEXT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrHandJointsLocateInfoEXT.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 XrHandJointsLocateInfoEXT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -228,7 +219,7 @@ public static XrHandJointsLocateInfoEXT.Buffer createSafe(long address, int capa * @param stack the stack from which to allocate */ public static XrHandJointsLocateInfoEXT malloc(MemoryStack stack) { - return new XrHandJointsLocateInfoEXT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrHandJointsLocateInfoEXT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -237,7 +228,7 @@ public static XrHandJointsLocateInfoEXT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrHandJointsLocateInfoEXT calloc(MemoryStack stack) { - return new XrHandJointsLocateInfoEXT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrHandJointsLocateInfoEXT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -247,7 +238,7 @@ public static XrHandJointsLocateInfoEXT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHandJointsLocateInfoEXT.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); } /** @@ -257,28 +248,28 @@ public static XrHandJointsLocateInfoEXT.Buffer malloc(int capacity, MemoryStack * @param capacity the buffer capacity */ public static XrHandJointsLocateInfoEXT.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 + XrHandJointsLocateInfoEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandJointsLocateInfoEXT.NEXT); } - /** Unsafe version of {@link #baseSpace}. */ - public static long nbaseSpace(long struct) { return memGetAddress(struct + XrHandJointsLocateInfoEXT.BASESPACE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrHandJointsLocateInfoEXT.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointsLocateInfoEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandJointsLocateInfoEXT.NEXT, value); } - /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ - public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrHandJointsLocateInfoEXT.BASESPACE, value.address()); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrHandJointsLocateInfoEXT.TIME, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandJointsLocateInfoEXT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandJointsLocateInfoEXT.NEXT); } + /** Unsafe version of {@link #baseSpace}. */ + public static long nbaseSpace(long struct) { return memGetAddress(struct + XrHandJointsLocateInfoEXT.BASESPACE); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrHandJointsLocateInfoEXT.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointsLocateInfoEXT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandJointsLocateInfoEXT.NEXT, value); } + /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ + public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrHandJointsLocateInfoEXT.BASESPACE, value.address()); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrHandJointsLocateInfoEXT.TIME, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -287,9 +278,9 @@ public static XrHandJointsLocateInfoEXT.Buffer calloc(int capacity, MemoryStack */ public static void validate(long struct) { check(memGetAddress(struct + XrHandJointsLocateInfoEXT.BASESPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrHandJointsLocateInfoEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -299,9 +290,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 XrHandJointsLocateInfoEXT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHandJointsLocateInfoEXT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -326,32 +317,32 @@ protected Buffer self() { protected XrHandJointsLocateInfoEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandJointsLocateInfoEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandJointsLocateInfoEXT.ntype(address()); } - /** @return the value of the {@link XrHandJointsLocateInfoEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrHandJointsLocateInfoEXT.nnext(address()); } - /** @return the value of the {@link XrHandJointsLocateInfoEXT#baseSpace} field. */ - @NativeType("XrSpace") - public long baseSpace() { return XrHandJointsLocateInfoEXT.nbaseSpace(address()); } - /** @return the value of the {@link XrHandJointsLocateInfoEXT#time} field. */ - @NativeType("XrTime") - public long time() { return XrHandJointsLocateInfoEXT.ntime(address()); } - - /** Sets the specified value to the {@link XrHandJointsLocateInfoEXT#type} field. */ - public XrHandJointsLocateInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandJointsLocateInfoEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT TYPE_HAND_JOINTS_LOCATE_INFO_EXT} value to the {@link XrHandJointsLocateInfoEXT#type} field. */ - public XrHandJointsLocateInfoEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT); } - /** Sets the specified value to the {@link XrHandJointsLocateInfoEXT#next} field. */ - public XrHandJointsLocateInfoEXT.Buffer next(@NativeType("void const *") long value) { XrHandJointsLocateInfoEXT.nnext(address(), value); return this; } - /** Prepends the specified {@link XrHandJointsMotionRangeInfoEXT} value to the {@code next} chain. */ - public XrHandJointsLocateInfoEXT.Buffer next(XrHandJointsMotionRangeInfoEXT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrHandJointsLocateInfoEXT#baseSpace} field. */ - public XrHandJointsLocateInfoEXT.Buffer baseSpace(XrSpace value) { XrHandJointsLocateInfoEXT.nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link XrHandJointsLocateInfoEXT#time} field. */ - public XrHandJointsLocateInfoEXT.Buffer time(@NativeType("XrTime") long value) { XrHandJointsLocateInfoEXT.ntime(address(), value); return this; } + + /** @return the value of the {@link XrHandJointsLocateInfoEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandJointsLocateInfoEXT.ntype(address()); } + /** @return the value of the {@link XrHandJointsLocateInfoEXT#next} field. */ + @NativeType("void const *") + public long next() { return XrHandJointsLocateInfoEXT.nnext(address()); } + /** @return the value of the {@link XrHandJointsLocateInfoEXT#baseSpace} field. */ + @NativeType("XrSpace") + public long baseSpace() { return XrHandJointsLocateInfoEXT.nbaseSpace(address()); } + /** @return the value of the {@link XrHandJointsLocateInfoEXT#time} field. */ + @NativeType("XrTime") + public long time() { return XrHandJointsLocateInfoEXT.ntime(address()); } + + /** Sets the specified value to the {@link XrHandJointsLocateInfoEXT#type} field. */ + public XrHandJointsLocateInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandJointsLocateInfoEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT TYPE_HAND_JOINTS_LOCATE_INFO_EXT} value to the {@link XrHandJointsLocateInfoEXT#type} field. */ + public XrHandJointsLocateInfoEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT); } + /** Sets the specified value to the {@link XrHandJointsLocateInfoEXT#next} field. */ + public XrHandJointsLocateInfoEXT.Buffer next(@NativeType("void const *") long value) { XrHandJointsLocateInfoEXT.nnext(address(), value); return this; } + /** Prepends the specified {@link XrHandJointsMotionRangeInfoEXT} value to the {@code next} chain. */ + public XrHandJointsLocateInfoEXT.Buffer next(XrHandJointsMotionRangeInfoEXT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrHandJointsLocateInfoEXT#baseSpace} field. */ + public XrHandJointsLocateInfoEXT.Buffer baseSpace(XrSpace value) { XrHandJointsLocateInfoEXT.nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@link XrHandJointsLocateInfoEXT#time} field. */ + public XrHandJointsLocateInfoEXT.Buffer time(@NativeType("XrTime") long value) { XrHandJointsLocateInfoEXT.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointsMotionRangeInfoEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointsMotionRangeInfoEXT.java index 8aeca01a47..7d057c5da0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointsMotionRangeInfoEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointsMotionRangeInfoEXT.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.*; + /** * Chains to XrHandJointsLocateInfoEXT to specify final hand tracking grip pose. * @@ -39,8 +39,8 @@ * void const * {@link #next}; * XrHandJointsMotionRangeEXT {@link #handJointsMotionRange}; * } - */ -public class XrHandJointsMotionRangeInfoEXT extends Struct implements NativeResource { + */ +public class XrHandJointsMotionRangeInfoEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,32 +50,23 @@ public class XrHandJointsMotionRangeInfoEXT extends Struct 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 XrHandJointsMotionRangeInfoEXT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHandJointsMotionRangeInfoEXT#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 XrHandJointsMotionRangeInfoEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandJointsMotionRangeInfoEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandJointsMotionRangeInfoEXT.ntype(address()); } - /** @return the value of the {@link XrHandJointsMotionRangeInfoEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrHandJointsMotionRangeInfoEXT.nnext(address()); } - /** @return the value of the {@link XrHandJointsMotionRangeInfoEXT#handJointsMotionRange} field. */ - @NativeType("XrHandJointsMotionRangeEXT") - public int handJointsMotionRange() { return XrHandJointsMotionRangeInfoEXT.nhandJointsMotionRange(address()); } - - /** Sets the specified value to the {@link XrHandJointsMotionRangeInfoEXT#type} field. */ - public XrHandJointsMotionRangeInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandJointsMotionRangeInfoEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTHandJointsMotionRange#XR_TYPE_HAND_JOINTS_MOTION_RANGE_INFO_EXT TYPE_HAND_JOINTS_MOTION_RANGE_INFO_EXT} value to the {@link XrHandJointsMotionRangeInfoEXT#type} field. */ - public XrHandJointsMotionRangeInfoEXT.Buffer type$Default() { return type(EXTHandJointsMotionRange.XR_TYPE_HAND_JOINTS_MOTION_RANGE_INFO_EXT); } - /** Sets the specified value to the {@link XrHandJointsMotionRangeInfoEXT#next} field. */ - public XrHandJointsMotionRangeInfoEXT.Buffer next(@NativeType("void const *") long value) { XrHandJointsMotionRangeInfoEXT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrHandJointsMotionRangeInfoEXT#handJointsMotionRange} field. */ - public XrHandJointsMotionRangeInfoEXT.Buffer handJointsMotionRange(@NativeType("XrHandJointsMotionRangeEXT") int value) { XrHandJointsMotionRangeInfoEXT.nhandJointsMotionRange(address(), value); return this; } + + /** @return the value of the {@link XrHandJointsMotionRangeInfoEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandJointsMotionRangeInfoEXT.ntype(address()); } + /** @return the value of the {@link XrHandJointsMotionRangeInfoEXT#next} field. */ + @NativeType("void const *") + public long next() { return XrHandJointsMotionRangeInfoEXT.nnext(address()); } + /** @return the value of the {@link XrHandJointsMotionRangeInfoEXT#handJointsMotionRange} field. */ + @NativeType("XrHandJointsMotionRangeEXT") + public int handJointsMotionRange() { return XrHandJointsMotionRangeInfoEXT.nhandJointsMotionRange(address()); } + + /** Sets the specified value to the {@link XrHandJointsMotionRangeInfoEXT#type} field. */ + public XrHandJointsMotionRangeInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandJointsMotionRangeInfoEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTHandJointsMotionRange#XR_TYPE_HAND_JOINTS_MOTION_RANGE_INFO_EXT TYPE_HAND_JOINTS_MOTION_RANGE_INFO_EXT} value to the {@link XrHandJointsMotionRangeInfoEXT#type} field. */ + public XrHandJointsMotionRangeInfoEXT.Buffer type$Default() { return type(EXTHandJointsMotionRange.XR_TYPE_HAND_JOINTS_MOTION_RANGE_INFO_EXT); } + /** Sets the specified value to the {@link XrHandJointsMotionRangeInfoEXT#next} field. */ + public XrHandJointsMotionRangeInfoEXT.Buffer next(@NativeType("void const *") long value) { XrHandJointsMotionRangeInfoEXT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrHandJointsMotionRangeInfoEXT#handJointsMotionRange} field. */ + public XrHandJointsMotionRangeInfoEXT.Buffer handJointsMotionRange(@NativeType("XrHandJointsMotionRangeEXT") int value) { XrHandJointsMotionRangeInfoEXT.nhandJointsMotionRange(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshIndexBufferMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshIndexBufferMSFT.java index ee954fd779..62eb83f24a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshIndexBufferMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshIndexBufferMSFT.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.*; + /** * The index buffer of a hand mesh. * @@ -58,8 +58,8 @@ * uint32_t {@link #indexCountOutput}; * uint32_t * {@link #indices}; * } - */ -public class XrHandMeshIndexBufferMSFT extends Struct implements NativeResource { + */ +public class XrHandMeshIndexBufferMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -69,35 +69,26 @@ public class XrHandMeshIndexBufferMSFT extends Struct /** The struct member offsets. */ public static final int - INDEXBUFFERKEY, - INDEXCAPACITYINPUT, - INDEXCOUNTOUTPUT, - INDICES; + INDEXBUFFERKEY, + INDEXCAPACITYINPUT, + INDEXCOUNTOUTPUT, + INDICES; static { - Layout layout = __struct( - __member(4), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - INDEXBUFFERKEY = layout.offsetof(0); - INDEXCAPACITYINPUT = layout.offsetof(1); - INDEXCOUNTOUTPUT = layout.offsetof(2); - INDICES = layout.offsetof(3); - } - - protected XrHandMeshIndexBufferMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrHandMeshIndexBufferMSFT create(long address, @Nullable ByteBuffer container) { - return new XrHandMeshIndexBufferMSFT(address, container); + INDEXBUFFERKEY = layout.offsetof(0); + INDEXCAPACITYINPUT = layout.offsetof(1); + INDEXCOUNTOUTPUT = layout.offsetof(2); + INDICES = layout.offsetof(3); } /** @@ -112,36 +103,36 @@ public XrHandMeshIndexBufferMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** a {@code uint32_t} serving as the key of the returned index buffer content or 0 to indicate a request to retrieve the latest indices regardless of existing content in {@code indices}. */ - @NativeType("uint32_t") - public int indexBufferKey() { return nindexBufferKey(address()); } - /** a positive {@code uint32_t} describes the capacity of the {@code indices} array. */ - @NativeType("uint32_t") - public int indexCapacityInput() { return nindexCapacityInput(address()); } - /** a {@code uint32_t} returned by the runtime with the count of indices written in {@code indices}. */ - @NativeType("uint32_t") - public int indexCountOutput() { return nindexCountOutput(address()); } - /** an array of indices filled in by the runtime, specifying the indices of the triangles list in the vertex buffer. */ - @NativeType("uint32_t *") - public IntBuffer indices() { return nindices(address()); } - - /** Sets the specified value to the {@link #indexBufferKey} field. */ - public XrHandMeshIndexBufferMSFT indexBufferKey(@NativeType("uint32_t") int value) { nindexBufferKey(address(), value); return this; } - /** Sets the specified value to the {@link #indexCountOutput} field. */ - public XrHandMeshIndexBufferMSFT indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link #indices} field. */ - public XrHandMeshIndexBufferMSFT indices(@NativeType("uint32_t *") IntBuffer value) { nindices(address(), value); return this; } + + /** a {@code uint32_t} serving as the key of the returned index buffer content or 0 to indicate a request to retrieve the latest indices regardless of existing content in {@code indices}. */ + @NativeType("uint32_t") + public int indexBufferKey() { return nindexBufferKey(address()); } + /** a positive {@code uint32_t} describes the capacity of the {@code indices} array. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return nindexCapacityInput(address()); } + /** a {@code uint32_t} returned by the runtime with the count of indices written in {@code indices}. */ + @NativeType("uint32_t") + public int indexCountOutput() { return nindexCountOutput(address()); } + /** an array of indices filled in by the runtime, specifying the indices of the triangles list in the vertex buffer. */ + @NativeType("uint32_t *") + public IntBuffer indices() { return nindices(address()); } + + /** Sets the specified value to the {@link #indexBufferKey} field. */ + public XrHandMeshIndexBufferMSFT indexBufferKey(@NativeType("uint32_t") int value) { nindexBufferKey(address(), value); return this; } + /** Sets the specified value to the {@link #indexCountOutput} field. */ + public XrHandMeshIndexBufferMSFT indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link #indices} field. */ + public XrHandMeshIndexBufferMSFT indices(@NativeType("uint32_t *") IntBuffer value) { nindices(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandMeshIndexBufferMSFT set( - int indexBufferKey, - int indexCountOutput, + int indexBufferKey, + int indexCountOutput, IntBuffer indices - ) { - indexBufferKey(indexBufferKey); - indexCountOutput(indexCountOutput); - indices(indices); + ) { + indexBufferKey(indexBufferKey); + indexCountOutput(indexCountOutput); + indices(indices); return this; } @@ -162,29 +153,29 @@ public XrHandMeshIndexBufferMSFT set(XrHandMeshIndexBufferMSFT src) { /** Returns a new {@code XrHandMeshIndexBufferMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrHandMeshIndexBufferMSFT malloc() { - return new XrHandMeshIndexBufferMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrHandMeshIndexBufferMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrHandMeshIndexBufferMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrHandMeshIndexBufferMSFT calloc() { - return new XrHandMeshIndexBufferMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrHandMeshIndexBufferMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrHandMeshIndexBufferMSFT} instance allocated with {@link BufferUtils}. */ public static XrHandMeshIndexBufferMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrHandMeshIndexBufferMSFT(memAddress(container), container); + return wrap(XrHandMeshIndexBufferMSFT.class, memAddress(container), container); } /** Returns a new {@code XrHandMeshIndexBufferMSFT} instance for the specified memory address. */ public static XrHandMeshIndexBufferMSFT create(long address) { - return new XrHandMeshIndexBufferMSFT(address, null); + return wrap(XrHandMeshIndexBufferMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrHandMeshIndexBufferMSFT createSafe(long address) { - return address == NULL ? null : new XrHandMeshIndexBufferMSFT(address, null); + return address == NULL ? null : wrap(XrHandMeshIndexBufferMSFT.class, address); } /** @@ -193,7 +184,7 @@ public static XrHandMeshIndexBufferMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrHandMeshIndexBufferMSFT.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 XrHandMeshIndexBufferMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrHandMeshIndexBufferMSFT.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 XrHandMeshIndexBufferMSFT.Buffer calloc(int capacity) { */ public static XrHandMeshIndexBufferMSFT.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 XrHandMeshIndexBufferMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrHandMeshIndexBufferMSFT.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 XrHandMeshIndexBufferMSFT.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 XrHandMeshIndexBufferMSFT.Buffer createSafe(long address, int capa * @param stack the stack from which to allocate */ public static XrHandMeshIndexBufferMSFT malloc(MemoryStack stack) { - return new XrHandMeshIndexBufferMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrHandMeshIndexBufferMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -246,7 +237,7 @@ public static XrHandMeshIndexBufferMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrHandMeshIndexBufferMSFT calloc(MemoryStack stack) { - return new XrHandMeshIndexBufferMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrHandMeshIndexBufferMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -256,7 +247,7 @@ public static XrHandMeshIndexBufferMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHandMeshIndexBufferMSFT.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,28 +257,28 @@ public static XrHandMeshIndexBufferMSFT.Buffer malloc(int capacity, MemoryStack * @param capacity the buffer capacity */ public static XrHandMeshIndexBufferMSFT.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 #indexBufferKey}. */ - public static int nindexBufferKey(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXBUFFERKEY); } - /** Unsafe version of {@link #indexCapacityInput}. */ - public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXCAPACITYINPUT); } - /** Unsafe version of {@link #indexCountOutput}. */ - public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXCOUNTOUTPUT); } - /** Unsafe version of {@link #indices() indices}. */ - public static IntBuffer nindices(long struct) { return memIntBuffer(memGetAddress(struct + XrHandMeshIndexBufferMSFT.INDICES), nindexCapacityInput(struct)); } - - /** Unsafe version of {@link #indexBufferKey(int) indexBufferKey}. */ - public static void nindexBufferKey(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXBUFFERKEY, value); } - /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ - public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXCAPACITYINPUT, value); } - /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ - public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXCOUNTOUTPUT, value); } - /** Unsafe version of {@link #indices(IntBuffer) indices}. */ - public static void nindices(long struct, IntBuffer value) { memPutAddress(struct + XrHandMeshIndexBufferMSFT.INDICES, memAddress(value)); nindexCapacityInput(struct, value.remaining()); } + + /** Unsafe version of {@link #indexBufferKey}. */ + public static int nindexBufferKey(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXBUFFERKEY); } + /** Unsafe version of {@link #indexCapacityInput}. */ + public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXCAPACITYINPUT); } + /** Unsafe version of {@link #indexCountOutput}. */ + public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXCOUNTOUTPUT); } + /** Unsafe version of {@link #indices() indices}. */ + public static IntBuffer nindices(long struct) { return memIntBuffer(memGetAddress(struct + XrHandMeshIndexBufferMSFT.INDICES), nindexCapacityInput(struct)); } + + /** Unsafe version of {@link #indexBufferKey(int) indexBufferKey}. */ + public static void nindexBufferKey(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXBUFFERKEY, value); } + /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ + public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXCAPACITYINPUT, value); } + /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ + public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXCOUNTOUTPUT, value); } + /** Unsafe version of {@link #indices(IntBuffer) indices}. */ + public static void nindices(long struct, IntBuffer value) { memPutAddress(struct + XrHandMeshIndexBufferMSFT.INDICES, memAddress(value)); nindexCapacityInput(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -296,9 +287,9 @@ public static XrHandMeshIndexBufferMSFT.Buffer calloc(int capacity, MemoryStack */ public static void validate(long struct) { check(memGetAddress(struct + XrHandMeshIndexBufferMSFT.INDICES)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrHandMeshIndexBufferMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -308,9 +299,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 XrHandMeshIndexBufferMSFT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHandMeshIndexBufferMSFT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -335,26 +326,26 @@ protected Buffer self() { protected XrHandMeshIndexBufferMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandMeshIndexBufferMSFT#indexBufferKey} field. */ - @NativeType("uint32_t") - public int indexBufferKey() { return XrHandMeshIndexBufferMSFT.nindexBufferKey(address()); } - /** @return the value of the {@link XrHandMeshIndexBufferMSFT#indexCapacityInput} field. */ - @NativeType("uint32_t") - public int indexCapacityInput() { return XrHandMeshIndexBufferMSFT.nindexCapacityInput(address()); } - /** @return the value of the {@link XrHandMeshIndexBufferMSFT#indexCountOutput} field. */ - @NativeType("uint32_t") - public int indexCountOutput() { return XrHandMeshIndexBufferMSFT.nindexCountOutput(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrHandMeshIndexBufferMSFT#indices} field. */ - @NativeType("uint32_t *") - public IntBuffer indices() { return XrHandMeshIndexBufferMSFT.nindices(address()); } - - /** Sets the specified value to the {@link XrHandMeshIndexBufferMSFT#indexBufferKey} field. */ - public XrHandMeshIndexBufferMSFT.Buffer indexBufferKey(@NativeType("uint32_t") int value) { XrHandMeshIndexBufferMSFT.nindexBufferKey(address(), value); return this; } - /** Sets the specified value to the {@link XrHandMeshIndexBufferMSFT#indexCountOutput} field. */ - public XrHandMeshIndexBufferMSFT.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrHandMeshIndexBufferMSFT.nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrHandMeshIndexBufferMSFT#indices} field. */ - public XrHandMeshIndexBufferMSFT.Buffer indices(@NativeType("uint32_t *") IntBuffer value) { XrHandMeshIndexBufferMSFT.nindices(address(), value); return this; } + + /** @return the value of the {@link XrHandMeshIndexBufferMSFT#indexBufferKey} field. */ + @NativeType("uint32_t") + public int indexBufferKey() { return XrHandMeshIndexBufferMSFT.nindexBufferKey(address()); } + /** @return the value of the {@link XrHandMeshIndexBufferMSFT#indexCapacityInput} field. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return XrHandMeshIndexBufferMSFT.nindexCapacityInput(address()); } + /** @return the value of the {@link XrHandMeshIndexBufferMSFT#indexCountOutput} field. */ + @NativeType("uint32_t") + public int indexCountOutput() { return XrHandMeshIndexBufferMSFT.nindexCountOutput(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrHandMeshIndexBufferMSFT#indices} field. */ + @NativeType("uint32_t *") + public IntBuffer indices() { return XrHandMeshIndexBufferMSFT.nindices(address()); } + + /** Sets the specified value to the {@link XrHandMeshIndexBufferMSFT#indexBufferKey} field. */ + public XrHandMeshIndexBufferMSFT.Buffer indexBufferKey(@NativeType("uint32_t") int value) { XrHandMeshIndexBufferMSFT.nindexBufferKey(address(), value); return this; } + /** Sets the specified value to the {@link XrHandMeshIndexBufferMSFT#indexCountOutput} field. */ + public XrHandMeshIndexBufferMSFT.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrHandMeshIndexBufferMSFT.nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrHandMeshIndexBufferMSFT#indices} field. */ + public XrHandMeshIndexBufferMSFT.Buffer indices(@NativeType("uint32_t *") IntBuffer value) { XrHandMeshIndexBufferMSFT.nindices(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshMSFT.java index 8fed1048cb..80b6965c51 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshMSFT.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 data of a hand mesh. * @@ -52,8 +52,8 @@ * {@link XrHandMeshIndexBufferMSFT XrHandMeshIndexBufferMSFT} {@link #indexBuffer}; * {@link XrHandMeshVertexBufferMSFT XrHandMeshVertexBufferMSFT} {@link #vertexBuffer}; * } - */ -public class XrHandMeshMSFT extends Struct implements NativeResource { + */ +public class XrHandMeshMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -63,44 +63,35 @@ public class XrHandMeshMSFT extends Struct implements NativeReso /** The struct member offsets. */ public static final int - TYPE, - NEXT, - ISACTIVE, - INDEXBUFFERCHANGED, - VERTEXBUFFERCHANGED, - INDEXBUFFER, - VERTEXBUFFER; + TYPE, + NEXT, + ISACTIVE, + INDEXBUFFERCHANGED, + VERTEXBUFFERCHANGED, + INDEXBUFFER, + VERTEXBUFFER; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(4), - __member(XrHandMeshIndexBufferMSFT.SIZEOF, XrHandMeshIndexBufferMSFT.ALIGNOF), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), + __member(4), + __member(XrHandMeshIndexBufferMSFT.SIZEOF, XrHandMeshIndexBufferMSFT.ALIGNOF), __member(XrHandMeshVertexBufferMSFT.SIZEOF, XrHandMeshVertexBufferMSFT.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - ISACTIVE = layout.offsetof(2); - INDEXBUFFERCHANGED = layout.offsetof(3); - VERTEXBUFFERCHANGED = layout.offsetof(4); - INDEXBUFFER = layout.offsetof(5); - VERTEXBUFFER = layout.offsetof(6); - } - - protected XrHandMeshMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrHandMeshMSFT create(long address, @Nullable ByteBuffer container) { - return new XrHandMeshMSFT(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + ISACTIVE = layout.offsetof(2); + INDEXBUFFERCHANGED = layout.offsetof(3); + VERTEXBUFFERCHANGED = layout.offsetof(4); + INDEXBUFFER = layout.offsetof(5); + VERTEXBUFFER = layout.offsetof(6); } /** @@ -115,65 +106,65 @@ public XrHandMeshMSFT(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 current hand tracker is active. */ - @NativeType("XrBool32") - public boolean isActive() { return nisActive(address()) != 0; } - /** an {@code XrBool32} indicating if the {@code indexBuffer} content was changed during the update. */ - @NativeType("XrBool32") - public boolean indexBufferChanged() { return nindexBufferChanged(address()) != 0; } - /** an {@code XrBool32} indicating if the {@code vertexBuffer} content was changed during the update. */ - @NativeType("XrBool32") - public boolean vertexBufferChanged() { return nvertexBufferChanged(address()) != 0; } - /** an {@link XrHandMeshIndexBufferMSFT} returns the index buffer of the tracked hand mesh. */ - public XrHandMeshIndexBufferMSFT indexBuffer() { return nindexBuffer(address()); } - /** an {@link XrHandMeshVertexBufferMSFT} returns the vertex buffer of the tracked hand mesh. */ - public XrHandMeshVertexBufferMSFT vertexBuffer() { return nvertexBuffer(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHandMeshMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_MSFT TYPE_HAND_MESH_MSFT} value to the {@link #type} field. */ - public XrHandMeshMSFT type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrHandMeshMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #isActive} field. */ - public XrHandMeshMSFT isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link #indexBufferChanged} field. */ - public XrHandMeshMSFT indexBufferChanged(@NativeType("XrBool32") boolean value) { nindexBufferChanged(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link #vertexBufferChanged} field. */ - public XrHandMeshMSFT vertexBufferChanged(@NativeType("XrBool32") boolean value) { nvertexBufferChanged(address(), value ? 1 : 0); return this; } - /** Copies the specified {@link XrHandMeshIndexBufferMSFT} to the {@link #indexBuffer} field. */ - public XrHandMeshMSFT indexBuffer(XrHandMeshIndexBufferMSFT value) { nindexBuffer(address(), value); return this; } - /** Passes the {@link #indexBuffer} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandMeshMSFT indexBuffer(java.util.function.Consumer consumer) { consumer.accept(indexBuffer()); return this; } - /** Copies the specified {@link XrHandMeshVertexBufferMSFT} to the {@link #vertexBuffer} field. */ - public XrHandMeshMSFT vertexBuffer(XrHandMeshVertexBufferMSFT value) { nvertexBuffer(address(), value); return this; } - /** Passes the {@link #vertexBuffer} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandMeshMSFT vertexBuffer(java.util.function.Consumer consumer) { consumer.accept(vertexBuffer()); 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 current hand tracker is active. */ + @NativeType("XrBool32") + public boolean isActive() { return nisActive(address()) != 0; } + /** an {@code XrBool32} indicating if the {@code indexBuffer} content was changed during the update. */ + @NativeType("XrBool32") + public boolean indexBufferChanged() { return nindexBufferChanged(address()) != 0; } + /** an {@code XrBool32} indicating if the {@code vertexBuffer} content was changed during the update. */ + @NativeType("XrBool32") + public boolean vertexBufferChanged() { return nvertexBufferChanged(address()) != 0; } + /** an {@link XrHandMeshIndexBufferMSFT} returns the index buffer of the tracked hand mesh. */ + public XrHandMeshIndexBufferMSFT indexBuffer() { return nindexBuffer(address()); } + /** an {@link XrHandMeshVertexBufferMSFT} returns the vertex buffer of the tracked hand mesh. */ + public XrHandMeshVertexBufferMSFT vertexBuffer() { return nvertexBuffer(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandMeshMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_MSFT TYPE_HAND_MESH_MSFT} value to the {@link #type} field. */ + public XrHandMeshMSFT type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandMeshMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #isActive} field. */ + public XrHandMeshMSFT isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link #indexBufferChanged} field. */ + public XrHandMeshMSFT indexBufferChanged(@NativeType("XrBool32") boolean value) { nindexBufferChanged(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link #vertexBufferChanged} field. */ + public XrHandMeshMSFT vertexBufferChanged(@NativeType("XrBool32") boolean value) { nvertexBufferChanged(address(), value ? 1 : 0); return this; } + /** Copies the specified {@link XrHandMeshIndexBufferMSFT} to the {@link #indexBuffer} field. */ + public XrHandMeshMSFT indexBuffer(XrHandMeshIndexBufferMSFT value) { nindexBuffer(address(), value); return this; } + /** Passes the {@link #indexBuffer} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshMSFT indexBuffer(java.util.function.Consumer consumer) { consumer.accept(indexBuffer()); return this; } + /** Copies the specified {@link XrHandMeshVertexBufferMSFT} to the {@link #vertexBuffer} field. */ + public XrHandMeshMSFT vertexBuffer(XrHandMeshVertexBufferMSFT value) { nvertexBuffer(address(), value); return this; } + /** Passes the {@link #vertexBuffer} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshMSFT vertexBuffer(java.util.function.Consumer consumer) { consumer.accept(vertexBuffer()); return this; } /** Initializes this struct with the specified values. */ public XrHandMeshMSFT set( - int type, - long next, - boolean isActive, - boolean indexBufferChanged, - boolean vertexBufferChanged, - XrHandMeshIndexBufferMSFT indexBuffer, + int type, + long next, + boolean isActive, + boolean indexBufferChanged, + boolean vertexBufferChanged, + XrHandMeshIndexBufferMSFT indexBuffer, XrHandMeshVertexBufferMSFT vertexBuffer - ) { - type(type); - next(next); - isActive(isActive); - indexBufferChanged(indexBufferChanged); - vertexBufferChanged(vertexBufferChanged); - indexBuffer(indexBuffer); - vertexBuffer(vertexBuffer); + ) { + type(type); + next(next); + isActive(isActive); + indexBufferChanged(indexBufferChanged); + vertexBufferChanged(vertexBufferChanged); + indexBuffer(indexBuffer); + vertexBuffer(vertexBuffer); return this; } @@ -194,29 +185,29 @@ public XrHandMeshMSFT set(XrHandMeshMSFT src) { /** Returns a new {@code XrHandMeshMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrHandMeshMSFT malloc() { - return new XrHandMeshMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrHandMeshMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrHandMeshMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrHandMeshMSFT calloc() { - return new XrHandMeshMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrHandMeshMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrHandMeshMSFT} instance allocated with {@link BufferUtils}. */ public static XrHandMeshMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrHandMeshMSFT(memAddress(container), container); + return wrap(XrHandMeshMSFT.class, memAddress(container), container); } /** Returns a new {@code XrHandMeshMSFT} instance for the specified memory address. */ public static XrHandMeshMSFT create(long address) { - return new XrHandMeshMSFT(address, null); + return wrap(XrHandMeshMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrHandMeshMSFT createSafe(long address) { - return address == NULL ? null : new XrHandMeshMSFT(address, null); + return address == NULL ? null : wrap(XrHandMeshMSFT.class, address); } /** @@ -225,7 +216,7 @@ public static XrHandMeshMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrHandMeshMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -234,7 +225,7 @@ public static XrHandMeshMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrHandMeshMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -244,7 +235,7 @@ public static XrHandMeshMSFT.Buffer calloc(int capacity) { */ public static XrHandMeshMSFT.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); } /** @@ -254,13 +245,13 @@ public static XrHandMeshMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrHandMeshMSFT.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 XrHandMeshMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -269,7 +260,7 @@ public static XrHandMeshMSFT.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrHandMeshMSFT malloc(MemoryStack stack) { - return new XrHandMeshMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrHandMeshMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -278,7 +269,7 @@ public static XrHandMeshMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrHandMeshMSFT calloc(MemoryStack stack) { - return new XrHandMeshMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrHandMeshMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -288,7 +279,7 @@ public static XrHandMeshMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHandMeshMSFT.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); } /** @@ -298,40 +289,40 @@ public static XrHandMeshMSFT.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHandMeshMSFT.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 + XrHandMeshMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandMeshMSFT.NEXT); } - /** Unsafe version of {@link #isActive}. */ - public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshMSFT.ISACTIVE); } - /** Unsafe version of {@link #indexBufferChanged}. */ - public static int nindexBufferChanged(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshMSFT.INDEXBUFFERCHANGED); } - /** Unsafe version of {@link #vertexBufferChanged}. */ - public static int nvertexBufferChanged(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshMSFT.VERTEXBUFFERCHANGED); } - /** Unsafe version of {@link #indexBuffer}. */ - public static XrHandMeshIndexBufferMSFT nindexBuffer(long struct) { return XrHandMeshIndexBufferMSFT.create(struct + XrHandMeshMSFT.INDEXBUFFER); } - /** Unsafe version of {@link #vertexBuffer}. */ - public static XrHandMeshVertexBufferMSFT nvertexBuffer(long struct) { return XrHandMeshVertexBufferMSFT.create(struct + XrHandMeshMSFT.VERTEXBUFFER); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandMeshMSFT.NEXT, value); } - /** Unsafe version of {@link #isActive(boolean) isActive}. */ - public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshMSFT.ISACTIVE, value); } - /** Unsafe version of {@link #indexBufferChanged(boolean) indexBufferChanged}. */ - public static void nindexBufferChanged(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshMSFT.INDEXBUFFERCHANGED, value); } - /** Unsafe version of {@link #vertexBufferChanged(boolean) vertexBufferChanged}. */ - public static void nvertexBufferChanged(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshMSFT.VERTEXBUFFERCHANGED, value); } - /** Unsafe version of {@link #indexBuffer(XrHandMeshIndexBufferMSFT) indexBuffer}. */ - public static void nindexBuffer(long struct, XrHandMeshIndexBufferMSFT value) { memCopy(value.address(), struct + XrHandMeshMSFT.INDEXBUFFER, XrHandMeshIndexBufferMSFT.SIZEOF); } - /** Unsafe version of {@link #vertexBuffer(XrHandMeshVertexBufferMSFT) vertexBuffer}. */ - public static void nvertexBuffer(long struct, XrHandMeshVertexBufferMSFT value) { memCopy(value.address(), struct + XrHandMeshMSFT.VERTEXBUFFER, XrHandMeshVertexBufferMSFT.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandMeshMSFT.NEXT); } + /** Unsafe version of {@link #isActive}. */ + public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshMSFT.ISACTIVE); } + /** Unsafe version of {@link #indexBufferChanged}. */ + public static int nindexBufferChanged(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshMSFT.INDEXBUFFERCHANGED); } + /** Unsafe version of {@link #vertexBufferChanged}. */ + public static int nvertexBufferChanged(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshMSFT.VERTEXBUFFERCHANGED); } + /** Unsafe version of {@link #indexBuffer}. */ + public static XrHandMeshIndexBufferMSFT nindexBuffer(long struct) { return XrHandMeshIndexBufferMSFT.create(struct + XrHandMeshMSFT.INDEXBUFFER); } + /** Unsafe version of {@link #vertexBuffer}. */ + public static XrHandMeshVertexBufferMSFT nvertexBuffer(long struct) { return XrHandMeshVertexBufferMSFT.create(struct + XrHandMeshMSFT.VERTEXBUFFER); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandMeshMSFT.NEXT, value); } + /** Unsafe version of {@link #isActive(boolean) isActive}. */ + public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshMSFT.ISACTIVE, value); } + /** Unsafe version of {@link #indexBufferChanged(boolean) indexBufferChanged}. */ + public static void nindexBufferChanged(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshMSFT.INDEXBUFFERCHANGED, value); } + /** Unsafe version of {@link #vertexBufferChanged(boolean) vertexBufferChanged}. */ + public static void nvertexBufferChanged(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshMSFT.VERTEXBUFFERCHANGED, value); } + /** Unsafe version of {@link #indexBuffer(XrHandMeshIndexBufferMSFT) indexBuffer}. */ + public static void nindexBuffer(long struct, XrHandMeshIndexBufferMSFT value) { memCopy(value.address(), struct + XrHandMeshMSFT.INDEXBUFFER, XrHandMeshIndexBufferMSFT.SIZEOF); } + /** Unsafe version of {@link #vertexBuffer(XrHandMeshVertexBufferMSFT) vertexBuffer}. */ + public static void nvertexBuffer(long struct, XrHandMeshVertexBufferMSFT value) { memCopy(value.address(), struct + XrHandMeshMSFT.VERTEXBUFFER, XrHandMeshVertexBufferMSFT.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -341,9 +332,9 @@ public static XrHandMeshMSFT.Buffer calloc(int capacity, MemoryStack stack) { public static void validate(long struct) { XrHandMeshIndexBufferMSFT.validate(struct + XrHandMeshMSFT.INDEXBUFFER); XrHandMeshVertexBufferMSFT.validate(struct + XrHandMeshMSFT.VERTEXBUFFER); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrHandMeshMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -353,9 +344,9 @@ public static class Buffer extends StructBuffer implemen /** * Creates a new {@code XrHandMeshMSFT.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 XrHandMeshMSFT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHandMeshMSFT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -380,47 +371,47 @@ protected Buffer self() { protected XrHandMeshMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandMeshMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandMeshMSFT.ntype(address()); } - /** @return the value of the {@link XrHandMeshMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrHandMeshMSFT.nnext(address()); } - /** @return the value of the {@link XrHandMeshMSFT#isActive} field. */ - @NativeType("XrBool32") - public boolean isActive() { return XrHandMeshMSFT.nisActive(address()) != 0; } - /** @return the value of the {@link XrHandMeshMSFT#indexBufferChanged} field. */ - @NativeType("XrBool32") - public boolean indexBufferChanged() { return XrHandMeshMSFT.nindexBufferChanged(address()) != 0; } - /** @return the value of the {@link XrHandMeshMSFT#vertexBufferChanged} field. */ - @NativeType("XrBool32") - public boolean vertexBufferChanged() { return XrHandMeshMSFT.nvertexBufferChanged(address()) != 0; } - /** @return a {@link XrHandMeshIndexBufferMSFT} view of the {@link XrHandMeshMSFT#indexBuffer} field. */ - public XrHandMeshIndexBufferMSFT indexBuffer() { return XrHandMeshMSFT.nindexBuffer(address()); } - /** @return a {@link XrHandMeshVertexBufferMSFT} view of the {@link XrHandMeshMSFT#vertexBuffer} field. */ - public XrHandMeshVertexBufferMSFT vertexBuffer() { return XrHandMeshMSFT.nvertexBuffer(address()); } - - /** Sets the specified value to the {@link XrHandMeshMSFT#type} field. */ - public XrHandMeshMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHandMeshMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_MSFT TYPE_HAND_MESH_MSFT} value to the {@link XrHandMeshMSFT#type} field. */ - public XrHandMeshMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_MSFT); } - /** Sets the specified value to the {@link XrHandMeshMSFT#next} field. */ - public XrHandMeshMSFT.Buffer next(@NativeType("void *") long value) { XrHandMeshMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrHandMeshMSFT#isActive} field. */ - public XrHandMeshMSFT.Buffer isActive(@NativeType("XrBool32") boolean value) { XrHandMeshMSFT.nisActive(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link XrHandMeshMSFT#indexBufferChanged} field. */ - public XrHandMeshMSFT.Buffer indexBufferChanged(@NativeType("XrBool32") boolean value) { XrHandMeshMSFT.nindexBufferChanged(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link XrHandMeshMSFT#vertexBufferChanged} field. */ - public XrHandMeshMSFT.Buffer vertexBufferChanged(@NativeType("XrBool32") boolean value) { XrHandMeshMSFT.nvertexBufferChanged(address(), value ? 1 : 0); return this; } - /** Copies the specified {@link XrHandMeshIndexBufferMSFT} to the {@link XrHandMeshMSFT#indexBuffer} field. */ - public XrHandMeshMSFT.Buffer indexBuffer(XrHandMeshIndexBufferMSFT value) { XrHandMeshMSFT.nindexBuffer(address(), value); return this; } - /** Passes the {@link XrHandMeshMSFT#indexBuffer} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandMeshMSFT.Buffer indexBuffer(java.util.function.Consumer consumer) { consumer.accept(indexBuffer()); return this; } - /** Copies the specified {@link XrHandMeshVertexBufferMSFT} to the {@link XrHandMeshMSFT#vertexBuffer} field. */ - public XrHandMeshMSFT.Buffer vertexBuffer(XrHandMeshVertexBufferMSFT value) { XrHandMeshMSFT.nvertexBuffer(address(), value); return this; } - /** Passes the {@link XrHandMeshMSFT#vertexBuffer} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandMeshMSFT.Buffer vertexBuffer(java.util.function.Consumer consumer) { consumer.accept(vertexBuffer()); return this; } + + /** @return the value of the {@link XrHandMeshMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandMeshMSFT.ntype(address()); } + /** @return the value of the {@link XrHandMeshMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrHandMeshMSFT.nnext(address()); } + /** @return the value of the {@link XrHandMeshMSFT#isActive} field. */ + @NativeType("XrBool32") + public boolean isActive() { return XrHandMeshMSFT.nisActive(address()) != 0; } + /** @return the value of the {@link XrHandMeshMSFT#indexBufferChanged} field. */ + @NativeType("XrBool32") + public boolean indexBufferChanged() { return XrHandMeshMSFT.nindexBufferChanged(address()) != 0; } + /** @return the value of the {@link XrHandMeshMSFT#vertexBufferChanged} field. */ + @NativeType("XrBool32") + public boolean vertexBufferChanged() { return XrHandMeshMSFT.nvertexBufferChanged(address()) != 0; } + /** @return a {@link XrHandMeshIndexBufferMSFT} view of the {@link XrHandMeshMSFT#indexBuffer} field. */ + public XrHandMeshIndexBufferMSFT indexBuffer() { return XrHandMeshMSFT.nindexBuffer(address()); } + /** @return a {@link XrHandMeshVertexBufferMSFT} view of the {@link XrHandMeshMSFT#vertexBuffer} field. */ + public XrHandMeshVertexBufferMSFT vertexBuffer() { return XrHandMeshMSFT.nvertexBuffer(address()); } + + /** Sets the specified value to the {@link XrHandMeshMSFT#type} field. */ + public XrHandMeshMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHandMeshMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_MSFT TYPE_HAND_MESH_MSFT} value to the {@link XrHandMeshMSFT#type} field. */ + public XrHandMeshMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_MSFT); } + /** Sets the specified value to the {@link XrHandMeshMSFT#next} field. */ + public XrHandMeshMSFT.Buffer next(@NativeType("void *") long value) { XrHandMeshMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrHandMeshMSFT#isActive} field. */ + public XrHandMeshMSFT.Buffer isActive(@NativeType("XrBool32") boolean value) { XrHandMeshMSFT.nisActive(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link XrHandMeshMSFT#indexBufferChanged} field. */ + public XrHandMeshMSFT.Buffer indexBufferChanged(@NativeType("XrBool32") boolean value) { XrHandMeshMSFT.nindexBufferChanged(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link XrHandMeshMSFT#vertexBufferChanged} field. */ + public XrHandMeshMSFT.Buffer vertexBufferChanged(@NativeType("XrBool32") boolean value) { XrHandMeshMSFT.nvertexBufferChanged(address(), value ? 1 : 0); return this; } + /** Copies the specified {@link XrHandMeshIndexBufferMSFT} to the {@link XrHandMeshMSFT#indexBuffer} field. */ + public XrHandMeshMSFT.Buffer indexBuffer(XrHandMeshIndexBufferMSFT value) { XrHandMeshMSFT.nindexBuffer(address(), value); return this; } + /** Passes the {@link XrHandMeshMSFT#indexBuffer} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshMSFT.Buffer indexBuffer(java.util.function.Consumer consumer) { consumer.accept(indexBuffer()); return this; } + /** Copies the specified {@link XrHandMeshVertexBufferMSFT} to the {@link XrHandMeshMSFT#vertexBuffer} field. */ + public XrHandMeshMSFT.Buffer vertexBuffer(XrHandMeshVertexBufferMSFT value) { XrHandMeshMSFT.nvertexBuffer(address(), value); return this; } + /** Passes the {@link XrHandMeshMSFT#vertexBuffer} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshMSFT.Buffer vertexBuffer(java.util.function.Consumer consumer) { consumer.accept(vertexBuffer()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshSpaceCreateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshSpaceCreateInfoMSFT.java index fa61d7bbdb..9776f028b7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshSpaceCreateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshSpaceCreateInfoMSFT.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 information to create a hand mesh space. * @@ -40,8 +40,8 @@ * XrHandPoseTypeMSFT {@link #handPoseType}; * {@link XrPosef XrPosef} {@link #poseInHandMeshSpace}; * } - */ -public class XrHandMeshSpaceCreateInfoMSFT extends Struct implements NativeResource { + */ +public class XrHandMeshSpaceCreateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,35 +51,26 @@ public class XrHandMeshSpaceCreateInfoMSFT extends Struct consumer) { consumer.accept(poseInHandMeshSpace()); 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 XrHandPoseTypeMSFT} used to specify the type of hand this mesh is tracking. Indices and vertices returned from {@link MSFTHandTrackingMesh#xrUpdateHandMeshMSFT UpdateHandMeshMSFT} for a hand type will be relative to the corresponding space create with the same hand type. */ + @NativeType("XrHandPoseTypeMSFT") + public int handPoseType() { return nhandPoseType(address()); } + /** an {@link XrPosef} defining the position and orientation of the new space’s origin within the natural reference frame of the hand mesh space. */ + public XrPosef poseInHandMeshSpace() { return nposeInHandMeshSpace(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandMeshSpaceCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT} value to the {@link #type} field. */ + public XrHandMeshSpaceCreateInfoMSFT type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandMeshSpaceCreateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #handPoseType} field. */ + public XrHandMeshSpaceCreateInfoMSFT handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { nhandPoseType(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #poseInHandMeshSpace} field. */ + public XrHandMeshSpaceCreateInfoMSFT poseInHandMeshSpace(XrPosef value) { nposeInHandMeshSpace(address(), value); return this; } + /** Passes the {@link #poseInHandMeshSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshSpaceCreateInfoMSFT poseInHandMeshSpace(java.util.function.Consumer consumer) { consumer.accept(poseInHandMeshSpace()); return this; } /** Initializes this struct with the specified values. */ public XrHandMeshSpaceCreateInfoMSFT set( - int type, - long next, - int handPoseType, + int type, + long next, + int handPoseType, XrPosef poseInHandMeshSpace - ) { - type(type); - next(next); - handPoseType(handPoseType); - poseInHandMeshSpace(poseInHandMeshSpace); + ) { + type(type); + next(next); + handPoseType(handPoseType); + poseInHandMeshSpace(poseInHandMeshSpace); return this; } @@ -151,29 +142,29 @@ public XrHandMeshSpaceCreateInfoMSFT set(XrHandMeshSpaceCreateInfoMSFT src) { /** Returns a new {@code XrHandMeshSpaceCreateInfoMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrHandMeshSpaceCreateInfoMSFT malloc() { - return new XrHandMeshSpaceCreateInfoMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrHandMeshSpaceCreateInfoMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrHandMeshSpaceCreateInfoMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrHandMeshSpaceCreateInfoMSFT calloc() { - return new XrHandMeshSpaceCreateInfoMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrHandMeshSpaceCreateInfoMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrHandMeshSpaceCreateInfoMSFT} instance allocated with {@link BufferUtils}. */ public static XrHandMeshSpaceCreateInfoMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrHandMeshSpaceCreateInfoMSFT(memAddress(container), container); + return wrap(XrHandMeshSpaceCreateInfoMSFT.class, memAddress(container), container); } /** Returns a new {@code XrHandMeshSpaceCreateInfoMSFT} instance for the specified memory address. */ public static XrHandMeshSpaceCreateInfoMSFT create(long address) { - return new XrHandMeshSpaceCreateInfoMSFT(address, null); + return wrap(XrHandMeshSpaceCreateInfoMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrHandMeshSpaceCreateInfoMSFT createSafe(long address) { - return address == NULL ? null : new XrHandMeshSpaceCreateInfoMSFT(address, null); + return address == NULL ? null : wrap(XrHandMeshSpaceCreateInfoMSFT.class, address); } /** @@ -182,7 +173,7 @@ public static XrHandMeshSpaceCreateInfoMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrHandMeshSpaceCreateInfoMSFT.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 XrHandMeshSpaceCreateInfoMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrHandMeshSpaceCreateInfoMSFT.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 XrHandMeshSpaceCreateInfoMSFT.Buffer calloc(int capacity) { */ public static XrHandMeshSpaceCreateInfoMSFT.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 XrHandMeshSpaceCreateInfoMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrHandMeshSpaceCreateInfoMSFT.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 XrHandMeshSpaceCreateInfoMSFT.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 XrHandMeshSpaceCreateInfoMSFT.Buffer createSafe(long address, int * @param stack the stack from which to allocate */ public static XrHandMeshSpaceCreateInfoMSFT malloc(MemoryStack stack) { - return new XrHandMeshSpaceCreateInfoMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrHandMeshSpaceCreateInfoMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -235,7 +226,7 @@ public static XrHandMeshSpaceCreateInfoMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrHandMeshSpaceCreateInfoMSFT calloc(MemoryStack stack) { - return new XrHandMeshSpaceCreateInfoMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrHandMeshSpaceCreateInfoMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -245,7 +236,7 @@ public static XrHandMeshSpaceCreateInfoMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHandMeshSpaceCreateInfoMSFT.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 XrHandMeshSpaceCreateInfoMSFT.Buffer malloc(int capacity, MemorySt * @param capacity the buffer capacity */ public static XrHandMeshSpaceCreateInfoMSFT.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 + XrHandMeshSpaceCreateInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandMeshSpaceCreateInfoMSFT.NEXT); } - /** Unsafe version of {@link #handPoseType}. */ - public static int nhandPoseType(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshSpaceCreateInfoMSFT.HANDPOSETYPE); } - /** Unsafe version of {@link #poseInHandMeshSpace}. */ - public static XrPosef nposeInHandMeshSpace(long struct) { return XrPosef.create(struct + XrHandMeshSpaceCreateInfoMSFT.POSEINHANDMESHSPACE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshSpaceCreateInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandMeshSpaceCreateInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #handPoseType(int) handPoseType}. */ - public static void nhandPoseType(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshSpaceCreateInfoMSFT.HANDPOSETYPE, value); } - /** Unsafe version of {@link #poseInHandMeshSpace(XrPosef) poseInHandMeshSpace}. */ - public static void nposeInHandMeshSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrHandMeshSpaceCreateInfoMSFT.POSEINHANDMESHSPACE, XrPosef.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshSpaceCreateInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandMeshSpaceCreateInfoMSFT.NEXT); } + /** Unsafe version of {@link #handPoseType}. */ + public static int nhandPoseType(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshSpaceCreateInfoMSFT.HANDPOSETYPE); } + /** Unsafe version of {@link #poseInHandMeshSpace}. */ + public static XrPosef nposeInHandMeshSpace(long struct) { return XrPosef.create(struct + XrHandMeshSpaceCreateInfoMSFT.POSEINHANDMESHSPACE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshSpaceCreateInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandMeshSpaceCreateInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #handPoseType(int) handPoseType}. */ + public static void nhandPoseType(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshSpaceCreateInfoMSFT.HANDPOSETYPE, value); } + /** Unsafe version of {@link #poseInHandMeshSpace(XrPosef) poseInHandMeshSpace}. */ + public static void nposeInHandMeshSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrHandMeshSpaceCreateInfoMSFT.POSEINHANDMESHSPACE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrHandMeshSpaceCreateInfoMSFT} 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 XrHandMeshSpaceCreateInfoMSFT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHandMeshSpaceCreateInfoMSFT#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 XrHandMeshSpaceCreateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandMeshSpaceCreateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandMeshSpaceCreateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrHandMeshSpaceCreateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrHandMeshSpaceCreateInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrHandMeshSpaceCreateInfoMSFT#handPoseType} field. */ - @NativeType("XrHandPoseTypeMSFT") - public int handPoseType() { return XrHandMeshSpaceCreateInfoMSFT.nhandPoseType(address()); } - /** @return a {@link XrPosef} view of the {@link XrHandMeshSpaceCreateInfoMSFT#poseInHandMeshSpace} field. */ - public XrPosef poseInHandMeshSpace() { return XrHandMeshSpaceCreateInfoMSFT.nposeInHandMeshSpace(address()); } - - /** Sets the specified value to the {@link XrHandMeshSpaceCreateInfoMSFT#type} field. */ - public XrHandMeshSpaceCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHandMeshSpaceCreateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT} value to the {@link XrHandMeshSpaceCreateInfoMSFT#type} field. */ - public XrHandMeshSpaceCreateInfoMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrHandMeshSpaceCreateInfoMSFT#next} field. */ - public XrHandMeshSpaceCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrHandMeshSpaceCreateInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrHandMeshSpaceCreateInfoMSFT#handPoseType} field. */ - public XrHandMeshSpaceCreateInfoMSFT.Buffer handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { XrHandMeshSpaceCreateInfoMSFT.nhandPoseType(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrHandMeshSpaceCreateInfoMSFT#poseInHandMeshSpace} field. */ - public XrHandMeshSpaceCreateInfoMSFT.Buffer poseInHandMeshSpace(XrPosef value) { XrHandMeshSpaceCreateInfoMSFT.nposeInHandMeshSpace(address(), value); return this; } - /** Passes the {@link XrHandMeshSpaceCreateInfoMSFT#poseInHandMeshSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandMeshSpaceCreateInfoMSFT.Buffer poseInHandMeshSpace(java.util.function.Consumer consumer) { consumer.accept(poseInHandMeshSpace()); return this; } + + /** @return the value of the {@link XrHandMeshSpaceCreateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandMeshSpaceCreateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrHandMeshSpaceCreateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrHandMeshSpaceCreateInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrHandMeshSpaceCreateInfoMSFT#handPoseType} field. */ + @NativeType("XrHandPoseTypeMSFT") + public int handPoseType() { return XrHandMeshSpaceCreateInfoMSFT.nhandPoseType(address()); } + /** @return a {@link XrPosef} view of the {@link XrHandMeshSpaceCreateInfoMSFT#poseInHandMeshSpace} field. */ + public XrPosef poseInHandMeshSpace() { return XrHandMeshSpaceCreateInfoMSFT.nposeInHandMeshSpace(address()); } + + /** Sets the specified value to the {@link XrHandMeshSpaceCreateInfoMSFT#type} field. */ + public XrHandMeshSpaceCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHandMeshSpaceCreateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT} value to the {@link XrHandMeshSpaceCreateInfoMSFT#type} field. */ + public XrHandMeshSpaceCreateInfoMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrHandMeshSpaceCreateInfoMSFT#next} field. */ + public XrHandMeshSpaceCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrHandMeshSpaceCreateInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrHandMeshSpaceCreateInfoMSFT#handPoseType} field. */ + public XrHandMeshSpaceCreateInfoMSFT.Buffer handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { XrHandMeshSpaceCreateInfoMSFT.nhandPoseType(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrHandMeshSpaceCreateInfoMSFT#poseInHandMeshSpace} field. */ + public XrHandMeshSpaceCreateInfoMSFT.Buffer poseInHandMeshSpace(XrPosef value) { XrHandMeshSpaceCreateInfoMSFT.nposeInHandMeshSpace(address(), value); return this; } + /** Passes the {@link XrHandMeshSpaceCreateInfoMSFT#poseInHandMeshSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshSpaceCreateInfoMSFT.Buffer poseInHandMeshSpace(java.util.function.Consumer consumer) { consumer.accept(poseInHandMeshSpace()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshUpdateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshUpdateInfoMSFT.java index c79e7ea22b..dbb87f028e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshUpdateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshUpdateInfoMSFT.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 information to update a hand mesh. * @@ -46,8 +46,8 @@ * XrTime {@link #time}; * XrHandPoseTypeMSFT {@link #handPoseType}; * } - */ -public class XrHandMeshUpdateInfoMSFT extends Struct implements NativeResource { + */ +public class XrHandMeshUpdateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,35 +57,26 @@ public class XrHandMeshUpdateInfoMSFT extends Struct i /** The struct member offsets. */ public static final int - TYPE, - NEXT, - TIME, - HANDPOSETYPE; + TYPE, + NEXT, + TIME, + HANDPOSETYPE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - TIME = layout.offsetof(2); - HANDPOSETYPE = layout.offsetof(3); - } - - protected XrHandMeshUpdateInfoMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrHandMeshUpdateInfoMSFT create(long address, @Nullable ByteBuffer container) { - return new XrHandMeshUpdateInfoMSFT(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + TIME = layout.offsetof(2); + HANDPOSETYPE = layout.offsetof(3); } /** @@ -100,42 +91,42 @@ public XrHandMeshUpdateInfoMSFT(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()); } - /** the {@code XrTime} that describes the time for which the application wishes to query the hand mesh state. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - /** an {@code XrHandPoseTypeMSFT} which describes the type of hand pose of the hand mesh to update. */ - @NativeType("XrHandPoseTypeMSFT") - public int handPoseType() { return nhandPoseType(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHandMeshUpdateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT TYPE_HAND_MESH_UPDATE_INFO_MSFT} value to the {@link #type} field. */ - public XrHandMeshUpdateInfoMSFT type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrHandMeshUpdateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrHandMeshUpdateInfoMSFT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } - /** Sets the specified value to the {@link #handPoseType} field. */ - public XrHandMeshUpdateInfoMSFT handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { nhandPoseType(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()); } + /** the {@code XrTime} that describes the time for which the application wishes to query the hand mesh state. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + /** an {@code XrHandPoseTypeMSFT} which describes the type of hand pose of the hand mesh to update. */ + @NativeType("XrHandPoseTypeMSFT") + public int handPoseType() { return nhandPoseType(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandMeshUpdateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT TYPE_HAND_MESH_UPDATE_INFO_MSFT} value to the {@link #type} field. */ + public XrHandMeshUpdateInfoMSFT type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandMeshUpdateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrHandMeshUpdateInfoMSFT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } + /** Sets the specified value to the {@link #handPoseType} field. */ + public XrHandMeshUpdateInfoMSFT handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { nhandPoseType(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandMeshUpdateInfoMSFT set( - int type, - long next, - long time, + int type, + long next, + long time, int handPoseType - ) { - type(type); - next(next); - time(time); - handPoseType(handPoseType); + ) { + type(type); + next(next); + time(time); + handPoseType(handPoseType); return this; } @@ -156,29 +147,29 @@ public XrHandMeshUpdateInfoMSFT set(XrHandMeshUpdateInfoMSFT src) { /** Returns a new {@code XrHandMeshUpdateInfoMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrHandMeshUpdateInfoMSFT malloc() { - return new XrHandMeshUpdateInfoMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrHandMeshUpdateInfoMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrHandMeshUpdateInfoMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrHandMeshUpdateInfoMSFT calloc() { - return new XrHandMeshUpdateInfoMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrHandMeshUpdateInfoMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrHandMeshUpdateInfoMSFT} instance allocated with {@link BufferUtils}. */ public static XrHandMeshUpdateInfoMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrHandMeshUpdateInfoMSFT(memAddress(container), container); + return wrap(XrHandMeshUpdateInfoMSFT.class, memAddress(container), container); } /** Returns a new {@code XrHandMeshUpdateInfoMSFT} instance for the specified memory address. */ public static XrHandMeshUpdateInfoMSFT create(long address) { - return new XrHandMeshUpdateInfoMSFT(address, null); + return wrap(XrHandMeshUpdateInfoMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrHandMeshUpdateInfoMSFT createSafe(long address) { - return address == NULL ? null : new XrHandMeshUpdateInfoMSFT(address, null); + return address == NULL ? null : wrap(XrHandMeshUpdateInfoMSFT.class, address); } /** @@ -187,7 +178,7 @@ public static XrHandMeshUpdateInfoMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrHandMeshUpdateInfoMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -196,7 +187,7 @@ public static XrHandMeshUpdateInfoMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrHandMeshUpdateInfoMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -206,7 +197,7 @@ public static XrHandMeshUpdateInfoMSFT.Buffer calloc(int capacity) { */ public static XrHandMeshUpdateInfoMSFT.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); } /** @@ -216,13 +207,13 @@ public static XrHandMeshUpdateInfoMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrHandMeshUpdateInfoMSFT.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 XrHandMeshUpdateInfoMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -231,7 +222,7 @@ public static XrHandMeshUpdateInfoMSFT.Buffer createSafe(long address, int capac * @param stack the stack from which to allocate */ public static XrHandMeshUpdateInfoMSFT malloc(MemoryStack stack) { - return new XrHandMeshUpdateInfoMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrHandMeshUpdateInfoMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -240,7 +231,7 @@ public static XrHandMeshUpdateInfoMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrHandMeshUpdateInfoMSFT calloc(MemoryStack stack) { - return new XrHandMeshUpdateInfoMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrHandMeshUpdateInfoMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -250,7 +241,7 @@ public static XrHandMeshUpdateInfoMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHandMeshUpdateInfoMSFT.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); } /** @@ -260,30 +251,30 @@ public static XrHandMeshUpdateInfoMSFT.Buffer malloc(int capacity, MemoryStack s * @param capacity the buffer capacity */ public static XrHandMeshUpdateInfoMSFT.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 + XrHandMeshUpdateInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandMeshUpdateInfoMSFT.NEXT); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrHandMeshUpdateInfoMSFT.TIME); } - /** Unsafe version of {@link #handPoseType}. */ - public static int nhandPoseType(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshUpdateInfoMSFT.HANDPOSETYPE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshUpdateInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandMeshUpdateInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrHandMeshUpdateInfoMSFT.TIME, value); } - /** Unsafe version of {@link #handPoseType(int) handPoseType}. */ - public static void nhandPoseType(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshUpdateInfoMSFT.HANDPOSETYPE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshUpdateInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandMeshUpdateInfoMSFT.NEXT); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrHandMeshUpdateInfoMSFT.TIME); } + /** Unsafe version of {@link #handPoseType}. */ + public static int nhandPoseType(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshUpdateInfoMSFT.HANDPOSETYPE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshUpdateInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandMeshUpdateInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrHandMeshUpdateInfoMSFT.TIME, value); } + /** Unsafe version of {@link #handPoseType(int) handPoseType}. */ + public static void nhandPoseType(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshUpdateInfoMSFT.HANDPOSETYPE, value); } + + // ----------------------------------- /** An array of {@link XrHandMeshUpdateInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -293,9 +284,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 XrHandMeshUpdateInfoMSFT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHandMeshUpdateInfoMSFT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -320,30 +311,30 @@ protected Buffer self() { protected XrHandMeshUpdateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandMeshUpdateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandMeshUpdateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrHandMeshUpdateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrHandMeshUpdateInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrHandMeshUpdateInfoMSFT#time} field. */ - @NativeType("XrTime") - public long time() { return XrHandMeshUpdateInfoMSFT.ntime(address()); } - /** @return the value of the {@link XrHandMeshUpdateInfoMSFT#handPoseType} field. */ - @NativeType("XrHandPoseTypeMSFT") - public int handPoseType() { return XrHandMeshUpdateInfoMSFT.nhandPoseType(address()); } - - /** Sets the specified value to the {@link XrHandMeshUpdateInfoMSFT#type} field. */ - public XrHandMeshUpdateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHandMeshUpdateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT TYPE_HAND_MESH_UPDATE_INFO_MSFT} value to the {@link XrHandMeshUpdateInfoMSFT#type} field. */ - public XrHandMeshUpdateInfoMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrHandMeshUpdateInfoMSFT#next} field. */ - public XrHandMeshUpdateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrHandMeshUpdateInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrHandMeshUpdateInfoMSFT#time} field. */ - public XrHandMeshUpdateInfoMSFT.Buffer time(@NativeType("XrTime") long value) { XrHandMeshUpdateInfoMSFT.ntime(address(), value); return this; } - /** Sets the specified value to the {@link XrHandMeshUpdateInfoMSFT#handPoseType} field. */ - public XrHandMeshUpdateInfoMSFT.Buffer handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { XrHandMeshUpdateInfoMSFT.nhandPoseType(address(), value); return this; } + + /** @return the value of the {@link XrHandMeshUpdateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandMeshUpdateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrHandMeshUpdateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrHandMeshUpdateInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrHandMeshUpdateInfoMSFT#time} field. */ + @NativeType("XrTime") + public long time() { return XrHandMeshUpdateInfoMSFT.ntime(address()); } + /** @return the value of the {@link XrHandMeshUpdateInfoMSFT#handPoseType} field. */ + @NativeType("XrHandPoseTypeMSFT") + public int handPoseType() { return XrHandMeshUpdateInfoMSFT.nhandPoseType(address()); } + + /** Sets the specified value to the {@link XrHandMeshUpdateInfoMSFT#type} field. */ + public XrHandMeshUpdateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHandMeshUpdateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT TYPE_HAND_MESH_UPDATE_INFO_MSFT} value to the {@link XrHandMeshUpdateInfoMSFT#type} field. */ + public XrHandMeshUpdateInfoMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrHandMeshUpdateInfoMSFT#next} field. */ + public XrHandMeshUpdateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrHandMeshUpdateInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrHandMeshUpdateInfoMSFT#time} field. */ + public XrHandMeshUpdateInfoMSFT.Buffer time(@NativeType("XrTime") long value) { XrHandMeshUpdateInfoMSFT.ntime(address(), value); return this; } + /** Sets the specified value to the {@link XrHandMeshUpdateInfoMSFT#handPoseType} field. */ + public XrHandMeshUpdateInfoMSFT.Buffer handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { XrHandMeshUpdateInfoMSFT.nhandPoseType(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshVertexBufferMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshVertexBufferMSFT.java index 4e03341335..b4267244e0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshVertexBufferMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshVertexBufferMSFT.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.*; + /** * The vertex buffer of a hand mesh. * @@ -56,8 +56,8 @@ * uint32_t {@link #vertexCountOutput}; * {@link XrHandMeshVertexMSFT XrHandMeshVertexMSFT} * {@link #vertices}; * } - */ -public class XrHandMeshVertexBufferMSFT extends Struct implements NativeResource { + */ +public class XrHandMeshVertexBufferMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -67,35 +67,26 @@ public class XrHandMeshVertexBufferMSFT extends Struct implements NativeResource { @@ -306,9 +297,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 XrHandMeshVertexBufferMSFT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHandMeshVertexBufferMSFT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -333,26 +324,26 @@ protected Buffer self() { protected XrHandMeshVertexBufferMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandMeshVertexBufferMSFT#vertexUpdateTime} field. */ - @NativeType("XrTime") - public long vertexUpdateTime() { return XrHandMeshVertexBufferMSFT.nvertexUpdateTime(address()); } - /** @return the value of the {@link XrHandMeshVertexBufferMSFT#vertexCapacityInput} field. */ - @NativeType("uint32_t") - public int vertexCapacityInput() { return XrHandMeshVertexBufferMSFT.nvertexCapacityInput(address()); } - /** @return the value of the {@link XrHandMeshVertexBufferMSFT#vertexCountOutput} field. */ - @NativeType("uint32_t") - public int vertexCountOutput() { return XrHandMeshVertexBufferMSFT.nvertexCountOutput(address()); } - /** @return a {@link XrHandMeshVertexMSFT.Buffer} view of the struct array pointed to by the {@link XrHandMeshVertexBufferMSFT#vertices} field. */ - @NativeType("XrHandMeshVertexMSFT *") - public XrHandMeshVertexMSFT.Buffer vertices() { return XrHandMeshVertexBufferMSFT.nvertices(address()); } - - /** Sets the specified value to the {@link XrHandMeshVertexBufferMSFT#vertexUpdateTime} field. */ - public XrHandMeshVertexBufferMSFT.Buffer vertexUpdateTime(@NativeType("XrTime") long value) { XrHandMeshVertexBufferMSFT.nvertexUpdateTime(address(), value); return this; } - /** Sets the specified value to the {@link XrHandMeshVertexBufferMSFT#vertexCountOutput} field. */ - public XrHandMeshVertexBufferMSFT.Buffer vertexCountOutput(@NativeType("uint32_t") int value) { XrHandMeshVertexBufferMSFT.nvertexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrHandMeshVertexMSFT.Buffer} to the {@link XrHandMeshVertexBufferMSFT#vertices} field. */ - public XrHandMeshVertexBufferMSFT.Buffer vertices(@NativeType("XrHandMeshVertexMSFT *") XrHandMeshVertexMSFT.Buffer value) { XrHandMeshVertexBufferMSFT.nvertices(address(), value); return this; } + + /** @return the value of the {@link XrHandMeshVertexBufferMSFT#vertexUpdateTime} field. */ + @NativeType("XrTime") + public long vertexUpdateTime() { return XrHandMeshVertexBufferMSFT.nvertexUpdateTime(address()); } + /** @return the value of the {@link XrHandMeshVertexBufferMSFT#vertexCapacityInput} field. */ + @NativeType("uint32_t") + public int vertexCapacityInput() { return XrHandMeshVertexBufferMSFT.nvertexCapacityInput(address()); } + /** @return the value of the {@link XrHandMeshVertexBufferMSFT#vertexCountOutput} field. */ + @NativeType("uint32_t") + public int vertexCountOutput() { return XrHandMeshVertexBufferMSFT.nvertexCountOutput(address()); } + /** @return a {@link XrHandMeshVertexMSFT.Buffer} view of the struct array pointed to by the {@link XrHandMeshVertexBufferMSFT#vertices} field. */ + @NativeType("XrHandMeshVertexMSFT *") + public XrHandMeshVertexMSFT.Buffer vertices() { return XrHandMeshVertexBufferMSFT.nvertices(address()); } + + /** Sets the specified value to the {@link XrHandMeshVertexBufferMSFT#vertexUpdateTime} field. */ + public XrHandMeshVertexBufferMSFT.Buffer vertexUpdateTime(@NativeType("XrTime") long value) { XrHandMeshVertexBufferMSFT.nvertexUpdateTime(address(), value); return this; } + /** Sets the specified value to the {@link XrHandMeshVertexBufferMSFT#vertexCountOutput} field. */ + public XrHandMeshVertexBufferMSFT.Buffer vertexCountOutput(@NativeType("uint32_t") int value) { XrHandMeshVertexBufferMSFT.nvertexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrHandMeshVertexMSFT.Buffer} to the {@link XrHandMeshVertexBufferMSFT#vertices} field. */ + public XrHandMeshVertexBufferMSFT.Buffer vertices(@NativeType("XrHandMeshVertexMSFT *") XrHandMeshVertexMSFT.Buffer value) { XrHandMeshVertexBufferMSFT.nvertices(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshVertexMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshVertexMSFT.java index 5733ee961e..45a4d426ec 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshVertexMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshVertexMSFT.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 vertex of hand mesh. * @@ -35,8 +35,8 @@ * {@link XrVector3f XrVector3f} {@link #position$ position}; * {@link XrVector3f XrVector3f} {@link #normal}; * } - */ -public class XrHandMeshVertexMSFT extends Struct implements NativeResource { + */ +public class XrHandMeshVertexMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -46,29 +46,20 @@ public class XrHandMeshVertexMSFT extends Struct implement /** The struct member offsets. */ public static final int - POSITION, - NORMAL; + POSITION, + NORMAL; static { - Layout layout = __struct( - __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF), + Layout layout = __struct( + __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF), __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - POSITION = layout.offsetof(0); - NORMAL = layout.offsetof(1); - } - - protected XrHandMeshVertexMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrHandMeshVertexMSFT create(long address, @Nullable ByteBuffer container) { - return new XrHandMeshVertexMSFT(address, container); + POSITION = layout.offsetof(0); + NORMAL = layout.offsetof(1); } /** @@ -83,28 +74,28 @@ public XrHandMeshVertexMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** an {@link XrVector3f} structure representing the position of the vertex in the hand mesh space, measured in meters. */ - public XrVector3f position$() { return nposition$(address()); } - /** an {@link XrVector3f} structure representing the unweighted normal of the triangle surface at the vertex as a unit vector in hand mesh space. */ - public XrVector3f normal() { return nnormal(address()); } - - /** Copies the specified {@link XrVector3f} to the {@link #position$} field. */ - public XrHandMeshVertexMSFT position$(XrVector3f value) { nposition$(address(), value); return this; } - /** Passes the {@link #position$} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandMeshVertexMSFT position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #normal} field. */ - public XrHandMeshVertexMSFT normal(XrVector3f value) { nnormal(address(), value); return this; } - /** Passes the {@link #normal} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandMeshVertexMSFT normal(java.util.function.Consumer consumer) { consumer.accept(normal()); return this; } + + /** an {@link XrVector3f} structure representing the position of the vertex in the hand mesh space, measured in meters. */ + public XrVector3f position$() { return nposition$(address()); } + /** an {@link XrVector3f} structure representing the unweighted normal of the triangle surface at the vertex as a unit vector in hand mesh space. */ + public XrVector3f normal() { return nnormal(address()); } + + /** Copies the specified {@link XrVector3f} to the {@link #position$} field. */ + public XrHandMeshVertexMSFT position$(XrVector3f value) { nposition$(address(), value); return this; } + /** Passes the {@link #position$} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshVertexMSFT position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #normal} field. */ + public XrHandMeshVertexMSFT normal(XrVector3f value) { nnormal(address(), value); return this; } + /** Passes the {@link #normal} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshVertexMSFT normal(java.util.function.Consumer consumer) { consumer.accept(normal()); return this; } /** Initializes this struct with the specified values. */ public XrHandMeshVertexMSFT set( - XrVector3f position$, + XrVector3f position$, XrVector3f normal - ) { - position$(position$); - normal(normal); + ) { + position$(position$); + normal(normal); return this; } @@ -125,29 +116,29 @@ public XrHandMeshVertexMSFT set(XrHandMeshVertexMSFT src) { /** Returns a new {@code XrHandMeshVertexMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrHandMeshVertexMSFT malloc() { - return new XrHandMeshVertexMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrHandMeshVertexMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrHandMeshVertexMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrHandMeshVertexMSFT calloc() { - return new XrHandMeshVertexMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrHandMeshVertexMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrHandMeshVertexMSFT} instance allocated with {@link BufferUtils}. */ public static XrHandMeshVertexMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrHandMeshVertexMSFT(memAddress(container), container); + return wrap(XrHandMeshVertexMSFT.class, memAddress(container), container); } /** Returns a new {@code XrHandMeshVertexMSFT} instance for the specified memory address. */ public static XrHandMeshVertexMSFT create(long address) { - return new XrHandMeshVertexMSFT(address, null); + return wrap(XrHandMeshVertexMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrHandMeshVertexMSFT createSafe(long address) { - return address == NULL ? null : new XrHandMeshVertexMSFT(address, null); + return address == NULL ? null : wrap(XrHandMeshVertexMSFT.class, address); } /** @@ -156,7 +147,7 @@ public static XrHandMeshVertexMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrHandMeshVertexMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -165,7 +156,7 @@ public static XrHandMeshVertexMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrHandMeshVertexMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -175,7 +166,7 @@ public static XrHandMeshVertexMSFT.Buffer calloc(int capacity) { */ public static XrHandMeshVertexMSFT.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); } /** @@ -185,13 +176,13 @@ public static XrHandMeshVertexMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrHandMeshVertexMSFT.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 XrHandMeshVertexMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -200,7 +191,7 @@ public static XrHandMeshVertexMSFT.Buffer createSafe(long address, int capacity) * @param stack the stack from which to allocate */ public static XrHandMeshVertexMSFT malloc(MemoryStack stack) { - return new XrHandMeshVertexMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrHandMeshVertexMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -209,7 +200,7 @@ public static XrHandMeshVertexMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrHandMeshVertexMSFT calloc(MemoryStack stack) { - return new XrHandMeshVertexMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrHandMeshVertexMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -219,7 +210,7 @@ public static XrHandMeshVertexMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHandMeshVertexMSFT.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); } /** @@ -229,22 +220,22 @@ public static XrHandMeshVertexMSFT.Buffer malloc(int capacity, MemoryStack stack * @param capacity the buffer capacity */ public static XrHandMeshVertexMSFT.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 #position$}. */ - public static XrVector3f nposition$(long struct) { return XrVector3f.create(struct + XrHandMeshVertexMSFT.POSITION); } - /** Unsafe version of {@link #normal}. */ - public static XrVector3f nnormal(long struct) { return XrVector3f.create(struct + XrHandMeshVertexMSFT.NORMAL); } - - /** Unsafe version of {@link #position$(XrVector3f) position$}. */ - public static void nposition$(long struct, XrVector3f value) { memCopy(value.address(), struct + XrHandMeshVertexMSFT.POSITION, XrVector3f.SIZEOF); } - /** Unsafe version of {@link #normal(XrVector3f) normal}. */ - public static void nnormal(long struct, XrVector3f value) { memCopy(value.address(), struct + XrHandMeshVertexMSFT.NORMAL, XrVector3f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #position$}. */ + public static XrVector3f nposition$(long struct) { return XrVector3f.create(struct + XrHandMeshVertexMSFT.POSITION); } + /** Unsafe version of {@link #normal}. */ + public static XrVector3f nnormal(long struct) { return XrVector3f.create(struct + XrHandMeshVertexMSFT.NORMAL); } + + /** Unsafe version of {@link #position$(XrVector3f) position$}. */ + public static void nposition$(long struct, XrVector3f value) { memCopy(value.address(), struct + XrHandMeshVertexMSFT.POSITION, XrVector3f.SIZEOF); } + /** Unsafe version of {@link #normal(XrVector3f) normal}. */ + public static void nnormal(long struct, XrVector3f value) { memCopy(value.address(), struct + XrHandMeshVertexMSFT.NORMAL, XrVector3f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrHandMeshVertexMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -254,9 +245,9 @@ public static class Buffer extends StructBuffer im /** * Creates a new {@code XrHandMeshVertexMSFT.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 XrHandMeshVertexMSFT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHandMeshVertexMSFT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -281,20 +272,20 @@ protected Buffer self() { protected XrHandMeshVertexMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link XrVector3f} view of the {@link XrHandMeshVertexMSFT#position$} field. */ - public XrVector3f position$() { return XrHandMeshVertexMSFT.nposition$(address()); } - /** @return a {@link XrVector3f} view of the {@link XrHandMeshVertexMSFT#normal} field. */ - public XrVector3f normal() { return XrHandMeshVertexMSFT.nnormal(address()); } - - /** Copies the specified {@link XrVector3f} to the {@link XrHandMeshVertexMSFT#position$} field. */ - public XrHandMeshVertexMSFT.Buffer position$(XrVector3f value) { XrHandMeshVertexMSFT.nposition$(address(), value); return this; } - /** Passes the {@link XrHandMeshVertexMSFT#position$} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandMeshVertexMSFT.Buffer position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrHandMeshVertexMSFT#normal} field. */ - public XrHandMeshVertexMSFT.Buffer normal(XrVector3f value) { XrHandMeshVertexMSFT.nnormal(address(), value); return this; } - /** Passes the {@link XrHandMeshVertexMSFT#normal} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandMeshVertexMSFT.Buffer normal(java.util.function.Consumer consumer) { consumer.accept(normal()); return this; } + + /** @return a {@link XrVector3f} view of the {@link XrHandMeshVertexMSFT#position$} field. */ + public XrVector3f position$() { return XrHandMeshVertexMSFT.nposition$(address()); } + /** @return a {@link XrVector3f} view of the {@link XrHandMeshVertexMSFT#normal} field. */ + public XrVector3f normal() { return XrHandMeshVertexMSFT.nnormal(address()); } + + /** Copies the specified {@link XrVector3f} to the {@link XrHandMeshVertexMSFT#position$} field. */ + public XrHandMeshVertexMSFT.Buffer position$(XrVector3f value) { XrHandMeshVertexMSFT.nposition$(address(), value); return this; } + /** Passes the {@link XrHandMeshVertexMSFT#position$} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshVertexMSFT.Buffer position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrHandMeshVertexMSFT#normal} field. */ + public XrHandMeshVertexMSFT.Buffer normal(XrVector3f value) { XrHandMeshVertexMSFT.nnormal(address(), value); return this; } + /** Passes the {@link XrHandMeshVertexMSFT#normal} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshVertexMSFT.Buffer normal(java.util.function.Consumer consumer) { consumer.accept(normal()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandPoseTypeInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandPoseTypeInfoMSFT.java index 9c41e68d54..fb2b94be29 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandPoseTypeInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandPoseTypeInfoMSFT.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 what hand pose type for the hand joint tracking. * @@ -39,8 +39,8 @@ * void const * {@link #next}; * XrHandPoseTypeMSFT {@link #handPoseType}; * } - */ -public class XrHandPoseTypeInfoMSFT extends Struct implements NativeResource { + */ +public class XrHandPoseTypeInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,32 +50,23 @@ public class XrHandPoseTypeInfoMSFT extends Struct imple /** The struct member offsets. */ public static final int - TYPE, - NEXT, - HANDPOSETYPE; + TYPE, + NEXT, + HANDPOSETYPE; 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); - HANDPOSETYPE = layout.offsetof(2); - } - - protected XrHandPoseTypeInfoMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrHandPoseTypeInfoMSFT create(long address, @Nullable ByteBuffer container) { - return new XrHandPoseTypeInfoMSFT(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + HANDPOSETYPE = layout.offsetof(2); } /** @@ -90,35 +81,35 @@ public XrHandPoseTypeInfoMSFT(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 XrHandPoseTypeMSFT} that describes the type of hand pose of the hand tracking. */ - @NativeType("XrHandPoseTypeMSFT") - public int handPoseType() { return nhandPoseType(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHandPoseTypeInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_POSE_TYPE_INFO_MSFT TYPE_HAND_POSE_TYPE_INFO_MSFT} value to the {@link #type} field. */ - public XrHandPoseTypeInfoMSFT type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_POSE_TYPE_INFO_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrHandPoseTypeInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #handPoseType} field. */ - public XrHandPoseTypeInfoMSFT handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { nhandPoseType(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 XrHandPoseTypeMSFT} that describes the type of hand pose of the hand tracking. */ + @NativeType("XrHandPoseTypeMSFT") + public int handPoseType() { return nhandPoseType(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandPoseTypeInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_POSE_TYPE_INFO_MSFT TYPE_HAND_POSE_TYPE_INFO_MSFT} value to the {@link #type} field. */ + public XrHandPoseTypeInfoMSFT type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_POSE_TYPE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandPoseTypeInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #handPoseType} field. */ + public XrHandPoseTypeInfoMSFT handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { nhandPoseType(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandPoseTypeInfoMSFT set( - int type, - long next, + int type, + long next, int handPoseType - ) { - type(type); - next(next); - handPoseType(handPoseType); + ) { + type(type); + next(next); + handPoseType(handPoseType); return this; } @@ -139,29 +130,29 @@ public XrHandPoseTypeInfoMSFT set(XrHandPoseTypeInfoMSFT src) { /** Returns a new {@code XrHandPoseTypeInfoMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrHandPoseTypeInfoMSFT malloc() { - return new XrHandPoseTypeInfoMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrHandPoseTypeInfoMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrHandPoseTypeInfoMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrHandPoseTypeInfoMSFT calloc() { - return new XrHandPoseTypeInfoMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrHandPoseTypeInfoMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrHandPoseTypeInfoMSFT} instance allocated with {@link BufferUtils}. */ public static XrHandPoseTypeInfoMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrHandPoseTypeInfoMSFT(memAddress(container), container); + return wrap(XrHandPoseTypeInfoMSFT.class, memAddress(container), container); } /** Returns a new {@code XrHandPoseTypeInfoMSFT} instance for the specified memory address. */ public static XrHandPoseTypeInfoMSFT create(long address) { - return new XrHandPoseTypeInfoMSFT(address, null); + return wrap(XrHandPoseTypeInfoMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrHandPoseTypeInfoMSFT createSafe(long address) { - return address == NULL ? null : new XrHandPoseTypeInfoMSFT(address, null); + return address == NULL ? null : wrap(XrHandPoseTypeInfoMSFT.class, address); } /** @@ -170,7 +161,7 @@ public static XrHandPoseTypeInfoMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrHandPoseTypeInfoMSFT.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 XrHandPoseTypeInfoMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrHandPoseTypeInfoMSFT.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 XrHandPoseTypeInfoMSFT.Buffer calloc(int capacity) { */ public static XrHandPoseTypeInfoMSFT.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 XrHandPoseTypeInfoMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrHandPoseTypeInfoMSFT.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 XrHandPoseTypeInfoMSFT.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 XrHandPoseTypeInfoMSFT.Buffer createSafe(long address, int capacit * @param stack the stack from which to allocate */ public static XrHandPoseTypeInfoMSFT malloc(MemoryStack stack) { - return new XrHandPoseTypeInfoMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrHandPoseTypeInfoMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -223,7 +214,7 @@ public static XrHandPoseTypeInfoMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrHandPoseTypeInfoMSFT calloc(MemoryStack stack) { - return new XrHandPoseTypeInfoMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrHandPoseTypeInfoMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -233,7 +224,7 @@ public static XrHandPoseTypeInfoMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHandPoseTypeInfoMSFT.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 XrHandPoseTypeInfoMSFT.Buffer malloc(int capacity, MemoryStack sta * @param capacity the buffer capacity */ public static XrHandPoseTypeInfoMSFT.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 + XrHandPoseTypeInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandPoseTypeInfoMSFT.NEXT); } - /** Unsafe version of {@link #handPoseType}. */ - public static int nhandPoseType(long struct) { return UNSAFE.getInt(null, struct + XrHandPoseTypeInfoMSFT.HANDPOSETYPE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandPoseTypeInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandPoseTypeInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #handPoseType(int) handPoseType}. */ - public static void nhandPoseType(long struct, int value) { UNSAFE.putInt(null, struct + XrHandPoseTypeInfoMSFT.HANDPOSETYPE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandPoseTypeInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandPoseTypeInfoMSFT.NEXT); } + /** Unsafe version of {@link #handPoseType}. */ + public static int nhandPoseType(long struct) { return UNSAFE.getInt(null, struct + XrHandPoseTypeInfoMSFT.HANDPOSETYPE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandPoseTypeInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandPoseTypeInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #handPoseType(int) handPoseType}. */ + public static void nhandPoseType(long struct, int value) { UNSAFE.putInt(null, struct + XrHandPoseTypeInfoMSFT.HANDPOSETYPE, value); } + + // ----------------------------------- /** An array of {@link XrHandPoseTypeInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -272,9 +263,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrHandPoseTypeInfoMSFT.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 XrHandPoseTypeInfoMSFT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHandPoseTypeInfoMSFT#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 XrHandPoseTypeInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandPoseTypeInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandPoseTypeInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrHandPoseTypeInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrHandPoseTypeInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrHandPoseTypeInfoMSFT#handPoseType} field. */ - @NativeType("XrHandPoseTypeMSFT") - public int handPoseType() { return XrHandPoseTypeInfoMSFT.nhandPoseType(address()); } - - /** Sets the specified value to the {@link XrHandPoseTypeInfoMSFT#type} field. */ - public XrHandPoseTypeInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHandPoseTypeInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_POSE_TYPE_INFO_MSFT TYPE_HAND_POSE_TYPE_INFO_MSFT} value to the {@link XrHandPoseTypeInfoMSFT#type} field. */ - public XrHandPoseTypeInfoMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_POSE_TYPE_INFO_MSFT); } - /** Sets the specified value to the {@link XrHandPoseTypeInfoMSFT#next} field. */ - public XrHandPoseTypeInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrHandPoseTypeInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrHandPoseTypeInfoMSFT#handPoseType} field. */ - public XrHandPoseTypeInfoMSFT.Buffer handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { XrHandPoseTypeInfoMSFT.nhandPoseType(address(), value); return this; } + + /** @return the value of the {@link XrHandPoseTypeInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandPoseTypeInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrHandPoseTypeInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrHandPoseTypeInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrHandPoseTypeInfoMSFT#handPoseType} field. */ + @NativeType("XrHandPoseTypeMSFT") + public int handPoseType() { return XrHandPoseTypeInfoMSFT.nhandPoseType(address()); } + + /** Sets the specified value to the {@link XrHandPoseTypeInfoMSFT#type} field. */ + public XrHandPoseTypeInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHandPoseTypeInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_POSE_TYPE_INFO_MSFT TYPE_HAND_POSE_TYPE_INFO_MSFT} value to the {@link XrHandPoseTypeInfoMSFT#type} field. */ + public XrHandPoseTypeInfoMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_POSE_TYPE_INFO_MSFT); } + /** Sets the specified value to the {@link XrHandPoseTypeInfoMSFT#next} field. */ + public XrHandPoseTypeInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrHandPoseTypeInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrHandPoseTypeInfoMSFT#handPoseType} field. */ + public XrHandPoseTypeInfoMSFT.Buffer handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { XrHandPoseTypeInfoMSFT.nhandPoseType(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackerCreateInfoEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackerCreateInfoEXT.java index ea6fcf9ba3..10fd27b710 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackerCreateInfoEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackerCreateInfoEXT.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 hand joints handle. * @@ -41,8 +41,8 @@ * XrHandEXT {@link #hand}; * XrHandJointSetEXT {@link #handJointSet}; * } - */ -public class XrHandTrackerCreateInfoEXT extends Struct implements NativeResource { + */ +public class XrHandTrackerCreateInfoEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,35 +52,26 @@ public class XrHandTrackerCreateInfoEXT extends Struct implements NativeResource { @@ -290,9 +281,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 XrHandTrackerCreateInfoEXT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHandTrackerCreateInfoEXT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -317,32 +308,32 @@ protected Buffer self() { protected XrHandTrackerCreateInfoEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandTrackerCreateInfoEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandTrackerCreateInfoEXT.ntype(address()); } - /** @return the value of the {@link XrHandTrackerCreateInfoEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrHandTrackerCreateInfoEXT.nnext(address()); } - /** @return the value of the {@link XrHandTrackerCreateInfoEXT#hand} field. */ - @NativeType("XrHandEXT") - public int hand() { return XrHandTrackerCreateInfoEXT.nhand(address()); } - /** @return the value of the {@link XrHandTrackerCreateInfoEXT#handJointSet} field. */ - @NativeType("XrHandJointSetEXT") - public int handJointSet() { return XrHandTrackerCreateInfoEXT.nhandJointSet(address()); } - - /** Sets the specified value to the {@link XrHandTrackerCreateInfoEXT#type} field. */ - public XrHandTrackerCreateInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackerCreateInfoEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_TRACKER_CREATE_INFO_EXT TYPE_HAND_TRACKER_CREATE_INFO_EXT} value to the {@link XrHandTrackerCreateInfoEXT#type} field. */ - public XrHandTrackerCreateInfoEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_TRACKER_CREATE_INFO_EXT); } - /** Sets the specified value to the {@link XrHandTrackerCreateInfoEXT#next} field. */ - public XrHandTrackerCreateInfoEXT.Buffer next(@NativeType("void const *") long value) { XrHandTrackerCreateInfoEXT.nnext(address(), value); return this; } - /** Prepends the specified {@link XrHandPoseTypeInfoMSFT} value to the {@code next} chain. */ - public XrHandTrackerCreateInfoEXT.Buffer next(XrHandPoseTypeInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrHandTrackerCreateInfoEXT#hand} field. */ - public XrHandTrackerCreateInfoEXT.Buffer hand(@NativeType("XrHandEXT") int value) { XrHandTrackerCreateInfoEXT.nhand(address(), value); return this; } - /** Sets the specified value to the {@link XrHandTrackerCreateInfoEXT#handJointSet} field. */ - public XrHandTrackerCreateInfoEXT.Buffer handJointSet(@NativeType("XrHandJointSetEXT") int value) { XrHandTrackerCreateInfoEXT.nhandJointSet(address(), value); return this; } + + /** @return the value of the {@link XrHandTrackerCreateInfoEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandTrackerCreateInfoEXT.ntype(address()); } + /** @return the value of the {@link XrHandTrackerCreateInfoEXT#next} field. */ + @NativeType("void const *") + public long next() { return XrHandTrackerCreateInfoEXT.nnext(address()); } + /** @return the value of the {@link XrHandTrackerCreateInfoEXT#hand} field. */ + @NativeType("XrHandEXT") + public int hand() { return XrHandTrackerCreateInfoEXT.nhand(address()); } + /** @return the value of the {@link XrHandTrackerCreateInfoEXT#handJointSet} field. */ + @NativeType("XrHandJointSetEXT") + public int handJointSet() { return XrHandTrackerCreateInfoEXT.nhandJointSet(address()); } + + /** Sets the specified value to the {@link XrHandTrackerCreateInfoEXT#type} field. */ + public XrHandTrackerCreateInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackerCreateInfoEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_TRACKER_CREATE_INFO_EXT TYPE_HAND_TRACKER_CREATE_INFO_EXT} value to the {@link XrHandTrackerCreateInfoEXT#type} field. */ + public XrHandTrackerCreateInfoEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_TRACKER_CREATE_INFO_EXT); } + /** Sets the specified value to the {@link XrHandTrackerCreateInfoEXT#next} field. */ + public XrHandTrackerCreateInfoEXT.Buffer next(@NativeType("void const *") long value) { XrHandTrackerCreateInfoEXT.nnext(address(), value); return this; } + /** Prepends the specified {@link XrHandPoseTypeInfoMSFT} value to the {@code next} chain. */ + public XrHandTrackerCreateInfoEXT.Buffer next(XrHandPoseTypeInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrHandTrackerCreateInfoEXT#hand} field. */ + public XrHandTrackerCreateInfoEXT.Buffer hand(@NativeType("XrHandEXT") int value) { XrHandTrackerCreateInfoEXT.nhand(address(), value); return this; } + /** Sets the specified value to the {@link XrHandTrackerCreateInfoEXT#handJointSet} field. */ + public XrHandTrackerCreateInfoEXT.Buffer handJointSet(@NativeType("XrHandJointSetEXT") int value) { XrHandTrackerCreateInfoEXT.nhandJointSet(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackerEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackerEXT.java index 5d3dec3851..e6d1148e32 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackerEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackerEXT.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrHandTrackerEXT} handle. */ + +/** Wraps an {@code XrHandTrackerEXT} handle. */ public class XrHandTrackerEXT 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/XrHandTrackingAimStateFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingAimStateFB.java index 23393b04ba..459db63521 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingAimStateFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingAimStateFB.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.*; + /** * Current aiming gesture state for the hand. * @@ -43,8 +43,8 @@ * float {@link #pinchStrengthRing}; * float {@link #pinchStrengthLittle}; * } - */ -public class XrHandTrackingAimStateFB extends Struct implements NativeResource { + */ +public class XrHandTrackingAimStateFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,47 +54,38 @@ public class XrHandTrackingAimStateFB extends Struct i /** The struct member offsets. */ public static final int - TYPE, - NEXT, - STATUS, - AIMPOSE, - PINCHSTRENGTHINDEX, - PINCHSTRENGTHMIDDLE, - PINCHSTRENGTHRING, - PINCHSTRENGTHLITTLE; + TYPE, + NEXT, + STATUS, + AIMPOSE, + PINCHSTRENGTHINDEX, + PINCHSTRENGTHMIDDLE, + PINCHSTRENGTHRING, + PINCHSTRENGTHLITTLE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), - __member(4), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), + __member(4), + __member(4), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - STATUS = layout.offsetof(2); - AIMPOSE = layout.offsetof(3); - PINCHSTRENGTHINDEX = layout.offsetof(4); - PINCHSTRENGTHMIDDLE = layout.offsetof(5); - PINCHSTRENGTHRING = layout.offsetof(6); - PINCHSTRENGTHLITTLE = layout.offsetof(7); - } - - protected XrHandTrackingAimStateFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrHandTrackingAimStateFB create(long address, @Nullable ByteBuffer container) { - return new XrHandTrackingAimStateFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + STATUS = layout.offsetof(2); + AIMPOSE = layout.offsetof(3); + PINCHSTRENGTHINDEX = layout.offsetof(4); + PINCHSTRENGTHMIDDLE = layout.offsetof(5); + PINCHSTRENGTHRING = layout.offsetof(6); + PINCHSTRENGTHLITTLE = layout.offsetof(7); } /** @@ -109,41 +100,41 @@ public XrHandTrackingAimStateFB(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()); } - /** a bitmask of {@code XrHandTrackingAimFlagBitsFB} describing the availability and state of other signals. */ - @NativeType("XrHandTrackingAimFlagsFB") - public long status() { return nstatus(address()); } - /** a system-determined "aim" pose, similar in intent and convention to the aim poses used with the action system, based on hand data. */ - public XrPosef aimPose() { return naimPose(address()); } - /** the current pinching strength for the index finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning index and thumb are fully touching. */ - public float pinchStrengthIndex() { return npinchStrengthIndex(address()); } - /** the current pinching strength for the middle finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning middle and thumb are fully touching. */ - public float pinchStrengthMiddle() { return npinchStrengthMiddle(address()); } - /** the current pinching strength for the ring finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning ring and thumb are fully touching. */ - public float pinchStrengthRing() { return npinchStrengthRing(address()); } - /** the current pinching strength for the little finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning little and thumb are fully touching. */ - public float pinchStrengthLittle() { return npinchStrengthLittle(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHandTrackingAimStateFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBHandTrackingAim#XR_TYPE_HAND_TRACKING_AIM_STATE_FB TYPE_HAND_TRACKING_AIM_STATE_FB} value to the {@link #type} field. */ - public XrHandTrackingAimStateFB type$Default() { return type(FBHandTrackingAim.XR_TYPE_HAND_TRACKING_AIM_STATE_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrHandTrackingAimStateFB 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 or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a bitmask of {@code XrHandTrackingAimFlagBitsFB} describing the availability and state of other signals. */ + @NativeType("XrHandTrackingAimFlagsFB") + public long status() { return nstatus(address()); } + /** a system-determined "aim" pose, similar in intent and convention to the aim poses used with the action system, based on hand data. */ + public XrPosef aimPose() { return naimPose(address()); } + /** the current pinching strength for the index finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning index and thumb are fully touching. */ + public float pinchStrengthIndex() { return npinchStrengthIndex(address()); } + /** the current pinching strength for the middle finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning middle and thumb are fully touching. */ + public float pinchStrengthMiddle() { return npinchStrengthMiddle(address()); } + /** the current pinching strength for the ring finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning ring and thumb are fully touching. */ + public float pinchStrengthRing() { return npinchStrengthRing(address()); } + /** the current pinching strength for the little finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning little and thumb are fully touching. */ + public float pinchStrengthLittle() { return npinchStrengthLittle(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandTrackingAimStateFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBHandTrackingAim#XR_TYPE_HAND_TRACKING_AIM_STATE_FB TYPE_HAND_TRACKING_AIM_STATE_FB} value to the {@link #type} field. */ + public XrHandTrackingAimStateFB type$Default() { return type(FBHandTrackingAim.XR_TYPE_HAND_TRACKING_AIM_STATE_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandTrackingAimStateFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandTrackingAimStateFB set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -164,29 +155,29 @@ public XrHandTrackingAimStateFB set(XrHandTrackingAimStateFB src) { /** Returns a new {@code XrHandTrackingAimStateFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrHandTrackingAimStateFB malloc() { - return new XrHandTrackingAimStateFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrHandTrackingAimStateFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrHandTrackingAimStateFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrHandTrackingAimStateFB calloc() { - return new XrHandTrackingAimStateFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrHandTrackingAimStateFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrHandTrackingAimStateFB} instance allocated with {@link BufferUtils}. */ public static XrHandTrackingAimStateFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrHandTrackingAimStateFB(memAddress(container), container); + return wrap(XrHandTrackingAimStateFB.class, memAddress(container), container); } /** Returns a new {@code XrHandTrackingAimStateFB} instance for the specified memory address. */ public static XrHandTrackingAimStateFB create(long address) { - return new XrHandTrackingAimStateFB(address, null); + return wrap(XrHandTrackingAimStateFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrHandTrackingAimStateFB createSafe(long address) { - return address == NULL ? null : new XrHandTrackingAimStateFB(address, null); + return address == NULL ? null : wrap(XrHandTrackingAimStateFB.class, address); } /** @@ -195,7 +186,7 @@ public static XrHandTrackingAimStateFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrHandTrackingAimStateFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -204,7 +195,7 @@ public static XrHandTrackingAimStateFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrHandTrackingAimStateFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -214,7 +205,7 @@ public static XrHandTrackingAimStateFB.Buffer calloc(int capacity) { */ public static XrHandTrackingAimStateFB.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); } /** @@ -224,13 +215,13 @@ public static XrHandTrackingAimStateFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrHandTrackingAimStateFB.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 XrHandTrackingAimStateFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -239,7 +230,7 @@ public static XrHandTrackingAimStateFB.Buffer createSafe(long address, int capac * @param stack the stack from which to allocate */ public static XrHandTrackingAimStateFB malloc(MemoryStack stack) { - return new XrHandTrackingAimStateFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrHandTrackingAimStateFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -248,7 +239,7 @@ public static XrHandTrackingAimStateFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrHandTrackingAimStateFB calloc(MemoryStack stack) { - return new XrHandTrackingAimStateFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrHandTrackingAimStateFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -258,7 +249,7 @@ public static XrHandTrackingAimStateFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHandTrackingAimStateFB.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); } /** @@ -268,34 +259,34 @@ public static XrHandTrackingAimStateFB.Buffer malloc(int capacity, MemoryStack s * @param capacity the buffer capacity */ public static XrHandTrackingAimStateFB.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 + XrHandTrackingAimStateFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandTrackingAimStateFB.NEXT); } - /** Unsafe version of {@link #status}. */ - public static long nstatus(long struct) { return UNSAFE.getLong(null, struct + XrHandTrackingAimStateFB.STATUS); } - /** Unsafe version of {@link #aimPose}. */ - public static XrPosef naimPose(long struct) { return XrPosef.create(struct + XrHandTrackingAimStateFB.AIMPOSE); } - /** Unsafe version of {@link #pinchStrengthIndex}. */ - public static float npinchStrengthIndex(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingAimStateFB.PINCHSTRENGTHINDEX); } - /** Unsafe version of {@link #pinchStrengthMiddle}. */ - public static float npinchStrengthMiddle(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingAimStateFB.PINCHSTRENGTHMIDDLE); } - /** Unsafe version of {@link #pinchStrengthRing}. */ - public static float npinchStrengthRing(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingAimStateFB.PINCHSTRENGTHRING); } - /** Unsafe version of {@link #pinchStrengthLittle}. */ - public static float npinchStrengthLittle(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingAimStateFB.PINCHSTRENGTHLITTLE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingAimStateFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandTrackingAimStateFB.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingAimStateFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandTrackingAimStateFB.NEXT); } + /** Unsafe version of {@link #status}. */ + public static long nstatus(long struct) { return UNSAFE.getLong(null, struct + XrHandTrackingAimStateFB.STATUS); } + /** Unsafe version of {@link #aimPose}. */ + public static XrPosef naimPose(long struct) { return XrPosef.create(struct + XrHandTrackingAimStateFB.AIMPOSE); } + /** Unsafe version of {@link #pinchStrengthIndex}. */ + public static float npinchStrengthIndex(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingAimStateFB.PINCHSTRENGTHINDEX); } + /** Unsafe version of {@link #pinchStrengthMiddle}. */ + public static float npinchStrengthMiddle(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingAimStateFB.PINCHSTRENGTHMIDDLE); } + /** Unsafe version of {@link #pinchStrengthRing}. */ + public static float npinchStrengthRing(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingAimStateFB.PINCHSTRENGTHRING); } + /** Unsafe version of {@link #pinchStrengthLittle}. */ + public static float npinchStrengthLittle(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingAimStateFB.PINCHSTRENGTHLITTLE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingAimStateFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandTrackingAimStateFB.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrHandTrackingAimStateFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -305,9 +296,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 XrHandTrackingAimStateFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHandTrackingAimStateFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -332,33 +323,33 @@ protected Buffer self() { protected XrHandTrackingAimStateFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandTrackingAimStateFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandTrackingAimStateFB.ntype(address()); } - /** @return the value of the {@link XrHandTrackingAimStateFB#next} field. */ - @NativeType("void *") - public long next() { return XrHandTrackingAimStateFB.nnext(address()); } - /** @return the value of the {@link XrHandTrackingAimStateFB#status} field. */ - @NativeType("XrHandTrackingAimFlagsFB") - public long status() { return XrHandTrackingAimStateFB.nstatus(address()); } - /** @return a {@link XrPosef} view of the {@link XrHandTrackingAimStateFB#aimPose} field. */ - public XrPosef aimPose() { return XrHandTrackingAimStateFB.naimPose(address()); } - /** @return the value of the {@link XrHandTrackingAimStateFB#pinchStrengthIndex} field. */ - public float pinchStrengthIndex() { return XrHandTrackingAimStateFB.npinchStrengthIndex(address()); } - /** @return the value of the {@link XrHandTrackingAimStateFB#pinchStrengthMiddle} field. */ - public float pinchStrengthMiddle() { return XrHandTrackingAimStateFB.npinchStrengthMiddle(address()); } - /** @return the value of the {@link XrHandTrackingAimStateFB#pinchStrengthRing} field. */ - public float pinchStrengthRing() { return XrHandTrackingAimStateFB.npinchStrengthRing(address()); } - /** @return the value of the {@link XrHandTrackingAimStateFB#pinchStrengthLittle} field. */ - public float pinchStrengthLittle() { return XrHandTrackingAimStateFB.npinchStrengthLittle(address()); } - - /** Sets the specified value to the {@link XrHandTrackingAimStateFB#type} field. */ - public XrHandTrackingAimStateFB.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackingAimStateFB.ntype(address(), value); return this; } - /** Sets the {@link FBHandTrackingAim#XR_TYPE_HAND_TRACKING_AIM_STATE_FB TYPE_HAND_TRACKING_AIM_STATE_FB} value to the {@link XrHandTrackingAimStateFB#type} field. */ - public XrHandTrackingAimStateFB.Buffer type$Default() { return type(FBHandTrackingAim.XR_TYPE_HAND_TRACKING_AIM_STATE_FB); } - /** Sets the specified value to the {@link XrHandTrackingAimStateFB#next} field. */ - public XrHandTrackingAimStateFB.Buffer next(@NativeType("void *") long value) { XrHandTrackingAimStateFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrHandTrackingAimStateFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandTrackingAimStateFB.ntype(address()); } + /** @return the value of the {@link XrHandTrackingAimStateFB#next} field. */ + @NativeType("void *") + public long next() { return XrHandTrackingAimStateFB.nnext(address()); } + /** @return the value of the {@link XrHandTrackingAimStateFB#status} field. */ + @NativeType("XrHandTrackingAimFlagsFB") + public long status() { return XrHandTrackingAimStateFB.nstatus(address()); } + /** @return a {@link XrPosef} view of the {@link XrHandTrackingAimStateFB#aimPose} field. */ + public XrPosef aimPose() { return XrHandTrackingAimStateFB.naimPose(address()); } + /** @return the value of the {@link XrHandTrackingAimStateFB#pinchStrengthIndex} field. */ + public float pinchStrengthIndex() { return XrHandTrackingAimStateFB.npinchStrengthIndex(address()); } + /** @return the value of the {@link XrHandTrackingAimStateFB#pinchStrengthMiddle} field. */ + public float pinchStrengthMiddle() { return XrHandTrackingAimStateFB.npinchStrengthMiddle(address()); } + /** @return the value of the {@link XrHandTrackingAimStateFB#pinchStrengthRing} field. */ + public float pinchStrengthRing() { return XrHandTrackingAimStateFB.npinchStrengthRing(address()); } + /** @return the value of the {@link XrHandTrackingAimStateFB#pinchStrengthLittle} field. */ + public float pinchStrengthLittle() { return XrHandTrackingAimStateFB.npinchStrengthLittle(address()); } + + /** Sets the specified value to the {@link XrHandTrackingAimStateFB#type} field. */ + public XrHandTrackingAimStateFB.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackingAimStateFB.ntype(address(), value); return this; } + /** Sets the {@link FBHandTrackingAim#XR_TYPE_HAND_TRACKING_AIM_STATE_FB TYPE_HAND_TRACKING_AIM_STATE_FB} value to the {@link XrHandTrackingAimStateFB#type} field. */ + public XrHandTrackingAimStateFB.Buffer type$Default() { return type(FBHandTrackingAim.XR_TYPE_HAND_TRACKING_AIM_STATE_FB); } + /** Sets the specified value to the {@link XrHandTrackingAimStateFB#next} field. */ + public XrHandTrackingAimStateFB.Buffer next(@NativeType("void *") long value) { XrHandTrackingAimStateFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingCapsulesStateFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingCapsulesStateFB.java index 5851fd15e2..16e3c2b707 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingCapsulesStateFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingCapsulesStateFB.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.FBHandTrackingCapsules.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.FBHandTrackingCapsules.*; + /** * A list of capsules associated to hand joints. * @@ -41,8 +41,8 @@ * void * {@link #next}; * {@link XrHandCapsuleFB XrHandCapsuleFB} {@link #capsules}[XR_HAND_TRACKING_CAPSULE_COUNT_FB]; * } - */ -public class XrHandTrackingCapsulesStateFB extends Struct implements NativeResource { + */ +public class XrHandTrackingCapsulesStateFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,32 +52,23 @@ public class XrHandTrackingCapsulesStateFB extends Struct implements NativeResource { @@ -274,9 +265,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 XrHandTrackingCapsulesStateFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHandTrackingCapsulesStateFB#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 XrHandTrackingCapsulesStateFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandTrackingCapsulesStateFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandTrackingCapsulesStateFB.ntype(address()); } - /** @return the value of the {@link XrHandTrackingCapsulesStateFB#next} field. */ - @NativeType("void *") - public long next() { return XrHandTrackingCapsulesStateFB.nnext(address()); } - /** @return a {@link XrHandCapsuleFB}.Buffer view of the {@link XrHandTrackingCapsulesStateFB#capsules} field. */ - @NativeType("XrHandCapsuleFB[XR_HAND_TRACKING_CAPSULE_COUNT_FB]") - public XrHandCapsuleFB.Buffer capsules() { return XrHandTrackingCapsulesStateFB.ncapsules(address()); } - /** @return a {@link XrHandCapsuleFB} view of the struct at the specified index of the {@link XrHandTrackingCapsulesStateFB#capsules} field. */ - public XrHandCapsuleFB capsules(int index) { return XrHandTrackingCapsulesStateFB.ncapsules(address(), index); } - - /** Sets the specified value to the {@link XrHandTrackingCapsulesStateFB#type} field. */ - public XrHandTrackingCapsulesStateFB.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackingCapsulesStateFB.ntype(address(), value); return this; } - /** Sets the {@link FBHandTrackingCapsules#XR_TYPE_HAND_TRACKING_CAPSULES_STATE_FB TYPE_HAND_TRACKING_CAPSULES_STATE_FB} value to the {@link XrHandTrackingCapsulesStateFB#type} field. */ - public XrHandTrackingCapsulesStateFB.Buffer type$Default() { return type(FBHandTrackingCapsules.XR_TYPE_HAND_TRACKING_CAPSULES_STATE_FB); } - /** Sets the specified value to the {@link XrHandTrackingCapsulesStateFB#next} field. */ - public XrHandTrackingCapsulesStateFB.Buffer next(@NativeType("void *") long value) { XrHandTrackingCapsulesStateFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrHandTrackingCapsulesStateFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandTrackingCapsulesStateFB.ntype(address()); } + /** @return the value of the {@link XrHandTrackingCapsulesStateFB#next} field. */ + @NativeType("void *") + public long next() { return XrHandTrackingCapsulesStateFB.nnext(address()); } + /** @return a {@link XrHandCapsuleFB}.Buffer view of the {@link XrHandTrackingCapsulesStateFB#capsules} field. */ + @NativeType("XrHandCapsuleFB[XR_HAND_TRACKING_CAPSULE_COUNT_FB]") + public XrHandCapsuleFB.Buffer capsules() { return XrHandTrackingCapsulesStateFB.ncapsules(address()); } + /** @return a {@link XrHandCapsuleFB} view of the struct at the specified index of the {@link XrHandTrackingCapsulesStateFB#capsules} field. */ + public XrHandCapsuleFB capsules(int index) { return XrHandTrackingCapsulesStateFB.ncapsules(address(), index); } + + /** Sets the specified value to the {@link XrHandTrackingCapsulesStateFB#type} field. */ + public XrHandTrackingCapsulesStateFB.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackingCapsulesStateFB.ntype(address(), value); return this; } + /** Sets the {@link FBHandTrackingCapsules#XR_TYPE_HAND_TRACKING_CAPSULES_STATE_FB TYPE_HAND_TRACKING_CAPSULES_STATE_FB} value to the {@link XrHandTrackingCapsulesStateFB#type} field. */ + public XrHandTrackingCapsulesStateFB.Buffer type$Default() { return type(FBHandTrackingCapsules.XR_TYPE_HAND_TRACKING_CAPSULES_STATE_FB); } + /** Sets the specified value to the {@link XrHandTrackingCapsulesStateFB#next} field. */ + public XrHandTrackingCapsulesStateFB.Buffer next(@NativeType("void *") long value) { XrHandTrackingCapsulesStateFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingMeshFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingMeshFB.java index fa7a4d1837..c9e534cd01 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingMeshFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingMeshFB.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.*; + /** * A container of mesh data. * @@ -67,8 +67,8 @@ * uint32_t {@link #indexCountOutput}; * int16_t * {@link #indices}; * } - */ -public class XrHandTrackingMeshFB extends Struct implements NativeResource { + */ +public class XrHandTrackingMeshFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -78,74 +78,65 @@ public class XrHandTrackingMeshFB extends Struct implement /** The struct member offsets. */ public static final int - TYPE, - NEXT, - JOINTCAPACITYINPUT, - JOINTCOUNTOUTPUT, - JOINTBINDPOSES, - JOINTRADII, - JOINTPARENTS, - VERTEXCAPACITYINPUT, - VERTEXCOUNTOUTPUT, - VERTEXPOSITIONS, - VERTEXNORMALS, - VERTEXUVS, - VERTEXBLENDINDICES, - VERTEXBLENDWEIGHTS, - INDEXCAPACITYINPUT, - INDEXCOUNTOUTPUT, - INDICES; + TYPE, + NEXT, + JOINTCAPACITYINPUT, + JOINTCOUNTOUTPUT, + JOINTBINDPOSES, + JOINTRADII, + JOINTPARENTS, + VERTEXCAPACITYINPUT, + VERTEXCOUNTOUTPUT, + VERTEXPOSITIONS, + VERTEXNORMALS, + VERTEXUVS, + VERTEXBLENDINDICES, + VERTEXBLENDWEIGHTS, + INDEXCAPACITYINPUT, + INDEXCOUNTOUTPUT, + INDICES; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(4), + __member(4), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - JOINTCAPACITYINPUT = layout.offsetof(2); - JOINTCOUNTOUTPUT = layout.offsetof(3); - JOINTBINDPOSES = layout.offsetof(4); - JOINTRADII = layout.offsetof(5); - JOINTPARENTS = layout.offsetof(6); - VERTEXCAPACITYINPUT = layout.offsetof(7); - VERTEXCOUNTOUTPUT = layout.offsetof(8); - VERTEXPOSITIONS = layout.offsetof(9); - VERTEXNORMALS = layout.offsetof(10); - VERTEXUVS = layout.offsetof(11); - VERTEXBLENDINDICES = layout.offsetof(12); - VERTEXBLENDWEIGHTS = layout.offsetof(13); - INDEXCAPACITYINPUT = layout.offsetof(14); - INDEXCOUNTOUTPUT = layout.offsetof(15); - INDICES = layout.offsetof(16); - } - - protected XrHandTrackingMeshFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrHandTrackingMeshFB create(long address, @Nullable ByteBuffer container) { - return new XrHandTrackingMeshFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + JOINTCAPACITYINPUT = layout.offsetof(2); + JOINTCOUNTOUTPUT = layout.offsetof(3); + JOINTBINDPOSES = layout.offsetof(4); + JOINTRADII = layout.offsetof(5); + JOINTPARENTS = layout.offsetof(6); + VERTEXCAPACITYINPUT = layout.offsetof(7); + VERTEXCOUNTOUTPUT = layout.offsetof(8); + VERTEXPOSITIONS = layout.offsetof(9); + VERTEXNORMALS = layout.offsetof(10); + VERTEXUVS = layout.offsetof(11); + VERTEXBLENDINDICES = layout.offsetof(12); + VERTEXBLENDWEIGHTS = layout.offsetof(13); + INDEXCAPACITYINPUT = layout.offsetof(14); + INDEXCOUNTOUTPUT = layout.offsetof(15); + INDICES = layout.offsetof(16); } /** @@ -160,142 +151,142 @@ public XrHandTrackingMeshFB(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()); } - /** the capacity of the joint data arrays in this structure, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int jointCapacityInput() { return njointCapacityInput(address()); } - /** filled in by the runtime with the count of joint data elements written, or the required capacity in the case that any of {@code jointCapacityInput}, {@code vertexCapacityInput}, or {@code indexCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int jointCountOutput() { return njointCountOutput(address()); } - /** an array of poses that matches what is returned by {@link EXTHandTracking#xrLocateHandJointsEXT LocateHandJointsEXT} which describes the hand skeleton’s bind pose. */ - @Nullable - @NativeType("XrPosef *") - public XrPosef.Buffer jointBindPoses() { return njointBindPoses(address()); } - /** an array of joint radii at bind pose. */ - @Nullable - @NativeType("float *") - public FloatBuffer jointRadii() { return njointRadii(address()); } - /** an array of joint parents to define a bone hierarchy for the hand skeleton. */ - @Nullable - @NativeType("XrHandJointEXT *") - public IntBuffer jointParents() { return njointParents(address()); } - /** the capacity of the vertex data arrays in this structure, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int vertexCapacityInput() { return nvertexCapacityInput(address()); } - /** filled in by the runtime with the count of vertex data elements written, or the required capacity in the case that any of {@code jointCapacityInput}, {@code vertexCapacityInput}, or {@code indexCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int vertexCountOutput() { return nvertexCountOutput(address()); } - /** an array of 3D vertex positions. */ - @Nullable - @NativeType("XrVector3f *") - public XrVector3f.Buffer vertexPositions() { return nvertexPositions(address()); } - /** an array of 3D vertex normals. */ - @Nullable - @NativeType("XrVector3f *") - public XrVector3f.Buffer vertexNormals() { return nvertexNormals(address()); } - /** an array of texture coordinates for this vertex. */ - @Nullable - @NativeType("XrVector2f *") - public XrVector2f.Buffer vertexUVs() { return nvertexUVs(address()); } - /** an array of bone blend indices. */ - @Nullable - @NativeType("XrVector4sFB *") - public XrVector4sFB.Buffer vertexBlendIndices() { return nvertexBlendIndices(address()); } - /** an array of bone blend weights. */ - @Nullable - @NativeType("XrVector4f *") - public XrVector4f.Buffer vertexBlendWeights() { return nvertexBlendWeights(address()); } - /** the capacity of the index data arrays in this structure, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int indexCapacityInput() { return nindexCapacityInput(address()); } - /** filled in by the runtime with the count of index data elements written, or the required capacity in the case that any of {@code jointCapacityInput}, {@code vertexCapacityInput}, or {@code indexCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int indexCountOutput() { return nindexCountOutput(address()); } - /** an array of triangle indices. */ - @Nullable - @NativeType("int16_t *") - public ShortBuffer indices() { return nindices(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHandTrackingMeshFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBHandTrackingMesh#XR_TYPE_HAND_TRACKING_MESH_FB TYPE_HAND_TRACKING_MESH_FB} value to the {@link #type} field. */ - public XrHandTrackingMeshFB type$Default() { return type(FBHandTrackingMesh.XR_TYPE_HAND_TRACKING_MESH_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrHandTrackingMeshFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #jointCapacityInput} field. */ - public XrHandTrackingMeshFB jointCapacityInput(@NativeType("uint32_t") int value) { njointCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #jointCountOutput} field. */ - public XrHandTrackingMeshFB jointCountOutput(@NativeType("uint32_t") int value) { njointCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrPosef.Buffer} to the {@link #jointBindPoses} field. */ - public XrHandTrackingMeshFB jointBindPoses(@Nullable @NativeType("XrPosef *") XrPosef.Buffer value) { njointBindPoses(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link #jointRadii} field. */ - public XrHandTrackingMeshFB jointRadii(@Nullable @NativeType("float *") FloatBuffer value) { njointRadii(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link #jointParents} field. */ - public XrHandTrackingMeshFB jointParents(@Nullable @NativeType("XrHandJointEXT *") IntBuffer value) { njointParents(address(), value); return this; } - /** Sets the specified value to the {@link #vertexCapacityInput} field. */ - public XrHandTrackingMeshFB vertexCapacityInput(@NativeType("uint32_t") int value) { nvertexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #vertexCountOutput} field. */ - public XrHandTrackingMeshFB vertexCountOutput(@NativeType("uint32_t") int value) { nvertexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link #vertexPositions} field. */ - public XrHandTrackingMeshFB vertexPositions(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { nvertexPositions(address(), value); return this; } - /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link #vertexNormals} field. */ - public XrHandTrackingMeshFB vertexNormals(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { nvertexNormals(address(), value); return this; } - /** Sets the address of the specified {@link XrVector2f.Buffer} to the {@link #vertexUVs} field. */ - public XrHandTrackingMeshFB vertexUVs(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { nvertexUVs(address(), value); return this; } - /** Sets the address of the specified {@link XrVector4sFB.Buffer} to the {@link #vertexBlendIndices} field. */ - public XrHandTrackingMeshFB vertexBlendIndices(@Nullable @NativeType("XrVector4sFB *") XrVector4sFB.Buffer value) { nvertexBlendIndices(address(), value); return this; } - /** Sets the address of the specified {@link XrVector4f.Buffer} to the {@link #vertexBlendWeights} field. */ - public XrHandTrackingMeshFB vertexBlendWeights(@Nullable @NativeType("XrVector4f *") XrVector4f.Buffer value) { nvertexBlendWeights(address(), value); return this; } - /** Sets the specified value to the {@link #indexCapacityInput} field. */ - public XrHandTrackingMeshFB indexCapacityInput(@NativeType("uint32_t") int value) { nindexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #indexCountOutput} field. */ - public XrHandTrackingMeshFB indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link ShortBuffer} to the {@link #indices} field. */ - public XrHandTrackingMeshFB indices(@Nullable @NativeType("int16_t *") ShortBuffer value) { nindices(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()); } + /** the capacity of the joint data arrays in this structure, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int jointCapacityInput() { return njointCapacityInput(address()); } + /** filled in by the runtime with the count of joint data elements written, or the required capacity in the case that any of {@code jointCapacityInput}, {@code vertexCapacityInput}, or {@code indexCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int jointCountOutput() { return njointCountOutput(address()); } + /** an array of poses that matches what is returned by {@link EXTHandTracking#xrLocateHandJointsEXT LocateHandJointsEXT} which describes the hand skeleton’s bind pose. */ + @Nullable + @NativeType("XrPosef *") + public XrPosef.Buffer jointBindPoses() { return njointBindPoses(address()); } + /** an array of joint radii at bind pose. */ + @Nullable + @NativeType("float *") + public FloatBuffer jointRadii() { return njointRadii(address()); } + /** an array of joint parents to define a bone hierarchy for the hand skeleton. */ + @Nullable + @NativeType("XrHandJointEXT *") + public IntBuffer jointParents() { return njointParents(address()); } + /** the capacity of the vertex data arrays in this structure, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int vertexCapacityInput() { return nvertexCapacityInput(address()); } + /** filled in by the runtime with the count of vertex data elements written, or the required capacity in the case that any of {@code jointCapacityInput}, {@code vertexCapacityInput}, or {@code indexCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int vertexCountOutput() { return nvertexCountOutput(address()); } + /** an array of 3D vertex positions. */ + @Nullable + @NativeType("XrVector3f *") + public XrVector3f.Buffer vertexPositions() { return nvertexPositions(address()); } + /** an array of 3D vertex normals. */ + @Nullable + @NativeType("XrVector3f *") + public XrVector3f.Buffer vertexNormals() { return nvertexNormals(address()); } + /** an array of texture coordinates for this vertex. */ + @Nullable + @NativeType("XrVector2f *") + public XrVector2f.Buffer vertexUVs() { return nvertexUVs(address()); } + /** an array of bone blend indices. */ + @Nullable + @NativeType("XrVector4sFB *") + public XrVector4sFB.Buffer vertexBlendIndices() { return nvertexBlendIndices(address()); } + /** an array of bone blend weights. */ + @Nullable + @NativeType("XrVector4f *") + public XrVector4f.Buffer vertexBlendWeights() { return nvertexBlendWeights(address()); } + /** the capacity of the index data arrays in this structure, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return nindexCapacityInput(address()); } + /** filled in by the runtime with the count of index data elements written, or the required capacity in the case that any of {@code jointCapacityInput}, {@code vertexCapacityInput}, or {@code indexCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int indexCountOutput() { return nindexCountOutput(address()); } + /** an array of triangle indices. */ + @Nullable + @NativeType("int16_t *") + public ShortBuffer indices() { return nindices(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandTrackingMeshFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBHandTrackingMesh#XR_TYPE_HAND_TRACKING_MESH_FB TYPE_HAND_TRACKING_MESH_FB} value to the {@link #type} field. */ + public XrHandTrackingMeshFB type$Default() { return type(FBHandTrackingMesh.XR_TYPE_HAND_TRACKING_MESH_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandTrackingMeshFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #jointCapacityInput} field. */ + public XrHandTrackingMeshFB jointCapacityInput(@NativeType("uint32_t") int value) { njointCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #jointCountOutput} field. */ + public XrHandTrackingMeshFB jointCountOutput(@NativeType("uint32_t") int value) { njointCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrPosef.Buffer} to the {@link #jointBindPoses} field. */ + public XrHandTrackingMeshFB jointBindPoses(@Nullable @NativeType("XrPosef *") XrPosef.Buffer value) { njointBindPoses(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link #jointRadii} field. */ + public XrHandTrackingMeshFB jointRadii(@Nullable @NativeType("float *") FloatBuffer value) { njointRadii(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link #jointParents} field. */ + public XrHandTrackingMeshFB jointParents(@Nullable @NativeType("XrHandJointEXT *") IntBuffer value) { njointParents(address(), value); return this; } + /** Sets the specified value to the {@link #vertexCapacityInput} field. */ + public XrHandTrackingMeshFB vertexCapacityInput(@NativeType("uint32_t") int value) { nvertexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #vertexCountOutput} field. */ + public XrHandTrackingMeshFB vertexCountOutput(@NativeType("uint32_t") int value) { nvertexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link #vertexPositions} field. */ + public XrHandTrackingMeshFB vertexPositions(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { nvertexPositions(address(), value); return this; } + /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link #vertexNormals} field. */ + public XrHandTrackingMeshFB vertexNormals(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { nvertexNormals(address(), value); return this; } + /** Sets the address of the specified {@link XrVector2f.Buffer} to the {@link #vertexUVs} field. */ + public XrHandTrackingMeshFB vertexUVs(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { nvertexUVs(address(), value); return this; } + /** Sets the address of the specified {@link XrVector4sFB.Buffer} to the {@link #vertexBlendIndices} field. */ + public XrHandTrackingMeshFB vertexBlendIndices(@Nullable @NativeType("XrVector4sFB *") XrVector4sFB.Buffer value) { nvertexBlendIndices(address(), value); return this; } + /** Sets the address of the specified {@link XrVector4f.Buffer} to the {@link #vertexBlendWeights} field. */ + public XrHandTrackingMeshFB vertexBlendWeights(@Nullable @NativeType("XrVector4f *") XrVector4f.Buffer value) { nvertexBlendWeights(address(), value); return this; } + /** Sets the specified value to the {@link #indexCapacityInput} field. */ + public XrHandTrackingMeshFB indexCapacityInput(@NativeType("uint32_t") int value) { nindexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #indexCountOutput} field. */ + public XrHandTrackingMeshFB indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link ShortBuffer} to the {@link #indices} field. */ + public XrHandTrackingMeshFB indices(@Nullable @NativeType("int16_t *") ShortBuffer value) { nindices(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandTrackingMeshFB set( - int type, - long next, - int jointCapacityInput, - int jointCountOutput, - @Nullable XrPosef.Buffer jointBindPoses, - @Nullable FloatBuffer jointRadii, - @Nullable IntBuffer jointParents, - int vertexCapacityInput, - int vertexCountOutput, - @Nullable XrVector3f.Buffer vertexPositions, - @Nullable XrVector3f.Buffer vertexNormals, - @Nullable XrVector2f.Buffer vertexUVs, - @Nullable XrVector4sFB.Buffer vertexBlendIndices, - @Nullable XrVector4f.Buffer vertexBlendWeights, - int indexCapacityInput, - int indexCountOutput, + int type, + long next, + int jointCapacityInput, + int jointCountOutput, + @Nullable XrPosef.Buffer jointBindPoses, + @Nullable FloatBuffer jointRadii, + @Nullable IntBuffer jointParents, + int vertexCapacityInput, + int vertexCountOutput, + @Nullable XrVector3f.Buffer vertexPositions, + @Nullable XrVector3f.Buffer vertexNormals, + @Nullable XrVector2f.Buffer vertexUVs, + @Nullable XrVector4sFB.Buffer vertexBlendIndices, + @Nullable XrVector4f.Buffer vertexBlendWeights, + int indexCapacityInput, + int indexCountOutput, @Nullable ShortBuffer indices - ) { - type(type); - next(next); - jointCapacityInput(jointCapacityInput); - jointCountOutput(jointCountOutput); - jointBindPoses(jointBindPoses); - jointRadii(jointRadii); - jointParents(jointParents); - vertexCapacityInput(vertexCapacityInput); - vertexCountOutput(vertexCountOutput); - vertexPositions(vertexPositions); - vertexNormals(vertexNormals); - vertexUVs(vertexUVs); - vertexBlendIndices(vertexBlendIndices); - vertexBlendWeights(vertexBlendWeights); - indexCapacityInput(indexCapacityInput); - indexCountOutput(indexCountOutput); - indices(indices); + ) { + type(type); + next(next); + jointCapacityInput(jointCapacityInput); + jointCountOutput(jointCountOutput); + jointBindPoses(jointBindPoses); + jointRadii(jointRadii); + jointParents(jointParents); + vertexCapacityInput(vertexCapacityInput); + vertexCountOutput(vertexCountOutput); + vertexPositions(vertexPositions); + vertexNormals(vertexNormals); + vertexUVs(vertexUVs); + vertexBlendIndices(vertexBlendIndices); + vertexBlendWeights(vertexBlendWeights); + indexCapacityInput(indexCapacityInput); + indexCountOutput(indexCountOutput); + indices(indices); return this; } @@ -316,29 +307,29 @@ public XrHandTrackingMeshFB set(XrHandTrackingMeshFB src) { /** Returns a new {@code XrHandTrackingMeshFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrHandTrackingMeshFB malloc() { - return new XrHandTrackingMeshFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrHandTrackingMeshFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrHandTrackingMeshFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrHandTrackingMeshFB calloc() { - return new XrHandTrackingMeshFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrHandTrackingMeshFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrHandTrackingMeshFB} instance allocated with {@link BufferUtils}. */ public static XrHandTrackingMeshFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrHandTrackingMeshFB(memAddress(container), container); + return wrap(XrHandTrackingMeshFB.class, memAddress(container), container); } /** Returns a new {@code XrHandTrackingMeshFB} instance for the specified memory address. */ public static XrHandTrackingMeshFB create(long address) { - return new XrHandTrackingMeshFB(address, null); + return wrap(XrHandTrackingMeshFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrHandTrackingMeshFB createSafe(long address) { - return address == NULL ? null : new XrHandTrackingMeshFB(address, null); + return address == NULL ? null : wrap(XrHandTrackingMeshFB.class, address); } /** @@ -347,7 +338,7 @@ public static XrHandTrackingMeshFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrHandTrackingMeshFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -356,7 +347,7 @@ public static XrHandTrackingMeshFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrHandTrackingMeshFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -366,7 +357,7 @@ public static XrHandTrackingMeshFB.Buffer calloc(int capacity) { */ public static XrHandTrackingMeshFB.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); } /** @@ -376,13 +367,13 @@ public static XrHandTrackingMeshFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrHandTrackingMeshFB.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 XrHandTrackingMeshFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -391,7 +382,7 @@ public static XrHandTrackingMeshFB.Buffer createSafe(long address, int capacity) * @param stack the stack from which to allocate */ public static XrHandTrackingMeshFB malloc(MemoryStack stack) { - return new XrHandTrackingMeshFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrHandTrackingMeshFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -400,7 +391,7 @@ public static XrHandTrackingMeshFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrHandTrackingMeshFB calloc(MemoryStack stack) { - return new XrHandTrackingMeshFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrHandTrackingMeshFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -410,7 +401,7 @@ public static XrHandTrackingMeshFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHandTrackingMeshFB.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); } /** @@ -420,82 +411,82 @@ public static XrHandTrackingMeshFB.Buffer malloc(int capacity, MemoryStack stack * @param capacity the buffer capacity */ public static XrHandTrackingMeshFB.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 + XrHandTrackingMeshFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandTrackingMeshFB.NEXT); } - /** Unsafe version of {@link #jointCapacityInput}. */ - public static int njointCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.JOINTCAPACITYINPUT); } - /** Unsafe version of {@link #jointCountOutput}. */ - public static int njointCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.JOINTCOUNTOUTPUT); } - /** Unsafe version of {@link #jointBindPoses}. */ - @Nullable public static XrPosef.Buffer njointBindPoses(long struct) { return XrPosef.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.JOINTBINDPOSES), njointCapacityInput(struct)); } - /** Unsafe version of {@link #jointRadii() jointRadii}. */ - @Nullable public static FloatBuffer njointRadii(long struct) { return memFloatBufferSafe(memGetAddress(struct + XrHandTrackingMeshFB.JOINTRADII), njointCapacityInput(struct)); } - /** Unsafe version of {@link #jointParents() jointParents}. */ - @Nullable public static IntBuffer njointParents(long struct) { return memIntBufferSafe(memGetAddress(struct + XrHandTrackingMeshFB.JOINTPARENTS), njointCapacityInput(struct)); } - /** Unsafe version of {@link #vertexCapacityInput}. */ - public static int nvertexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.VERTEXCAPACITYINPUT); } - /** Unsafe version of {@link #vertexCountOutput}. */ - public static int nvertexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.VERTEXCOUNTOUTPUT); } - /** Unsafe version of {@link #vertexPositions}. */ - @Nullable public static XrVector3f.Buffer nvertexPositions(long struct) { return XrVector3f.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXPOSITIONS), nvertexCapacityInput(struct)); } - /** Unsafe version of {@link #vertexNormals}. */ - @Nullable public static XrVector3f.Buffer nvertexNormals(long struct) { return XrVector3f.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXNORMALS), nvertexCapacityInput(struct)); } - /** Unsafe version of {@link #vertexUVs}. */ - @Nullable public static XrVector2f.Buffer nvertexUVs(long struct) { return XrVector2f.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXUVS), nvertexCapacityInput(struct)); } - /** Unsafe version of {@link #vertexBlendIndices}. */ - @Nullable public static XrVector4sFB.Buffer nvertexBlendIndices(long struct) { return XrVector4sFB.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXBLENDINDICES), nvertexCapacityInput(struct)); } - /** Unsafe version of {@link #vertexBlendWeights}. */ - @Nullable public static XrVector4f.Buffer nvertexBlendWeights(long struct) { return XrVector4f.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXBLENDWEIGHTS), nvertexCapacityInput(struct)); } - /** Unsafe version of {@link #indexCapacityInput}. */ - public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.INDEXCAPACITYINPUT); } - /** Unsafe version of {@link #indexCountOutput}. */ - public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.INDEXCOUNTOUTPUT); } - /** Unsafe version of {@link #indices() indices}. */ - @Nullable public static ShortBuffer nindices(long struct) { return memShortBufferSafe(memGetAddress(struct + XrHandTrackingMeshFB.INDICES), nindexCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandTrackingMeshFB.NEXT, value); } - /** Sets the specified value to the {@code jointCapacityInput} field of the specified {@code struct}. */ - public static void njointCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.JOINTCAPACITYINPUT, value); } - /** Unsafe version of {@link #jointCountOutput(int) jointCountOutput}. */ - public static void njointCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.JOINTCOUNTOUTPUT, value); } - /** Unsafe version of {@link #jointBindPoses(XrPosef.Buffer) jointBindPoses}. */ - public static void njointBindPoses(long struct, @Nullable XrPosef.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.JOINTBINDPOSES, memAddressSafe(value)); } - /** Unsafe version of {@link #jointRadii(FloatBuffer) jointRadii}. */ - public static void njointRadii(long struct, @Nullable FloatBuffer value) { memPutAddress(struct + XrHandTrackingMeshFB.JOINTRADII, memAddressSafe(value)); } - /** Unsafe version of {@link #jointParents(IntBuffer) jointParents}. */ - public static void njointParents(long struct, @Nullable IntBuffer value) { memPutAddress(struct + XrHandTrackingMeshFB.JOINTPARENTS, memAddressSafe(value)); } - /** Sets the specified value to the {@code vertexCapacityInput} field of the specified {@code struct}. */ - public static void nvertexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.VERTEXCAPACITYINPUT, value); } - /** Unsafe version of {@link #vertexCountOutput(int) vertexCountOutput}. */ - public static void nvertexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.VERTEXCOUNTOUTPUT, value); } - /** Unsafe version of {@link #vertexPositions(XrVector3f.Buffer) vertexPositions}. */ - public static void nvertexPositions(long struct, @Nullable XrVector3f.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXPOSITIONS, memAddressSafe(value)); } - /** Unsafe version of {@link #vertexNormals(XrVector3f.Buffer) vertexNormals}. */ - public static void nvertexNormals(long struct, @Nullable XrVector3f.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXNORMALS, memAddressSafe(value)); } - /** Unsafe version of {@link #vertexUVs(XrVector2f.Buffer) vertexUVs}. */ - public static void nvertexUVs(long struct, @Nullable XrVector2f.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXUVS, memAddressSafe(value)); } - /** Unsafe version of {@link #vertexBlendIndices(XrVector4sFB.Buffer) vertexBlendIndices}. */ - public static void nvertexBlendIndices(long struct, @Nullable XrVector4sFB.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXBLENDINDICES, memAddressSafe(value)); } - /** Unsafe version of {@link #vertexBlendWeights(XrVector4f.Buffer) vertexBlendWeights}. */ - public static void nvertexBlendWeights(long struct, @Nullable XrVector4f.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXBLENDWEIGHTS, memAddressSafe(value)); } - /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ - public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.INDEXCAPACITYINPUT, value); } - /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ - public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.INDEXCOUNTOUTPUT, value); } - /** Unsafe version of {@link #indices(ShortBuffer) indices}. */ - public static void nindices(long struct, @Nullable ShortBuffer value) { memPutAddress(struct + XrHandTrackingMeshFB.INDICES, memAddressSafe(value)); if (value != null) { nindexCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandTrackingMeshFB.NEXT); } + /** Unsafe version of {@link #jointCapacityInput}. */ + public static int njointCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.JOINTCAPACITYINPUT); } + /** Unsafe version of {@link #jointCountOutput}. */ + public static int njointCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.JOINTCOUNTOUTPUT); } + /** Unsafe version of {@link #jointBindPoses}. */ + @Nullable public static XrPosef.Buffer njointBindPoses(long struct) { return XrPosef.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.JOINTBINDPOSES), njointCapacityInput(struct)); } + /** Unsafe version of {@link #jointRadii() jointRadii}. */ + @Nullable public static FloatBuffer njointRadii(long struct) { return memFloatBufferSafe(memGetAddress(struct + XrHandTrackingMeshFB.JOINTRADII), njointCapacityInput(struct)); } + /** Unsafe version of {@link #jointParents() jointParents}. */ + @Nullable public static IntBuffer njointParents(long struct) { return memIntBufferSafe(memGetAddress(struct + XrHandTrackingMeshFB.JOINTPARENTS), njointCapacityInput(struct)); } + /** Unsafe version of {@link #vertexCapacityInput}. */ + public static int nvertexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.VERTEXCAPACITYINPUT); } + /** Unsafe version of {@link #vertexCountOutput}. */ + public static int nvertexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.VERTEXCOUNTOUTPUT); } + /** Unsafe version of {@link #vertexPositions}. */ + @Nullable public static XrVector3f.Buffer nvertexPositions(long struct) { return XrVector3f.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXPOSITIONS), nvertexCapacityInput(struct)); } + /** Unsafe version of {@link #vertexNormals}. */ + @Nullable public static XrVector3f.Buffer nvertexNormals(long struct) { return XrVector3f.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXNORMALS), nvertexCapacityInput(struct)); } + /** Unsafe version of {@link #vertexUVs}. */ + @Nullable public static XrVector2f.Buffer nvertexUVs(long struct) { return XrVector2f.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXUVS), nvertexCapacityInput(struct)); } + /** Unsafe version of {@link #vertexBlendIndices}. */ + @Nullable public static XrVector4sFB.Buffer nvertexBlendIndices(long struct) { return XrVector4sFB.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXBLENDINDICES), nvertexCapacityInput(struct)); } + /** Unsafe version of {@link #vertexBlendWeights}. */ + @Nullable public static XrVector4f.Buffer nvertexBlendWeights(long struct) { return XrVector4f.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXBLENDWEIGHTS), nvertexCapacityInput(struct)); } + /** Unsafe version of {@link #indexCapacityInput}. */ + public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.INDEXCAPACITYINPUT); } + /** Unsafe version of {@link #indexCountOutput}. */ + public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.INDEXCOUNTOUTPUT); } + /** Unsafe version of {@link #indices() indices}. */ + @Nullable public static ShortBuffer nindices(long struct) { return memShortBufferSafe(memGetAddress(struct + XrHandTrackingMeshFB.INDICES), nindexCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandTrackingMeshFB.NEXT, value); } + /** Sets the specified value to the {@code jointCapacityInput} field of the specified {@code struct}. */ + public static void njointCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.JOINTCAPACITYINPUT, value); } + /** Unsafe version of {@link #jointCountOutput(int) jointCountOutput}. */ + public static void njointCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.JOINTCOUNTOUTPUT, value); } + /** Unsafe version of {@link #jointBindPoses(XrPosef.Buffer) jointBindPoses}. */ + public static void njointBindPoses(long struct, @Nullable XrPosef.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.JOINTBINDPOSES, memAddressSafe(value)); } + /** Unsafe version of {@link #jointRadii(FloatBuffer) jointRadii}. */ + public static void njointRadii(long struct, @Nullable FloatBuffer value) { memPutAddress(struct + XrHandTrackingMeshFB.JOINTRADII, memAddressSafe(value)); } + /** Unsafe version of {@link #jointParents(IntBuffer) jointParents}. */ + public static void njointParents(long struct, @Nullable IntBuffer value) { memPutAddress(struct + XrHandTrackingMeshFB.JOINTPARENTS, memAddressSafe(value)); } + /** Sets the specified value to the {@code vertexCapacityInput} field of the specified {@code struct}. */ + public static void nvertexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.VERTEXCAPACITYINPUT, value); } + /** Unsafe version of {@link #vertexCountOutput(int) vertexCountOutput}. */ + public static void nvertexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.VERTEXCOUNTOUTPUT, value); } + /** Unsafe version of {@link #vertexPositions(XrVector3f.Buffer) vertexPositions}. */ + public static void nvertexPositions(long struct, @Nullable XrVector3f.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXPOSITIONS, memAddressSafe(value)); } + /** Unsafe version of {@link #vertexNormals(XrVector3f.Buffer) vertexNormals}. */ + public static void nvertexNormals(long struct, @Nullable XrVector3f.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXNORMALS, memAddressSafe(value)); } + /** Unsafe version of {@link #vertexUVs(XrVector2f.Buffer) vertexUVs}. */ + public static void nvertexUVs(long struct, @Nullable XrVector2f.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXUVS, memAddressSafe(value)); } + /** Unsafe version of {@link #vertexBlendIndices(XrVector4sFB.Buffer) vertexBlendIndices}. */ + public static void nvertexBlendIndices(long struct, @Nullable XrVector4sFB.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXBLENDINDICES, memAddressSafe(value)); } + /** Unsafe version of {@link #vertexBlendWeights(XrVector4f.Buffer) vertexBlendWeights}. */ + public static void nvertexBlendWeights(long struct, @Nullable XrVector4f.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXBLENDWEIGHTS, memAddressSafe(value)); } + /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ + public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.INDEXCAPACITYINPUT, value); } + /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ + public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.INDEXCOUNTOUTPUT, value); } + /** Unsafe version of {@link #indices(ShortBuffer) indices}. */ + public static void nindices(long struct, @Nullable ShortBuffer value) { memPutAddress(struct + XrHandTrackingMeshFB.INDICES, memAddressSafe(value)); if (value != null) { nindexCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrHandTrackingMeshFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -505,9 +496,9 @@ public static class Buffer extends StructBuffer im /** * Creates a new {@code XrHandTrackingMeshFB.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 XrHandTrackingMeshFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHandTrackingMeshFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -532,104 +523,104 @@ protected Buffer self() { protected XrHandTrackingMeshFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandTrackingMeshFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandTrackingMeshFB.ntype(address()); } - /** @return the value of the {@link XrHandTrackingMeshFB#next} field. */ - @NativeType("void *") - public long next() { return XrHandTrackingMeshFB.nnext(address()); } - /** @return the value of the {@link XrHandTrackingMeshFB#jointCapacityInput} field. */ - @NativeType("uint32_t") - public int jointCapacityInput() { return XrHandTrackingMeshFB.njointCapacityInput(address()); } - /** @return the value of the {@link XrHandTrackingMeshFB#jointCountOutput} field. */ - @NativeType("uint32_t") - public int jointCountOutput() { return XrHandTrackingMeshFB.njointCountOutput(address()); } - /** @return a {@link XrPosef.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#jointBindPoses} field. */ - @Nullable - @NativeType("XrPosef *") - public XrPosef.Buffer jointBindPoses() { return XrHandTrackingMeshFB.njointBindPoses(address()); } - /** @return a {@link FloatBuffer} view of the data pointed to by the {@link XrHandTrackingMeshFB#jointRadii} field. */ - @Nullable - @NativeType("float *") - public FloatBuffer jointRadii() { return XrHandTrackingMeshFB.njointRadii(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrHandTrackingMeshFB#jointParents} field. */ - @Nullable - @NativeType("XrHandJointEXT *") - public IntBuffer jointParents() { return XrHandTrackingMeshFB.njointParents(address()); } - /** @return the value of the {@link XrHandTrackingMeshFB#vertexCapacityInput} field. */ - @NativeType("uint32_t") - public int vertexCapacityInput() { return XrHandTrackingMeshFB.nvertexCapacityInput(address()); } - /** @return the value of the {@link XrHandTrackingMeshFB#vertexCountOutput} field. */ - @NativeType("uint32_t") - public int vertexCountOutput() { return XrHandTrackingMeshFB.nvertexCountOutput(address()); } - /** @return a {@link XrVector3f.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexPositions} field. */ - @Nullable - @NativeType("XrVector3f *") - public XrVector3f.Buffer vertexPositions() { return XrHandTrackingMeshFB.nvertexPositions(address()); } - /** @return a {@link XrVector3f.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexNormals} field. */ - @Nullable - @NativeType("XrVector3f *") - public XrVector3f.Buffer vertexNormals() { return XrHandTrackingMeshFB.nvertexNormals(address()); } - /** @return a {@link XrVector2f.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexUVs} field. */ - @Nullable - @NativeType("XrVector2f *") - public XrVector2f.Buffer vertexUVs() { return XrHandTrackingMeshFB.nvertexUVs(address()); } - /** @return a {@link XrVector4sFB.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexBlendIndices} field. */ - @Nullable - @NativeType("XrVector4sFB *") - public XrVector4sFB.Buffer vertexBlendIndices() { return XrHandTrackingMeshFB.nvertexBlendIndices(address()); } - /** @return a {@link XrVector4f.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexBlendWeights} field. */ - @Nullable - @NativeType("XrVector4f *") - public XrVector4f.Buffer vertexBlendWeights() { return XrHandTrackingMeshFB.nvertexBlendWeights(address()); } - /** @return the value of the {@link XrHandTrackingMeshFB#indexCapacityInput} field. */ - @NativeType("uint32_t") - public int indexCapacityInput() { return XrHandTrackingMeshFB.nindexCapacityInput(address()); } - /** @return the value of the {@link XrHandTrackingMeshFB#indexCountOutput} field. */ - @NativeType("uint32_t") - public int indexCountOutput() { return XrHandTrackingMeshFB.nindexCountOutput(address()); } - /** @return a {@link ShortBuffer} view of the data pointed to by the {@link XrHandTrackingMeshFB#indices} field. */ - @Nullable - @NativeType("int16_t *") - public ShortBuffer indices() { return XrHandTrackingMeshFB.nindices(address()); } - - /** Sets the specified value to the {@link XrHandTrackingMeshFB#type} field. */ - public XrHandTrackingMeshFB.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackingMeshFB.ntype(address(), value); return this; } - /** Sets the {@link FBHandTrackingMesh#XR_TYPE_HAND_TRACKING_MESH_FB TYPE_HAND_TRACKING_MESH_FB} value to the {@link XrHandTrackingMeshFB#type} field. */ - public XrHandTrackingMeshFB.Buffer type$Default() { return type(FBHandTrackingMesh.XR_TYPE_HAND_TRACKING_MESH_FB); } - /** Sets the specified value to the {@link XrHandTrackingMeshFB#next} field. */ - public XrHandTrackingMeshFB.Buffer next(@NativeType("void *") long value) { XrHandTrackingMeshFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrHandTrackingMeshFB#jointCapacityInput} field. */ - public XrHandTrackingMeshFB.Buffer jointCapacityInput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.njointCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrHandTrackingMeshFB#jointCountOutput} field. */ - public XrHandTrackingMeshFB.Buffer jointCountOutput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.njointCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrPosef.Buffer} to the {@link XrHandTrackingMeshFB#jointBindPoses} field. */ - public XrHandTrackingMeshFB.Buffer jointBindPoses(@Nullable @NativeType("XrPosef *") XrPosef.Buffer value) { XrHandTrackingMeshFB.njointBindPoses(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link XrHandTrackingMeshFB#jointRadii} field. */ - public XrHandTrackingMeshFB.Buffer jointRadii(@Nullable @NativeType("float *") FloatBuffer value) { XrHandTrackingMeshFB.njointRadii(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrHandTrackingMeshFB#jointParents} field. */ - public XrHandTrackingMeshFB.Buffer jointParents(@Nullable @NativeType("XrHandJointEXT *") IntBuffer value) { XrHandTrackingMeshFB.njointParents(address(), value); return this; } - /** Sets the specified value to the {@link XrHandTrackingMeshFB#vertexCapacityInput} field. */ - public XrHandTrackingMeshFB.Buffer vertexCapacityInput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.nvertexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrHandTrackingMeshFB#vertexCountOutput} field. */ - public XrHandTrackingMeshFB.Buffer vertexCountOutput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.nvertexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link XrHandTrackingMeshFB#vertexPositions} field. */ - public XrHandTrackingMeshFB.Buffer vertexPositions(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { XrHandTrackingMeshFB.nvertexPositions(address(), value); return this; } - /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link XrHandTrackingMeshFB#vertexNormals} field. */ - public XrHandTrackingMeshFB.Buffer vertexNormals(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { XrHandTrackingMeshFB.nvertexNormals(address(), value); return this; } - /** Sets the address of the specified {@link XrVector2f.Buffer} to the {@link XrHandTrackingMeshFB#vertexUVs} field. */ - public XrHandTrackingMeshFB.Buffer vertexUVs(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { XrHandTrackingMeshFB.nvertexUVs(address(), value); return this; } - /** Sets the address of the specified {@link XrVector4sFB.Buffer} to the {@link XrHandTrackingMeshFB#vertexBlendIndices} field. */ - public XrHandTrackingMeshFB.Buffer vertexBlendIndices(@Nullable @NativeType("XrVector4sFB *") XrVector4sFB.Buffer value) { XrHandTrackingMeshFB.nvertexBlendIndices(address(), value); return this; } - /** Sets the address of the specified {@link XrVector4f.Buffer} to the {@link XrHandTrackingMeshFB#vertexBlendWeights} field. */ - public XrHandTrackingMeshFB.Buffer vertexBlendWeights(@Nullable @NativeType("XrVector4f *") XrVector4f.Buffer value) { XrHandTrackingMeshFB.nvertexBlendWeights(address(), value); return this; } - /** Sets the specified value to the {@link XrHandTrackingMeshFB#indexCapacityInput} field. */ - public XrHandTrackingMeshFB.Buffer indexCapacityInput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.nindexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrHandTrackingMeshFB#indexCountOutput} field. */ - public XrHandTrackingMeshFB.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link ShortBuffer} to the {@link XrHandTrackingMeshFB#indices} field. */ - public XrHandTrackingMeshFB.Buffer indices(@Nullable @NativeType("int16_t *") ShortBuffer value) { XrHandTrackingMeshFB.nindices(address(), value); return this; } + + /** @return the value of the {@link XrHandTrackingMeshFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandTrackingMeshFB.ntype(address()); } + /** @return the value of the {@link XrHandTrackingMeshFB#next} field. */ + @NativeType("void *") + public long next() { return XrHandTrackingMeshFB.nnext(address()); } + /** @return the value of the {@link XrHandTrackingMeshFB#jointCapacityInput} field. */ + @NativeType("uint32_t") + public int jointCapacityInput() { return XrHandTrackingMeshFB.njointCapacityInput(address()); } + /** @return the value of the {@link XrHandTrackingMeshFB#jointCountOutput} field. */ + @NativeType("uint32_t") + public int jointCountOutput() { return XrHandTrackingMeshFB.njointCountOutput(address()); } + /** @return a {@link XrPosef.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#jointBindPoses} field. */ + @Nullable + @NativeType("XrPosef *") + public XrPosef.Buffer jointBindPoses() { return XrHandTrackingMeshFB.njointBindPoses(address()); } + /** @return a {@link FloatBuffer} view of the data pointed to by the {@link XrHandTrackingMeshFB#jointRadii} field. */ + @Nullable + @NativeType("float *") + public FloatBuffer jointRadii() { return XrHandTrackingMeshFB.njointRadii(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrHandTrackingMeshFB#jointParents} field. */ + @Nullable + @NativeType("XrHandJointEXT *") + public IntBuffer jointParents() { return XrHandTrackingMeshFB.njointParents(address()); } + /** @return the value of the {@link XrHandTrackingMeshFB#vertexCapacityInput} field. */ + @NativeType("uint32_t") + public int vertexCapacityInput() { return XrHandTrackingMeshFB.nvertexCapacityInput(address()); } + /** @return the value of the {@link XrHandTrackingMeshFB#vertexCountOutput} field. */ + @NativeType("uint32_t") + public int vertexCountOutput() { return XrHandTrackingMeshFB.nvertexCountOutput(address()); } + /** @return a {@link XrVector3f.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexPositions} field. */ + @Nullable + @NativeType("XrVector3f *") + public XrVector3f.Buffer vertexPositions() { return XrHandTrackingMeshFB.nvertexPositions(address()); } + /** @return a {@link XrVector3f.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexNormals} field. */ + @Nullable + @NativeType("XrVector3f *") + public XrVector3f.Buffer vertexNormals() { return XrHandTrackingMeshFB.nvertexNormals(address()); } + /** @return a {@link XrVector2f.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexUVs} field. */ + @Nullable + @NativeType("XrVector2f *") + public XrVector2f.Buffer vertexUVs() { return XrHandTrackingMeshFB.nvertexUVs(address()); } + /** @return a {@link XrVector4sFB.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexBlendIndices} field. */ + @Nullable + @NativeType("XrVector4sFB *") + public XrVector4sFB.Buffer vertexBlendIndices() { return XrHandTrackingMeshFB.nvertexBlendIndices(address()); } + /** @return a {@link XrVector4f.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexBlendWeights} field. */ + @Nullable + @NativeType("XrVector4f *") + public XrVector4f.Buffer vertexBlendWeights() { return XrHandTrackingMeshFB.nvertexBlendWeights(address()); } + /** @return the value of the {@link XrHandTrackingMeshFB#indexCapacityInput} field. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return XrHandTrackingMeshFB.nindexCapacityInput(address()); } + /** @return the value of the {@link XrHandTrackingMeshFB#indexCountOutput} field. */ + @NativeType("uint32_t") + public int indexCountOutput() { return XrHandTrackingMeshFB.nindexCountOutput(address()); } + /** @return a {@link ShortBuffer} view of the data pointed to by the {@link XrHandTrackingMeshFB#indices} field. */ + @Nullable + @NativeType("int16_t *") + public ShortBuffer indices() { return XrHandTrackingMeshFB.nindices(address()); } + + /** Sets the specified value to the {@link XrHandTrackingMeshFB#type} field. */ + public XrHandTrackingMeshFB.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackingMeshFB.ntype(address(), value); return this; } + /** Sets the {@link FBHandTrackingMesh#XR_TYPE_HAND_TRACKING_MESH_FB TYPE_HAND_TRACKING_MESH_FB} value to the {@link XrHandTrackingMeshFB#type} field. */ + public XrHandTrackingMeshFB.Buffer type$Default() { return type(FBHandTrackingMesh.XR_TYPE_HAND_TRACKING_MESH_FB); } + /** Sets the specified value to the {@link XrHandTrackingMeshFB#next} field. */ + public XrHandTrackingMeshFB.Buffer next(@NativeType("void *") long value) { XrHandTrackingMeshFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrHandTrackingMeshFB#jointCapacityInput} field. */ + public XrHandTrackingMeshFB.Buffer jointCapacityInput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.njointCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrHandTrackingMeshFB#jointCountOutput} field. */ + public XrHandTrackingMeshFB.Buffer jointCountOutput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.njointCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrPosef.Buffer} to the {@link XrHandTrackingMeshFB#jointBindPoses} field. */ + public XrHandTrackingMeshFB.Buffer jointBindPoses(@Nullable @NativeType("XrPosef *") XrPosef.Buffer value) { XrHandTrackingMeshFB.njointBindPoses(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link XrHandTrackingMeshFB#jointRadii} field. */ + public XrHandTrackingMeshFB.Buffer jointRadii(@Nullable @NativeType("float *") FloatBuffer value) { XrHandTrackingMeshFB.njointRadii(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrHandTrackingMeshFB#jointParents} field. */ + public XrHandTrackingMeshFB.Buffer jointParents(@Nullable @NativeType("XrHandJointEXT *") IntBuffer value) { XrHandTrackingMeshFB.njointParents(address(), value); return this; } + /** Sets the specified value to the {@link XrHandTrackingMeshFB#vertexCapacityInput} field. */ + public XrHandTrackingMeshFB.Buffer vertexCapacityInput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.nvertexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrHandTrackingMeshFB#vertexCountOutput} field. */ + public XrHandTrackingMeshFB.Buffer vertexCountOutput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.nvertexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link XrHandTrackingMeshFB#vertexPositions} field. */ + public XrHandTrackingMeshFB.Buffer vertexPositions(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { XrHandTrackingMeshFB.nvertexPositions(address(), value); return this; } + /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link XrHandTrackingMeshFB#vertexNormals} field. */ + public XrHandTrackingMeshFB.Buffer vertexNormals(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { XrHandTrackingMeshFB.nvertexNormals(address(), value); return this; } + /** Sets the address of the specified {@link XrVector2f.Buffer} to the {@link XrHandTrackingMeshFB#vertexUVs} field. */ + public XrHandTrackingMeshFB.Buffer vertexUVs(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { XrHandTrackingMeshFB.nvertexUVs(address(), value); return this; } + /** Sets the address of the specified {@link XrVector4sFB.Buffer} to the {@link XrHandTrackingMeshFB#vertexBlendIndices} field. */ + public XrHandTrackingMeshFB.Buffer vertexBlendIndices(@Nullable @NativeType("XrVector4sFB *") XrVector4sFB.Buffer value) { XrHandTrackingMeshFB.nvertexBlendIndices(address(), value); return this; } + /** Sets the address of the specified {@link XrVector4f.Buffer} to the {@link XrHandTrackingMeshFB#vertexBlendWeights} field. */ + public XrHandTrackingMeshFB.Buffer vertexBlendWeights(@Nullable @NativeType("XrVector4f *") XrVector4f.Buffer value) { XrHandTrackingMeshFB.nvertexBlendWeights(address(), value); return this; } + /** Sets the specified value to the {@link XrHandTrackingMeshFB#indexCapacityInput} field. */ + public XrHandTrackingMeshFB.Buffer indexCapacityInput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.nindexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrHandTrackingMeshFB#indexCountOutput} field. */ + public XrHandTrackingMeshFB.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link ShortBuffer} to the {@link XrHandTrackingMeshFB#indices} field. */ + public XrHandTrackingMeshFB.Buffer indices(@Nullable @NativeType("int16_t *") ShortBuffer value) { XrHandTrackingMeshFB.nindices(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingScaleFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingScaleFB.java index 3938d4c257..808da197fe 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingScaleFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingScaleFB.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 information to query and modify hand joint overall scale. * @@ -37,8 +37,8 @@ * XrBool32 {@link #overrideHandScale}; * float {@link #overrideValueInput}; * } - */ -public class XrHandTrackingScaleFB extends Struct implements NativeResource { + */ +public class XrHandTrackingScaleFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,41 +48,32 @@ public class XrHandTrackingScaleFB extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - SENSOROUTPUT, - CURRENTOUTPUT, - OVERRIDEHANDSCALE, - OVERRIDEVALUEINPUT; + TYPE, + NEXT, + SENSOROUTPUT, + CURRENTOUTPUT, + OVERRIDEHANDSCALE, + OVERRIDEVALUEINPUT; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - SENSOROUTPUT = layout.offsetof(2); - CURRENTOUTPUT = layout.offsetof(3); - OVERRIDEHANDSCALE = layout.offsetof(4); - OVERRIDEVALUEINPUT = layout.offsetof(5); - } - - protected XrHandTrackingScaleFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrHandTrackingScaleFB create(long address, @Nullable ByteBuffer container) { - return new XrHandTrackingScaleFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + SENSOROUTPUT = layout.offsetof(2); + CURRENTOUTPUT = layout.offsetof(3); + OVERRIDEHANDSCALE = layout.offsetof(4); + OVERRIDEVALUEINPUT = layout.offsetof(5); } /** @@ -97,37 +88,37 @@ public XrHandTrackingScaleFB(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 output value: the currently measured scale as would be applied without passing this structure. */ - public float sensorOutput() { return nsensorOutput(address()); } - /** an output value: the effective output that the bind skeleton is getting on the current call, which may be subject to filtering, scaling, or validation. */ - public float currentOutput() { return ncurrentOutput(address()); } - /** indicates whether the runtime should scale the output of this {@link EXTHandTracking#xrLocateHandJointsEXT LocateHandJointsEXT} call according to {@code overrideValueInput} */ - @NativeType("XrBool32") - public boolean overrideHandScale() { return noverrideHandScale(address()) != 0; } - /** an optional input value, enabled only when the {@code overrideHandScale} parameter is set. Setting this to 1.0 and setting {@code overrideHandScale} to {@code true} will give the joints in mesh binding scale. */ - public float overrideValueInput() { return noverrideValueInput(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHandTrackingScaleFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBHandTrackingMesh#XR_TYPE_HAND_TRACKING_SCALE_FB TYPE_HAND_TRACKING_SCALE_FB} value to the {@link #type} field. */ - public XrHandTrackingScaleFB type$Default() { return type(FBHandTrackingMesh.XR_TYPE_HAND_TRACKING_SCALE_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrHandTrackingScaleFB 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 or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** an output value: the currently measured scale as would be applied without passing this structure. */ + public float sensorOutput() { return nsensorOutput(address()); } + /** an output value: the effective output that the bind skeleton is getting on the current call, which may be subject to filtering, scaling, or validation. */ + public float currentOutput() { return ncurrentOutput(address()); } + /** indicates whether the runtime should scale the output of this {@link EXTHandTracking#xrLocateHandJointsEXT LocateHandJointsEXT} call according to {@code overrideValueInput} */ + @NativeType("XrBool32") + public boolean overrideHandScale() { return noverrideHandScale(address()) != 0; } + /** an optional input value, enabled only when the {@code overrideHandScale} parameter is set. Setting this to 1.0 and setting {@code overrideHandScale} to {@code true} will give the joints in mesh binding scale. */ + public float overrideValueInput() { return noverrideValueInput(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandTrackingScaleFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBHandTrackingMesh#XR_TYPE_HAND_TRACKING_SCALE_FB TYPE_HAND_TRACKING_SCALE_FB} value to the {@link #type} field. */ + public XrHandTrackingScaleFB type$Default() { return type(FBHandTrackingMesh.XR_TYPE_HAND_TRACKING_SCALE_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandTrackingScaleFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandTrackingScaleFB set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -148,29 +139,29 @@ public XrHandTrackingScaleFB set(XrHandTrackingScaleFB src) { /** Returns a new {@code XrHandTrackingScaleFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrHandTrackingScaleFB malloc() { - return new XrHandTrackingScaleFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrHandTrackingScaleFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrHandTrackingScaleFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrHandTrackingScaleFB calloc() { - return new XrHandTrackingScaleFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrHandTrackingScaleFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrHandTrackingScaleFB} instance allocated with {@link BufferUtils}. */ public static XrHandTrackingScaleFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrHandTrackingScaleFB(memAddress(container), container); + return wrap(XrHandTrackingScaleFB.class, memAddress(container), container); } /** Returns a new {@code XrHandTrackingScaleFB} instance for the specified memory address. */ public static XrHandTrackingScaleFB create(long address) { - return new XrHandTrackingScaleFB(address, null); + return wrap(XrHandTrackingScaleFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrHandTrackingScaleFB createSafe(long address) { - return address == NULL ? null : new XrHandTrackingScaleFB(address, null); + return address == NULL ? null : wrap(XrHandTrackingScaleFB.class, address); } /** @@ -179,7 +170,7 @@ public static XrHandTrackingScaleFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrHandTrackingScaleFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -188,7 +179,7 @@ public static XrHandTrackingScaleFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrHandTrackingScaleFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -198,7 +189,7 @@ public static XrHandTrackingScaleFB.Buffer calloc(int capacity) { */ public static XrHandTrackingScaleFB.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); } /** @@ -208,13 +199,13 @@ public static XrHandTrackingScaleFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrHandTrackingScaleFB.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 XrHandTrackingScaleFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -223,7 +214,7 @@ public static XrHandTrackingScaleFB.Buffer createSafe(long address, int capacity * @param stack the stack from which to allocate */ public static XrHandTrackingScaleFB malloc(MemoryStack stack) { - return new XrHandTrackingScaleFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrHandTrackingScaleFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -232,7 +223,7 @@ public static XrHandTrackingScaleFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrHandTrackingScaleFB calloc(MemoryStack stack) { - return new XrHandTrackingScaleFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrHandTrackingScaleFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -242,7 +233,7 @@ public static XrHandTrackingScaleFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHandTrackingScaleFB.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); } /** @@ -252,30 +243,30 @@ public static XrHandTrackingScaleFB.Buffer malloc(int capacity, MemoryStack stac * @param capacity the buffer capacity */ public static XrHandTrackingScaleFB.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 + XrHandTrackingScaleFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandTrackingScaleFB.NEXT); } - /** Unsafe version of {@link #sensorOutput}. */ - public static float nsensorOutput(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingScaleFB.SENSOROUTPUT); } - /** Unsafe version of {@link #currentOutput}. */ - public static float ncurrentOutput(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingScaleFB.CURRENTOUTPUT); } - /** Unsafe version of {@link #overrideHandScale}. */ - public static int noverrideHandScale(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingScaleFB.OVERRIDEHANDSCALE); } - /** Unsafe version of {@link #overrideValueInput}. */ - public static float noverrideValueInput(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingScaleFB.OVERRIDEVALUEINPUT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingScaleFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandTrackingScaleFB.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingScaleFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandTrackingScaleFB.NEXT); } + /** Unsafe version of {@link #sensorOutput}. */ + public static float nsensorOutput(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingScaleFB.SENSOROUTPUT); } + /** Unsafe version of {@link #currentOutput}. */ + public static float ncurrentOutput(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingScaleFB.CURRENTOUTPUT); } + /** Unsafe version of {@link #overrideHandScale}. */ + public static int noverrideHandScale(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingScaleFB.OVERRIDEHANDSCALE); } + /** Unsafe version of {@link #overrideValueInput}. */ + public static float noverrideValueInput(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingScaleFB.OVERRIDEVALUEINPUT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingScaleFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandTrackingScaleFB.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrHandTrackingScaleFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -285,9 +276,9 @@ public static class Buffer extends StructBuffer i /** * Creates a new {@code XrHandTrackingScaleFB.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 XrHandTrackingScaleFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHandTrackingScaleFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -312,29 +303,29 @@ protected Buffer self() { protected XrHandTrackingScaleFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandTrackingScaleFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandTrackingScaleFB.ntype(address()); } - /** @return the value of the {@link XrHandTrackingScaleFB#next} field. */ - @NativeType("void *") - public long next() { return XrHandTrackingScaleFB.nnext(address()); } - /** @return the value of the {@link XrHandTrackingScaleFB#sensorOutput} field. */ - public float sensorOutput() { return XrHandTrackingScaleFB.nsensorOutput(address()); } - /** @return the value of the {@link XrHandTrackingScaleFB#currentOutput} field. */ - public float currentOutput() { return XrHandTrackingScaleFB.ncurrentOutput(address()); } - /** @return the value of the {@link XrHandTrackingScaleFB#overrideHandScale} field. */ - @NativeType("XrBool32") - public boolean overrideHandScale() { return XrHandTrackingScaleFB.noverrideHandScale(address()) != 0; } - /** @return the value of the {@link XrHandTrackingScaleFB#overrideValueInput} field. */ - public float overrideValueInput() { return XrHandTrackingScaleFB.noverrideValueInput(address()); } - - /** Sets the specified value to the {@link XrHandTrackingScaleFB#type} field. */ - public XrHandTrackingScaleFB.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackingScaleFB.ntype(address(), value); return this; } - /** Sets the {@link FBHandTrackingMesh#XR_TYPE_HAND_TRACKING_SCALE_FB TYPE_HAND_TRACKING_SCALE_FB} value to the {@link XrHandTrackingScaleFB#type} field. */ - public XrHandTrackingScaleFB.Buffer type$Default() { return type(FBHandTrackingMesh.XR_TYPE_HAND_TRACKING_SCALE_FB); } - /** Sets the specified value to the {@link XrHandTrackingScaleFB#next} field. */ - public XrHandTrackingScaleFB.Buffer next(@NativeType("void *") long value) { XrHandTrackingScaleFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrHandTrackingScaleFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandTrackingScaleFB.ntype(address()); } + /** @return the value of the {@link XrHandTrackingScaleFB#next} field. */ + @NativeType("void *") + public long next() { return XrHandTrackingScaleFB.nnext(address()); } + /** @return the value of the {@link XrHandTrackingScaleFB#sensorOutput} field. */ + public float sensorOutput() { return XrHandTrackingScaleFB.nsensorOutput(address()); } + /** @return the value of the {@link XrHandTrackingScaleFB#currentOutput} field. */ + public float currentOutput() { return XrHandTrackingScaleFB.ncurrentOutput(address()); } + /** @return the value of the {@link XrHandTrackingScaleFB#overrideHandScale} field. */ + @NativeType("XrBool32") + public boolean overrideHandScale() { return XrHandTrackingScaleFB.noverrideHandScale(address()) != 0; } + /** @return the value of the {@link XrHandTrackingScaleFB#overrideValueInput} field. */ + public float overrideValueInput() { return XrHandTrackingScaleFB.noverrideValueInput(address()); } + + /** Sets the specified value to the {@link XrHandTrackingScaleFB#type} field. */ + public XrHandTrackingScaleFB.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackingScaleFB.ntype(address(), value); return this; } + /** Sets the {@link FBHandTrackingMesh#XR_TYPE_HAND_TRACKING_SCALE_FB TYPE_HAND_TRACKING_SCALE_FB} value to the {@link XrHandTrackingScaleFB#type} field. */ + public XrHandTrackingScaleFB.Buffer type$Default() { return type(FBHandTrackingMesh.XR_TYPE_HAND_TRACKING_SCALE_FB); } + /** Sets the specified value to the {@link XrHandTrackingScaleFB#next} field. */ + public XrHandTrackingScaleFB.Buffer next(@NativeType("void *") long value) { XrHandTrackingScaleFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticActionInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticActionInfo.java index f5db115d13..def026ce6a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticActionInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticActionInfo.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 output haptic feedback. * @@ -44,8 +44,8 @@ * XrAction {@link #action}; * XrPath {@link #subactionPath}; * } - */ -public class XrHapticActionInfo extends Struct implements NativeResource { + */ +public class XrHapticActionInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,35 +55,26 @@ public class XrHapticActionInfo extends Struct implements Na /** 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 XrHapticActionInfo(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrHapticActionInfo create(long address, @Nullable ByteBuffer container) { - return new XrHapticActionInfo(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + ACTION = layout.offsetof(2); + SUBACTIONPATH = layout.offsetof(3); } /** @@ -98,42 +89,42 @@ public XrHapticActionInfo(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} handle for the desired output haptic action. */ - @NativeType("XrAction") - public long action() { return naction(address()); } - /** the subaction path {@code XrPath} of the device to send the haptic event to, 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 trigger the haptic events only on the device from the subaction path. */ - @NativeType("XrPath") - public long subactionPath() { return nsubactionPath(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHapticActionInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_HAPTIC_ACTION_INFO TYPE_HAPTIC_ACTION_INFO} value to the {@link #type} field. */ - public XrHapticActionInfo type$Default() { return type(XR10.XR_TYPE_HAPTIC_ACTION_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrHapticActionInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #action} field. */ - public XrHapticActionInfo action(XrAction value) { naction(address(), value); return this; } - /** Sets the specified value to the {@link #subactionPath} field. */ - public XrHapticActionInfo 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} handle for the desired output haptic action. */ + @NativeType("XrAction") + public long action() { return naction(address()); } + /** the subaction path {@code XrPath} of the device to send the haptic event to, 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 trigger the haptic events only on the device from the subaction path. */ + @NativeType("XrPath") + public long subactionPath() { return nsubactionPath(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHapticActionInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_HAPTIC_ACTION_INFO TYPE_HAPTIC_ACTION_INFO} value to the {@link #type} field. */ + public XrHapticActionInfo type$Default() { return type(XR10.XR_TYPE_HAPTIC_ACTION_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrHapticActionInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #action} field. */ + public XrHapticActionInfo action(XrAction value) { naction(address(), value); return this; } + /** Sets the specified value to the {@link #subactionPath} field. */ + public XrHapticActionInfo subactionPath(@NativeType("XrPath") long value) { nsubactionPath(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHapticActionInfo 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 XrHapticActionInfo set(XrHapticActionInfo src) { /** Returns a new {@code XrHapticActionInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrHapticActionInfo malloc() { - return new XrHapticActionInfo(nmemAllocChecked(SIZEOF), null); + return wrap(XrHapticActionInfo.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrHapticActionInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrHapticActionInfo calloc() { - return new XrHapticActionInfo(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrHapticActionInfo.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrHapticActionInfo} instance allocated with {@link BufferUtils}. */ public static XrHapticActionInfo create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrHapticActionInfo(memAddress(container), container); + return wrap(XrHapticActionInfo.class, memAddress(container), container); } /** Returns a new {@code XrHapticActionInfo} instance for the specified memory address. */ public static XrHapticActionInfo create(long address) { - return new XrHapticActionInfo(address, null); + return wrap(XrHapticActionInfo.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrHapticActionInfo createSafe(long address) { - return address == NULL ? null : new XrHapticActionInfo(address, null); + return address == NULL ? null : wrap(XrHapticActionInfo.class, address); } /** @@ -185,7 +176,7 @@ public static XrHapticActionInfo createSafe(long address) { * @param capacity the buffer capacity */ public static XrHapticActionInfo.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 XrHapticActionInfo.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrHapticActionInfo.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 XrHapticActionInfo.Buffer calloc(int capacity) { */ public static XrHapticActionInfo.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 XrHapticActionInfo.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrHapticActionInfo.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 XrHapticActionInfo.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 XrHapticActionInfo.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrHapticActionInfo malloc(MemoryStack stack) { - return new XrHapticActionInfo(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrHapticActionInfo.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -238,7 +229,7 @@ public static XrHapticActionInfo malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrHapticActionInfo calloc(MemoryStack stack) { - return new XrHapticActionInfo(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrHapticActionInfo.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -248,7 +239,7 @@ public static XrHapticActionInfo calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHapticActionInfo.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 XrHapticActionInfo.Buffer malloc(int capacity, MemoryStack stack) * @param capacity the buffer capacity */ public static XrHapticActionInfo.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 + XrHapticActionInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHapticActionInfo.NEXT); } - /** Unsafe version of {@link #action}. */ - public static long naction(long struct) { return memGetAddress(struct + XrHapticActionInfo.ACTION); } - /** Unsafe version of {@link #subactionPath}. */ - public static long nsubactionPath(long struct) { return UNSAFE.getLong(null, struct + XrHapticActionInfo.SUBACTIONPATH); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticActionInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHapticActionInfo.NEXT, value); } - /** Unsafe version of {@link #action(XrAction) action}. */ - public static void naction(long struct, XrAction value) { memPutAddress(struct + XrHapticActionInfo.ACTION, value.address()); } - /** Unsafe version of {@link #subactionPath(long) subactionPath}. */ - public static void nsubactionPath(long struct, long value) { UNSAFE.putLong(null, struct + XrHapticActionInfo.SUBACTIONPATH, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHapticActionInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHapticActionInfo.NEXT); } + /** Unsafe version of {@link #action}. */ + public static long naction(long struct) { return memGetAddress(struct + XrHapticActionInfo.ACTION); } + /** Unsafe version of {@link #subactionPath}. */ + public static long nsubactionPath(long struct) { return UNSAFE.getLong(null, struct + XrHapticActionInfo.SUBACTIONPATH); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticActionInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHapticActionInfo.NEXT, value); } + /** Unsafe version of {@link #action(XrAction) action}. */ + public static void naction(long struct, XrAction value) { memPutAddress(struct + XrHapticActionInfo.ACTION, value.address()); } + /** Unsafe version of {@link #subactionPath(long) subactionPath}. */ + public static void nsubactionPath(long struct, long value) { UNSAFE.putLong(null, struct + XrHapticActionInfo.SUBACTIONPATH, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -288,9 +279,9 @@ public static XrHapticActionInfo.Buffer calloc(int capacity, MemoryStack stack) */ public static void validate(long struct) { check(memGetAddress(struct + XrHapticActionInfo.ACTION)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrHapticActionInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -300,9 +291,9 @@ public static class Buffer extends StructBuffer impl /** * Creates a new {@code XrHapticActionInfo.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 XrHapticActionInfo#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHapticActionInfo#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 XrHapticActionInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHapticActionInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHapticActionInfo.ntype(address()); } - /** @return the value of the {@link XrHapticActionInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrHapticActionInfo.nnext(address()); } - /** @return the value of the {@link XrHapticActionInfo#action} field. */ - @NativeType("XrAction") - public long action() { return XrHapticActionInfo.naction(address()); } - /** @return the value of the {@link XrHapticActionInfo#subactionPath} field. */ - @NativeType("XrPath") - public long subactionPath() { return XrHapticActionInfo.nsubactionPath(address()); } - - /** Sets the specified value to the {@link XrHapticActionInfo#type} field. */ - public XrHapticActionInfo.Buffer type(@NativeType("XrStructureType") int value) { XrHapticActionInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_HAPTIC_ACTION_INFO TYPE_HAPTIC_ACTION_INFO} value to the {@link XrHapticActionInfo#type} field. */ - public XrHapticActionInfo.Buffer type$Default() { return type(XR10.XR_TYPE_HAPTIC_ACTION_INFO); } - /** Sets the specified value to the {@link XrHapticActionInfo#next} field. */ - public XrHapticActionInfo.Buffer next(@NativeType("void const *") long value) { XrHapticActionInfo.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrHapticActionInfo#action} field. */ - public XrHapticActionInfo.Buffer action(XrAction value) { XrHapticActionInfo.naction(address(), value); return this; } - /** Sets the specified value to the {@link XrHapticActionInfo#subactionPath} field. */ - public XrHapticActionInfo.Buffer subactionPath(@NativeType("XrPath") long value) { XrHapticActionInfo.nsubactionPath(address(), value); return this; } + + /** @return the value of the {@link XrHapticActionInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHapticActionInfo.ntype(address()); } + /** @return the value of the {@link XrHapticActionInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrHapticActionInfo.nnext(address()); } + /** @return the value of the {@link XrHapticActionInfo#action} field. */ + @NativeType("XrAction") + public long action() { return XrHapticActionInfo.naction(address()); } + /** @return the value of the {@link XrHapticActionInfo#subactionPath} field. */ + @NativeType("XrPath") + public long subactionPath() { return XrHapticActionInfo.nsubactionPath(address()); } + + /** Sets the specified value to the {@link XrHapticActionInfo#type} field. */ + public XrHapticActionInfo.Buffer type(@NativeType("XrStructureType") int value) { XrHapticActionInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_HAPTIC_ACTION_INFO TYPE_HAPTIC_ACTION_INFO} value to the {@link XrHapticActionInfo#type} field. */ + public XrHapticActionInfo.Buffer type$Default() { return type(XR10.XR_TYPE_HAPTIC_ACTION_INFO); } + /** Sets the specified value to the {@link XrHapticActionInfo#next} field. */ + public XrHapticActionInfo.Buffer next(@NativeType("void const *") long value) { XrHapticActionInfo.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrHapticActionInfo#action} field. */ + public XrHapticActionInfo.Buffer action(XrAction value) { XrHapticActionInfo.naction(address(), value); return this; } + /** Sets the specified value to the {@link XrHapticActionInfo#subactionPath} field. */ + public XrHapticActionInfo.Buffer subactionPath(@NativeType("XrPath") long value) { XrHapticActionInfo.nsubactionPath(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticAmplitudeEnvelopeVibrationFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticAmplitudeEnvelopeVibrationFB.java index aedb108461..adc6f8f1f1 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticAmplitudeEnvelopeVibrationFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticAmplitudeEnvelopeVibrationFB.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.*; + /** * Haptic Effect Description. * @@ -51,8 +51,8 @@ * uint32_t amplitudeCount; * float const * amplitudes; * } - */ -public class XrHapticAmplitudeEnvelopeVibrationFB extends Struct implements NativeResource { + */ +public class XrHapticAmplitudeEnvelopeVibrationFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -62,38 +62,29 @@ public class XrHapticAmplitudeEnvelopeVibrationFB extends Struct implements NativeResource { @@ -327,9 +318,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 XrHapticAmplitudeEnvelopeVibrationFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHapticAmplitudeEnvelopeVibrationFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -354,33 +345,33 @@ protected Buffer self() { protected XrHapticAmplitudeEnvelopeVibrationFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHapticAmplitudeEnvelopeVibrationFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrHapticAmplitudeEnvelopeVibrationFB.nnext(address()); } - /** @return the value of the {@code duration} field. */ - @NativeType("XrDuration") - public long duration() { return XrHapticAmplitudeEnvelopeVibrationFB.nduration(address()); } - /** @return the value of the {@code amplitudeCount} field. */ - @NativeType("uint32_t") - public int amplitudeCount() { return XrHapticAmplitudeEnvelopeVibrationFB.namplitudeCount(address()); } - /** @return a {@link FloatBuffer} view of the data pointed to by the {@code amplitudes} field. */ - @NativeType("float const *") - public FloatBuffer amplitudes() { return XrHapticAmplitudeEnvelopeVibrationFB.namplitudes(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrHapticAmplitudeEnvelopeVibrationFB.Buffer type(@NativeType("XrStructureType") int value) { XrHapticAmplitudeEnvelopeVibrationFB.ntype(address(), value); return this; } - /** Sets the {@link FBHapticAmplitudeEnvelope#XR_TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB} value to the {@code type} field. */ - public XrHapticAmplitudeEnvelopeVibrationFB.Buffer type$Default() { return type(FBHapticAmplitudeEnvelope.XR_TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrHapticAmplitudeEnvelopeVibrationFB.Buffer next(@NativeType("void const *") long value) { XrHapticAmplitudeEnvelopeVibrationFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@code duration} field. */ - public XrHapticAmplitudeEnvelopeVibrationFB.Buffer duration(@NativeType("XrDuration") long value) { XrHapticAmplitudeEnvelopeVibrationFB.nduration(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@code amplitudes} field. */ - public XrHapticAmplitudeEnvelopeVibrationFB.Buffer amplitudes(@NativeType("float const *") FloatBuffer value) { XrHapticAmplitudeEnvelopeVibrationFB.namplitudes(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHapticAmplitudeEnvelopeVibrationFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrHapticAmplitudeEnvelopeVibrationFB.nnext(address()); } + /** @return the value of the {@code duration} field. */ + @NativeType("XrDuration") + public long duration() { return XrHapticAmplitudeEnvelopeVibrationFB.nduration(address()); } + /** @return the value of the {@code amplitudeCount} field. */ + @NativeType("uint32_t") + public int amplitudeCount() { return XrHapticAmplitudeEnvelopeVibrationFB.namplitudeCount(address()); } + /** @return a {@link FloatBuffer} view of the data pointed to by the {@code amplitudes} field. */ + @NativeType("float const *") + public FloatBuffer amplitudes() { return XrHapticAmplitudeEnvelopeVibrationFB.namplitudes(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrHapticAmplitudeEnvelopeVibrationFB.Buffer type(@NativeType("XrStructureType") int value) { XrHapticAmplitudeEnvelopeVibrationFB.ntype(address(), value); return this; } + /** Sets the {@link FBHapticAmplitudeEnvelope#XR_TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB} value to the {@code type} field. */ + public XrHapticAmplitudeEnvelopeVibrationFB.Buffer type$Default() { return type(FBHapticAmplitudeEnvelope.XR_TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrHapticAmplitudeEnvelopeVibrationFB.Buffer next(@NativeType("void const *") long value) { XrHapticAmplitudeEnvelopeVibrationFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@code duration} field. */ + public XrHapticAmplitudeEnvelopeVibrationFB.Buffer duration(@NativeType("XrDuration") long value) { XrHapticAmplitudeEnvelopeVibrationFB.nduration(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@code amplitudes} field. */ + public XrHapticAmplitudeEnvelopeVibrationFB.Buffer amplitudes(@NativeType("float const *") FloatBuffer value) { XrHapticAmplitudeEnvelopeVibrationFB.namplitudes(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticBaseHeader.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticBaseHeader.java index 76847b5cd2..fd60d2854d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticBaseHeader.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticBaseHeader.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 header for haptic feedback. * @@ -36,8 +36,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrHapticBaseHeader extends Struct implements NativeResource { + */ +public class XrHapticBaseHeader extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -47,29 +47,20 @@ public class XrHapticBaseHeader 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 XrHapticBaseHeader(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrHapticBaseHeader create(long address, @Nullable ByteBuffer container) { - return new XrHapticBaseHeader(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); } /** @@ -84,26 +75,26 @@ public XrHapticBaseHeader(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("void const *") - public long next() { return nnext(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHapticBaseHeader type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the specified value to the {@link #next} field. */ - public XrHapticBaseHeader next(@NativeType("void const *") long 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("void const *") + public long next() { return nnext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHapticBaseHeader type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the specified value to the {@link #next} field. */ + public XrHapticBaseHeader next(@NativeType("void const *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHapticBaseHeader set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -124,44 +115,44 @@ public XrHapticBaseHeader set(XrHapticBaseHeader src) { /** Returns a new {@code XrHapticBaseHeader} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrHapticBaseHeader malloc() { - return new XrHapticBaseHeader(nmemAllocChecked(SIZEOF), null); + return wrap(XrHapticBaseHeader.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrHapticBaseHeader} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrHapticBaseHeader calloc() { - return new XrHapticBaseHeader(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrHapticBaseHeader.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrHapticBaseHeader} instance allocated with {@link BufferUtils}. */ public static XrHapticBaseHeader create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrHapticBaseHeader(memAddress(container), container); + return wrap(XrHapticBaseHeader.class, memAddress(container), container); } /** Returns a new {@code XrHapticBaseHeader} instance for the specified memory address. */ public static XrHapticBaseHeader create(long address) { - return new XrHapticBaseHeader(address, null); + return wrap(XrHapticBaseHeader.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrHapticBaseHeader createSafe(long address) { - return address == NULL ? null : new XrHapticBaseHeader(address, null); + return address == NULL ? null : wrap(XrHapticBaseHeader.class, address); } /** Upcasts the specified {@code XrHapticVibration} instance to {@code XrHapticBaseHeader}. */ public static XrHapticBaseHeader create(XrHapticVibration value) { - return new XrHapticBaseHeader(value.address(), __getContainer(value)); + return wrap(XrHapticBaseHeader.class, value); } /** Upcasts the specified {@code XrHapticAmplitudeEnvelopeVibrationFB} instance to {@code XrHapticBaseHeader}. */ public static XrHapticBaseHeader create(XrHapticAmplitudeEnvelopeVibrationFB value) { - return new XrHapticBaseHeader(value.address(), __getContainer(value)); + return wrap(XrHapticBaseHeader.class, value); } /** Upcasts the specified {@code XrHapticPcmVibrationFB} instance to {@code XrHapticBaseHeader}. */ public static XrHapticBaseHeader create(XrHapticPcmVibrationFB value) { - return new XrHapticBaseHeader(value.address(), __getContainer(value)); + return wrap(XrHapticBaseHeader.class, value); } /** @@ -170,7 +161,7 @@ public static XrHapticBaseHeader create(XrHapticPcmVibrationFB value) { * @param capacity the buffer capacity */ public static XrHapticBaseHeader.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 XrHapticBaseHeader.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrHapticBaseHeader.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 XrHapticBaseHeader.Buffer calloc(int capacity) { */ public static XrHapticBaseHeader.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,28 +190,28 @@ public static XrHapticBaseHeader.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrHapticBaseHeader.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 XrHapticBaseHeader.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** Upcasts the specified {@code XrHapticVibration.Buffer} instance to {@code XrHapticBaseHeader.Buffer}. */ public static XrHapticBaseHeader.Buffer create(XrHapticVibration.Buffer value) { - return new XrHapticBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrHapticAmplitudeEnvelopeVibrationFB.Buffer} instance to {@code XrHapticBaseHeader.Buffer}. */ public static XrHapticBaseHeader.Buffer create(XrHapticAmplitudeEnvelopeVibrationFB.Buffer value) { - return new XrHapticBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** Upcasts the specified {@code XrHapticPcmVibrationFB.Buffer} instance to {@code XrHapticBaseHeader.Buffer}. */ public static XrHapticBaseHeader.Buffer create(XrHapticPcmVibrationFB.Buffer value) { - return new XrHapticBaseHeader.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** @@ -229,7 +220,7 @@ public static XrHapticBaseHeader.Buffer create(XrHapticPcmVibrationFB.Buffer val * @param stack the stack from which to allocate */ public static XrHapticBaseHeader malloc(MemoryStack stack) { - return new XrHapticBaseHeader(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrHapticBaseHeader.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -238,7 +229,7 @@ public static XrHapticBaseHeader malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrHapticBaseHeader calloc(MemoryStack stack) { - return new XrHapticBaseHeader(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrHapticBaseHeader.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -248,7 +239,7 @@ public static XrHapticBaseHeader calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHapticBaseHeader.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,22 +249,22 @@ public static XrHapticBaseHeader.Buffer malloc(int capacity, MemoryStack stack) * @param capacity the buffer capacity */ public static XrHapticBaseHeader.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 + XrHapticBaseHeader.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHapticBaseHeader.NEXT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticBaseHeader.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHapticBaseHeader.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHapticBaseHeader.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHapticBaseHeader.NEXT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticBaseHeader.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHapticBaseHeader.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrHapticBaseHeader} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -283,9 +274,9 @@ public static class Buffer extends StructBuffer impl /** * Creates a new {@code XrHapticBaseHeader.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 XrHapticBaseHeader#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHapticBaseHeader#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -310,18 +301,18 @@ protected Buffer self() { protected XrHapticBaseHeader getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHapticBaseHeader#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHapticBaseHeader.ntype(address()); } - /** @return the value of the {@link XrHapticBaseHeader#next} field. */ - @NativeType("void const *") - public long next() { return XrHapticBaseHeader.nnext(address()); } - - /** Sets the specified value to the {@link XrHapticBaseHeader#type} field. */ - public XrHapticBaseHeader.Buffer type(@NativeType("XrStructureType") int value) { XrHapticBaseHeader.ntype(address(), value); return this; } - /** Sets the specified value to the {@link XrHapticBaseHeader#next} field. */ - public XrHapticBaseHeader.Buffer next(@NativeType("void const *") long value) { XrHapticBaseHeader.nnext(address(), value); return this; } + + /** @return the value of the {@link XrHapticBaseHeader#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHapticBaseHeader.ntype(address()); } + /** @return the value of the {@link XrHapticBaseHeader#next} field. */ + @NativeType("void const *") + public long next() { return XrHapticBaseHeader.nnext(address()); } + + /** Sets the specified value to the {@link XrHapticBaseHeader#type} field. */ + public XrHapticBaseHeader.Buffer type(@NativeType("XrStructureType") int value) { XrHapticBaseHeader.ntype(address(), value); return this; } + /** Sets the specified value to the {@link XrHapticBaseHeader#next} field. */ + public XrHapticBaseHeader.Buffer next(@NativeType("void const *") long value) { XrHapticBaseHeader.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticPcmVibrationFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticPcmVibrationFB.java index 23be758342..0ae19eb295 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticPcmVibrationFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticPcmVibrationFB.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.*; + /** * Haptic Effect Description. * @@ -54,8 +54,8 @@ * XrBool32 {@link #append}; * uint32_t * {@link #samplesConsumed}; * } - */ -public class XrHapticPcmVibrationFB extends Struct implements NativeResource { + */ +public class XrHapticPcmVibrationFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -65,44 +65,35 @@ public class XrHapticPcmVibrationFB extends Struct imple /** The struct member offsets. */ public static final int - TYPE, - NEXT, - BUFFERSIZE, - BUFFER, - SAMPLERATE, - APPEND, - SAMPLESCONSUMED; + TYPE, + NEXT, + BUFFERSIZE, + BUFFER, + SAMPLERATE, + APPEND, + SAMPLESCONSUMED; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - BUFFERSIZE = layout.offsetof(2); - BUFFER = layout.offsetof(3); - SAMPLERATE = layout.offsetof(4); - APPEND = layout.offsetof(5); - SAMPLESCONSUMED = layout.offsetof(6); - } - - protected XrHapticPcmVibrationFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrHapticPcmVibrationFB create(long address, @Nullable ByteBuffer container) { - return new XrHapticPcmVibrationFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + BUFFERSIZE = layout.offsetof(2); + BUFFER = layout.offsetof(3); + SAMPLERATE = layout.offsetof(4); + APPEND = layout.offsetof(5); + SAMPLESCONSUMED = layout.offsetof(6); } /** @@ -117,62 +108,62 @@ public XrHapticPcmVibrationFB(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()); } - /** the number of samples in the buffer. */ - @NativeType("uint32_t") - public int bufferSize() { return nbufferSize(address()); } - /** a pointer to a float array representing the PCM samples. If you consider the haptic effect as a sampled analog audio, then this buffer will contain the samples representing that effect. The values in this buffer are expected to be in the range [-1.0, 1.0]. */ - @NativeType("float const *") - public FloatBuffer buffer() { return nbuffer(address()); } - /** the number of samples to be played per second, this is used to determine the duration of the haptic effect. */ - public float sampleRate() { return nsampleRate(address()); } - /** if set to {@link XR10#XR_FALSE FALSE}, any existing samples will be cleared and a new haptic effect will begin, if {@link XR10#XR_TRUE TRUE}, samples will be appended to the currently playing effect */ - @NativeType("XrBool32") - public boolean append() { return nappend(address()) != 0; } + + /** 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()); } + /** the number of samples in the buffer. */ + @NativeType("uint32_t") + public int bufferSize() { return nbufferSize(address()); } + /** a pointer to a float array representing the PCM samples. If you consider the haptic effect as a sampled analog audio, then this buffer will contain the samples representing that effect. The values in this buffer are expected to be in the range [-1.0, 1.0]. */ + @NativeType("float const *") + public FloatBuffer buffer() { return nbuffer(address()); } + /** the number of samples to be played per second, this is used to determine the duration of the haptic effect. */ + public float sampleRate() { return nsampleRate(address()); } + /** if set to {@link XR10#XR_FALSE FALSE}, any existing samples will be cleared and a new haptic effect will begin, if {@link XR10#XR_TRUE TRUE}, samples will be appended to the currently playing effect */ + @NativeType("XrBool32") + public boolean append() { return nappend(address()) != 0; } /** * @param capacity the number of elements in the returned buffer * * @return a pointer to an unsigned integer; it is populated by runtime, to tell the application about how many samples were consumed from the input {@code buffer} - */ - @NativeType("uint32_t *") - public IntBuffer samplesConsumed(int capacity) { return nsamplesConsumed(address(), capacity); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHapticPcmVibrationFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBHapticPcm#XR_TYPE_HAPTIC_PCM_VIBRATION_FB TYPE_HAPTIC_PCM_VIBRATION_FB} value to the {@link #type} field. */ - public XrHapticPcmVibrationFB type$Default() { return type(FBHapticPcm.XR_TYPE_HAPTIC_PCM_VIBRATION_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrHapticPcmVibrationFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link #buffer} field. */ - public XrHapticPcmVibrationFB buffer(@NativeType("float const *") FloatBuffer value) { nbuffer(address(), value); return this; } - /** Sets the specified value to the {@link #sampleRate} field. */ - public XrHapticPcmVibrationFB sampleRate(float value) { nsampleRate(address(), value); return this; } - /** Sets the specified value to the {@link #append} field. */ - public XrHapticPcmVibrationFB append(@NativeType("XrBool32") boolean value) { nappend(address(), value ? 1 : 0); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link #samplesConsumed} field. */ - public XrHapticPcmVibrationFB samplesConsumed(@NativeType("uint32_t *") IntBuffer value) { nsamplesConsumed(address(), value); return this; } + */ + @NativeType("uint32_t *") + public IntBuffer samplesConsumed(int capacity) { return nsamplesConsumed(address(), capacity); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHapticPcmVibrationFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBHapticPcm#XR_TYPE_HAPTIC_PCM_VIBRATION_FB TYPE_HAPTIC_PCM_VIBRATION_FB} value to the {@link #type} field. */ + public XrHapticPcmVibrationFB type$Default() { return type(FBHapticPcm.XR_TYPE_HAPTIC_PCM_VIBRATION_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrHapticPcmVibrationFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link #buffer} field. */ + public XrHapticPcmVibrationFB buffer(@NativeType("float const *") FloatBuffer value) { nbuffer(address(), value); return this; } + /** Sets the specified value to the {@link #sampleRate} field. */ + public XrHapticPcmVibrationFB sampleRate(float value) { nsampleRate(address(), value); return this; } + /** Sets the specified value to the {@link #append} field. */ + public XrHapticPcmVibrationFB append(@NativeType("XrBool32") boolean value) { nappend(address(), value ? 1 : 0); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link #samplesConsumed} field. */ + public XrHapticPcmVibrationFB samplesConsumed(@NativeType("uint32_t *") IntBuffer value) { nsamplesConsumed(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHapticPcmVibrationFB set( - int type, - long next, - FloatBuffer buffer, - float sampleRate, - boolean append, + int type, + long next, + FloatBuffer buffer, + float sampleRate, + boolean append, IntBuffer samplesConsumed - ) { - type(type); - next(next); - buffer(buffer); - sampleRate(sampleRate); - append(append); - samplesConsumed(samplesConsumed); + ) { + type(type); + next(next); + buffer(buffer); + sampleRate(sampleRate); + append(append); + samplesConsumed(samplesConsumed); return this; } @@ -193,34 +184,34 @@ public XrHapticPcmVibrationFB set(XrHapticPcmVibrationFB src) { /** Returns a new {@code XrHapticPcmVibrationFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrHapticPcmVibrationFB malloc() { - return new XrHapticPcmVibrationFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrHapticPcmVibrationFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrHapticPcmVibrationFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrHapticPcmVibrationFB calloc() { - return new XrHapticPcmVibrationFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrHapticPcmVibrationFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrHapticPcmVibrationFB} instance allocated with {@link BufferUtils}. */ public static XrHapticPcmVibrationFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrHapticPcmVibrationFB(memAddress(container), container); + return wrap(XrHapticPcmVibrationFB.class, memAddress(container), container); } /** Returns a new {@code XrHapticPcmVibrationFB} instance for the specified memory address. */ public static XrHapticPcmVibrationFB create(long address) { - return new XrHapticPcmVibrationFB(address, null); + return wrap(XrHapticPcmVibrationFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrHapticPcmVibrationFB createSafe(long address) { - return address == NULL ? null : new XrHapticPcmVibrationFB(address, null); + return address == NULL ? null : wrap(XrHapticPcmVibrationFB.class, address); } /** Downcasts the specified {@code XrHapticBaseHeader} instance to {@code XrHapticPcmVibrationFB}. */ public static XrHapticPcmVibrationFB create(XrHapticBaseHeader value) { - return new XrHapticPcmVibrationFB(value.address(), __getContainer(value)); + return wrap(XrHapticPcmVibrationFB.class, value); } /** @@ -229,7 +220,7 @@ public static XrHapticPcmVibrationFB create(XrHapticBaseHeader value) { * @param capacity the buffer capacity */ public static XrHapticPcmVibrationFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -238,7 +229,7 @@ public static XrHapticPcmVibrationFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrHapticPcmVibrationFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -248,7 +239,7 @@ public static XrHapticPcmVibrationFB.Buffer calloc(int capacity) { */ public static XrHapticPcmVibrationFB.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); } /** @@ -258,18 +249,18 @@ public static XrHapticPcmVibrationFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrHapticPcmVibrationFB.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 XrHapticPcmVibrationFB.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 XrHapticBaseHeader.Buffer} instance to {@code XrHapticPcmVibrationFB.Buffer}. */ public static XrHapticPcmVibrationFB.Buffer create(XrHapticBaseHeader.Buffer value) { - return new XrHapticPcmVibrationFB.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** @@ -278,7 +269,7 @@ public static XrHapticPcmVibrationFB.Buffer create(XrHapticBaseHeader.Buffer val * @param stack the stack from which to allocate */ public static XrHapticPcmVibrationFB malloc(MemoryStack stack) { - return new XrHapticPcmVibrationFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrHapticPcmVibrationFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -287,7 +278,7 @@ public static XrHapticPcmVibrationFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrHapticPcmVibrationFB calloc(MemoryStack stack) { - return new XrHapticPcmVibrationFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrHapticPcmVibrationFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -297,7 +288,7 @@ public static XrHapticPcmVibrationFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHapticPcmVibrationFB.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,40 +298,40 @@ public static XrHapticPcmVibrationFB.Buffer malloc(int capacity, MemoryStack sta * @param capacity the buffer capacity */ public static XrHapticPcmVibrationFB.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 + XrHapticPcmVibrationFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHapticPcmVibrationFB.NEXT); } - /** Unsafe version of {@link #bufferSize}. */ - public static int nbufferSize(long struct) { return UNSAFE.getInt(null, struct + XrHapticPcmVibrationFB.BUFFERSIZE); } - /** Unsafe version of {@link #buffer() buffer}. */ - public static FloatBuffer nbuffer(long struct) { return memFloatBuffer(memGetAddress(struct + XrHapticPcmVibrationFB.BUFFER), nbufferSize(struct)); } - /** Unsafe version of {@link #sampleRate}. */ - public static float nsampleRate(long struct) { return UNSAFE.getFloat(null, struct + XrHapticPcmVibrationFB.SAMPLERATE); } - /** Unsafe version of {@link #append}. */ - public static int nappend(long struct) { return UNSAFE.getInt(null, struct + XrHapticPcmVibrationFB.APPEND); } - /** Unsafe version of {@link #samplesConsumed(int) samplesConsumed}. */ - public static IntBuffer nsamplesConsumed(long struct, int capacity) { return memIntBuffer(memGetAddress(struct + XrHapticPcmVibrationFB.SAMPLESCONSUMED), capacity); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticPcmVibrationFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHapticPcmVibrationFB.NEXT, value); } - /** Sets the specified value to the {@code bufferSize} field of the specified {@code struct}. */ - public static void nbufferSize(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticPcmVibrationFB.BUFFERSIZE, value); } - /** Unsafe version of {@link #buffer(FloatBuffer) buffer}. */ - public static void nbuffer(long struct, FloatBuffer value) { memPutAddress(struct + XrHapticPcmVibrationFB.BUFFER, memAddress(value)); nbufferSize(struct, value.remaining()); } - /** Unsafe version of {@link #sampleRate(float) sampleRate}. */ - public static void nsampleRate(long struct, float value) { UNSAFE.putFloat(null, struct + XrHapticPcmVibrationFB.SAMPLERATE, value); } - /** Unsafe version of {@link #append(boolean) append}. */ - public static void nappend(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticPcmVibrationFB.APPEND, value); } - /** Unsafe version of {@link #samplesConsumed(IntBuffer) samplesConsumed}. */ - public static void nsamplesConsumed(long struct, IntBuffer value) { memPutAddress(struct + XrHapticPcmVibrationFB.SAMPLESCONSUMED, memAddress(value)); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHapticPcmVibrationFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHapticPcmVibrationFB.NEXT); } + /** Unsafe version of {@link #bufferSize}. */ + public static int nbufferSize(long struct) { return UNSAFE.getInt(null, struct + XrHapticPcmVibrationFB.BUFFERSIZE); } + /** Unsafe version of {@link #buffer() buffer}. */ + public static FloatBuffer nbuffer(long struct) { return memFloatBuffer(memGetAddress(struct + XrHapticPcmVibrationFB.BUFFER), nbufferSize(struct)); } + /** Unsafe version of {@link #sampleRate}. */ + public static float nsampleRate(long struct) { return UNSAFE.getFloat(null, struct + XrHapticPcmVibrationFB.SAMPLERATE); } + /** Unsafe version of {@link #append}. */ + public static int nappend(long struct) { return UNSAFE.getInt(null, struct + XrHapticPcmVibrationFB.APPEND); } + /** Unsafe version of {@link #samplesConsumed(int) samplesConsumed}. */ + public static IntBuffer nsamplesConsumed(long struct, int capacity) { return memIntBuffer(memGetAddress(struct + XrHapticPcmVibrationFB.SAMPLESCONSUMED), capacity); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticPcmVibrationFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHapticPcmVibrationFB.NEXT, value); } + /** Sets the specified value to the {@code bufferSize} field of the specified {@code struct}. */ + public static void nbufferSize(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticPcmVibrationFB.BUFFERSIZE, value); } + /** Unsafe version of {@link #buffer(FloatBuffer) buffer}. */ + public static void nbuffer(long struct, FloatBuffer value) { memPutAddress(struct + XrHapticPcmVibrationFB.BUFFER, memAddress(value)); nbufferSize(struct, value.remaining()); } + /** Unsafe version of {@link #sampleRate(float) sampleRate}. */ + public static void nsampleRate(long struct, float value) { UNSAFE.putFloat(null, struct + XrHapticPcmVibrationFB.SAMPLERATE, value); } + /** Unsafe version of {@link #append(boolean) append}. */ + public static void nappend(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticPcmVibrationFB.APPEND, value); } + /** Unsafe version of {@link #samplesConsumed(IntBuffer) samplesConsumed}. */ + public static void nsamplesConsumed(long struct, IntBuffer value) { memPutAddress(struct + XrHapticPcmVibrationFB.SAMPLESCONSUMED, memAddress(value)); } /** * Validates pointer members that should not be {@code NULL}. @@ -350,9 +341,9 @@ public static XrHapticPcmVibrationFB.Buffer calloc(int capacity, MemoryStack sta public static void validate(long struct) { check(memGetAddress(struct + XrHapticPcmVibrationFB.BUFFER)); check(memGetAddress(struct + XrHapticPcmVibrationFB.SAMPLESCONSUMED)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrHapticPcmVibrationFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -362,9 +353,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrHapticPcmVibrationFB.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 XrHapticPcmVibrationFB#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHapticPcmVibrationFB#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -389,46 +380,46 @@ protected Buffer self() { protected XrHapticPcmVibrationFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHapticPcmVibrationFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHapticPcmVibrationFB.ntype(address()); } - /** @return the value of the {@link XrHapticPcmVibrationFB#next} field. */ - @NativeType("void const *") - public long next() { return XrHapticPcmVibrationFB.nnext(address()); } - /** @return the value of the {@link XrHapticPcmVibrationFB#bufferSize} field. */ - @NativeType("uint32_t") - public int bufferSize() { return XrHapticPcmVibrationFB.nbufferSize(address()); } - /** @return a {@link FloatBuffer} view of the data pointed to by the {@link XrHapticPcmVibrationFB#buffer} field. */ - @NativeType("float const *") - public FloatBuffer buffer() { return XrHapticPcmVibrationFB.nbuffer(address()); } - /** @return the value of the {@link XrHapticPcmVibrationFB#sampleRate} field. */ - public float sampleRate() { return XrHapticPcmVibrationFB.nsampleRate(address()); } - /** @return the value of the {@link XrHapticPcmVibrationFB#append} field. */ - @NativeType("XrBool32") - public boolean append() { return XrHapticPcmVibrationFB.nappend(address()) != 0; } + + /** @return the value of the {@link XrHapticPcmVibrationFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHapticPcmVibrationFB.ntype(address()); } + /** @return the value of the {@link XrHapticPcmVibrationFB#next} field. */ + @NativeType("void const *") + public long next() { return XrHapticPcmVibrationFB.nnext(address()); } + /** @return the value of the {@link XrHapticPcmVibrationFB#bufferSize} field. */ + @NativeType("uint32_t") + public int bufferSize() { return XrHapticPcmVibrationFB.nbufferSize(address()); } + /** @return a {@link FloatBuffer} view of the data pointed to by the {@link XrHapticPcmVibrationFB#buffer} field. */ + @NativeType("float const *") + public FloatBuffer buffer() { return XrHapticPcmVibrationFB.nbuffer(address()); } + /** @return the value of the {@link XrHapticPcmVibrationFB#sampleRate} field. */ + public float sampleRate() { return XrHapticPcmVibrationFB.nsampleRate(address()); } + /** @return the value of the {@link XrHapticPcmVibrationFB#append} field. */ + @NativeType("XrBool32") + public boolean append() { return XrHapticPcmVibrationFB.nappend(address()) != 0; } /** * @return a {@link IntBuffer} view of the data pointed to by the {@link XrHapticPcmVibrationFB#samplesConsumed} field. * * @param capacity the number of elements in the returned buffer - */ - @NativeType("uint32_t *") - public IntBuffer samplesConsumed(int capacity) { return XrHapticPcmVibrationFB.nsamplesConsumed(address(), capacity); } - - /** Sets the specified value to the {@link XrHapticPcmVibrationFB#type} field. */ - public XrHapticPcmVibrationFB.Buffer type(@NativeType("XrStructureType") int value) { XrHapticPcmVibrationFB.ntype(address(), value); return this; } - /** Sets the {@link FBHapticPcm#XR_TYPE_HAPTIC_PCM_VIBRATION_FB TYPE_HAPTIC_PCM_VIBRATION_FB} value to the {@link XrHapticPcmVibrationFB#type} field. */ - public XrHapticPcmVibrationFB.Buffer type$Default() { return type(FBHapticPcm.XR_TYPE_HAPTIC_PCM_VIBRATION_FB); } - /** Sets the specified value to the {@link XrHapticPcmVibrationFB#next} field. */ - public XrHapticPcmVibrationFB.Buffer next(@NativeType("void const *") long value) { XrHapticPcmVibrationFB.nnext(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link XrHapticPcmVibrationFB#buffer} field. */ - public XrHapticPcmVibrationFB.Buffer buffer(@NativeType("float const *") FloatBuffer value) { XrHapticPcmVibrationFB.nbuffer(address(), value); return this; } - /** Sets the specified value to the {@link XrHapticPcmVibrationFB#sampleRate} field. */ - public XrHapticPcmVibrationFB.Buffer sampleRate(float value) { XrHapticPcmVibrationFB.nsampleRate(address(), value); return this; } - /** Sets the specified value to the {@link XrHapticPcmVibrationFB#append} field. */ - public XrHapticPcmVibrationFB.Buffer append(@NativeType("XrBool32") boolean value) { XrHapticPcmVibrationFB.nappend(address(), value ? 1 : 0); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrHapticPcmVibrationFB#samplesConsumed} field. */ - public XrHapticPcmVibrationFB.Buffer samplesConsumed(@NativeType("uint32_t *") IntBuffer value) { XrHapticPcmVibrationFB.nsamplesConsumed(address(), value); return this; } + */ + @NativeType("uint32_t *") + public IntBuffer samplesConsumed(int capacity) { return XrHapticPcmVibrationFB.nsamplesConsumed(address(), capacity); } + + /** Sets the specified value to the {@link XrHapticPcmVibrationFB#type} field. */ + public XrHapticPcmVibrationFB.Buffer type(@NativeType("XrStructureType") int value) { XrHapticPcmVibrationFB.ntype(address(), value); return this; } + /** Sets the {@link FBHapticPcm#XR_TYPE_HAPTIC_PCM_VIBRATION_FB TYPE_HAPTIC_PCM_VIBRATION_FB} value to the {@link XrHapticPcmVibrationFB#type} field. */ + public XrHapticPcmVibrationFB.Buffer type$Default() { return type(FBHapticPcm.XR_TYPE_HAPTIC_PCM_VIBRATION_FB); } + /** Sets the specified value to the {@link XrHapticPcmVibrationFB#next} field. */ + public XrHapticPcmVibrationFB.Buffer next(@NativeType("void const *") long value) { XrHapticPcmVibrationFB.nnext(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link XrHapticPcmVibrationFB#buffer} field. */ + public XrHapticPcmVibrationFB.Buffer buffer(@NativeType("float const *") FloatBuffer value) { XrHapticPcmVibrationFB.nbuffer(address(), value); return this; } + /** Sets the specified value to the {@link XrHapticPcmVibrationFB#sampleRate} field. */ + public XrHapticPcmVibrationFB.Buffer sampleRate(float value) { XrHapticPcmVibrationFB.nsampleRate(address(), value); return this; } + /** Sets the specified value to the {@link XrHapticPcmVibrationFB#append} field. */ + public XrHapticPcmVibrationFB.Buffer append(@NativeType("XrBool32") boolean value) { XrHapticPcmVibrationFB.nappend(address(), value ? 1 : 0); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrHapticPcmVibrationFB#samplesConsumed} field. */ + public XrHapticPcmVibrationFB.Buffer samplesConsumed(@NativeType("uint32_t *") IntBuffer value) { XrHapticPcmVibrationFB.nsamplesConsumed(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticVibration.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticVibration.java index ea0bc1b584..3e8bd81feb 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticVibration.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticVibration.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 header for haptic feedback. * @@ -45,8 +45,8 @@ * float {@link #frequency}; * float {@link #amplitude}; * } - */ -public class XrHapticVibration extends Struct implements NativeResource { + */ +public class XrHapticVibration extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,38 +56,29 @@ public class XrHapticVibration extends Struct implements Nati /** The struct member offsets. */ public static final int - TYPE, - NEXT, - DURATION, - FREQUENCY, - AMPLITUDE; + TYPE, + NEXT, + DURATION, + FREQUENCY, + AMPLITUDE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - DURATION = layout.offsetof(2); - FREQUENCY = layout.offsetof(3); - AMPLITUDE = layout.offsetof(4); - } - - protected XrHapticVibration(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrHapticVibration create(long address, @Nullable ByteBuffer container) { - return new XrHapticVibration(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + DURATION = layout.offsetof(2); + FREQUENCY = layout.offsetof(3); + AMPLITUDE = layout.offsetof(4); } /** @@ -102,47 +93,47 @@ public XrHapticVibration(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 number of nanoseconds the vibration should last. If {@link XR10#XR_MIN_HAPTIC_DURATION MIN_HAPTIC_DURATION} is specified, the runtime must produce a short haptics pulse of minimal supported duration for the haptic device. */ - @NativeType("XrDuration") - public long duration() { return nduration(address()); } - /** the frequency of the vibration in Hz. If {@link XR10#XR_FREQUENCY_UNSPECIFIED FREQUENCY_UNSPECIFIED} is specified, it is left to the runtime to decide the optimal frequency value to use. */ - public float frequency() { return nfrequency(address()); } - /** the amplitude of the vibration between 0.0 and 1.0. */ - public float amplitude() { return namplitude(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHapticVibration type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_HAPTIC_VIBRATION TYPE_HAPTIC_VIBRATION} value to the {@link #type} field. */ - public XrHapticVibration type$Default() { return type(XR10.XR_TYPE_HAPTIC_VIBRATION); } - /** Sets the specified value to the {@link #next} field. */ - public XrHapticVibration next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #duration} field. */ - public XrHapticVibration duration(@NativeType("XrDuration") long value) { nduration(address(), value); return this; } - /** Sets the specified value to the {@link #frequency} field. */ - public XrHapticVibration frequency(float value) { nfrequency(address(), value); return this; } - /** Sets the specified value to the {@link #amplitude} field. */ - public XrHapticVibration amplitude(float value) { namplitude(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 number of nanoseconds the vibration should last. If {@link XR10#XR_MIN_HAPTIC_DURATION MIN_HAPTIC_DURATION} is specified, the runtime must produce a short haptics pulse of minimal supported duration for the haptic device. */ + @NativeType("XrDuration") + public long duration() { return nduration(address()); } + /** the frequency of the vibration in Hz. If {@link XR10#XR_FREQUENCY_UNSPECIFIED FREQUENCY_UNSPECIFIED} is specified, it is left to the runtime to decide the optimal frequency value to use. */ + public float frequency() { return nfrequency(address()); } + /** the amplitude of the vibration between 0.0 and 1.0. */ + public float amplitude() { return namplitude(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHapticVibration type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_HAPTIC_VIBRATION TYPE_HAPTIC_VIBRATION} value to the {@link #type} field. */ + public XrHapticVibration type$Default() { return type(XR10.XR_TYPE_HAPTIC_VIBRATION); } + /** Sets the specified value to the {@link #next} field. */ + public XrHapticVibration next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #duration} field. */ + public XrHapticVibration duration(@NativeType("XrDuration") long value) { nduration(address(), value); return this; } + /** Sets the specified value to the {@link #frequency} field. */ + public XrHapticVibration frequency(float value) { nfrequency(address(), value); return this; } + /** Sets the specified value to the {@link #amplitude} field. */ + public XrHapticVibration amplitude(float value) { namplitude(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHapticVibration set( - int type, - long next, - long duration, - float frequency, + int type, + long next, + long duration, + float frequency, float amplitude - ) { - type(type); - next(next); - duration(duration); - frequency(frequency); - amplitude(amplitude); + ) { + type(type); + next(next); + duration(duration); + frequency(frequency); + amplitude(amplitude); return this; } @@ -163,34 +154,34 @@ public XrHapticVibration set(XrHapticVibration src) { /** Returns a new {@code XrHapticVibration} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrHapticVibration malloc() { - return new XrHapticVibration(nmemAllocChecked(SIZEOF), null); + return wrap(XrHapticVibration.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrHapticVibration} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrHapticVibration calloc() { - return new XrHapticVibration(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrHapticVibration.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrHapticVibration} instance allocated with {@link BufferUtils}. */ public static XrHapticVibration create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrHapticVibration(memAddress(container), container); + return wrap(XrHapticVibration.class, memAddress(container), container); } /** Returns a new {@code XrHapticVibration} instance for the specified memory address. */ public static XrHapticVibration create(long address) { - return new XrHapticVibration(address, null); + return wrap(XrHapticVibration.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrHapticVibration createSafe(long address) { - return address == NULL ? null : new XrHapticVibration(address, null); + return address == NULL ? null : wrap(XrHapticVibration.class, address); } /** Downcasts the specified {@code XrHapticBaseHeader} instance to {@code XrHapticVibration}. */ public static XrHapticVibration create(XrHapticBaseHeader value) { - return new XrHapticVibration(value.address(), __getContainer(value)); + return wrap(XrHapticVibration.class, value); } /** @@ -199,7 +190,7 @@ public static XrHapticVibration create(XrHapticBaseHeader value) { * @param capacity the buffer capacity */ public static XrHapticVibration.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -208,7 +199,7 @@ public static XrHapticVibration.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrHapticVibration.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -218,7 +209,7 @@ public static XrHapticVibration.Buffer calloc(int capacity) { */ public static XrHapticVibration.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); } /** @@ -228,18 +219,18 @@ public static XrHapticVibration.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrHapticVibration.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 XrHapticVibration.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 XrHapticBaseHeader.Buffer} instance to {@code XrHapticVibration.Buffer}. */ public static XrHapticVibration.Buffer create(XrHapticBaseHeader.Buffer value) { - return new XrHapticVibration.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** @@ -248,7 +239,7 @@ public static XrHapticVibration.Buffer create(XrHapticBaseHeader.Buffer value) { * @param stack the stack from which to allocate */ public static XrHapticVibration malloc(MemoryStack stack) { - return new XrHapticVibration(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrHapticVibration.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -257,7 +248,7 @@ public static XrHapticVibration malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrHapticVibration calloc(MemoryStack stack) { - return new XrHapticVibration(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrHapticVibration.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -267,7 +258,7 @@ public static XrHapticVibration calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHapticVibration.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,34 +268,34 @@ public static XrHapticVibration.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrHapticVibration.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 + XrHapticVibration.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHapticVibration.NEXT); } - /** Unsafe version of {@link #duration}. */ - public static long nduration(long struct) { return UNSAFE.getLong(null, struct + XrHapticVibration.DURATION); } - /** Unsafe version of {@link #frequency}. */ - public static float nfrequency(long struct) { return UNSAFE.getFloat(null, struct + XrHapticVibration.FREQUENCY); } - /** Unsafe version of {@link #amplitude}. */ - public static float namplitude(long struct) { return UNSAFE.getFloat(null, struct + XrHapticVibration.AMPLITUDE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticVibration.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHapticVibration.NEXT, value); } - /** Unsafe version of {@link #duration(long) duration}. */ - public static void nduration(long struct, long value) { UNSAFE.putLong(null, struct + XrHapticVibration.DURATION, value); } - /** Unsafe version of {@link #frequency(float) frequency}. */ - public static void nfrequency(long struct, float value) { UNSAFE.putFloat(null, struct + XrHapticVibration.FREQUENCY, value); } - /** Unsafe version of {@link #amplitude(float) amplitude}. */ - public static void namplitude(long struct, float value) { UNSAFE.putFloat(null, struct + XrHapticVibration.AMPLITUDE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHapticVibration.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHapticVibration.NEXT); } + /** Unsafe version of {@link #duration}. */ + public static long nduration(long struct) { return UNSAFE.getLong(null, struct + XrHapticVibration.DURATION); } + /** Unsafe version of {@link #frequency}. */ + public static float nfrequency(long struct) { return UNSAFE.getFloat(null, struct + XrHapticVibration.FREQUENCY); } + /** Unsafe version of {@link #amplitude}. */ + public static float namplitude(long struct) { return UNSAFE.getFloat(null, struct + XrHapticVibration.AMPLITUDE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticVibration.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHapticVibration.NEXT, value); } + /** Unsafe version of {@link #duration(long) duration}. */ + public static void nduration(long struct, long value) { UNSAFE.putLong(null, struct + XrHapticVibration.DURATION, value); } + /** Unsafe version of {@link #frequency(float) frequency}. */ + public static void nfrequency(long struct, float value) { UNSAFE.putFloat(null, struct + XrHapticVibration.FREQUENCY, value); } + /** Unsafe version of {@link #amplitude(float) amplitude}. */ + public static void namplitude(long struct, float value) { UNSAFE.putFloat(null, struct + XrHapticVibration.AMPLITUDE, value); } + + // ----------------------------------- /** An array of {@link XrHapticVibration} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -314,9 +305,9 @@ public static class Buffer extends StructBuffer imple /** * Creates a new {@code XrHapticVibration.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 XrHapticVibration#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHapticVibration#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -341,33 +332,33 @@ protected Buffer self() { protected XrHapticVibration getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHapticVibration#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHapticVibration.ntype(address()); } - /** @return the value of the {@link XrHapticVibration#next} field. */ - @NativeType("void const *") - public long next() { return XrHapticVibration.nnext(address()); } - /** @return the value of the {@link XrHapticVibration#duration} field. */ - @NativeType("XrDuration") - public long duration() { return XrHapticVibration.nduration(address()); } - /** @return the value of the {@link XrHapticVibration#frequency} field. */ - public float frequency() { return XrHapticVibration.nfrequency(address()); } - /** @return the value of the {@link XrHapticVibration#amplitude} field. */ - public float amplitude() { return XrHapticVibration.namplitude(address()); } - - /** Sets the specified value to the {@link XrHapticVibration#type} field. */ - public XrHapticVibration.Buffer type(@NativeType("XrStructureType") int value) { XrHapticVibration.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_HAPTIC_VIBRATION TYPE_HAPTIC_VIBRATION} value to the {@link XrHapticVibration#type} field. */ - public XrHapticVibration.Buffer type$Default() { return type(XR10.XR_TYPE_HAPTIC_VIBRATION); } - /** Sets the specified value to the {@link XrHapticVibration#next} field. */ - public XrHapticVibration.Buffer next(@NativeType("void const *") long value) { XrHapticVibration.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrHapticVibration#duration} field. */ - public XrHapticVibration.Buffer duration(@NativeType("XrDuration") long value) { XrHapticVibration.nduration(address(), value); return this; } - /** Sets the specified value to the {@link XrHapticVibration#frequency} field. */ - public XrHapticVibration.Buffer frequency(float value) { XrHapticVibration.nfrequency(address(), value); return this; } - /** Sets the specified value to the {@link XrHapticVibration#amplitude} field. */ - public XrHapticVibration.Buffer amplitude(float value) { XrHapticVibration.namplitude(address(), value); return this; } + + /** @return the value of the {@link XrHapticVibration#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHapticVibration.ntype(address()); } + /** @return the value of the {@link XrHapticVibration#next} field. */ + @NativeType("void const *") + public long next() { return XrHapticVibration.nnext(address()); } + /** @return the value of the {@link XrHapticVibration#duration} field. */ + @NativeType("XrDuration") + public long duration() { return XrHapticVibration.nduration(address()); } + /** @return the value of the {@link XrHapticVibration#frequency} field. */ + public float frequency() { return XrHapticVibration.nfrequency(address()); } + /** @return the value of the {@link XrHapticVibration#amplitude} field. */ + public float amplitude() { return XrHapticVibration.namplitude(address()); } + + /** Sets the specified value to the {@link XrHapticVibration#type} field. */ + public XrHapticVibration.Buffer type(@NativeType("XrStructureType") int value) { XrHapticVibration.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_HAPTIC_VIBRATION TYPE_HAPTIC_VIBRATION} value to the {@link XrHapticVibration#type} field. */ + public XrHapticVibration.Buffer type$Default() { return type(XR10.XR_TYPE_HAPTIC_VIBRATION); } + /** Sets the specified value to the {@link XrHapticVibration#next} field. */ + public XrHapticVibration.Buffer next(@NativeType("void const *") long value) { XrHapticVibration.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrHapticVibration#duration} field. */ + public XrHapticVibration.Buffer duration(@NativeType("XrDuration") long value) { XrHapticVibration.nduration(address(), value); return this; } + /** Sets the specified value to the {@link XrHapticVibration#frequency} field. */ + public XrHapticVibration.Buffer frequency(float value) { XrHapticVibration.nfrequency(address(), value); return this; } + /** Sets the specified value to the {@link XrHapticVibration#amplitude} field. */ + public XrHapticVibration.Buffer amplitude(float value) { XrHapticVibration.namplitude(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHolographicWindowAttachmentMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHolographicWindowAttachmentMSFT.java index c58788c302..489a53818f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHolographicWindowAttachmentMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHolographicWindowAttachmentMSFT.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.*; + /** * The holographic window binding structure which can be passed at session creation. * @@ -50,8 +50,8 @@ * IUnknown * {@link #holographicSpace}; * IUnknown * {@link #coreWindow}; * } - */ -public class XrHolographicWindowAttachmentMSFT extends Struct implements NativeResource { + */ +public class XrHolographicWindowAttachmentMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -61,35 +61,26 @@ public class XrHolographicWindowAttachmentMSFT extends Struct implements NativeResource { @@ -307,9 +298,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 XrHolographicWindowAttachmentMSFT#SIZEOF}, and its mark will be undefined.

    + * by {@link XrHolographicWindowAttachmentMSFT#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -334,30 +325,30 @@ protected Buffer self() { protected XrHolographicWindowAttachmentMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHolographicWindowAttachmentMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHolographicWindowAttachmentMSFT.ntype(address()); } - /** @return the value of the {@link XrHolographicWindowAttachmentMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrHolographicWindowAttachmentMSFT.nnext(address()); } - /** @return the value of the {@link XrHolographicWindowAttachmentMSFT#holographicSpace} field. */ - @NativeType("IUnknown *") - public long holographicSpace() { return XrHolographicWindowAttachmentMSFT.nholographicSpace(address()); } - /** @return the value of the {@link XrHolographicWindowAttachmentMSFT#coreWindow} field. */ - @NativeType("IUnknown *") - public long coreWindow() { return XrHolographicWindowAttachmentMSFT.ncoreWindow(address()); } - - /** Sets the specified value to the {@link XrHolographicWindowAttachmentMSFT#type} field. */ - public XrHolographicWindowAttachmentMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHolographicWindowAttachmentMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTHolographicWindowAttachment#XR_TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT} value to the {@link XrHolographicWindowAttachmentMSFT#type} field. */ - public XrHolographicWindowAttachmentMSFT.Buffer type$Default() { return type(MSFTHolographicWindowAttachment.XR_TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT); } - /** Sets the specified value to the {@link XrHolographicWindowAttachmentMSFT#next} field. */ - public XrHolographicWindowAttachmentMSFT.Buffer next(@NativeType("void const *") long value) { XrHolographicWindowAttachmentMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrHolographicWindowAttachmentMSFT#holographicSpace} field. */ - public XrHolographicWindowAttachmentMSFT.Buffer holographicSpace(@NativeType("IUnknown *") long value) { XrHolographicWindowAttachmentMSFT.nholographicSpace(address(), value); return this; } - /** Sets the specified value to the {@link XrHolographicWindowAttachmentMSFT#coreWindow} field. */ - public XrHolographicWindowAttachmentMSFT.Buffer coreWindow(@NativeType("IUnknown *") long value) { XrHolographicWindowAttachmentMSFT.ncoreWindow(address(), value); return this; } + + /** @return the value of the {@link XrHolographicWindowAttachmentMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHolographicWindowAttachmentMSFT.ntype(address()); } + /** @return the value of the {@link XrHolographicWindowAttachmentMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrHolographicWindowAttachmentMSFT.nnext(address()); } + /** @return the value of the {@link XrHolographicWindowAttachmentMSFT#holographicSpace} field. */ + @NativeType("IUnknown *") + public long holographicSpace() { return XrHolographicWindowAttachmentMSFT.nholographicSpace(address()); } + /** @return the value of the {@link XrHolographicWindowAttachmentMSFT#coreWindow} field. */ + @NativeType("IUnknown *") + public long coreWindow() { return XrHolographicWindowAttachmentMSFT.ncoreWindow(address()); } + + /** Sets the specified value to the {@link XrHolographicWindowAttachmentMSFT#type} field. */ + public XrHolographicWindowAttachmentMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHolographicWindowAttachmentMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTHolographicWindowAttachment#XR_TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT} value to the {@link XrHolographicWindowAttachmentMSFT#type} field. */ + public XrHolographicWindowAttachmentMSFT.Buffer type$Default() { return type(MSFTHolographicWindowAttachment.XR_TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT); } + /** Sets the specified value to the {@link XrHolographicWindowAttachmentMSFT#next} field. */ + public XrHolographicWindowAttachmentMSFT.Buffer next(@NativeType("void const *") long value) { XrHolographicWindowAttachmentMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrHolographicWindowAttachmentMSFT#holographicSpace} field. */ + public XrHolographicWindowAttachmentMSFT.Buffer holographicSpace(@NativeType("IUnknown *") long value) { XrHolographicWindowAttachmentMSFT.nholographicSpace(address(), value); return this; } + /** Sets the specified value to the {@link XrHolographicWindowAttachmentMSFT#coreWindow} field. */ + public XrHolographicWindowAttachmentMSFT.Buffer coreWindow(@NativeType("IUnknown *") long value) { XrHolographicWindowAttachmentMSFT.ncoreWindow(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInputSourceLocalizedNameGetInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInputSourceLocalizedNameGetInfo.java index 34abf53125..a2d45b9b02 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInputSourceLocalizedNameGetInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInputSourceLocalizedNameGetInfo.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 query the bound input sources for an action. * @@ -44,8 +44,8 @@ * XrPath {@link #sourcePath}; * XrInputSourceLocalizedNameFlags {@link #whichComponents}; * } - */ -public class XrInputSourceLocalizedNameGetInfo extends Struct implements NativeResource { + */ +public class XrInputSourceLocalizedNameGetInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,35 +55,26 @@ public class XrInputSourceLocalizedNameGetInfo 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 XrInputSourceLocalizedNameGetInfo#SIZEOF}, and its mark will be undefined.

    + * by {@link XrInputSourceLocalizedNameGetInfo#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 XrInputSourceLocalizedNameGetInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrInputSourceLocalizedNameGetInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrInputSourceLocalizedNameGetInfo.ntype(address()); } - /** @return the value of the {@link XrInputSourceLocalizedNameGetInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrInputSourceLocalizedNameGetInfo.nnext(address()); } - /** @return the value of the {@link XrInputSourceLocalizedNameGetInfo#sourcePath} field. */ - @NativeType("XrPath") - public long sourcePath() { return XrInputSourceLocalizedNameGetInfo.nsourcePath(address()); } - /** @return the value of the {@link XrInputSourceLocalizedNameGetInfo#whichComponents} field. */ - @NativeType("XrInputSourceLocalizedNameFlags") - public long whichComponents() { return XrInputSourceLocalizedNameGetInfo.nwhichComponents(address()); } - - /** Sets the specified value to the {@link XrInputSourceLocalizedNameGetInfo#type} field. */ - public XrInputSourceLocalizedNameGetInfo.Buffer type(@NativeType("XrStructureType") int value) { XrInputSourceLocalizedNameGetInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO} value to the {@link XrInputSourceLocalizedNameGetInfo#type} field. */ - public XrInputSourceLocalizedNameGetInfo.Buffer type$Default() { return type(XR10.XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO); } - /** Sets the specified value to the {@link XrInputSourceLocalizedNameGetInfo#next} field. */ - public XrInputSourceLocalizedNameGetInfo.Buffer next(@NativeType("void const *") long value) { XrInputSourceLocalizedNameGetInfo.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrInputSourceLocalizedNameGetInfo#sourcePath} field. */ - public XrInputSourceLocalizedNameGetInfo.Buffer sourcePath(@NativeType("XrPath") long value) { XrInputSourceLocalizedNameGetInfo.nsourcePath(address(), value); return this; } - /** Sets the specified value to the {@link XrInputSourceLocalizedNameGetInfo#whichComponents} field. */ - public XrInputSourceLocalizedNameGetInfo.Buffer whichComponents(@NativeType("XrInputSourceLocalizedNameFlags") long value) { XrInputSourceLocalizedNameGetInfo.nwhichComponents(address(), value); return this; } + + /** @return the value of the {@link XrInputSourceLocalizedNameGetInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrInputSourceLocalizedNameGetInfo.ntype(address()); } + /** @return the value of the {@link XrInputSourceLocalizedNameGetInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrInputSourceLocalizedNameGetInfo.nnext(address()); } + /** @return the value of the {@link XrInputSourceLocalizedNameGetInfo#sourcePath} field. */ + @NativeType("XrPath") + public long sourcePath() { return XrInputSourceLocalizedNameGetInfo.nsourcePath(address()); } + /** @return the value of the {@link XrInputSourceLocalizedNameGetInfo#whichComponents} field. */ + @NativeType("XrInputSourceLocalizedNameFlags") + public long whichComponents() { return XrInputSourceLocalizedNameGetInfo.nwhichComponents(address()); } + + /** Sets the specified value to the {@link XrInputSourceLocalizedNameGetInfo#type} field. */ + public XrInputSourceLocalizedNameGetInfo.Buffer type(@NativeType("XrStructureType") int value) { XrInputSourceLocalizedNameGetInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO} value to the {@link XrInputSourceLocalizedNameGetInfo#type} field. */ + public XrInputSourceLocalizedNameGetInfo.Buffer type$Default() { return type(XR10.XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO); } + /** Sets the specified value to the {@link XrInputSourceLocalizedNameGetInfo#next} field. */ + public XrInputSourceLocalizedNameGetInfo.Buffer next(@NativeType("void const *") long value) { XrInputSourceLocalizedNameGetInfo.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrInputSourceLocalizedNameGetInfo#sourcePath} field. */ + public XrInputSourceLocalizedNameGetInfo.Buffer sourcePath(@NativeType("XrPath") long value) { XrInputSourceLocalizedNameGetInfo.nsourcePath(address(), value); return this; } + /** Sets the specified value to the {@link XrInputSourceLocalizedNameGetInfo#whichComponents} field. */ + public XrInputSourceLocalizedNameGetInfo.Buffer whichComponents(@NativeType("XrInputSourceLocalizedNameFlags") long value) { XrInputSourceLocalizedNameGetInfo.nwhichComponents(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceCreateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceCreateInfo.java index ba26fa1443..bc322e5d19 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceCreateInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceCreateInfo.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.*; + /** * Structure specifying params of a newly created instance. * @@ -47,8 +47,8 @@ * uint32_t {@link #enabledExtensionCount}; * char const * const * {@link #enabledExtensionNames}; * } - */ -public class XrInstanceCreateInfo extends Struct implements NativeResource { + */ +public class XrInstanceCreateInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -58,47 +58,38 @@ public class XrInstanceCreateInfo extends Struct implement /** The struct member offsets. */ public static final int - TYPE, - NEXT, - CREATEFLAGS, - APPLICATIONINFO, - ENABLEDAPILAYERCOUNT, - ENABLEDAPILAYERNAMES, - ENABLEDEXTENSIONCOUNT, - ENABLEDEXTENSIONNAMES; + TYPE, + NEXT, + CREATEFLAGS, + APPLICATIONINFO, + ENABLEDAPILAYERCOUNT, + ENABLEDAPILAYERNAMES, + ENABLEDEXTENSIONCOUNT, + ENABLEDEXTENSIONNAMES; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(XrApplicationInfo.SIZEOF, XrApplicationInfo.ALIGNOF), - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(XrApplicationInfo.SIZEOF, XrApplicationInfo.ALIGNOF), + __member(4), + __member(POINTER_SIZE), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - CREATEFLAGS = layout.offsetof(2); - APPLICATIONINFO = layout.offsetof(3); - ENABLEDAPILAYERCOUNT = layout.offsetof(4); - ENABLEDAPILAYERNAMES = layout.offsetof(5); - ENABLEDEXTENSIONCOUNT = layout.offsetof(6); - ENABLEDEXTENSIONNAMES = layout.offsetof(7); - } - - protected XrInstanceCreateInfo(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrInstanceCreateInfo create(long address, @Nullable ByteBuffer container) { - return new XrInstanceCreateInfo(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + CREATEFLAGS = layout.offsetof(2); + APPLICATIONINFO = layout.offsetof(3); + ENABLEDAPILAYERCOUNT = layout.offsetof(4); + ENABLEDAPILAYERNAMES = layout.offsetof(5); + ENABLEDEXTENSIONCOUNT = layout.offsetof(6); + ENABLEDEXTENSIONNAMES = layout.offsetof(7); } /** @@ -113,69 +104,69 @@ public XrInstanceCreateInfo(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 bitmask of {@code XrInstanceCreateFlags} that identifies options that apply to the creation. */ - @NativeType("XrInstanceCreateFlags") - public long createFlags() { return ncreateFlags(address()); } - /** an instance of {@link XrApplicationInfo}. This information helps runtimes recognize behavior inherent to classes of applications. {@link XrApplicationInfo} is defined in detail below. */ - public XrApplicationInfo applicationInfo() { return napplicationInfo(address()); } - /** the number of global API layers to enable. */ - @NativeType("uint32_t") - public int enabledApiLayerCount() { return nenabledApiLayerCount(address()); } - /** a pointer to an array of {@code enabledApiLayerCount} strings containing the names of API layers to enable for the created instance. See the API Layers And Extensions section for further details. */ - @Nullable - @NativeType("char const * const *") - public PointerBuffer enabledApiLayerNames() { return nenabledApiLayerNames(address()); } - /** the number of global extensions to enable. */ - @NativeType("uint32_t") - public int enabledExtensionCount() { return nenabledExtensionCount(address()); } - /** a pointer to an array of {@code enabledExtensionCount} strings containing the names of extensions to enable. */ - @Nullable - @NativeType("char const * const *") - public PointerBuffer enabledExtensionNames() { return nenabledExtensionNames(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrInstanceCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_INSTANCE_CREATE_INFO TYPE_INSTANCE_CREATE_INFO} value to the {@link #type} field. */ - public XrInstanceCreateInfo type$Default() { return type(XR10.XR_TYPE_INSTANCE_CREATE_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrInstanceCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrDebugUtilsMessengerCreateInfoEXT} value to the {@code next} chain. */ - public XrInstanceCreateInfo next(XrDebugUtilsMessengerCreateInfoEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrInstanceCreateInfoAndroidKHR} value to the {@code next} chain. */ - public XrInstanceCreateInfo next(XrInstanceCreateInfoAndroidKHR value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #createFlags} field. */ - public XrInstanceCreateInfo createFlags(@NativeType("XrInstanceCreateFlags") long value) { ncreateFlags(address(), value); return this; } - /** Copies the specified {@link XrApplicationInfo} to the {@link #applicationInfo} field. */ - public XrInstanceCreateInfo applicationInfo(XrApplicationInfo value) { napplicationInfo(address(), value); return this; } - /** Passes the {@link #applicationInfo} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrInstanceCreateInfo applicationInfo(java.util.function.Consumer consumer) { consumer.accept(applicationInfo()); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link #enabledApiLayerNames} field. */ - public XrInstanceCreateInfo enabledApiLayerNames(@Nullable @NativeType("char const * const *") PointerBuffer value) { nenabledApiLayerNames(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link #enabledExtensionNames} field. */ - public XrInstanceCreateInfo enabledExtensionNames(@Nullable @NativeType("char const * const *") PointerBuffer value) { nenabledExtensionNames(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()); } + /** a bitmask of {@code XrInstanceCreateFlags} that identifies options that apply to the creation. */ + @NativeType("XrInstanceCreateFlags") + public long createFlags() { return ncreateFlags(address()); } + /** an instance of {@link XrApplicationInfo}. This information helps runtimes recognize behavior inherent to classes of applications. {@link XrApplicationInfo} is defined in detail below. */ + public XrApplicationInfo applicationInfo() { return napplicationInfo(address()); } + /** the number of global API layers to enable. */ + @NativeType("uint32_t") + public int enabledApiLayerCount() { return nenabledApiLayerCount(address()); } + /** a pointer to an array of {@code enabledApiLayerCount} strings containing the names of API layers to enable for the created instance. See the API Layers And Extensions section for further details. */ + @Nullable + @NativeType("char const * const *") + public PointerBuffer enabledApiLayerNames() { return nenabledApiLayerNames(address()); } + /** the number of global extensions to enable. */ + @NativeType("uint32_t") + public int enabledExtensionCount() { return nenabledExtensionCount(address()); } + /** a pointer to an array of {@code enabledExtensionCount} strings containing the names of extensions to enable. */ + @Nullable + @NativeType("char const * const *") + public PointerBuffer enabledExtensionNames() { return nenabledExtensionNames(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrInstanceCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_INSTANCE_CREATE_INFO TYPE_INSTANCE_CREATE_INFO} value to the {@link #type} field. */ + public XrInstanceCreateInfo type$Default() { return type(XR10.XR_TYPE_INSTANCE_CREATE_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrInstanceCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrDebugUtilsMessengerCreateInfoEXT} value to the {@code next} chain. */ + public XrInstanceCreateInfo next(XrDebugUtilsMessengerCreateInfoEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrInstanceCreateInfoAndroidKHR} value to the {@code next} chain. */ + public XrInstanceCreateInfo next(XrInstanceCreateInfoAndroidKHR value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #createFlags} field. */ + public XrInstanceCreateInfo createFlags(@NativeType("XrInstanceCreateFlags") long value) { ncreateFlags(address(), value); return this; } + /** Copies the specified {@link XrApplicationInfo} to the {@link #applicationInfo} field. */ + public XrInstanceCreateInfo applicationInfo(XrApplicationInfo value) { napplicationInfo(address(), value); return this; } + /** Passes the {@link #applicationInfo} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrInstanceCreateInfo applicationInfo(java.util.function.Consumer consumer) { consumer.accept(applicationInfo()); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link #enabledApiLayerNames} field. */ + public XrInstanceCreateInfo enabledApiLayerNames(@Nullable @NativeType("char const * const *") PointerBuffer value) { nenabledApiLayerNames(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link #enabledExtensionNames} field. */ + public XrInstanceCreateInfo enabledExtensionNames(@Nullable @NativeType("char const * const *") PointerBuffer value) { nenabledExtensionNames(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrInstanceCreateInfo set( - int type, - long next, - long createFlags, - XrApplicationInfo applicationInfo, - @Nullable PointerBuffer enabledApiLayerNames, + int type, + long next, + long createFlags, + XrApplicationInfo applicationInfo, + @Nullable PointerBuffer enabledApiLayerNames, @Nullable PointerBuffer enabledExtensionNames - ) { - type(type); - next(next); - createFlags(createFlags); - applicationInfo(applicationInfo); - enabledApiLayerNames(enabledApiLayerNames); - enabledExtensionNames(enabledExtensionNames); + ) { + type(type); + next(next); + createFlags(createFlags); + applicationInfo(applicationInfo); + enabledApiLayerNames(enabledApiLayerNames); + enabledExtensionNames(enabledExtensionNames); return this; } @@ -196,29 +187,29 @@ public XrInstanceCreateInfo set(XrInstanceCreateInfo src) { /** Returns a new {@code XrInstanceCreateInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrInstanceCreateInfo malloc() { - return new XrInstanceCreateInfo(nmemAllocChecked(SIZEOF), null); + return wrap(XrInstanceCreateInfo.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrInstanceCreateInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrInstanceCreateInfo calloc() { - return new XrInstanceCreateInfo(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrInstanceCreateInfo.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrInstanceCreateInfo} instance allocated with {@link BufferUtils}. */ public static XrInstanceCreateInfo create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrInstanceCreateInfo(memAddress(container), container); + return wrap(XrInstanceCreateInfo.class, memAddress(container), container); } /** Returns a new {@code XrInstanceCreateInfo} instance for the specified memory address. */ public static XrInstanceCreateInfo create(long address) { - return new XrInstanceCreateInfo(address, null); + return wrap(XrInstanceCreateInfo.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrInstanceCreateInfo createSafe(long address) { - return address == NULL ? null : new XrInstanceCreateInfo(address, null); + return address == NULL ? null : wrap(XrInstanceCreateInfo.class, address); } /** @@ -227,7 +218,7 @@ public static XrInstanceCreateInfo createSafe(long address) { * @param capacity the buffer capacity */ public static XrInstanceCreateInfo.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -236,7 +227,7 @@ public static XrInstanceCreateInfo.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrInstanceCreateInfo.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -246,7 +237,7 @@ public static XrInstanceCreateInfo.Buffer calloc(int capacity) { */ public static XrInstanceCreateInfo.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); } /** @@ -256,13 +247,13 @@ public static XrInstanceCreateInfo.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrInstanceCreateInfo.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 XrInstanceCreateInfo.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -271,7 +262,7 @@ public static XrInstanceCreateInfo.Buffer createSafe(long address, int capacity) * @param stack the stack from which to allocate */ public static XrInstanceCreateInfo malloc(MemoryStack stack) { - return new XrInstanceCreateInfo(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrInstanceCreateInfo.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -280,7 +271,7 @@ public static XrInstanceCreateInfo malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrInstanceCreateInfo calloc(MemoryStack stack) { - return new XrInstanceCreateInfo(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrInstanceCreateInfo.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -290,7 +281,7 @@ public static XrInstanceCreateInfo calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrInstanceCreateInfo.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); } /** @@ -300,44 +291,44 @@ public static XrInstanceCreateInfo.Buffer malloc(int capacity, MemoryStack stack * @param capacity the buffer capacity */ public static XrInstanceCreateInfo.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 + XrInstanceCreateInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrInstanceCreateInfo.NEXT); } - /** Unsafe version of {@link #createFlags}. */ - public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrInstanceCreateInfo.CREATEFLAGS); } - /** Unsafe version of {@link #applicationInfo}. */ - public static XrApplicationInfo napplicationInfo(long struct) { return XrApplicationInfo.create(struct + XrInstanceCreateInfo.APPLICATIONINFO); } - /** Unsafe version of {@link #enabledApiLayerCount}. */ - public static int nenabledApiLayerCount(long struct) { return UNSAFE.getInt(null, struct + XrInstanceCreateInfo.ENABLEDAPILAYERCOUNT); } - /** Unsafe version of {@link #enabledApiLayerNames() enabledApiLayerNames}. */ - @Nullable public static PointerBuffer nenabledApiLayerNames(long struct) { return memPointerBufferSafe(memGetAddress(struct + XrInstanceCreateInfo.ENABLEDAPILAYERNAMES), nenabledApiLayerCount(struct)); } - /** Unsafe version of {@link #enabledExtensionCount}. */ - public static int nenabledExtensionCount(long struct) { return UNSAFE.getInt(null, struct + XrInstanceCreateInfo.ENABLEDEXTENSIONCOUNT); } - /** Unsafe version of {@link #enabledExtensionNames() enabledExtensionNames}. */ - @Nullable public static PointerBuffer nenabledExtensionNames(long struct) { return memPointerBufferSafe(memGetAddress(struct + XrInstanceCreateInfo.ENABLEDEXTENSIONNAMES), nenabledExtensionCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInstanceCreateInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrInstanceCreateInfo.NEXT, value); } - /** Unsafe version of {@link #createFlags(long) createFlags}. */ - public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrInstanceCreateInfo.CREATEFLAGS, value); } - /** Unsafe version of {@link #applicationInfo(XrApplicationInfo) applicationInfo}. */ - public static void napplicationInfo(long struct, XrApplicationInfo value) { memCopy(value.address(), struct + XrInstanceCreateInfo.APPLICATIONINFO, XrApplicationInfo.SIZEOF); } - /** Sets the specified value to the {@code enabledApiLayerCount} field of the specified {@code struct}. */ - public static void nenabledApiLayerCount(long struct, int value) { UNSAFE.putInt(null, struct + XrInstanceCreateInfo.ENABLEDAPILAYERCOUNT, value); } - /** Unsafe version of {@link #enabledApiLayerNames(PointerBuffer) enabledApiLayerNames}. */ - public static void nenabledApiLayerNames(long struct, @Nullable PointerBuffer value) { memPutAddress(struct + XrInstanceCreateInfo.ENABLEDAPILAYERNAMES, memAddressSafe(value)); nenabledApiLayerCount(struct, value == null ? 0 : value.remaining()); } - /** Sets the specified value to the {@code enabledExtensionCount} field of the specified {@code struct}. */ - public static void nenabledExtensionCount(long struct, int value) { UNSAFE.putInt(null, struct + XrInstanceCreateInfo.ENABLEDEXTENSIONCOUNT, value); } - /** Unsafe version of {@link #enabledExtensionNames(PointerBuffer) enabledExtensionNames}. */ - public static void nenabledExtensionNames(long struct, @Nullable PointerBuffer value) { memPutAddress(struct + XrInstanceCreateInfo.ENABLEDEXTENSIONNAMES, memAddressSafe(value)); nenabledExtensionCount(struct, value == null ? 0 : value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrInstanceCreateInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrInstanceCreateInfo.NEXT); } + /** Unsafe version of {@link #createFlags}. */ + public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrInstanceCreateInfo.CREATEFLAGS); } + /** Unsafe version of {@link #applicationInfo}. */ + public static XrApplicationInfo napplicationInfo(long struct) { return XrApplicationInfo.create(struct + XrInstanceCreateInfo.APPLICATIONINFO); } + /** Unsafe version of {@link #enabledApiLayerCount}. */ + public static int nenabledApiLayerCount(long struct) { return UNSAFE.getInt(null, struct + XrInstanceCreateInfo.ENABLEDAPILAYERCOUNT); } + /** Unsafe version of {@link #enabledApiLayerNames() enabledApiLayerNames}. */ + @Nullable public static PointerBuffer nenabledApiLayerNames(long struct) { return memPointerBufferSafe(memGetAddress(struct + XrInstanceCreateInfo.ENABLEDAPILAYERNAMES), nenabledApiLayerCount(struct)); } + /** Unsafe version of {@link #enabledExtensionCount}. */ + public static int nenabledExtensionCount(long struct) { return UNSAFE.getInt(null, struct + XrInstanceCreateInfo.ENABLEDEXTENSIONCOUNT); } + /** Unsafe version of {@link #enabledExtensionNames() enabledExtensionNames}. */ + @Nullable public static PointerBuffer nenabledExtensionNames(long struct) { return memPointerBufferSafe(memGetAddress(struct + XrInstanceCreateInfo.ENABLEDEXTENSIONNAMES), nenabledExtensionCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInstanceCreateInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrInstanceCreateInfo.NEXT, value); } + /** Unsafe version of {@link #createFlags(long) createFlags}. */ + public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrInstanceCreateInfo.CREATEFLAGS, value); } + /** Unsafe version of {@link #applicationInfo(XrApplicationInfo) applicationInfo}. */ + public static void napplicationInfo(long struct, XrApplicationInfo value) { memCopy(value.address(), struct + XrInstanceCreateInfo.APPLICATIONINFO, XrApplicationInfo.SIZEOF); } + /** Sets the specified value to the {@code enabledApiLayerCount} field of the specified {@code struct}. */ + public static void nenabledApiLayerCount(long struct, int value) { UNSAFE.putInt(null, struct + XrInstanceCreateInfo.ENABLEDAPILAYERCOUNT, value); } + /** Unsafe version of {@link #enabledApiLayerNames(PointerBuffer) enabledApiLayerNames}. */ + public static void nenabledApiLayerNames(long struct, @Nullable PointerBuffer value) { memPutAddress(struct + XrInstanceCreateInfo.ENABLEDAPILAYERNAMES, memAddressSafe(value)); nenabledApiLayerCount(struct, value == null ? 0 : value.remaining()); } + /** Sets the specified value to the {@code enabledExtensionCount} field of the specified {@code struct}. */ + public static void nenabledExtensionCount(long struct, int value) { UNSAFE.putInt(null, struct + XrInstanceCreateInfo.ENABLEDEXTENSIONCOUNT, value); } + /** Unsafe version of {@link #enabledExtensionNames(PointerBuffer) enabledExtensionNames}. */ + public static void nenabledExtensionNames(long struct, @Nullable PointerBuffer value) { memPutAddress(struct + XrInstanceCreateInfo.ENABLEDEXTENSIONNAMES, memAddressSafe(value)); nenabledExtensionCount(struct, value == null ? 0 : value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -351,9 +342,9 @@ public static void validate(long struct) { if (nenabledExtensionCount(struct) != 0) { check(memGetAddress(struct + XrInstanceCreateInfo.ENABLEDEXTENSIONNAMES)); } - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrInstanceCreateInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -363,9 +354,9 @@ public static class Buffer extends StructBuffer im /** * Creates a new {@code XrInstanceCreateInfo.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 XrInstanceCreateInfo#SIZEOF}, and its mark will be undefined.

    + * by {@link XrInstanceCreateInfo#SIZEOF}, and its mark will be undefined. * *

    The created buffer instance holds a strong reference to the container object.

    */ @@ -390,53 +381,53 @@ protected Buffer self() { protected XrInstanceCreateInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrInstanceCreateInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrInstanceCreateInfo.ntype(address()); } - /** @return the value of the {@link XrInstanceCreateInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrInstanceCreateInfo.nnext(address()); } - /** @return the value of the {@link XrInstanceCreateInfo#createFlags} field. */ - @NativeType("XrInstanceCreateFlags") - public long createFlags() { return XrInstanceCreateInfo.ncreateFlags(address()); } - /** @return a {@link XrApplicationInfo} view of the {@link XrInstanceCreateInfo#applicationInfo} field. */ - public XrApplicationInfo applicationInfo() { return XrInstanceCreateInfo.napplicationInfo(address()); } - /** @return the value of the {@link XrInstanceCreateInfo#enabledApiLayerCount} field. */ - @NativeType("uint32_t") - public int enabledApiLayerCount() { return XrInstanceCreateInfo.nenabledApiLayerCount(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrInstanceCreateInfo#enabledApiLayerNames} field. */ - @Nullable - @NativeType("char const * const *") - public PointerBuffer enabledApiLayerNames() { return XrInstanceCreateInfo.nenabledApiLayerNames(address()); } - /** @return the value of the {@link XrInstanceCreateInfo#enabledExtensionCount} field. */ - @NativeType("uint32_t") - public int enabledExtensionCount() { return XrInstanceCreateInfo.nenabledExtensionCount(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrInstanceCreateInfo#enabledExtensionNames} field. */ - @Nullable - @NativeType("char const * const *") - public PointerBuffer enabledExtensionNames() { return XrInstanceCreateInfo.nenabledExtensionNames(address()); } - - /** Sets the specified value to the {@link XrInstanceCreateInfo#type} field. */ - public XrInstanceCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrInstanceCreateInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_INSTANCE_CREATE_INFO TYPE_INSTANCE_CREATE_INFO} value to the {@link XrInstanceCreateInfo#type} field. */ - public XrInstanceCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_INSTANCE_CREATE_INFO); } - /** Sets the specified value to the {@link XrInstanceCreateInfo#next} field. */ - public XrInstanceCreateInfo.Buffer next(@NativeType("void const *") long value) { XrInstanceCreateInfo.nnext(address(), value); return this; } - /** Prepends the specified {@link XrDebugUtilsMessengerCreateInfoEXT} value to the {@code next} chain. */ - public XrInstanceCreateInfo.Buffer next(XrDebugUtilsMessengerCreateInfoEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrInstanceCreateInfoAndroidKHR} value to the {@code next} chain. */ - public XrInstanceCreateInfo.Buffer next(XrInstanceCreateInfoAndroidKHR value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrInstanceCreateInfo#createFlags} field. */ - public XrInstanceCreateInfo.Buffer createFlags(@NativeType("XrInstanceCreateFlags") long value) { XrInstanceCreateInfo.ncreateFlags(address(), value); return this; } - /** Copies the specified {@link XrApplicationInfo} to the {@link XrInstanceCreateInfo#applicationInfo} field. */ - public XrInstanceCreateInfo.Buffer applicationInfo(XrApplicationInfo value) { XrInstanceCreateInfo.napplicationInfo(address(), value); return this; } - /** Passes the {@link XrInstanceCreateInfo#applicationInfo} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrInstanceCreateInfo.Buffer applicationInfo(java.util.function.Consumer consumer) { consumer.accept(applicationInfo()); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link XrInstanceCreateInfo#enabledApiLayerNames} field. */ - public XrInstanceCreateInfo.Buffer enabledApiLayerNames(@Nullable @NativeType("char const * const *") PointerBuffer value) { XrInstanceCreateInfo.nenabledApiLayerNames(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link XrInstanceCreateInfo#enabledExtensionNames} field. */ - public XrInstanceCreateInfo.Buffer enabledExtensionNames(@Nullable @NativeType("char const * const *") PointerBuffer value) { XrInstanceCreateInfo.nenabledExtensionNames(address(), value); return this; } + + /** @return the value of the {@link XrInstanceCreateInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrInstanceCreateInfo.ntype(address()); } + /** @return the value of the {@link XrInstanceCreateInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrInstanceCreateInfo.nnext(address()); } + /** @return the value of the {@link XrInstanceCreateInfo#createFlags} field. */ + @NativeType("XrInstanceCreateFlags") + public long createFlags() { return XrInstanceCreateInfo.ncreateFlags(address()); } + /** @return a {@link XrApplicationInfo} view of the {@link XrInstanceCreateInfo#applicationInfo} field. */ + public XrApplicationInfo applicationInfo() { return XrInstanceCreateInfo.napplicationInfo(address()); } + /** @return the value of the {@link XrInstanceCreateInfo#enabledApiLayerCount} field. */ + @NativeType("uint32_t") + public int enabledApiLayerCount() { return XrInstanceCreateInfo.nenabledApiLayerCount(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrInstanceCreateInfo#enabledApiLayerNames} field. */ + @Nullable + @NativeType("char const * const *") + public PointerBuffer enabledApiLayerNames() { return XrInstanceCreateInfo.nenabledApiLayerNames(address()); } + /** @return the value of the {@link XrInstanceCreateInfo#enabledExtensionCount} field. */ + @NativeType("uint32_t") + public int enabledExtensionCount() { return XrInstanceCreateInfo.nenabledExtensionCount(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrInstanceCreateInfo#enabledExtensionNames} field. */ + @Nullable + @NativeType("char const * const *") + public PointerBuffer enabledExtensionNames() { return XrInstanceCreateInfo.nenabledExtensionNames(address()); } + + /** Sets the specified value to the {@link XrInstanceCreateInfo#type} field. */ + public XrInstanceCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrInstanceCreateInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_INSTANCE_CREATE_INFO TYPE_INSTANCE_CREATE_INFO} value to the {@link XrInstanceCreateInfo#type} field. */ + public XrInstanceCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_INSTANCE_CREATE_INFO); } + /** Sets the specified value to the {@link XrInstanceCreateInfo#next} field. */ + public XrInstanceCreateInfo.Buffer next(@NativeType("void const *") long value) { XrInstanceCreateInfo.nnext(address(), value); return this; } + /** Prepends the specified {@link XrDebugUtilsMessengerCreateInfoEXT} value to the {@code next} chain. */ + public XrInstanceCreateInfo.Buffer next(XrDebugUtilsMessengerCreateInfoEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrInstanceCreateInfoAndroidKHR} value to the {@code next} chain. */ + public XrInstanceCreateInfo.Buffer next(XrInstanceCreateInfoAndroidKHR value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrInstanceCreateInfo#createFlags} field. */ + public XrInstanceCreateInfo.Buffer createFlags(@NativeType("XrInstanceCreateFlags") long value) { XrInstanceCreateInfo.ncreateFlags(address(), value); return this; } + /** Copies the specified {@link XrApplicationInfo} to the {@link XrInstanceCreateInfo#applicationInfo} field. */ + public XrInstanceCreateInfo.Buffer applicationInfo(XrApplicationInfo value) { XrInstanceCreateInfo.napplicationInfo(address(), value); return this; } + /** Passes the {@link XrInstanceCreateInfo#applicationInfo} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrInstanceCreateInfo.Buffer applicationInfo(java.util.function.Consumer consumer) { consumer.accept(applicationInfo()); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link XrInstanceCreateInfo#enabledApiLayerNames} field. */ + public XrInstanceCreateInfo.Buffer enabledApiLayerNames(@Nullable @NativeType("char const * const *") PointerBuffer value) { XrInstanceCreateInfo.nenabledApiLayerNames(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link XrInstanceCreateInfo#enabledExtensionNames} field. */ + public XrInstanceCreateInfo.Buffer enabledExtensionNames(@Nullable @NativeType("char const * const *") PointerBuffer value) { XrInstanceCreateInfo.nenabledExtensionNames(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceCreateInfoAndroidKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceCreateInfoAndroidKHR.java index 930ce3445d..3f5f9aa715 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceCreateInfoAndroidKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceCreateInfoAndroidKHR.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.*; + /** * Creates an OpenXR Instance. * @@ -27,7 +27,7 @@ * *
      *
    • The {@link KHRAndroidCreateInstance XR_KHR_android_create_instance} extension must be enabled prior to using {@link XrInstanceCreateInfoAndroidKHR}
    • - *
    • {@code type} must be {@link KHRAndroidCreateInstance#XR_TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR}
    • + *
    • {@code type} must be TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR
    • *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • *
    • {@code applicationVM} must be a pointer value
    • *
    • {@code applicationActivity} must be a pointer value
    • @@ -46,8 +46,8 @@ * void * {@link #applicationVM}; * void * {@link #applicationActivity}; * } - */ -public class XrInstanceCreateInfoAndroidKHR extends Struct implements NativeResource { + */ +public class XrInstanceCreateInfoAndroidKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,35 +57,26 @@ public class XrInstanceCreateInfoAndroidKHR extends Struct 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 XrInstanceCreateInfoAndroidKHR#SIZEOF}, and its mark will be undefined.

      + * by {@link XrInstanceCreateInfoAndroidKHR#SIZEOF}, and its mark will be undefined. * *

      The created buffer instance holds a strong reference to the container object.

      */ @@ -330,30 +321,30 @@ protected Buffer self() { protected XrInstanceCreateInfoAndroidKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrInstanceCreateInfoAndroidKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrInstanceCreateInfoAndroidKHR.ntype(address()); } - /** @return the value of the {@link XrInstanceCreateInfoAndroidKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrInstanceCreateInfoAndroidKHR.nnext(address()); } - /** @return the value of the {@link XrInstanceCreateInfoAndroidKHR#applicationVM} field. */ - @NativeType("void *") - public long applicationVM() { return XrInstanceCreateInfoAndroidKHR.napplicationVM(address()); } - /** @return the value of the {@link XrInstanceCreateInfoAndroidKHR#applicationActivity} field. */ - @NativeType("void *") - public long applicationActivity() { return XrInstanceCreateInfoAndroidKHR.napplicationActivity(address()); } - - /** Sets the specified value to the {@link XrInstanceCreateInfoAndroidKHR#type} field. */ - public XrInstanceCreateInfoAndroidKHR.Buffer type(@NativeType("XrStructureType") int value) { XrInstanceCreateInfoAndroidKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRAndroidCreateInstance#XR_TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR} value to the {@link XrInstanceCreateInfoAndroidKHR#type} field. */ - public XrInstanceCreateInfoAndroidKHR.Buffer type$Default() { return type(KHRAndroidCreateInstance.XR_TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR); } - /** Sets the specified value to the {@link XrInstanceCreateInfoAndroidKHR#next} field. */ - public XrInstanceCreateInfoAndroidKHR.Buffer next(@NativeType("void const *") long value) { XrInstanceCreateInfoAndroidKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrInstanceCreateInfoAndroidKHR#applicationVM} field. */ - public XrInstanceCreateInfoAndroidKHR.Buffer applicationVM(@NativeType("void *") long value) { XrInstanceCreateInfoAndroidKHR.napplicationVM(address(), value); return this; } - /** Sets the specified value to the {@link XrInstanceCreateInfoAndroidKHR#applicationActivity} field. */ - public XrInstanceCreateInfoAndroidKHR.Buffer applicationActivity(@NativeType("void *") long value) { XrInstanceCreateInfoAndroidKHR.napplicationActivity(address(), value); return this; } + + /** @return the value of the {@link XrInstanceCreateInfoAndroidKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrInstanceCreateInfoAndroidKHR.ntype(address()); } + /** @return the value of the {@link XrInstanceCreateInfoAndroidKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrInstanceCreateInfoAndroidKHR.nnext(address()); } + /** @return the value of the {@link XrInstanceCreateInfoAndroidKHR#applicationVM} field. */ + @NativeType("void *") + public long applicationVM() { return XrInstanceCreateInfoAndroidKHR.napplicationVM(address()); } + /** @return the value of the {@link XrInstanceCreateInfoAndroidKHR#applicationActivity} field. */ + @NativeType("void *") + public long applicationActivity() { return XrInstanceCreateInfoAndroidKHR.napplicationActivity(address()); } + + /** Sets the specified value to the {@link XrInstanceCreateInfoAndroidKHR#type} field. */ + public XrInstanceCreateInfoAndroidKHR.Buffer type(@NativeType("XrStructureType") int value) { XrInstanceCreateInfoAndroidKHR.ntype(address(), value); return this; } + /** Sets the default value to the {@link XrInstanceCreateInfoAndroidKHR#type} field. */ + public XrInstanceCreateInfoAndroidKHR.Buffer type$Default() { return type(TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR); } + /** Sets the specified value to the {@link XrInstanceCreateInfoAndroidKHR#next} field. */ + public XrInstanceCreateInfoAndroidKHR.Buffer next(@NativeType("void const *") long value) { XrInstanceCreateInfoAndroidKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrInstanceCreateInfoAndroidKHR#applicationVM} field. */ + public XrInstanceCreateInfoAndroidKHR.Buffer applicationVM(@NativeType("void *") long value) { XrInstanceCreateInfoAndroidKHR.napplicationVM(address(), value); return this; } + /** Sets the specified value to the {@link XrInstanceCreateInfoAndroidKHR#applicationActivity} field. */ + public XrInstanceCreateInfoAndroidKHR.Buffer applicationActivity(@NativeType("void *") long value) { XrInstanceCreateInfoAndroidKHR.napplicationActivity(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceProperties.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceProperties.java index 03a12ff5ea..ac6eb2119a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceProperties.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceProperties.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.*; + /** * Contains information about the instance. * @@ -40,8 +40,8 @@ * XrVersion {@link #runtimeVersion}; * char {@link #runtimeName}[XR_MAX_RUNTIME_NAME_SIZE]; * } - */ -public class XrInstanceProperties extends Struct implements NativeResource { + */ +public class XrInstanceProperties extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,35 +51,26 @@ public class XrInstanceProperties extends Struct implement /** The struct member offsets. */ public static final int - TYPE, - NEXT, - RUNTIMEVERSION, - RUNTIMENAME; + TYPE, + NEXT, + RUNTIMEVERSION, + RUNTIMENAME; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), __array(1, XR_MAX_RUNTIME_NAME_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - RUNTIMEVERSION = layout.offsetof(2); - RUNTIMENAME = layout.offsetof(3); - } - - protected XrInstanceProperties(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrInstanceProperties create(long address, @Nullable ByteBuffer container) { - return new XrInstanceProperties(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + RUNTIMEVERSION = layout.offsetof(2); + RUNTIMENAME = layout.offsetof(3); } /** @@ -94,37 +85,37 @@ public XrInstanceProperties(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 runtime’s version (not necessarily related to an OpenXR API version), expressed in the format of {@link XR10#XR_MAKE_VERSION}. */ - @NativeType("XrVersion") - public long runtimeVersion() { return nruntimeVersion(address()); } - /** the name of the runtime. */ - @NativeType("char[XR_MAX_RUNTIME_NAME_SIZE]") - public ByteBuffer runtimeName() { return nruntimeName(address()); } - /** the name of the runtime. */ - @NativeType("char[XR_MAX_RUNTIME_NAME_SIZE]") - public String runtimeNameString() { return nruntimeNameString(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrInstanceProperties type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_INSTANCE_PROPERTIES TYPE_INSTANCE_PROPERTIES} value to the {@link #type} field. */ - public XrInstanceProperties type$Default() { return type(XR10.XR_TYPE_INSTANCE_PROPERTIES); } - /** Sets the specified value to the {@link #next} field. */ - public XrInstanceProperties 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()); } + /** the runtime’s version (not necessarily related to an OpenXR API version), expressed in the format of {@link XR10#XR_MAKE_VERSION}. */ + @NativeType("XrVersion") + public long runtimeVersion() { return nruntimeVersion(address()); } + /** the name of the runtime. */ + @NativeType("char[XR_MAX_RUNTIME_NAME_SIZE]") + public ByteBuffer runtimeName() { return nruntimeName(address()); } + /** the name of the runtime. */ + @NativeType("char[XR_MAX_RUNTIME_NAME_SIZE]") + public String runtimeNameString() { return nruntimeNameString(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrInstanceProperties type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_INSTANCE_PROPERTIES TYPE_INSTANCE_PROPERTIES} value to the {@link #type} field. */ + public XrInstanceProperties type$Default() { return type(XR10.XR_TYPE_INSTANCE_PROPERTIES); } + /** Sets the specified value to the {@link #next} field. */ + public XrInstanceProperties next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrInstanceProperties set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -145,29 +136,29 @@ public XrInstanceProperties set(XrInstanceProperties src) { /** Returns a new {@code XrInstanceProperties} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrInstanceProperties malloc() { - return new XrInstanceProperties(nmemAllocChecked(SIZEOF), null); + return wrap(XrInstanceProperties.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrInstanceProperties} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrInstanceProperties calloc() { - return new XrInstanceProperties(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrInstanceProperties.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrInstanceProperties} instance allocated with {@link BufferUtils}. */ public static XrInstanceProperties create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrInstanceProperties(memAddress(container), container); + return wrap(XrInstanceProperties.class, memAddress(container), container); } /** Returns a new {@code XrInstanceProperties} instance for the specified memory address. */ public static XrInstanceProperties create(long address) { - return new XrInstanceProperties(address, null); + return wrap(XrInstanceProperties.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrInstanceProperties createSafe(long address) { - return address == NULL ? null : new XrInstanceProperties(address, null); + return address == NULL ? null : wrap(XrInstanceProperties.class, address); } /** @@ -176,7 +167,7 @@ public static XrInstanceProperties createSafe(long address) { * @param capacity the buffer capacity */ public static XrInstanceProperties.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -185,7 +176,7 @@ public static XrInstanceProperties.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrInstanceProperties.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -195,7 +186,7 @@ public static XrInstanceProperties.Buffer calloc(int capacity) { */ public static XrInstanceProperties.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); } /** @@ -205,13 +196,13 @@ public static XrInstanceProperties.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrInstanceProperties.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 XrInstanceProperties.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -220,7 +211,7 @@ public static XrInstanceProperties.Buffer createSafe(long address, int capacity) * @param stack the stack from which to allocate */ public static XrInstanceProperties malloc(MemoryStack stack) { - return new XrInstanceProperties(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrInstanceProperties.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -229,7 +220,7 @@ public static XrInstanceProperties malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrInstanceProperties calloc(MemoryStack stack) { - return new XrInstanceProperties(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrInstanceProperties.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -239,7 +230,7 @@ public static XrInstanceProperties calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrInstanceProperties.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); } /** @@ -249,28 +240,28 @@ public static XrInstanceProperties.Buffer malloc(int capacity, MemoryStack stack * @param capacity the buffer capacity */ public static XrInstanceProperties.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 + XrInstanceProperties.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrInstanceProperties.NEXT); } - /** Unsafe version of {@link #runtimeVersion}. */ - public static long nruntimeVersion(long struct) { return UNSAFE.getLong(null, struct + XrInstanceProperties.RUNTIMEVERSION); } - /** Unsafe version of {@link #runtimeName}. */ - public static ByteBuffer nruntimeName(long struct) { return memByteBuffer(struct + XrInstanceProperties.RUNTIMENAME, XR_MAX_RUNTIME_NAME_SIZE); } - /** Unsafe version of {@link #runtimeNameString}. */ - public static String nruntimeNameString(long struct) { return memUTF8(struct + XrInstanceProperties.RUNTIMENAME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInstanceProperties.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrInstanceProperties.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrInstanceProperties.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrInstanceProperties.NEXT); } + /** Unsafe version of {@link #runtimeVersion}. */ + public static long nruntimeVersion(long struct) { return UNSAFE.getLong(null, struct + XrInstanceProperties.RUNTIMEVERSION); } + /** Unsafe version of {@link #runtimeName}. */ + public static ByteBuffer nruntimeName(long struct) { return memByteBuffer(struct + XrInstanceProperties.RUNTIMENAME, XR_MAX_RUNTIME_NAME_SIZE); } + /** Unsafe version of {@link #runtimeNameString}. */ + public static String nruntimeNameString(long struct) { return memUTF8(struct + XrInstanceProperties.RUNTIMENAME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInstanceProperties.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrInstanceProperties.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrInstanceProperties} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -280,9 +271,9 @@ public static class Buffer extends StructBuffer im /** * Creates a new {@code XrInstanceProperties.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 XrInstanceProperties#SIZEOF}, and its mark will be undefined.

      + * by {@link XrInstanceProperties#SIZEOF}, and its mark will be undefined. * *

      The created buffer instance holds a strong reference to the container object.

      */ @@ -307,29 +298,29 @@ protected Buffer self() { protected XrInstanceProperties getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrInstanceProperties#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrInstanceProperties.ntype(address()); } - /** @return the value of the {@link XrInstanceProperties#next} field. */ - @NativeType("void *") - public long next() { return XrInstanceProperties.nnext(address()); } - /** @return the value of the {@link XrInstanceProperties#runtimeVersion} field. */ - @NativeType("XrVersion") - public long runtimeVersion() { return XrInstanceProperties.nruntimeVersion(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrInstanceProperties#runtimeName} field. */ - @NativeType("char[XR_MAX_RUNTIME_NAME_SIZE]") - public ByteBuffer runtimeName() { return XrInstanceProperties.nruntimeName(address()); } - /** @return the null-terminated string stored in the {@link XrInstanceProperties#runtimeName} field. */ - @NativeType("char[XR_MAX_RUNTIME_NAME_SIZE]") - public String runtimeNameString() { return XrInstanceProperties.nruntimeNameString(address()); } - - /** Sets the specified value to the {@link XrInstanceProperties#type} field. */ - public XrInstanceProperties.Buffer type(@NativeType("XrStructureType") int value) { XrInstanceProperties.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_INSTANCE_PROPERTIES TYPE_INSTANCE_PROPERTIES} value to the {@link XrInstanceProperties#type} field. */ - public XrInstanceProperties.Buffer type$Default() { return type(XR10.XR_TYPE_INSTANCE_PROPERTIES); } - /** Sets the specified value to the {@link XrInstanceProperties#next} field. */ - public XrInstanceProperties.Buffer next(@NativeType("void *") long value) { XrInstanceProperties.nnext(address(), value); return this; } + + /** @return the value of the {@link XrInstanceProperties#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrInstanceProperties.ntype(address()); } + /** @return the value of the {@link XrInstanceProperties#next} field. */ + @NativeType("void *") + public long next() { return XrInstanceProperties.nnext(address()); } + /** @return the value of the {@link XrInstanceProperties#runtimeVersion} field. */ + @NativeType("XrVersion") + public long runtimeVersion() { return XrInstanceProperties.nruntimeVersion(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrInstanceProperties#runtimeName} field. */ + @NativeType("char[XR_MAX_RUNTIME_NAME_SIZE]") + public ByteBuffer runtimeName() { return XrInstanceProperties.nruntimeName(address()); } + /** @return the null-terminated string stored in the {@link XrInstanceProperties#runtimeName} field. */ + @NativeType("char[XR_MAX_RUNTIME_NAME_SIZE]") + public String runtimeNameString() { return XrInstanceProperties.nruntimeNameString(address()); } + + /** Sets the specified value to the {@link XrInstanceProperties#type} field. */ + public XrInstanceProperties.Buffer type(@NativeType("XrStructureType") int value) { XrInstanceProperties.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_INSTANCE_PROPERTIES TYPE_INSTANCE_PROPERTIES} value to the {@link XrInstanceProperties#type} field. */ + public XrInstanceProperties.Buffer type$Default() { return type(XR10.XR_TYPE_INSTANCE_PROPERTIES); } + /** Sets the specified value to the {@link XrInstanceProperties#next} field. */ + public XrInstanceProperties.Buffer next(@NativeType("void *") long value) { XrInstanceProperties.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileAnalogThresholdVALVE.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileAnalogThresholdVALVE.java index 09773127c0..75ef23f072 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileAnalogThresholdVALVE.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileAnalogThresholdVALVE.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.*; + /** * Interaction profile dpad binding. * @@ -59,8 +59,8 @@ * {@link XrHapticBaseHeader XrHapticBaseHeader} const * {@link #onHaptic}; * {@link XrHapticBaseHeader XrHapticBaseHeader} const * {@link #offHaptic}; * } - */ -public class XrInteractionProfileAnalogThresholdVALVE extends Struct implements NativeResource { + */ +public class XrInteractionProfileAnalogThresholdVALVE extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -70,47 +70,38 @@ public class XrInteractionProfileAnalogThresholdVALVE extends Structmust consider the binding to be true. The binding must remain true until the input analog value falls below {@code offThreshold}. */ - public float onThreshold() { return nonThreshold(address()); } - /** the value between 0.0 and 1.0 at which the runtime must consider the binding to be false if it was previous true. */ - public float offThreshold() { return noffThreshold(address()); } - /** the haptic output that the runtime must trigger when the binding changes from false to true. If this field is NULL, the runtime must not trigger any haptic output on the threshold. This field can point to any supported sub-type of {@link XrHapticBaseHeader}. */ - @Nullable - @NativeType("XrHapticBaseHeader const *") - public XrHapticBaseHeader onHaptic() { return nonHaptic(address()); } - /** the haptic output that the runtime must trigger when the binding changes from true to false. If this field is NULL, the runtime must not trigger any haptic output on the threshold. This field can point to any supported sub-type of {@link XrHapticBaseHeader}. */ - @Nullable - @NativeType("XrHapticBaseHeader const *") - public XrHapticBaseHeader offHaptic() { return noffHaptic(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrInteractionProfileAnalogThresholdVALVE type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link VALVEAnalogThreshold#XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE} value to the {@link #type} field. */ - public XrInteractionProfileAnalogThresholdVALVE type$Default() { return type(VALVEAnalogThreshold.XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE); } - /** Sets the specified value to the {@link #next} field. */ - public XrInteractionProfileAnalogThresholdVALVE next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #action} field. */ - public XrInteractionProfileAnalogThresholdVALVE action(XrAction value) { naction(address(), value); return this; } - /** Sets the specified value to the {@link #binding} field. */ - public XrInteractionProfileAnalogThresholdVALVE binding(@NativeType("XrPath") long value) { nbinding(address(), value); return this; } - /** Sets the specified value to the {@link #onThreshold} field. */ - public XrInteractionProfileAnalogThresholdVALVE onThreshold(float value) { nonThreshold(address(), value); return this; } - /** Sets the specified value to the {@link #offThreshold} field. */ - public XrInteractionProfileAnalogThresholdVALVE offThreshold(float value) { noffThreshold(address(), value); return this; } - /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link #onHaptic} field. */ - public XrInteractionProfileAnalogThresholdVALVE onHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { nonHaptic(address(), value); return this; } - /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link #offHaptic} field. */ - public XrInteractionProfileAnalogThresholdVALVE offHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { noffHaptic(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()); } + /** the handle of an action in the suggested binding list. */ + @NativeType("XrAction") + public long action() { return naction(address()); } + /** the input path used for the specified action in the suggested binding list. */ + @NativeType("XrPath") + public long binding() { return nbinding(address()); } + /** the value between 0.0 and 1.0 at which the runtime must consider the binding to be true. The binding must remain true until the input analog value falls below {@code offThreshold}. */ + public float onThreshold() { return nonThreshold(address()); } + /** the value between 0.0 and 1.0 at which the runtime must consider the binding to be false if it was previous true. */ + public float offThreshold() { return noffThreshold(address()); } + /** the haptic output that the runtime must trigger when the binding changes from false to true. If this field is NULL, the runtime must not trigger any haptic output on the threshold. This field can point to any supported sub-type of {@link XrHapticBaseHeader}. */ + @Nullable + @NativeType("XrHapticBaseHeader const *") + public XrHapticBaseHeader onHaptic() { return nonHaptic(address()); } + /** the haptic output that the runtime must trigger when the binding changes from true to false. If this field is NULL, the runtime must not trigger any haptic output on the threshold. This field can point to any supported sub-type of {@link XrHapticBaseHeader}. */ + @Nullable + @NativeType("XrHapticBaseHeader const *") + public XrHapticBaseHeader offHaptic() { return noffHaptic(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrInteractionProfileAnalogThresholdVALVE type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link VALVEAnalogThreshold#XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE} value to the {@link #type} field. */ + public XrInteractionProfileAnalogThresholdVALVE type$Default() { return type(VALVEAnalogThreshold.XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE); } + /** Sets the specified value to the {@link #next} field. */ + public XrInteractionProfileAnalogThresholdVALVE next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #action} field. */ + public XrInteractionProfileAnalogThresholdVALVE action(XrAction value) { naction(address(), value); return this; } + /** Sets the specified value to the {@link #binding} field. */ + public XrInteractionProfileAnalogThresholdVALVE binding(@NativeType("XrPath") long value) { nbinding(address(), value); return this; } + /** Sets the specified value to the {@link #onThreshold} field. */ + public XrInteractionProfileAnalogThresholdVALVE onThreshold(float value) { nonThreshold(address(), value); return this; } + /** Sets the specified value to the {@link #offThreshold} field. */ + public XrInteractionProfileAnalogThresholdVALVE offThreshold(float value) { noffThreshold(address(), value); return this; } + /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link #onHaptic} field. */ + public XrInteractionProfileAnalogThresholdVALVE onHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { nonHaptic(address(), value); return this; } + /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link #offHaptic} field. */ + public XrInteractionProfileAnalogThresholdVALVE offHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { noffHaptic(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrInteractionProfileAnalogThresholdVALVE set( - int type, - long next, - XrAction action, - long binding, - float onThreshold, - float offThreshold, - @Nullable XrHapticBaseHeader onHaptic, + int type, + long next, + XrAction action, + long binding, + float onThreshold, + float offThreshold, + @Nullable XrHapticBaseHeader onHaptic, @Nullable XrHapticBaseHeader offHaptic - ) { - type(type); - next(next); - action(action); - binding(binding); - onThreshold(onThreshold); - offThreshold(offThreshold); - onHaptic(onHaptic); - offHaptic(offHaptic); + ) { + type(type); + next(next); + action(action); + binding(binding); + onThreshold(onThreshold); + offThreshold(offThreshold); + onHaptic(onHaptic); + offHaptic(offHaptic); return this; } @@ -209,34 +200,34 @@ public XrInteractionProfileAnalogThresholdVALVE set(XrInteractionProfileAnalogTh /** Returns a new {@code XrInteractionProfileAnalogThresholdVALVE} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrInteractionProfileAnalogThresholdVALVE malloc() { - return new XrInteractionProfileAnalogThresholdVALVE(nmemAllocChecked(SIZEOF), null); + return wrap(XrInteractionProfileAnalogThresholdVALVE.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrInteractionProfileAnalogThresholdVALVE} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrInteractionProfileAnalogThresholdVALVE calloc() { - return new XrInteractionProfileAnalogThresholdVALVE(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrInteractionProfileAnalogThresholdVALVE.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrInteractionProfileAnalogThresholdVALVE} instance allocated with {@link BufferUtils}. */ public static XrInteractionProfileAnalogThresholdVALVE create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrInteractionProfileAnalogThresholdVALVE(memAddress(container), container); + return wrap(XrInteractionProfileAnalogThresholdVALVE.class, memAddress(container), container); } /** Returns a new {@code XrInteractionProfileAnalogThresholdVALVE} instance for the specified memory address. */ public static XrInteractionProfileAnalogThresholdVALVE create(long address) { - return new XrInteractionProfileAnalogThresholdVALVE(address, null); + return wrap(XrInteractionProfileAnalogThresholdVALVE.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrInteractionProfileAnalogThresholdVALVE createSafe(long address) { - return address == NULL ? null : new XrInteractionProfileAnalogThresholdVALVE(address, null); + return address == NULL ? null : wrap(XrInteractionProfileAnalogThresholdVALVE.class, address); } /** Downcasts the specified {@code XrBindingModificationBaseHeaderKHR} instance to {@code XrInteractionProfileAnalogThresholdVALVE}. */ public static XrInteractionProfileAnalogThresholdVALVE create(XrBindingModificationBaseHeaderKHR value) { - return new XrInteractionProfileAnalogThresholdVALVE(value.address(), __getContainer(value)); + return wrap(XrInteractionProfileAnalogThresholdVALVE.class, value); } /** @@ -245,7 +236,7 @@ public static XrInteractionProfileAnalogThresholdVALVE create(XrBindingModificat * @param capacity the buffer capacity */ public static XrInteractionProfileAnalogThresholdVALVE.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -254,7 +245,7 @@ public static XrInteractionProfileAnalogThresholdVALVE.Buffer malloc(int capacit * @param capacity the buffer capacity */ public static XrInteractionProfileAnalogThresholdVALVE.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -264,7 +255,7 @@ public static XrInteractionProfileAnalogThresholdVALVE.Buffer calloc(int capacit */ public static XrInteractionProfileAnalogThresholdVALVE.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); } /** @@ -274,18 +265,18 @@ public static XrInteractionProfileAnalogThresholdVALVE.Buffer create(int capacit * @param capacity the buffer capacity */ public static XrInteractionProfileAnalogThresholdVALVE.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 XrInteractionProfileAnalogThresholdVALVE.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 XrBindingModificationBaseHeaderKHR.Buffer} instance to {@code XrInteractionProfileAnalogThresholdVALVE.Buffer}. */ public static XrInteractionProfileAnalogThresholdVALVE.Buffer create(XrBindingModificationBaseHeaderKHR.Buffer value) { - return new XrInteractionProfileAnalogThresholdVALVE.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** @@ -294,7 +285,7 @@ public static XrInteractionProfileAnalogThresholdVALVE.Buffer create(XrBindingMo * @param stack the stack from which to allocate */ public static XrInteractionProfileAnalogThresholdVALVE malloc(MemoryStack stack) { - return new XrInteractionProfileAnalogThresholdVALVE(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrInteractionProfileAnalogThresholdVALVE.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -303,7 +294,7 @@ public static XrInteractionProfileAnalogThresholdVALVE malloc(MemoryStack stack) * @param stack the stack from which to allocate */ public static XrInteractionProfileAnalogThresholdVALVE calloc(MemoryStack stack) { - return new XrInteractionProfileAnalogThresholdVALVE(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrInteractionProfileAnalogThresholdVALVE.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -313,7 +304,7 @@ public static XrInteractionProfileAnalogThresholdVALVE calloc(MemoryStack stack) * @param capacity the buffer capacity */ public static XrInteractionProfileAnalogThresholdVALVE.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); } /** @@ -323,44 +314,44 @@ public static XrInteractionProfileAnalogThresholdVALVE.Buffer malloc(int capacit * @param capacity the buffer capacity */ public static XrInteractionProfileAnalogThresholdVALVE.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 + XrInteractionProfileAnalogThresholdVALVE.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrInteractionProfileAnalogThresholdVALVE.NEXT); } - /** Unsafe version of {@link #action}. */ - public static long naction(long struct) { return memGetAddress(struct + XrInteractionProfileAnalogThresholdVALVE.ACTION); } - /** Unsafe version of {@link #binding}. */ - public static long nbinding(long struct) { return UNSAFE.getLong(null, struct + XrInteractionProfileAnalogThresholdVALVE.BINDING); } - /** Unsafe version of {@link #onThreshold}. */ - public static float nonThreshold(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileAnalogThresholdVALVE.ONTHRESHOLD); } - /** Unsafe version of {@link #offThreshold}. */ - public static float noffThreshold(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileAnalogThresholdVALVE.OFFTHRESHOLD); } - /** Unsafe version of {@link #onHaptic}. */ - @Nullable public static XrHapticBaseHeader nonHaptic(long struct) { return XrHapticBaseHeader.createSafe(memGetAddress(struct + XrInteractionProfileAnalogThresholdVALVE.ONHAPTIC)); } - /** Unsafe version of {@link #offHaptic}. */ - @Nullable public static XrHapticBaseHeader noffHaptic(long struct) { return XrHapticBaseHeader.createSafe(memGetAddress(struct + XrInteractionProfileAnalogThresholdVALVE.OFFHAPTIC)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInteractionProfileAnalogThresholdVALVE.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrInteractionProfileAnalogThresholdVALVE.NEXT, value); } - /** Unsafe version of {@link #action(XrAction) action}. */ - public static void naction(long struct, XrAction value) { memPutAddress(struct + XrInteractionProfileAnalogThresholdVALVE.ACTION, value.address()); } - /** Unsafe version of {@link #binding(long) binding}. */ - public static void nbinding(long struct, long value) { UNSAFE.putLong(null, struct + XrInteractionProfileAnalogThresholdVALVE.BINDING, value); } - /** Unsafe version of {@link #onThreshold(float) onThreshold}. */ - public static void nonThreshold(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileAnalogThresholdVALVE.ONTHRESHOLD, value); } - /** Unsafe version of {@link #offThreshold(float) offThreshold}. */ - public static void noffThreshold(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileAnalogThresholdVALVE.OFFTHRESHOLD, value); } - /** Unsafe version of {@link #onHaptic(XrHapticBaseHeader) onHaptic}. */ - public static void nonHaptic(long struct, @Nullable XrHapticBaseHeader value) { memPutAddress(struct + XrInteractionProfileAnalogThresholdVALVE.ONHAPTIC, memAddressSafe(value)); } - /** Unsafe version of {@link #offHaptic(XrHapticBaseHeader) offHaptic}. */ - public static void noffHaptic(long struct, @Nullable XrHapticBaseHeader value) { memPutAddress(struct + XrInteractionProfileAnalogThresholdVALVE.OFFHAPTIC, memAddressSafe(value)); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrInteractionProfileAnalogThresholdVALVE.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrInteractionProfileAnalogThresholdVALVE.NEXT); } + /** Unsafe version of {@link #action}. */ + public static long naction(long struct) { return memGetAddress(struct + XrInteractionProfileAnalogThresholdVALVE.ACTION); } + /** Unsafe version of {@link #binding}. */ + public static long nbinding(long struct) { return UNSAFE.getLong(null, struct + XrInteractionProfileAnalogThresholdVALVE.BINDING); } + /** Unsafe version of {@link #onThreshold}. */ + public static float nonThreshold(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileAnalogThresholdVALVE.ONTHRESHOLD); } + /** Unsafe version of {@link #offThreshold}. */ + public static float noffThreshold(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileAnalogThresholdVALVE.OFFTHRESHOLD); } + /** Unsafe version of {@link #onHaptic}. */ + @Nullable public static XrHapticBaseHeader nonHaptic(long struct) { return XrHapticBaseHeader.createSafe(memGetAddress(struct + XrInteractionProfileAnalogThresholdVALVE.ONHAPTIC)); } + /** Unsafe version of {@link #offHaptic}. */ + @Nullable public static XrHapticBaseHeader noffHaptic(long struct) { return XrHapticBaseHeader.createSafe(memGetAddress(struct + XrInteractionProfileAnalogThresholdVALVE.OFFHAPTIC)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInteractionProfileAnalogThresholdVALVE.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrInteractionProfileAnalogThresholdVALVE.NEXT, value); } + /** Unsafe version of {@link #action(XrAction) action}. */ + public static void naction(long struct, XrAction value) { memPutAddress(struct + XrInteractionProfileAnalogThresholdVALVE.ACTION, value.address()); } + /** Unsafe version of {@link #binding(long) binding}. */ + public static void nbinding(long struct, long value) { UNSAFE.putLong(null, struct + XrInteractionProfileAnalogThresholdVALVE.BINDING, value); } + /** Unsafe version of {@link #onThreshold(float) onThreshold}. */ + public static void nonThreshold(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileAnalogThresholdVALVE.ONTHRESHOLD, value); } + /** Unsafe version of {@link #offThreshold(float) offThreshold}. */ + public static void noffThreshold(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileAnalogThresholdVALVE.OFFTHRESHOLD, value); } + /** Unsafe version of {@link #onHaptic(XrHapticBaseHeader) onHaptic}. */ + public static void nonHaptic(long struct, @Nullable XrHapticBaseHeader value) { memPutAddress(struct + XrInteractionProfileAnalogThresholdVALVE.ONHAPTIC, memAddressSafe(value)); } + /** Unsafe version of {@link #offHaptic(XrHapticBaseHeader) offHaptic}. */ + public static void noffHaptic(long struct, @Nullable XrHapticBaseHeader value) { memPutAddress(struct + XrInteractionProfileAnalogThresholdVALVE.OFFHAPTIC, memAddressSafe(value)); } /** * Validates pointer members that should not be {@code NULL}. @@ -369,9 +360,9 @@ public static XrInteractionProfileAnalogThresholdVALVE.Buffer calloc(int capacit */ public static void validate(long struct) { check(memGetAddress(struct + XrInteractionProfileAnalogThresholdVALVE.ACTION)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrInteractionProfileAnalogThresholdVALVE} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -381,9 +372,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 XrInteractionProfileAnalogThresholdVALVE#SIZEOF}, and its mark will be undefined.

      + * by {@link XrInteractionProfileAnalogThresholdVALVE#SIZEOF}, and its mark will be undefined. * *

      The created buffer instance holds a strong reference to the container object.

      */ @@ -408,50 +399,50 @@ protected Buffer self() { protected XrInteractionProfileAnalogThresholdVALVE getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrInteractionProfileAnalogThresholdVALVE.ntype(address()); } - /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#next} field. */ - @NativeType("void const *") - public long next() { return XrInteractionProfileAnalogThresholdVALVE.nnext(address()); } - /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#action} field. */ - @NativeType("XrAction") - public long action() { return XrInteractionProfileAnalogThresholdVALVE.naction(address()); } - /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#binding} field. */ - @NativeType("XrPath") - public long binding() { return XrInteractionProfileAnalogThresholdVALVE.nbinding(address()); } - /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#onThreshold} field. */ - public float onThreshold() { return XrInteractionProfileAnalogThresholdVALVE.nonThreshold(address()); } - /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#offThreshold} field. */ - public float offThreshold() { return XrInteractionProfileAnalogThresholdVALVE.noffThreshold(address()); } - /** @return a {@link XrHapticBaseHeader} view of the struct pointed to by the {@link XrInteractionProfileAnalogThresholdVALVE#onHaptic} field. */ - @Nullable - @NativeType("XrHapticBaseHeader const *") - public XrHapticBaseHeader onHaptic() { return XrInteractionProfileAnalogThresholdVALVE.nonHaptic(address()); } - /** @return a {@link XrHapticBaseHeader} view of the struct pointed to by the {@link XrInteractionProfileAnalogThresholdVALVE#offHaptic} field. */ - @Nullable - @NativeType("XrHapticBaseHeader const *") - public XrHapticBaseHeader offHaptic() { return XrInteractionProfileAnalogThresholdVALVE.noffHaptic(address()); } - - /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#type} field. */ - public XrInteractionProfileAnalogThresholdVALVE.Buffer type(@NativeType("XrStructureType") int value) { XrInteractionProfileAnalogThresholdVALVE.ntype(address(), value); return this; } - /** Sets the {@link VALVEAnalogThreshold#XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE} value to the {@link XrInteractionProfileAnalogThresholdVALVE#type} field. */ - public XrInteractionProfileAnalogThresholdVALVE.Buffer type$Default() { return type(VALVEAnalogThreshold.XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE); } - /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#next} field. */ - public XrInteractionProfileAnalogThresholdVALVE.Buffer next(@NativeType("void const *") long value) { XrInteractionProfileAnalogThresholdVALVE.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#action} field. */ - public XrInteractionProfileAnalogThresholdVALVE.Buffer action(XrAction value) { XrInteractionProfileAnalogThresholdVALVE.naction(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#binding} field. */ - public XrInteractionProfileAnalogThresholdVALVE.Buffer binding(@NativeType("XrPath") long value) { XrInteractionProfileAnalogThresholdVALVE.nbinding(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#onThreshold} field. */ - public XrInteractionProfileAnalogThresholdVALVE.Buffer onThreshold(float value) { XrInteractionProfileAnalogThresholdVALVE.nonThreshold(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#offThreshold} field. */ - public XrInteractionProfileAnalogThresholdVALVE.Buffer offThreshold(float value) { XrInteractionProfileAnalogThresholdVALVE.noffThreshold(address(), value); return this; } - /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link XrInteractionProfileAnalogThresholdVALVE#onHaptic} field. */ - public XrInteractionProfileAnalogThresholdVALVE.Buffer onHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { XrInteractionProfileAnalogThresholdVALVE.nonHaptic(address(), value); return this; } - /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link XrInteractionProfileAnalogThresholdVALVE#offHaptic} field. */ - public XrInteractionProfileAnalogThresholdVALVE.Buffer offHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { XrInteractionProfileAnalogThresholdVALVE.noffHaptic(address(), value); return this; } + + /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrInteractionProfileAnalogThresholdVALVE.ntype(address()); } + /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#next} field. */ + @NativeType("void const *") + public long next() { return XrInteractionProfileAnalogThresholdVALVE.nnext(address()); } + /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#action} field. */ + @NativeType("XrAction") + public long action() { return XrInteractionProfileAnalogThresholdVALVE.naction(address()); } + /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#binding} field. */ + @NativeType("XrPath") + public long binding() { return XrInteractionProfileAnalogThresholdVALVE.nbinding(address()); } + /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#onThreshold} field. */ + public float onThreshold() { return XrInteractionProfileAnalogThresholdVALVE.nonThreshold(address()); } + /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#offThreshold} field. */ + public float offThreshold() { return XrInteractionProfileAnalogThresholdVALVE.noffThreshold(address()); } + /** @return a {@link XrHapticBaseHeader} view of the struct pointed to by the {@link XrInteractionProfileAnalogThresholdVALVE#onHaptic} field. */ + @Nullable + @NativeType("XrHapticBaseHeader const *") + public XrHapticBaseHeader onHaptic() { return XrInteractionProfileAnalogThresholdVALVE.nonHaptic(address()); } + /** @return a {@link XrHapticBaseHeader} view of the struct pointed to by the {@link XrInteractionProfileAnalogThresholdVALVE#offHaptic} field. */ + @Nullable + @NativeType("XrHapticBaseHeader const *") + public XrHapticBaseHeader offHaptic() { return XrInteractionProfileAnalogThresholdVALVE.noffHaptic(address()); } + + /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#type} field. */ + public XrInteractionProfileAnalogThresholdVALVE.Buffer type(@NativeType("XrStructureType") int value) { XrInteractionProfileAnalogThresholdVALVE.ntype(address(), value); return this; } + /** Sets the {@link VALVEAnalogThreshold#XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE} value to the {@link XrInteractionProfileAnalogThresholdVALVE#type} field. */ + public XrInteractionProfileAnalogThresholdVALVE.Buffer type$Default() { return type(VALVEAnalogThreshold.XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE); } + /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#next} field. */ + public XrInteractionProfileAnalogThresholdVALVE.Buffer next(@NativeType("void const *") long value) { XrInteractionProfileAnalogThresholdVALVE.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#action} field. */ + public XrInteractionProfileAnalogThresholdVALVE.Buffer action(XrAction value) { XrInteractionProfileAnalogThresholdVALVE.naction(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#binding} field. */ + public XrInteractionProfileAnalogThresholdVALVE.Buffer binding(@NativeType("XrPath") long value) { XrInteractionProfileAnalogThresholdVALVE.nbinding(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#onThreshold} field. */ + public XrInteractionProfileAnalogThresholdVALVE.Buffer onThreshold(float value) { XrInteractionProfileAnalogThresholdVALVE.nonThreshold(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#offThreshold} field. */ + public XrInteractionProfileAnalogThresholdVALVE.Buffer offThreshold(float value) { XrInteractionProfileAnalogThresholdVALVE.noffThreshold(address(), value); return this; } + /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link XrInteractionProfileAnalogThresholdVALVE#onHaptic} field. */ + public XrInteractionProfileAnalogThresholdVALVE.Buffer onHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { XrInteractionProfileAnalogThresholdVALVE.nonHaptic(address(), value); return this; } + /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link XrInteractionProfileAnalogThresholdVALVE#offHaptic} field. */ + public XrInteractionProfileAnalogThresholdVALVE.Buffer offHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { XrInteractionProfileAnalogThresholdVALVE.noffHaptic(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileDpadBindingEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileDpadBindingEXT.java index e47522018f..32e626e01a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileDpadBindingEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileDpadBindingEXT.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.*; + /** * Interaction profile dpad binding. * @@ -78,8 +78,8 @@ * {@link XrHapticBaseHeader XrHapticBaseHeader} const * {@link #onHaptic}; * {@link XrHapticBaseHeader XrHapticBaseHeader} const * {@link #offHaptic}; * } - */ -public class XrInteractionProfileDpadBindingEXT extends Struct implements NativeResource { + */ +public class XrInteractionProfileDpadBindingEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -89,56 +89,47 @@ public class XrInteractionProfileDpadBindingEXT extends Structmust use the parameters from this structure for any actions from this action set that are bound to one of the dpad subpaths for this input path. */ - @NativeType("XrActionSet") - public long actionSet() { return nactionSet(address()); } - /** a number in the half-open range (0, 1] representing the force value threshold at or above which (≥) a dpad input will transition from inactive to active. */ - public float forceThreshold() { return nforceThreshold(address()); } - /** a number in the half-open range (0, 1] representing the force value threshold strictly below which (<) a dpad input will transition from active to inactive. */ - public float forceThresholdReleased() { return nforceThresholdReleased(address()); } - /** defines the center region of the thumbstick or trackpad. This is the radius, in the input value space, of a logically circular region in the center of the input, in the range (0, 1). */ - public float centerRegion() { return ncenterRegion(address()); } - /** indicates the angle in radians of each direction region and is a value in the half-open range [0, π). */ - public float wedgeAngle() { return nwedgeAngle(address()); } - /** indicates that the implementation will latch the first region that is activated and continue to indicate that the binding for that region is true until the user releases the input underlying the virtual dpad. */ - @NativeType("XrBool32") - public boolean isSticky() { return nisSticky(address()) != 0; } - /** the haptic output that the runtime must trigger when the binding changes from false to true. If this field is {@code NULL}, the runtime must not trigger any haptic output on the threshold. This field can point to any supported sub-type of {@link XrHapticBaseHeader}. */ - @Nullable - @NativeType("XrHapticBaseHeader const *") - public XrHapticBaseHeader onHaptic() { return nonHaptic(address()); } - /** the haptic output that the runtime must trigger when the binding changes from true to false. If this field is NULL, the runtime must not trigger any haptic output on the threshold. This field can point to any supported sub-type of {@link XrHapticBaseHeader}. */ - @Nullable - @NativeType("XrHapticBaseHeader const *") - public XrHapticBaseHeader offHaptic() { return noffHaptic(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrInteractionProfileDpadBindingEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTDpadBinding#XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT} value to the {@link #type} field. */ - public XrInteractionProfileDpadBindingEXT type$Default() { return type(EXTDpadBinding.XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrInteractionProfileDpadBindingEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #binding} field. */ - public XrInteractionProfileDpadBindingEXT binding(@NativeType("XrPath") long value) { nbinding(address(), value); return this; } - /** Sets the specified value to the {@link #actionSet} field. */ - public XrInteractionProfileDpadBindingEXT actionSet(XrActionSet value) { nactionSet(address(), value); return this; } - /** Sets the specified value to the {@link #forceThreshold} field. */ - public XrInteractionProfileDpadBindingEXT forceThreshold(float value) { nforceThreshold(address(), value); return this; } - /** Sets the specified value to the {@link #forceThresholdReleased} field. */ - public XrInteractionProfileDpadBindingEXT forceThresholdReleased(float value) { nforceThresholdReleased(address(), value); return this; } - /** Sets the specified value to the {@link #centerRegion} field. */ - public XrInteractionProfileDpadBindingEXT centerRegion(float value) { ncenterRegion(address(), value); return this; } - /** Sets the specified value to the {@link #wedgeAngle} field. */ - public XrInteractionProfileDpadBindingEXT wedgeAngle(float value) { nwedgeAngle(address(), value); return this; } - /** Sets the specified value to the {@link #isSticky} field. */ - public XrInteractionProfileDpadBindingEXT isSticky(@NativeType("XrBool32") boolean value) { nisSticky(address(), value ? 1 : 0); return this; } - /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link #onHaptic} field. */ - public XrInteractionProfileDpadBindingEXT onHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { nonHaptic(address(), value); return this; } - /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link #offHaptic} field. */ - public XrInteractionProfileDpadBindingEXT offHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { noffHaptic(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()); } + /** the input path used for the specified actions in the suggested binding list to be used as a dpad. E.g. path:/user/hand/right/input/thumbstick */ + @NativeType("XrPath") + public long binding() { return nbinding(address()); } + /** the action set for which this dpad will be active. The implementation must use the parameters from this structure for any actions from this action set that are bound to one of the dpad subpaths for this input path. */ + @NativeType("XrActionSet") + public long actionSet() { return nactionSet(address()); } + /** a number in the half-open range (0, 1] representing the force value threshold at or above which (≥) a dpad input will transition from inactive to active. */ + public float forceThreshold() { return nforceThreshold(address()); } + /** a number in the half-open range (0, 1] representing the force value threshold strictly below which (<) a dpad input will transition from active to inactive. */ + public float forceThresholdReleased() { return nforceThresholdReleased(address()); } + /** defines the center region of the thumbstick or trackpad. This is the radius, in the input value space, of a logically circular region in the center of the input, in the range (0, 1). */ + public float centerRegion() { return ncenterRegion(address()); } + /** indicates the angle in radians of each direction region and is a value in the half-open range [0, π). */ + public float wedgeAngle() { return nwedgeAngle(address()); } + /** indicates that the implementation will latch the first region that is activated and continue to indicate that the binding for that region is true until the user releases the input underlying the virtual dpad. */ + @NativeType("XrBool32") + public boolean isSticky() { return nisSticky(address()) != 0; } + /** the haptic output that the runtime must trigger when the binding changes from false to true. If this field is {@code NULL}, the runtime must not trigger any haptic output on the threshold. This field can point to any supported sub-type of {@link XrHapticBaseHeader}. */ + @Nullable + @NativeType("XrHapticBaseHeader const *") + public XrHapticBaseHeader onHaptic() { return nonHaptic(address()); } + /** the haptic output that the runtime must trigger when the binding changes from true to false. If this field is NULL, the runtime must not trigger any haptic output on the threshold. This field can point to any supported sub-type of {@link XrHapticBaseHeader}. */ + @Nullable + @NativeType("XrHapticBaseHeader const *") + public XrHapticBaseHeader offHaptic() { return noffHaptic(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrInteractionProfileDpadBindingEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link EXTDpadBinding#XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT} value to the {@link #type} field. */ + public XrInteractionProfileDpadBindingEXT type$Default() { return type(EXTDpadBinding.XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT); } + /** Sets the specified value to the {@link #next} field. */ + public XrInteractionProfileDpadBindingEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #binding} field. */ + public XrInteractionProfileDpadBindingEXT binding(@NativeType("XrPath") long value) { nbinding(address(), value); return this; } + /** Sets the specified value to the {@link #actionSet} field. */ + public XrInteractionProfileDpadBindingEXT actionSet(XrActionSet value) { nactionSet(address(), value); return this; } + /** Sets the specified value to the {@link #forceThreshold} field. */ + public XrInteractionProfileDpadBindingEXT forceThreshold(float value) { nforceThreshold(address(), value); return this; } + /** Sets the specified value to the {@link #forceThresholdReleased} field. */ + public XrInteractionProfileDpadBindingEXT forceThresholdReleased(float value) { nforceThresholdReleased(address(), value); return this; } + /** Sets the specified value to the {@link #centerRegion} field. */ + public XrInteractionProfileDpadBindingEXT centerRegion(float value) { ncenterRegion(address(), value); return this; } + /** Sets the specified value to the {@link #wedgeAngle} field. */ + public XrInteractionProfileDpadBindingEXT wedgeAngle(float value) { nwedgeAngle(address(), value); return this; } + /** Sets the specified value to the {@link #isSticky} field. */ + public XrInteractionProfileDpadBindingEXT isSticky(@NativeType("XrBool32") boolean value) { nisSticky(address(), value ? 1 : 0); return this; } + /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link #onHaptic} field. */ + public XrInteractionProfileDpadBindingEXT onHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { nonHaptic(address(), value); return this; } + /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link #offHaptic} field. */ + public XrInteractionProfileDpadBindingEXT offHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { noffHaptic(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrInteractionProfileDpadBindingEXT set( - int type, - long next, - long binding, - XrActionSet actionSet, - float forceThreshold, - float forceThresholdReleased, - float centerRegion, - float wedgeAngle, - boolean isSticky, - @Nullable XrHapticBaseHeader onHaptic, + int type, + long next, + long binding, + XrActionSet actionSet, + float forceThreshold, + float forceThresholdReleased, + float centerRegion, + float wedgeAngle, + boolean isSticky, + @Nullable XrHapticBaseHeader onHaptic, @Nullable XrHapticBaseHeader offHaptic - ) { - type(type); - next(next); - binding(binding); - actionSet(actionSet); - forceThreshold(forceThreshold); - forceThresholdReleased(forceThresholdReleased); - centerRegion(centerRegion); - wedgeAngle(wedgeAngle); - isSticky(isSticky); - onHaptic(onHaptic); - offHaptic(offHaptic); + ) { + type(type); + next(next); + binding(binding); + actionSet(actionSet); + forceThreshold(forceThreshold); + forceThresholdReleased(forceThresholdReleased); + centerRegion(centerRegion); + wedgeAngle(wedgeAngle); + isSticky(isSticky); + onHaptic(onHaptic); + offHaptic(offHaptic); return this; } @@ -256,34 +247,34 @@ public XrInteractionProfileDpadBindingEXT set(XrInteractionProfileDpadBindingEXT /** Returns a new {@code XrInteractionProfileDpadBindingEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrInteractionProfileDpadBindingEXT malloc() { - return new XrInteractionProfileDpadBindingEXT(nmemAllocChecked(SIZEOF), null); + return wrap(XrInteractionProfileDpadBindingEXT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrInteractionProfileDpadBindingEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrInteractionProfileDpadBindingEXT calloc() { - return new XrInteractionProfileDpadBindingEXT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrInteractionProfileDpadBindingEXT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrInteractionProfileDpadBindingEXT} instance allocated with {@link BufferUtils}. */ public static XrInteractionProfileDpadBindingEXT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrInteractionProfileDpadBindingEXT(memAddress(container), container); + return wrap(XrInteractionProfileDpadBindingEXT.class, memAddress(container), container); } /** Returns a new {@code XrInteractionProfileDpadBindingEXT} instance for the specified memory address. */ public static XrInteractionProfileDpadBindingEXT create(long address) { - return new XrInteractionProfileDpadBindingEXT(address, null); + return wrap(XrInteractionProfileDpadBindingEXT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrInteractionProfileDpadBindingEXT createSafe(long address) { - return address == NULL ? null : new XrInteractionProfileDpadBindingEXT(address, null); + return address == NULL ? null : wrap(XrInteractionProfileDpadBindingEXT.class, address); } /** Downcasts the specified {@code XrBindingModificationBaseHeaderKHR} instance to {@code XrInteractionProfileDpadBindingEXT}. */ public static XrInteractionProfileDpadBindingEXT create(XrBindingModificationBaseHeaderKHR value) { - return new XrInteractionProfileDpadBindingEXT(value.address(), __getContainer(value)); + return wrap(XrInteractionProfileDpadBindingEXT.class, value); } /** @@ -292,7 +283,7 @@ public static XrInteractionProfileDpadBindingEXT create(XrBindingModificationBas * @param capacity the buffer capacity */ public static XrInteractionProfileDpadBindingEXT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -301,7 +292,7 @@ public static XrInteractionProfileDpadBindingEXT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrInteractionProfileDpadBindingEXT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -311,7 +302,7 @@ public static XrInteractionProfileDpadBindingEXT.Buffer calloc(int capacity) { */ public static XrInteractionProfileDpadBindingEXT.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); } /** @@ -321,18 +312,18 @@ public static XrInteractionProfileDpadBindingEXT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrInteractionProfileDpadBindingEXT.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 XrInteractionProfileDpadBindingEXT.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 XrBindingModificationBaseHeaderKHR.Buffer} instance to {@code XrInteractionProfileDpadBindingEXT.Buffer}. */ public static XrInteractionProfileDpadBindingEXT.Buffer create(XrBindingModificationBaseHeaderKHR.Buffer value) { - return new XrInteractionProfileDpadBindingEXT.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** @@ -341,7 +332,7 @@ public static XrInteractionProfileDpadBindingEXT.Buffer create(XrBindingModifica * @param stack the stack from which to allocate */ public static XrInteractionProfileDpadBindingEXT malloc(MemoryStack stack) { - return new XrInteractionProfileDpadBindingEXT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrInteractionProfileDpadBindingEXT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -350,7 +341,7 @@ public static XrInteractionProfileDpadBindingEXT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrInteractionProfileDpadBindingEXT calloc(MemoryStack stack) { - return new XrInteractionProfileDpadBindingEXT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrInteractionProfileDpadBindingEXT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -360,7 +351,7 @@ public static XrInteractionProfileDpadBindingEXT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrInteractionProfileDpadBindingEXT.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); } /** @@ -370,56 +361,56 @@ public static XrInteractionProfileDpadBindingEXT.Buffer malloc(int capacity, Mem * @param capacity the buffer capacity */ public static XrInteractionProfileDpadBindingEXT.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 + XrInteractionProfileDpadBindingEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrInteractionProfileDpadBindingEXT.NEXT); } - /** Unsafe version of {@link #binding}. */ - public static long nbinding(long struct) { return UNSAFE.getLong(null, struct + XrInteractionProfileDpadBindingEXT.BINDING); } - /** Unsafe version of {@link #actionSet}. */ - public static long nactionSet(long struct) { return memGetAddress(struct + XrInteractionProfileDpadBindingEXT.ACTIONSET); } - /** Unsafe version of {@link #forceThreshold}. */ - public static float nforceThreshold(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileDpadBindingEXT.FORCETHRESHOLD); } - /** Unsafe version of {@link #forceThresholdReleased}. */ - public static float nforceThresholdReleased(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileDpadBindingEXT.FORCETHRESHOLDRELEASED); } - /** Unsafe version of {@link #centerRegion}. */ - public static float ncenterRegion(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileDpadBindingEXT.CENTERREGION); } - /** Unsafe version of {@link #wedgeAngle}. */ - public static float nwedgeAngle(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileDpadBindingEXT.WEDGEANGLE); } - /** Unsafe version of {@link #isSticky}. */ - public static int nisSticky(long struct) { return UNSAFE.getInt(null, struct + XrInteractionProfileDpadBindingEXT.ISSTICKY); } - /** Unsafe version of {@link #onHaptic}. */ - @Nullable public static XrHapticBaseHeader nonHaptic(long struct) { return XrHapticBaseHeader.createSafe(memGetAddress(struct + XrInteractionProfileDpadBindingEXT.ONHAPTIC)); } - /** Unsafe version of {@link #offHaptic}. */ - @Nullable public static XrHapticBaseHeader noffHaptic(long struct) { return XrHapticBaseHeader.createSafe(memGetAddress(struct + XrInteractionProfileDpadBindingEXT.OFFHAPTIC)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInteractionProfileDpadBindingEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrInteractionProfileDpadBindingEXT.NEXT, value); } - /** Unsafe version of {@link #binding(long) binding}. */ - public static void nbinding(long struct, long value) { UNSAFE.putLong(null, struct + XrInteractionProfileDpadBindingEXT.BINDING, value); } - /** Unsafe version of {@link #actionSet(XrActionSet) actionSet}. */ - public static void nactionSet(long struct, XrActionSet value) { memPutAddress(struct + XrInteractionProfileDpadBindingEXT.ACTIONSET, value.address()); } - /** Unsafe version of {@link #forceThreshold(float) forceThreshold}. */ - public static void nforceThreshold(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileDpadBindingEXT.FORCETHRESHOLD, value); } - /** Unsafe version of {@link #forceThresholdReleased(float) forceThresholdReleased}. */ - public static void nforceThresholdReleased(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileDpadBindingEXT.FORCETHRESHOLDRELEASED, value); } - /** Unsafe version of {@link #centerRegion(float) centerRegion}. */ - public static void ncenterRegion(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileDpadBindingEXT.CENTERREGION, value); } - /** Unsafe version of {@link #wedgeAngle(float) wedgeAngle}. */ - public static void nwedgeAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileDpadBindingEXT.WEDGEANGLE, value); } - /** Unsafe version of {@link #isSticky(boolean) isSticky}. */ - public static void nisSticky(long struct, int value) { UNSAFE.putInt(null, struct + XrInteractionProfileDpadBindingEXT.ISSTICKY, value); } - /** Unsafe version of {@link #onHaptic(XrHapticBaseHeader) onHaptic}. */ - public static void nonHaptic(long struct, @Nullable XrHapticBaseHeader value) { memPutAddress(struct + XrInteractionProfileDpadBindingEXT.ONHAPTIC, memAddressSafe(value)); } - /** Unsafe version of {@link #offHaptic(XrHapticBaseHeader) offHaptic}. */ - public static void noffHaptic(long struct, @Nullable XrHapticBaseHeader value) { memPutAddress(struct + XrInteractionProfileDpadBindingEXT.OFFHAPTIC, memAddressSafe(value)); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrInteractionProfileDpadBindingEXT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrInteractionProfileDpadBindingEXT.NEXT); } + /** Unsafe version of {@link #binding}. */ + public static long nbinding(long struct) { return UNSAFE.getLong(null, struct + XrInteractionProfileDpadBindingEXT.BINDING); } + /** Unsafe version of {@link #actionSet}. */ + public static long nactionSet(long struct) { return memGetAddress(struct + XrInteractionProfileDpadBindingEXT.ACTIONSET); } + /** Unsafe version of {@link #forceThreshold}. */ + public static float nforceThreshold(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileDpadBindingEXT.FORCETHRESHOLD); } + /** Unsafe version of {@link #forceThresholdReleased}. */ + public static float nforceThresholdReleased(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileDpadBindingEXT.FORCETHRESHOLDRELEASED); } + /** Unsafe version of {@link #centerRegion}. */ + public static float ncenterRegion(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileDpadBindingEXT.CENTERREGION); } + /** Unsafe version of {@link #wedgeAngle}. */ + public static float nwedgeAngle(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileDpadBindingEXT.WEDGEANGLE); } + /** Unsafe version of {@link #isSticky}. */ + public static int nisSticky(long struct) { return UNSAFE.getInt(null, struct + XrInteractionProfileDpadBindingEXT.ISSTICKY); } + /** Unsafe version of {@link #onHaptic}. */ + @Nullable public static XrHapticBaseHeader nonHaptic(long struct) { return XrHapticBaseHeader.createSafe(memGetAddress(struct + XrInteractionProfileDpadBindingEXT.ONHAPTIC)); } + /** Unsafe version of {@link #offHaptic}. */ + @Nullable public static XrHapticBaseHeader noffHaptic(long struct) { return XrHapticBaseHeader.createSafe(memGetAddress(struct + XrInteractionProfileDpadBindingEXT.OFFHAPTIC)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInteractionProfileDpadBindingEXT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrInteractionProfileDpadBindingEXT.NEXT, value); } + /** Unsafe version of {@link #binding(long) binding}. */ + public static void nbinding(long struct, long value) { UNSAFE.putLong(null, struct + XrInteractionProfileDpadBindingEXT.BINDING, value); } + /** Unsafe version of {@link #actionSet(XrActionSet) actionSet}. */ + public static void nactionSet(long struct, XrActionSet value) { memPutAddress(struct + XrInteractionProfileDpadBindingEXT.ACTIONSET, value.address()); } + /** Unsafe version of {@link #forceThreshold(float) forceThreshold}. */ + public static void nforceThreshold(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileDpadBindingEXT.FORCETHRESHOLD, value); } + /** Unsafe version of {@link #forceThresholdReleased(float) forceThresholdReleased}. */ + public static void nforceThresholdReleased(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileDpadBindingEXT.FORCETHRESHOLDRELEASED, value); } + /** Unsafe version of {@link #centerRegion(float) centerRegion}. */ + public static void ncenterRegion(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileDpadBindingEXT.CENTERREGION, value); } + /** Unsafe version of {@link #wedgeAngle(float) wedgeAngle}. */ + public static void nwedgeAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileDpadBindingEXT.WEDGEANGLE, value); } + /** Unsafe version of {@link #isSticky(boolean) isSticky}. */ + public static void nisSticky(long struct, int value) { UNSAFE.putInt(null, struct + XrInteractionProfileDpadBindingEXT.ISSTICKY, value); } + /** Unsafe version of {@link #onHaptic(XrHapticBaseHeader) onHaptic}. */ + public static void nonHaptic(long struct, @Nullable XrHapticBaseHeader value) { memPutAddress(struct + XrInteractionProfileDpadBindingEXT.ONHAPTIC, memAddressSafe(value)); } + /** Unsafe version of {@link #offHaptic(XrHapticBaseHeader) offHaptic}. */ + public static void noffHaptic(long struct, @Nullable XrHapticBaseHeader value) { memPutAddress(struct + XrInteractionProfileDpadBindingEXT.OFFHAPTIC, memAddressSafe(value)); } /** * Validates pointer members that should not be {@code NULL}. @@ -428,9 +419,9 @@ public static XrInteractionProfileDpadBindingEXT.Buffer calloc(int capacity, Mem */ public static void validate(long struct) { check(memGetAddress(struct + XrInteractionProfileDpadBindingEXT.ACTIONSET)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrInteractionProfileDpadBindingEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -440,9 +431,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 XrInteractionProfileDpadBindingEXT#SIZEOF}, and its mark will be undefined.

      + * by {@link XrInteractionProfileDpadBindingEXT#SIZEOF}, and its mark will be undefined. * *

      The created buffer instance holds a strong reference to the container object.

      */ @@ -467,63 +458,63 @@ protected Buffer self() { protected XrInteractionProfileDpadBindingEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrInteractionProfileDpadBindingEXT.ntype(address()); } - /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrInteractionProfileDpadBindingEXT.nnext(address()); } - /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#binding} field. */ - @NativeType("XrPath") - public long binding() { return XrInteractionProfileDpadBindingEXT.nbinding(address()); } - /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#actionSet} field. */ - @NativeType("XrActionSet") - public long actionSet() { return XrInteractionProfileDpadBindingEXT.nactionSet(address()); } - /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#forceThreshold} field. */ - public float forceThreshold() { return XrInteractionProfileDpadBindingEXT.nforceThreshold(address()); } - /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#forceThresholdReleased} field. */ - public float forceThresholdReleased() { return XrInteractionProfileDpadBindingEXT.nforceThresholdReleased(address()); } - /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#centerRegion} field. */ - public float centerRegion() { return XrInteractionProfileDpadBindingEXT.ncenterRegion(address()); } - /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#wedgeAngle} field. */ - public float wedgeAngle() { return XrInteractionProfileDpadBindingEXT.nwedgeAngle(address()); } - /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#isSticky} field. */ - @NativeType("XrBool32") - public boolean isSticky() { return XrInteractionProfileDpadBindingEXT.nisSticky(address()) != 0; } - /** @return a {@link XrHapticBaseHeader} view of the struct pointed to by the {@link XrInteractionProfileDpadBindingEXT#onHaptic} field. */ - @Nullable - @NativeType("XrHapticBaseHeader const *") - public XrHapticBaseHeader onHaptic() { return XrInteractionProfileDpadBindingEXT.nonHaptic(address()); } - /** @return a {@link XrHapticBaseHeader} view of the struct pointed to by the {@link XrInteractionProfileDpadBindingEXT#offHaptic} field. */ - @Nullable - @NativeType("XrHapticBaseHeader const *") - public XrHapticBaseHeader offHaptic() { return XrInteractionProfileDpadBindingEXT.noffHaptic(address()); } - - /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#type} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer type(@NativeType("XrStructureType") int value) { XrInteractionProfileDpadBindingEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTDpadBinding#XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT} value to the {@link XrInteractionProfileDpadBindingEXT#type} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer type$Default() { return type(EXTDpadBinding.XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT); } - /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#next} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer next(@NativeType("void const *") long value) { XrInteractionProfileDpadBindingEXT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#binding} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer binding(@NativeType("XrPath") long value) { XrInteractionProfileDpadBindingEXT.nbinding(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#actionSet} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer actionSet(XrActionSet value) { XrInteractionProfileDpadBindingEXT.nactionSet(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#forceThreshold} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer forceThreshold(float value) { XrInteractionProfileDpadBindingEXT.nforceThreshold(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#forceThresholdReleased} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer forceThresholdReleased(float value) { XrInteractionProfileDpadBindingEXT.nforceThresholdReleased(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#centerRegion} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer centerRegion(float value) { XrInteractionProfileDpadBindingEXT.ncenterRegion(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#wedgeAngle} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer wedgeAngle(float value) { XrInteractionProfileDpadBindingEXT.nwedgeAngle(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#isSticky} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer isSticky(@NativeType("XrBool32") boolean value) { XrInteractionProfileDpadBindingEXT.nisSticky(address(), value ? 1 : 0); return this; } - /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link XrInteractionProfileDpadBindingEXT#onHaptic} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer onHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { XrInteractionProfileDpadBindingEXT.nonHaptic(address(), value); return this; } - /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link XrInteractionProfileDpadBindingEXT#offHaptic} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer offHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { XrInteractionProfileDpadBindingEXT.noffHaptic(address(), value); return this; } + + /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrInteractionProfileDpadBindingEXT.ntype(address()); } + /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#next} field. */ + @NativeType("void const *") + public long next() { return XrInteractionProfileDpadBindingEXT.nnext(address()); } + /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#binding} field. */ + @NativeType("XrPath") + public long binding() { return XrInteractionProfileDpadBindingEXT.nbinding(address()); } + /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#actionSet} field. */ + @NativeType("XrActionSet") + public long actionSet() { return XrInteractionProfileDpadBindingEXT.nactionSet(address()); } + /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#forceThreshold} field. */ + public float forceThreshold() { return XrInteractionProfileDpadBindingEXT.nforceThreshold(address()); } + /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#forceThresholdReleased} field. */ + public float forceThresholdReleased() { return XrInteractionProfileDpadBindingEXT.nforceThresholdReleased(address()); } + /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#centerRegion} field. */ + public float centerRegion() { return XrInteractionProfileDpadBindingEXT.ncenterRegion(address()); } + /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#wedgeAngle} field. */ + public float wedgeAngle() { return XrInteractionProfileDpadBindingEXT.nwedgeAngle(address()); } + /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#isSticky} field. */ + @NativeType("XrBool32") + public boolean isSticky() { return XrInteractionProfileDpadBindingEXT.nisSticky(address()) != 0; } + /** @return a {@link XrHapticBaseHeader} view of the struct pointed to by the {@link XrInteractionProfileDpadBindingEXT#onHaptic} field. */ + @Nullable + @NativeType("XrHapticBaseHeader const *") + public XrHapticBaseHeader onHaptic() { return XrInteractionProfileDpadBindingEXT.nonHaptic(address()); } + /** @return a {@link XrHapticBaseHeader} view of the struct pointed to by the {@link XrInteractionProfileDpadBindingEXT#offHaptic} field. */ + @Nullable + @NativeType("XrHapticBaseHeader const *") + public XrHapticBaseHeader offHaptic() { return XrInteractionProfileDpadBindingEXT.noffHaptic(address()); } + + /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#type} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer type(@NativeType("XrStructureType") int value) { XrInteractionProfileDpadBindingEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTDpadBinding#XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT} value to the {@link XrInteractionProfileDpadBindingEXT#type} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer type$Default() { return type(EXTDpadBinding.XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT); } + /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#next} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer next(@NativeType("void const *") long value) { XrInteractionProfileDpadBindingEXT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#binding} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer binding(@NativeType("XrPath") long value) { XrInteractionProfileDpadBindingEXT.nbinding(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#actionSet} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer actionSet(XrActionSet value) { XrInteractionProfileDpadBindingEXT.nactionSet(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#forceThreshold} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer forceThreshold(float value) { XrInteractionProfileDpadBindingEXT.nforceThreshold(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#forceThresholdReleased} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer forceThresholdReleased(float value) { XrInteractionProfileDpadBindingEXT.nforceThresholdReleased(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#centerRegion} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer centerRegion(float value) { XrInteractionProfileDpadBindingEXT.ncenterRegion(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#wedgeAngle} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer wedgeAngle(float value) { XrInteractionProfileDpadBindingEXT.nwedgeAngle(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#isSticky} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer isSticky(@NativeType("XrBool32") boolean value) { XrInteractionProfileDpadBindingEXT.nisSticky(address(), value ? 1 : 0); return this; } + /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link XrInteractionProfileDpadBindingEXT#onHaptic} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer onHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { XrInteractionProfileDpadBindingEXT.nonHaptic(address(), value); return this; } + /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link XrInteractionProfileDpadBindingEXT#offHaptic} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer offHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { XrInteractionProfileDpadBindingEXT.noffHaptic(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileState.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileState.java index 0fc3dba501..5769f8e172 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileState.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileState.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.*; + /** * Receives active interaction profile for a top level path. * @@ -41,8 +41,8 @@ * void * {@link #next}; * XrPath {@link #interactionProfile}; * } - */ -public class XrInteractionProfileState extends Struct implements NativeResource { + */ +public class XrInteractionProfileState extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,32 +52,23 @@ public class XrInteractionProfileState extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - INTERACTIONPROFILE; + TYPE, + NEXT, + INTERACTIONPROFILE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - INTERACTIONPROFILE = layout.offsetof(2); - } - - protected XrInteractionProfileState(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrInteractionProfileState create(long address, @Nullable ByteBuffer container) { - return new XrInteractionProfileState(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + INTERACTIONPROFILE = layout.offsetof(2); } /** @@ -92,35 +83,35 @@ public XrInteractionProfileState(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 {@code XrPath} of the interaction profile path for the {@code topLevelUserPath} used to retrieve this state, or {@link XR10#XR_NULL_PATH NULL_PATH} if there is no active interaction profile at that top level user path. */ - @NativeType("XrPath") - public long interactionProfile() { return ninteractionProfile(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrInteractionProfileState type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_INTERACTION_PROFILE_STATE TYPE_INTERACTION_PROFILE_STATE} value to the {@link #type} field. */ - public XrInteractionProfileState type$Default() { return type(XR10.XR_TYPE_INTERACTION_PROFILE_STATE); } - /** Sets the specified value to the {@link #next} field. */ - public XrInteractionProfileState next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #interactionProfile} field. */ - public XrInteractionProfileState interactionProfile(@NativeType("XrPath") long value) { ninteractionProfile(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()); } + /** the {@code XrPath} of the interaction profile path for the {@code topLevelUserPath} used to retrieve this state, or {@link XR10#XR_NULL_PATH NULL_PATH} if there is no active interaction profile at that top level user path. */ + @NativeType("XrPath") + public long interactionProfile() { return ninteractionProfile(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrInteractionProfileState type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_INTERACTION_PROFILE_STATE TYPE_INTERACTION_PROFILE_STATE} value to the {@link #type} field. */ + public XrInteractionProfileState type$Default() { return type(XR10.XR_TYPE_INTERACTION_PROFILE_STATE); } + /** Sets the specified value to the {@link #next} field. */ + public XrInteractionProfileState next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #interactionProfile} field. */ + public XrInteractionProfileState interactionProfile(@NativeType("XrPath") long value) { ninteractionProfile(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrInteractionProfileState set( - int type, - long next, + int type, + long next, long interactionProfile - ) { - type(type); - next(next); - interactionProfile(interactionProfile); + ) { + type(type); + next(next); + interactionProfile(interactionProfile); return this; } @@ -141,29 +132,29 @@ public XrInteractionProfileState set(XrInteractionProfileState src) { /** Returns a new {@code XrInteractionProfileState} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrInteractionProfileState malloc() { - return new XrInteractionProfileState(nmemAllocChecked(SIZEOF), null); + return wrap(XrInteractionProfileState.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrInteractionProfileState} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrInteractionProfileState calloc() { - return new XrInteractionProfileState(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrInteractionProfileState.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrInteractionProfileState} instance allocated with {@link BufferUtils}. */ public static XrInteractionProfileState create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrInteractionProfileState(memAddress(container), container); + return wrap(XrInteractionProfileState.class, memAddress(container), container); } /** Returns a new {@code XrInteractionProfileState} instance for the specified memory address. */ public static XrInteractionProfileState create(long address) { - return new XrInteractionProfileState(address, null); + return wrap(XrInteractionProfileState.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrInteractionProfileState createSafe(long address) { - return address == NULL ? null : new XrInteractionProfileState(address, null); + return address == NULL ? null : wrap(XrInteractionProfileState.class, address); } /** @@ -172,7 +163,7 @@ public static XrInteractionProfileState createSafe(long address) { * @param capacity the buffer capacity */ public static XrInteractionProfileState.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 XrInteractionProfileState.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrInteractionProfileState.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 XrInteractionProfileState.Buffer calloc(int capacity) { */ public static XrInteractionProfileState.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 XrInteractionProfileState.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrInteractionProfileState.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 XrInteractionProfileState.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 XrInteractionProfileState.Buffer createSafe(long address, int capa * @param stack the stack from which to allocate */ public static XrInteractionProfileState malloc(MemoryStack stack) { - return new XrInteractionProfileState(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrInteractionProfileState.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -225,7 +216,7 @@ public static XrInteractionProfileState malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrInteractionProfileState calloc(MemoryStack stack) { - return new XrInteractionProfileState(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrInteractionProfileState.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -235,7 +226,7 @@ public static XrInteractionProfileState calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrInteractionProfileState.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 XrInteractionProfileState.Buffer malloc(int capacity, MemoryStack * @param capacity the buffer capacity */ public static XrInteractionProfileState.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 + XrInteractionProfileState.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrInteractionProfileState.NEXT); } - /** Unsafe version of {@link #interactionProfile}. */ - public static long ninteractionProfile(long struct) { return UNSAFE.getLong(null, struct + XrInteractionProfileState.INTERACTIONPROFILE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInteractionProfileState.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrInteractionProfileState.NEXT, value); } - /** Unsafe version of {@link #interactionProfile(long) interactionProfile}. */ - public static void ninteractionProfile(long struct, long value) { UNSAFE.putLong(null, struct + XrInteractionProfileState.INTERACTIONPROFILE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrInteractionProfileState.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrInteractionProfileState.NEXT); } + /** Unsafe version of {@link #interactionProfile}. */ + public static long ninteractionProfile(long struct) { return UNSAFE.getLong(null, struct + XrInteractionProfileState.INTERACTIONPROFILE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInteractionProfileState.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrInteractionProfileState.NEXT, value); } + /** Unsafe version of {@link #interactionProfile(long) interactionProfile}. */ + public static void ninteractionProfile(long struct, long value) { UNSAFE.putLong(null, struct + XrInteractionProfileState.INTERACTIONPROFILE, value); } + + // ----------------------------------- /** An array of {@link XrInteractionProfileState} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -274,9 +265,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 XrInteractionProfileState#SIZEOF}, and its mark will be undefined.

      + * by {@link XrInteractionProfileState#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 XrInteractionProfileState getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrInteractionProfileState#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrInteractionProfileState.ntype(address()); } - /** @return the value of the {@link XrInteractionProfileState#next} field. */ - @NativeType("void *") - public long next() { return XrInteractionProfileState.nnext(address()); } - /** @return the value of the {@link XrInteractionProfileState#interactionProfile} field. */ - @NativeType("XrPath") - public long interactionProfile() { return XrInteractionProfileState.ninteractionProfile(address()); } - - /** Sets the specified value to the {@link XrInteractionProfileState#type} field. */ - public XrInteractionProfileState.Buffer type(@NativeType("XrStructureType") int value) { XrInteractionProfileState.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_INTERACTION_PROFILE_STATE TYPE_INTERACTION_PROFILE_STATE} value to the {@link XrInteractionProfileState#type} field. */ - public XrInteractionProfileState.Buffer type$Default() { return type(XR10.XR_TYPE_INTERACTION_PROFILE_STATE); } - /** Sets the specified value to the {@link XrInteractionProfileState#next} field. */ - public XrInteractionProfileState.Buffer next(@NativeType("void *") long value) { XrInteractionProfileState.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileState#interactionProfile} field. */ - public XrInteractionProfileState.Buffer interactionProfile(@NativeType("XrPath") long value) { XrInteractionProfileState.ninteractionProfile(address(), value); return this; } + + /** @return the value of the {@link XrInteractionProfileState#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrInteractionProfileState.ntype(address()); } + /** @return the value of the {@link XrInteractionProfileState#next} field. */ + @NativeType("void *") + public long next() { return XrInteractionProfileState.nnext(address()); } + /** @return the value of the {@link XrInteractionProfileState#interactionProfile} field. */ + @NativeType("XrPath") + public long interactionProfile() { return XrInteractionProfileState.ninteractionProfile(address()); } + + /** Sets the specified value to the {@link XrInteractionProfileState#type} field. */ + public XrInteractionProfileState.Buffer type(@NativeType("XrStructureType") int value) { XrInteractionProfileState.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_INTERACTION_PROFILE_STATE TYPE_INTERACTION_PROFILE_STATE} value to the {@link XrInteractionProfileState#type} field. */ + public XrInteractionProfileState.Buffer type$Default() { return type(XR10.XR_TYPE_INTERACTION_PROFILE_STATE); } + /** Sets the specified value to the {@link XrInteractionProfileState#next} field. */ + public XrInteractionProfileState.Buffer next(@NativeType("void *") long value) { XrInteractionProfileState.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileState#interactionProfile} field. */ + public XrInteractionProfileState.Buffer interactionProfile(@NativeType("XrPath") long value) { XrInteractionProfileState.ninteractionProfile(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileSuggestedBinding.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileSuggestedBinding.java index aa5ae87468..3751cd3073 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileSuggestedBinding.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileSuggestedBinding.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 bindings for a interaction profile. * @@ -42,8 +42,8 @@ * uint32_t {@link #countSuggestedBindings}; * {@link XrActionSuggestedBinding XrActionSuggestedBinding} const * {@link #suggestedBindings}; * } - */ -public class XrInteractionProfileSuggestedBinding extends Struct implements NativeResource { + */ +public class XrInteractionProfileSuggestedBinding extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,38 +53,29 @@ public class XrInteractionProfileSuggestedBinding extends Struct implements NativeResource { @@ -313,9 +304,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 XrInteractionProfileSuggestedBinding#SIZEOF}, and its mark will be undefined.

      + * by {@link XrInteractionProfileSuggestedBinding#SIZEOF}, and its mark will be undefined. * *

      The created buffer instance holds a strong reference to the container object.

      */ @@ -340,35 +331,35 @@ protected Buffer self() { protected XrInteractionProfileSuggestedBinding getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrInteractionProfileSuggestedBinding#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrInteractionProfileSuggestedBinding.ntype(address()); } - /** @return the value of the {@link XrInteractionProfileSuggestedBinding#next} field. */ - @NativeType("void const *") - public long next() { return XrInteractionProfileSuggestedBinding.nnext(address()); } - /** @return the value of the {@link XrInteractionProfileSuggestedBinding#interactionProfile} field. */ - @NativeType("XrPath") - public long interactionProfile() { return XrInteractionProfileSuggestedBinding.ninteractionProfile(address()); } - /** @return the value of the {@link XrInteractionProfileSuggestedBinding#countSuggestedBindings} field. */ - @NativeType("uint32_t") - public int countSuggestedBindings() { return XrInteractionProfileSuggestedBinding.ncountSuggestedBindings(address()); } - /** @return a {@link XrActionSuggestedBinding.Buffer} view of the struct array pointed to by the {@link XrInteractionProfileSuggestedBinding#suggestedBindings} field. */ - @NativeType("XrActionSuggestedBinding const *") - public XrActionSuggestedBinding.Buffer suggestedBindings() { return XrInteractionProfileSuggestedBinding.nsuggestedBindings(address()); } - - /** Sets the specified value to the {@link XrInteractionProfileSuggestedBinding#type} field. */ - public XrInteractionProfileSuggestedBinding.Buffer type(@NativeType("XrStructureType") int value) { XrInteractionProfileSuggestedBinding.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING} value to the {@link XrInteractionProfileSuggestedBinding#type} field. */ - public XrInteractionProfileSuggestedBinding.Buffer type$Default() { return type(XR10.XR_TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING); } - /** Sets the specified value to the {@link XrInteractionProfileSuggestedBinding#next} field. */ - public XrInteractionProfileSuggestedBinding.Buffer next(@NativeType("void const *") long value) { XrInteractionProfileSuggestedBinding.nnext(address(), value); return this; } - /** Prepends the specified {@link XrBindingModificationsKHR} value to the {@code next} chain. */ - public XrInteractionProfileSuggestedBinding.Buffer next(XrBindingModificationsKHR value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrInteractionProfileSuggestedBinding#interactionProfile} field. */ - public XrInteractionProfileSuggestedBinding.Buffer interactionProfile(@NativeType("XrPath") long value) { XrInteractionProfileSuggestedBinding.ninteractionProfile(address(), value); return this; } - /** Sets the address of the specified {@link XrActionSuggestedBinding.Buffer} to the {@link XrInteractionProfileSuggestedBinding#suggestedBindings} field. */ - public XrInteractionProfileSuggestedBinding.Buffer suggestedBindings(@NativeType("XrActionSuggestedBinding const *") XrActionSuggestedBinding.Buffer value) { XrInteractionProfileSuggestedBinding.nsuggestedBindings(address(), value); return this; } + + /** @return the value of the {@link XrInteractionProfileSuggestedBinding#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrInteractionProfileSuggestedBinding.ntype(address()); } + /** @return the value of the {@link XrInteractionProfileSuggestedBinding#next} field. */ + @NativeType("void const *") + public long next() { return XrInteractionProfileSuggestedBinding.nnext(address()); } + /** @return the value of the {@link XrInteractionProfileSuggestedBinding#interactionProfile} field. */ + @NativeType("XrPath") + public long interactionProfile() { return XrInteractionProfileSuggestedBinding.ninteractionProfile(address()); } + /** @return the value of the {@link XrInteractionProfileSuggestedBinding#countSuggestedBindings} field. */ + @NativeType("uint32_t") + public int countSuggestedBindings() { return XrInteractionProfileSuggestedBinding.ncountSuggestedBindings(address()); } + /** @return a {@link XrActionSuggestedBinding.Buffer} view of the struct array pointed to by the {@link XrInteractionProfileSuggestedBinding#suggestedBindings} field. */ + @NativeType("XrActionSuggestedBinding const *") + public XrActionSuggestedBinding.Buffer suggestedBindings() { return XrInteractionProfileSuggestedBinding.nsuggestedBindings(address()); } + + /** Sets the specified value to the {@link XrInteractionProfileSuggestedBinding#type} field. */ + public XrInteractionProfileSuggestedBinding.Buffer type(@NativeType("XrStructureType") int value) { XrInteractionProfileSuggestedBinding.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING} value to the {@link XrInteractionProfileSuggestedBinding#type} field. */ + public XrInteractionProfileSuggestedBinding.Buffer type$Default() { return type(XR10.XR_TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING); } + /** Sets the specified value to the {@link XrInteractionProfileSuggestedBinding#next} field. */ + public XrInteractionProfileSuggestedBinding.Buffer next(@NativeType("void const *") long value) { XrInteractionProfileSuggestedBinding.nnext(address(), value); return this; } + /** Prepends the specified {@link XrBindingModificationsKHR} value to the {@code next} chain. */ + public XrInteractionProfileSuggestedBinding.Buffer next(XrBindingModificationsKHR value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrInteractionProfileSuggestedBinding#interactionProfile} field. */ + public XrInteractionProfileSuggestedBinding.Buffer interactionProfile(@NativeType("XrPath") long value) { XrInteractionProfileSuggestedBinding.ninteractionProfile(address(), value); return this; } + /** Sets the address of the specified {@link XrActionSuggestedBinding.Buffer} to the {@link XrInteractionProfileSuggestedBinding#suggestedBindings} field. */ + public XrInteractionProfileSuggestedBinding.Buffer suggestedBindings(@NativeType("XrActionSuggestedBinding const *") XrActionSuggestedBinding.Buffer value) { XrInteractionProfileSuggestedBinding.nsuggestedBindings(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardSpaceCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardSpaceCreateInfoFB.java index 8aa678f6ad..77a50aa635 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardSpaceCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardSpaceCreateInfoFB.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.*; + /** * Input data needed by the system to start tracking a keyboard. * @@ -42,8 +42,8 @@ * void * next; * uint64_t {@link #trackedKeyboardId}; * } - */ -public class XrKeyboardSpaceCreateInfoFB extends Struct implements NativeResource { + */ +public class XrKeyboardSpaceCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,32 +53,23 @@ public class XrKeyboardSpaceCreateInfoFB extends Struct implements NativeResource { @@ -275,9 +266,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 XrKeyboardSpaceCreateInfoFB#SIZEOF}, and its mark will be undefined.

      + * by {@link XrKeyboardSpaceCreateInfoFB#SIZEOF}, and its mark will be undefined. * *

      The created buffer instance holds a strong reference to the container object.

      */ @@ -302,25 +293,25 @@ protected Buffer self() { protected XrKeyboardSpaceCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrKeyboardSpaceCreateInfoFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void *") - public long next() { return XrKeyboardSpaceCreateInfoFB.nnext(address()); } - /** @return the value of the {@link XrKeyboardSpaceCreateInfoFB#trackedKeyboardId} field. */ - @NativeType("uint64_t") - public long trackedKeyboardId() { return XrKeyboardSpaceCreateInfoFB.ntrackedKeyboardId(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrKeyboardSpaceCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrKeyboardSpaceCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBKeyboardTracking#XR_TYPE_KEYBOARD_SPACE_CREATE_INFO_FB TYPE_KEYBOARD_SPACE_CREATE_INFO_FB} value to the {@code type} field. */ - public XrKeyboardSpaceCreateInfoFB.Buffer type$Default() { return type(FBKeyboardTracking.XR_TYPE_KEYBOARD_SPACE_CREATE_INFO_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrKeyboardSpaceCreateInfoFB.Buffer next(@NativeType("void *") long value) { XrKeyboardSpaceCreateInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrKeyboardSpaceCreateInfoFB#trackedKeyboardId} field. */ - public XrKeyboardSpaceCreateInfoFB.Buffer trackedKeyboardId(@NativeType("uint64_t") long value) { XrKeyboardSpaceCreateInfoFB.ntrackedKeyboardId(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrKeyboardSpaceCreateInfoFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void *") + public long next() { return XrKeyboardSpaceCreateInfoFB.nnext(address()); } + /** @return the value of the {@link XrKeyboardSpaceCreateInfoFB#trackedKeyboardId} field. */ + @NativeType("uint64_t") + public long trackedKeyboardId() { return XrKeyboardSpaceCreateInfoFB.ntrackedKeyboardId(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrKeyboardSpaceCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrKeyboardSpaceCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBKeyboardTracking#XR_TYPE_KEYBOARD_SPACE_CREATE_INFO_FB TYPE_KEYBOARD_SPACE_CREATE_INFO_FB} value to the {@code type} field. */ + public XrKeyboardSpaceCreateInfoFB.Buffer type$Default() { return type(FBKeyboardTracking.XR_TYPE_KEYBOARD_SPACE_CREATE_INFO_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrKeyboardSpaceCreateInfoFB.Buffer next(@NativeType("void *") long value) { XrKeyboardSpaceCreateInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrKeyboardSpaceCreateInfoFB#trackedKeyboardId} field. */ + public XrKeyboardSpaceCreateInfoFB.Buffer trackedKeyboardId(@NativeType("uint64_t") long value) { XrKeyboardSpaceCreateInfoFB.ntrackedKeyboardId(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardTrackingDescriptionFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardTrackingDescriptionFB.java index 5bd655147f..39cf50813b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardTrackingDescriptionFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardTrackingDescriptionFB.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.FBKeyboardTracking.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.FBKeyboardTracking.*; + /** * Description of a trackable keyboard. * @@ -43,8 +43,8 @@ * XrKeyboardTrackingFlagsFB {@link #flags}; * char {@link #name}[XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB]; * } - */ -public class XrKeyboardTrackingDescriptionFB extends Struct implements NativeResource { + */ +public class XrKeyboardTrackingDescriptionFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,35 +54,26 @@ public class XrKeyboardTrackingDescriptionFB extends Struct implements NativeResource { @@ -247,9 +238,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 XrKeyboardTrackingDescriptionFB#SIZEOF}, and its mark will be undefined.

      + * by {@link XrKeyboardTrackingDescriptionFB#SIZEOF}, and its mark will be undefined. * *

      The created buffer instance holds a strong reference to the container object.

      */ @@ -274,21 +265,21 @@ protected Buffer self() { protected XrKeyboardTrackingDescriptionFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrKeyboardTrackingDescriptionFB#trackedKeyboardId} field. */ - @NativeType("uint64_t") - public long trackedKeyboardId() { return XrKeyboardTrackingDescriptionFB.ntrackedKeyboardId(address()); } - /** @return a {@link XrVector3f} view of the {@link XrKeyboardTrackingDescriptionFB#size} field. */ - public XrVector3f size() { return XrKeyboardTrackingDescriptionFB.nsize(address()); } - /** @return the value of the {@link XrKeyboardTrackingDescriptionFB#flags} field. */ - @NativeType("XrKeyboardTrackingFlagsFB") - public long flags() { return XrKeyboardTrackingDescriptionFB.nflags(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrKeyboardTrackingDescriptionFB#name} field. */ - @NativeType("char[XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB]") - public ByteBuffer name() { return XrKeyboardTrackingDescriptionFB.nname(address()); } - /** @return the null-terminated string stored in the {@link XrKeyboardTrackingDescriptionFB#name} field. */ - @NativeType("char[XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB]") - public String nameString() { return XrKeyboardTrackingDescriptionFB.nnameString(address()); } + + /** @return the value of the {@link XrKeyboardTrackingDescriptionFB#trackedKeyboardId} field. */ + @NativeType("uint64_t") + public long trackedKeyboardId() { return XrKeyboardTrackingDescriptionFB.ntrackedKeyboardId(address()); } + /** @return a {@link XrVector3f} view of the {@link XrKeyboardTrackingDescriptionFB#size} field. */ + public XrVector3f size() { return XrKeyboardTrackingDescriptionFB.nsize(address()); } + /** @return the value of the {@link XrKeyboardTrackingDescriptionFB#flags} field. */ + @NativeType("XrKeyboardTrackingFlagsFB") + public long flags() { return XrKeyboardTrackingDescriptionFB.nflags(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrKeyboardTrackingDescriptionFB#name} field. */ + @NativeType("char[XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB]") + public ByteBuffer name() { return XrKeyboardTrackingDescriptionFB.nname(address()); } + /** @return the null-terminated string stored in the {@link XrKeyboardTrackingDescriptionFB#name} field. */ + @NativeType("char[XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB]") + public String nameString() { return XrKeyboardTrackingDescriptionFB.nnameString(address()); } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardTrackingQueryFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardTrackingQueryFB.java index a3d2cd86ff..f32a12d0b0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardTrackingQueryFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardTrackingQueryFB.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.*; + /** * Input data needed to determine which type of tracked keyboard to query for. * @@ -44,8 +44,8 @@ * void * {@link #next}; * XrKeyboardTrackingQueryFlagsFB {@link #flags}; * } - */ -public class XrKeyboardTrackingQueryFB extends Struct implements NativeResource { + */ +public class XrKeyboardTrackingQueryFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,32 +55,23 @@ public class XrKeyboardTrackingQueryFB extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - FLAGS; + TYPE, + NEXT, + FLAGS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - FLAGS = layout.offsetof(2); - } - - protected XrKeyboardTrackingQueryFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrKeyboardTrackingQueryFB create(long address, @Nullable ByteBuffer container) { - return new XrKeyboardTrackingQueryFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + FLAGS = layout.offsetof(2); } /** @@ -95,35 +86,35 @@ public XrKeyboardTrackingQueryFB(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 *") - public long next() { return nnext(address()); } - /** a bitmask of {@code XrKeyboardTrackingQueryFlagsFB}. */ - @NativeType("XrKeyboardTrackingQueryFlagsFB") - public long flags() { return nflags(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrKeyboardTrackingQueryFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBKeyboardTracking#XR_TYPE_KEYBOARD_TRACKING_QUERY_FB TYPE_KEYBOARD_TRACKING_QUERY_FB} value to the {@link #type} field. */ - public XrKeyboardTrackingQueryFB type$Default() { return type(FBKeyboardTracking.XR_TYPE_KEYBOARD_TRACKING_QUERY_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrKeyboardTrackingQueryFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #flags} field. */ - public XrKeyboardTrackingQueryFB flags(@NativeType("XrKeyboardTrackingQueryFlagsFB") long value) { nflags(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 *") + public long next() { return nnext(address()); } + /** a bitmask of {@code XrKeyboardTrackingQueryFlagsFB}. */ + @NativeType("XrKeyboardTrackingQueryFlagsFB") + public long flags() { return nflags(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrKeyboardTrackingQueryFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBKeyboardTracking#XR_TYPE_KEYBOARD_TRACKING_QUERY_FB TYPE_KEYBOARD_TRACKING_QUERY_FB} value to the {@link #type} field. */ + public XrKeyboardTrackingQueryFB type$Default() { return type(FBKeyboardTracking.XR_TYPE_KEYBOARD_TRACKING_QUERY_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrKeyboardTrackingQueryFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #flags} field. */ + public XrKeyboardTrackingQueryFB flags(@NativeType("XrKeyboardTrackingQueryFlagsFB") long value) { nflags(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrKeyboardTrackingQueryFB set( - int type, - long next, + int type, + long next, long flags - ) { - type(type); - next(next); - flags(flags); + ) { + type(type); + next(next); + flags(flags); return this; } @@ -144,29 +135,29 @@ public XrKeyboardTrackingQueryFB set(XrKeyboardTrackingQueryFB src) { /** Returns a new {@code XrKeyboardTrackingQueryFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrKeyboardTrackingQueryFB malloc() { - return new XrKeyboardTrackingQueryFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrKeyboardTrackingQueryFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrKeyboardTrackingQueryFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrKeyboardTrackingQueryFB calloc() { - return new XrKeyboardTrackingQueryFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrKeyboardTrackingQueryFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrKeyboardTrackingQueryFB} instance allocated with {@link BufferUtils}. */ public static XrKeyboardTrackingQueryFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrKeyboardTrackingQueryFB(memAddress(container), container); + return wrap(XrKeyboardTrackingQueryFB.class, memAddress(container), container); } /** Returns a new {@code XrKeyboardTrackingQueryFB} instance for the specified memory address. */ public static XrKeyboardTrackingQueryFB create(long address) { - return new XrKeyboardTrackingQueryFB(address, null); + return wrap(XrKeyboardTrackingQueryFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrKeyboardTrackingQueryFB createSafe(long address) { - return address == NULL ? null : new XrKeyboardTrackingQueryFB(address, null); + return address == NULL ? null : wrap(XrKeyboardTrackingQueryFB.class, address); } /** @@ -175,7 +166,7 @@ public static XrKeyboardTrackingQueryFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrKeyboardTrackingQueryFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -184,7 +175,7 @@ public static XrKeyboardTrackingQueryFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrKeyboardTrackingQueryFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -194,7 +185,7 @@ public static XrKeyboardTrackingQueryFB.Buffer calloc(int capacity) { */ public static XrKeyboardTrackingQueryFB.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); } /** @@ -204,13 +195,13 @@ public static XrKeyboardTrackingQueryFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrKeyboardTrackingQueryFB.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 XrKeyboardTrackingQueryFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -219,7 +210,7 @@ public static XrKeyboardTrackingQueryFB.Buffer createSafe(long address, int capa * @param stack the stack from which to allocate */ public static XrKeyboardTrackingQueryFB malloc(MemoryStack stack) { - return new XrKeyboardTrackingQueryFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrKeyboardTrackingQueryFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -228,7 +219,7 @@ public static XrKeyboardTrackingQueryFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrKeyboardTrackingQueryFB calloc(MemoryStack stack) { - return new XrKeyboardTrackingQueryFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrKeyboardTrackingQueryFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -238,7 +229,7 @@ public static XrKeyboardTrackingQueryFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrKeyboardTrackingQueryFB.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); } /** @@ -248,26 +239,26 @@ public static XrKeyboardTrackingQueryFB.Buffer malloc(int capacity, MemoryStack * @param capacity the buffer capacity */ public static XrKeyboardTrackingQueryFB.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 + XrKeyboardTrackingQueryFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrKeyboardTrackingQueryFB.NEXT); } - /** Unsafe version of {@link #flags}. */ - public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrKeyboardTrackingQueryFB.FLAGS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrKeyboardTrackingQueryFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrKeyboardTrackingQueryFB.NEXT, value); } - /** Unsafe version of {@link #flags(long) flags}. */ - public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrKeyboardTrackingQueryFB.FLAGS, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrKeyboardTrackingQueryFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrKeyboardTrackingQueryFB.NEXT); } + /** Unsafe version of {@link #flags}. */ + public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrKeyboardTrackingQueryFB.FLAGS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrKeyboardTrackingQueryFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrKeyboardTrackingQueryFB.NEXT, value); } + /** Unsafe version of {@link #flags(long) flags}. */ + public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrKeyboardTrackingQueryFB.FLAGS, value); } + + // ----------------------------------- /** An array of {@link XrKeyboardTrackingQueryFB} structs. */ public static class Buffer extends StructBuffer 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 XrKeyboardTrackingQueryFB#SIZEOF}, and its mark will be undefined.

      + * by {@link XrKeyboardTrackingQueryFB#SIZEOF}, and its mark will be undefined. * *

      The created buffer instance holds a strong reference to the container object.

      */ @@ -304,25 +295,25 @@ protected Buffer self() { protected XrKeyboardTrackingQueryFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrKeyboardTrackingQueryFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrKeyboardTrackingQueryFB.ntype(address()); } - /** @return the value of the {@link XrKeyboardTrackingQueryFB#next} field. */ - @NativeType("void *") - public long next() { return XrKeyboardTrackingQueryFB.nnext(address()); } - /** @return the value of the {@link XrKeyboardTrackingQueryFB#flags} field. */ - @NativeType("XrKeyboardTrackingQueryFlagsFB") - public long flags() { return XrKeyboardTrackingQueryFB.nflags(address()); } - - /** Sets the specified value to the {@link XrKeyboardTrackingQueryFB#type} field. */ - public XrKeyboardTrackingQueryFB.Buffer type(@NativeType("XrStructureType") int value) { XrKeyboardTrackingQueryFB.ntype(address(), value); return this; } - /** Sets the {@link FBKeyboardTracking#XR_TYPE_KEYBOARD_TRACKING_QUERY_FB TYPE_KEYBOARD_TRACKING_QUERY_FB} value to the {@link XrKeyboardTrackingQueryFB#type} field. */ - public XrKeyboardTrackingQueryFB.Buffer type$Default() { return type(FBKeyboardTracking.XR_TYPE_KEYBOARD_TRACKING_QUERY_FB); } - /** Sets the specified value to the {@link XrKeyboardTrackingQueryFB#next} field. */ - public XrKeyboardTrackingQueryFB.Buffer next(@NativeType("void *") long value) { XrKeyboardTrackingQueryFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrKeyboardTrackingQueryFB#flags} field. */ - public XrKeyboardTrackingQueryFB.Buffer flags(@NativeType("XrKeyboardTrackingQueryFlagsFB") long value) { XrKeyboardTrackingQueryFB.nflags(address(), value); return this; } + + /** @return the value of the {@link XrKeyboardTrackingQueryFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrKeyboardTrackingQueryFB.ntype(address()); } + /** @return the value of the {@link XrKeyboardTrackingQueryFB#next} field. */ + @NativeType("void *") + public long next() { return XrKeyboardTrackingQueryFB.nnext(address()); } + /** @return the value of the {@link XrKeyboardTrackingQueryFB#flags} field. */ + @NativeType("XrKeyboardTrackingQueryFlagsFB") + public long flags() { return XrKeyboardTrackingQueryFB.nflags(address()); } + + /** Sets the specified value to the {@link XrKeyboardTrackingQueryFB#type} field. */ + public XrKeyboardTrackingQueryFB.Buffer type(@NativeType("XrStructureType") int value) { XrKeyboardTrackingQueryFB.ntype(address(), value); return this; } + /** Sets the {@link FBKeyboardTracking#XR_TYPE_KEYBOARD_TRACKING_QUERY_FB TYPE_KEYBOARD_TRACKING_QUERY_FB} value to the {@link XrKeyboardTrackingQueryFB#type} field. */ + public XrKeyboardTrackingQueryFB.Buffer type$Default() { return type(FBKeyboardTracking.XR_TYPE_KEYBOARD_TRACKING_QUERY_FB); } + /** Sets the specified value to the {@link XrKeyboardTrackingQueryFB#next} field. */ + public XrKeyboardTrackingQueryFB.Buffer next(@NativeType("void *") long value) { XrKeyboardTrackingQueryFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrKeyboardTrackingQueryFB#flags} field. */ + public XrKeyboardTrackingQueryFB.Buffer flags(@NativeType("XrKeyboardTrackingQueryFlagsFB") long value) { XrKeyboardTrackingQueryFB.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLoaderInitInfoAndroidKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLoaderInitInfoAndroidKHR.java index 1ce35441b5..ca8dcf1db6 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLoaderInitInfoAndroidKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLoaderInitInfoAndroidKHR.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.*; + /** * Initializes OpenXR loader on Android. * @@ -23,7 +23,7 @@ * *
        *
      • The {@link KHRLoaderInitAndroid XR_KHR_loader_init_android} extension must be enabled prior to using {@link XrLoaderInitInfoAndroidKHR}
      • - *
      • {@code type} must be {@link KHRLoaderInitAndroid#XR_TYPE_LOADER_INIT_INFO_ANDROID_KHR TYPE_LOADER_INIT_INFO_ANDROID_KHR}
      • + *
      • {@code type} must be TYPE_LOADER_INIT_INFO_ANDROID_KHR
      • *
      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
      • *
      • {@code applicationVM} must be a pointer value
      • *
      • {@code applicationContext} must be a pointer value
      • @@ -42,8 +42,8 @@ * void * {@link #applicationVM}; * void * {@link #applicationContext}; * } - */ -public class XrLoaderInitInfoAndroidKHR extends Struct implements NativeResource { + */ +public class XrLoaderInitInfoAndroidKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,35 +53,26 @@ public class XrLoaderInitInfoAndroidKHR extends Struct implements NativeResource { @@ -309,9 +300,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 XrLoaderInitInfoAndroidKHR#SIZEOF}, and its mark will be undefined.

        + * by {@link XrLoaderInitInfoAndroidKHR#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -336,30 +327,30 @@ protected Buffer self() { protected XrLoaderInitInfoAndroidKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrLoaderInitInfoAndroidKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrLoaderInitInfoAndroidKHR.ntype(address()); } - /** @return the value of the {@link XrLoaderInitInfoAndroidKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrLoaderInitInfoAndroidKHR.nnext(address()); } - /** @return the value of the {@link XrLoaderInitInfoAndroidKHR#applicationVM} field. */ - @NativeType("void *") - public long applicationVM() { return XrLoaderInitInfoAndroidKHR.napplicationVM(address()); } - /** @return the value of the {@link XrLoaderInitInfoAndroidKHR#applicationContext} field. */ - @NativeType("void *") - public long applicationContext() { return XrLoaderInitInfoAndroidKHR.napplicationContext(address()); } - - /** Sets the specified value to the {@link XrLoaderInitInfoAndroidKHR#type} field. */ - public XrLoaderInitInfoAndroidKHR.Buffer type(@NativeType("XrStructureType") int value) { XrLoaderInitInfoAndroidKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRLoaderInitAndroid#XR_TYPE_LOADER_INIT_INFO_ANDROID_KHR TYPE_LOADER_INIT_INFO_ANDROID_KHR} value to the {@link XrLoaderInitInfoAndroidKHR#type} field. */ - public XrLoaderInitInfoAndroidKHR.Buffer type$Default() { return type(KHRLoaderInitAndroid.XR_TYPE_LOADER_INIT_INFO_ANDROID_KHR); } - /** Sets the specified value to the {@link XrLoaderInitInfoAndroidKHR#next} field. */ - public XrLoaderInitInfoAndroidKHR.Buffer next(@NativeType("void const *") long value) { XrLoaderInitInfoAndroidKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrLoaderInitInfoAndroidKHR#applicationVM} field. */ - public XrLoaderInitInfoAndroidKHR.Buffer applicationVM(@NativeType("void *") long value) { XrLoaderInitInfoAndroidKHR.napplicationVM(address(), value); return this; } - /** Sets the specified value to the {@link XrLoaderInitInfoAndroidKHR#applicationContext} field. */ - public XrLoaderInitInfoAndroidKHR.Buffer applicationContext(@NativeType("void *") long value) { XrLoaderInitInfoAndroidKHR.napplicationContext(address(), value); return this; } + + /** @return the value of the {@link XrLoaderInitInfoAndroidKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrLoaderInitInfoAndroidKHR.ntype(address()); } + /** @return the value of the {@link XrLoaderInitInfoAndroidKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrLoaderInitInfoAndroidKHR.nnext(address()); } + /** @return the value of the {@link XrLoaderInitInfoAndroidKHR#applicationVM} field. */ + @NativeType("void *") + public long applicationVM() { return XrLoaderInitInfoAndroidKHR.napplicationVM(address()); } + /** @return the value of the {@link XrLoaderInitInfoAndroidKHR#applicationContext} field. */ + @NativeType("void *") + public long applicationContext() { return XrLoaderInitInfoAndroidKHR.napplicationContext(address()); } + + /** Sets the specified value to the {@link XrLoaderInitInfoAndroidKHR#type} field. */ + public XrLoaderInitInfoAndroidKHR.Buffer type(@NativeType("XrStructureType") int value) { XrLoaderInitInfoAndroidKHR.ntype(address(), value); return this; } + /** Sets the default value to the {@link XrLoaderInitInfoAndroidKHR#type} field. */ + public XrLoaderInitInfoAndroidKHR.Buffer type$Default() { return type(TYPE_LOADER_INIT_INFO_ANDROID_KHR); } + /** Sets the specified value to the {@link XrLoaderInitInfoAndroidKHR#next} field. */ + public XrLoaderInitInfoAndroidKHR.Buffer next(@NativeType("void const *") long value) { XrLoaderInitInfoAndroidKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrLoaderInitInfoAndroidKHR#applicationVM} field. */ + public XrLoaderInitInfoAndroidKHR.Buffer applicationVM(@NativeType("void *") long value) { XrLoaderInitInfoAndroidKHR.napplicationVM(address(), value); return this; } + /** Sets the specified value to the {@link XrLoaderInitInfoAndroidKHR#applicationContext} field. */ + public XrLoaderInitInfoAndroidKHR.Buffer applicationContext(@NativeType("void *") long value) { XrLoaderInitInfoAndroidKHR.napplicationContext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLoaderInitInfoBaseHeaderKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLoaderInitInfoBaseHeaderKHR.java index db5bec6951..c13f16a53f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLoaderInitInfoBaseHeaderKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLoaderInitInfoBaseHeaderKHR.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.*; + /** * Initializes OpenXR loader. * @@ -22,7 +22,7 @@ * *
          *
        • The {@link KHRLoaderInit XR_KHR_loader_init} extension must be enabled prior to using {@link XrLoaderInitInfoBaseHeaderKHR}
        • - *
        • {@code type} must be {@link KHRLoaderInitAndroid#XR_TYPE_LOADER_INIT_INFO_ANDROID_KHR TYPE_LOADER_INIT_INFO_ANDROID_KHR}
        • + *
        • {@code type} must be TYPE_LOADER_INIT_INFO_ANDROID_KHR
        • *
        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
        • *
        * @@ -37,8 +37,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrLoaderInitInfoBaseHeaderKHR extends Struct implements NativeResource { + */ +public class XrLoaderInitInfoBaseHeaderKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,29 +48,20 @@ public class XrLoaderInitInfoBaseHeaderKHR extends Struct implements NativeResource { @@ -264,9 +255,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 XrLoaderInitInfoBaseHeaderKHR#SIZEOF}, and its mark will be undefined.

        + * by {@link XrLoaderInitInfoBaseHeaderKHR#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -291,18 +282,18 @@ protected Buffer self() { protected XrLoaderInitInfoBaseHeaderKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrLoaderInitInfoBaseHeaderKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrLoaderInitInfoBaseHeaderKHR.ntype(address()); } - /** @return the value of the {@link XrLoaderInitInfoBaseHeaderKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrLoaderInitInfoBaseHeaderKHR.nnext(address()); } - - /** Sets the specified value to the {@link XrLoaderInitInfoBaseHeaderKHR#type} field. */ - public XrLoaderInitInfoBaseHeaderKHR.Buffer type(@NativeType("XrStructureType") int value) { XrLoaderInitInfoBaseHeaderKHR.ntype(address(), value); return this; } - /** Sets the specified value to the {@link XrLoaderInitInfoBaseHeaderKHR#next} field. */ - public XrLoaderInitInfoBaseHeaderKHR.Buffer next(@NativeType("void const *") long value) { XrLoaderInitInfoBaseHeaderKHR.nnext(address(), value); return this; } + + /** @return the value of the {@link XrLoaderInitInfoBaseHeaderKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrLoaderInitInfoBaseHeaderKHR.ntype(address()); } + /** @return the value of the {@link XrLoaderInitInfoBaseHeaderKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrLoaderInitInfoBaseHeaderKHR.nnext(address()); } + + /** Sets the specified value to the {@link XrLoaderInitInfoBaseHeaderKHR#type} field. */ + public XrLoaderInitInfoBaseHeaderKHR.Buffer type(@NativeType("XrStructureType") int value) { XrLoaderInitInfoBaseHeaderKHR.ntype(address(), value); return this; } + /** Sets the specified value to the {@link XrLoaderInitInfoBaseHeaderKHR#next} field. */ + public XrLoaderInitInfoBaseHeaderKHR.Buffer next(@NativeType("void const *") long value) { XrLoaderInitInfoBaseHeaderKHR.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLocalDimmingFrameEndInfoMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLocalDimmingFrameEndInfoMETA.java index 3cef46dfc1..ae8e946b3b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLocalDimmingFrameEndInfoMETA.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLocalDimmingFrameEndInfoMETA.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.*; + /** * Local dimming meta data for the current submitted frame. * @@ -43,8 +43,8 @@ * void const * {@link #next}; * XrLocalDimmingModeMETA {@link #localDimmingMode}; * } - */ -public class XrLocalDimmingFrameEndInfoMETA extends Struct implements NativeResource { + */ +public class XrLocalDimmingFrameEndInfoMETA extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,32 +54,23 @@ public class XrLocalDimmingFrameEndInfoMETA extends Struct implements NativeResource { @@ -276,9 +267,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 XrLocalDimmingFrameEndInfoMETA#SIZEOF}, and its mark will be undefined.

        + * by {@link XrLocalDimmingFrameEndInfoMETA#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -303,25 +294,25 @@ protected Buffer self() { protected XrLocalDimmingFrameEndInfoMETA getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrLocalDimmingFrameEndInfoMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrLocalDimmingFrameEndInfoMETA.ntype(address()); } - /** @return the value of the {@link XrLocalDimmingFrameEndInfoMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrLocalDimmingFrameEndInfoMETA.nnext(address()); } - /** @return the value of the {@link XrLocalDimmingFrameEndInfoMETA#localDimmingMode} field. */ - @NativeType("XrLocalDimmingModeMETA") - public int localDimmingMode() { return XrLocalDimmingFrameEndInfoMETA.nlocalDimmingMode(address()); } - - /** Sets the specified value to the {@link XrLocalDimmingFrameEndInfoMETA#type} field. */ - public XrLocalDimmingFrameEndInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrLocalDimmingFrameEndInfoMETA.ntype(address(), value); return this; } - /** Sets the {@link METALocalDimming#XR_TYPE_LOCAL_DIMMING_FRAME_END_INFO_META TYPE_LOCAL_DIMMING_FRAME_END_INFO_META} value to the {@link XrLocalDimmingFrameEndInfoMETA#type} field. */ - public XrLocalDimmingFrameEndInfoMETA.Buffer type$Default() { return type(METALocalDimming.XR_TYPE_LOCAL_DIMMING_FRAME_END_INFO_META); } - /** Sets the specified value to the {@link XrLocalDimmingFrameEndInfoMETA#next} field. */ - public XrLocalDimmingFrameEndInfoMETA.Buffer next(@NativeType("void const *") long value) { XrLocalDimmingFrameEndInfoMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrLocalDimmingFrameEndInfoMETA#localDimmingMode} field. */ - public XrLocalDimmingFrameEndInfoMETA.Buffer localDimmingMode(@NativeType("XrLocalDimmingModeMETA") int value) { XrLocalDimmingFrameEndInfoMETA.nlocalDimmingMode(address(), value); return this; } + + /** @return the value of the {@link XrLocalDimmingFrameEndInfoMETA#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrLocalDimmingFrameEndInfoMETA.ntype(address()); } + /** @return the value of the {@link XrLocalDimmingFrameEndInfoMETA#next} field. */ + @NativeType("void const *") + public long next() { return XrLocalDimmingFrameEndInfoMETA.nnext(address()); } + /** @return the value of the {@link XrLocalDimmingFrameEndInfoMETA#localDimmingMode} field. */ + @NativeType("XrLocalDimmingModeMETA") + public int localDimmingMode() { return XrLocalDimmingFrameEndInfoMETA.nlocalDimmingMode(address()); } + + /** Sets the specified value to the {@link XrLocalDimmingFrameEndInfoMETA#type} field. */ + public XrLocalDimmingFrameEndInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrLocalDimmingFrameEndInfoMETA.ntype(address(), value); return this; } + /** Sets the {@link METALocalDimming#XR_TYPE_LOCAL_DIMMING_FRAME_END_INFO_META TYPE_LOCAL_DIMMING_FRAME_END_INFO_META} value to the {@link XrLocalDimmingFrameEndInfoMETA#type} field. */ + public XrLocalDimmingFrameEndInfoMETA.Buffer type$Default() { return type(METALocalDimming.XR_TYPE_LOCAL_DIMMING_FRAME_END_INFO_META); } + /** Sets the specified value to the {@link XrLocalDimmingFrameEndInfoMETA#next} field. */ + public XrLocalDimmingFrameEndInfoMETA.Buffer next(@NativeType("void const *") long value) { XrLocalDimmingFrameEndInfoMETA.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrLocalDimmingFrameEndInfoMETA#localDimmingMode} field. */ + public XrLocalDimmingFrameEndInfoMETA.Buffer localDimmingMode(@NativeType("XrLocalDimmingModeMETA") int value) { XrLocalDimmingFrameEndInfoMETA.nlocalDimmingMode(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrMarkerSpaceCreateInfoVARJO.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrMarkerSpaceCreateInfoVARJO.java index 520f39caec..eb5354f693 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrMarkerSpaceCreateInfoVARJO.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrMarkerSpaceCreateInfoVARJO.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 space from a spatial anchor. * @@ -39,8 +39,8 @@ * uint64_t {@link #markerId}; * {@link XrPosef XrPosef} {@link #poseInMarkerSpace}; * } - */ -public class XrMarkerSpaceCreateInfoVARJO extends Struct implements NativeResource { + */ +public class XrMarkerSpaceCreateInfoVARJO extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,35 +50,26 @@ public class XrMarkerSpaceCreateInfoVARJO extends Struct consumer) { consumer.accept(poseInMarkerSpace()); 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()); } + /** unique identifier of the marker. */ + @NativeType("uint64_t") + public long markerId() { return nmarkerId(address()); } + /** an {@link XrPosef} defining the position and orientation of the new space’s origin relative to the marker’s natural origin. */ + public XrPosef poseInMarkerSpace() { return nposeInMarkerSpace(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrMarkerSpaceCreateInfoVARJO type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link VARJOMarkerTracking#XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO TYPE_MARKER_SPACE_CREATE_INFO_VARJO} value to the {@link #type} field. */ + public XrMarkerSpaceCreateInfoVARJO type$Default() { return type(VARJOMarkerTracking.XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO); } + /** Sets the specified value to the {@link #next} field. */ + public XrMarkerSpaceCreateInfoVARJO next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #markerId} field. */ + public XrMarkerSpaceCreateInfoVARJO markerId(@NativeType("uint64_t") long value) { nmarkerId(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #poseInMarkerSpace} field. */ + public XrMarkerSpaceCreateInfoVARJO poseInMarkerSpace(XrPosef value) { nposeInMarkerSpace(address(), value); return this; } + /** Passes the {@link #poseInMarkerSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrMarkerSpaceCreateInfoVARJO poseInMarkerSpace(java.util.function.Consumer consumer) { consumer.accept(poseInMarkerSpace()); return this; } /** Initializes this struct with the specified values. */ public XrMarkerSpaceCreateInfoVARJO set( - int type, - long next, - long markerId, + int type, + long next, + long markerId, XrPosef poseInMarkerSpace - ) { - type(type); - next(next); - markerId(markerId); - poseInMarkerSpace(poseInMarkerSpace); + ) { + type(type); + next(next); + markerId(markerId); + poseInMarkerSpace(poseInMarkerSpace); return this; } @@ -150,29 +141,29 @@ public XrMarkerSpaceCreateInfoVARJO set(XrMarkerSpaceCreateInfoVARJO src) { /** Returns a new {@code XrMarkerSpaceCreateInfoVARJO} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrMarkerSpaceCreateInfoVARJO malloc() { - return new XrMarkerSpaceCreateInfoVARJO(nmemAllocChecked(SIZEOF), null); + return wrap(XrMarkerSpaceCreateInfoVARJO.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrMarkerSpaceCreateInfoVARJO} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrMarkerSpaceCreateInfoVARJO calloc() { - return new XrMarkerSpaceCreateInfoVARJO(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrMarkerSpaceCreateInfoVARJO.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrMarkerSpaceCreateInfoVARJO} instance allocated with {@link BufferUtils}. */ public static XrMarkerSpaceCreateInfoVARJO create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrMarkerSpaceCreateInfoVARJO(memAddress(container), container); + return wrap(XrMarkerSpaceCreateInfoVARJO.class, memAddress(container), container); } /** Returns a new {@code XrMarkerSpaceCreateInfoVARJO} instance for the specified memory address. */ public static XrMarkerSpaceCreateInfoVARJO create(long address) { - return new XrMarkerSpaceCreateInfoVARJO(address, null); + return wrap(XrMarkerSpaceCreateInfoVARJO.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrMarkerSpaceCreateInfoVARJO createSafe(long address) { - return address == NULL ? null : new XrMarkerSpaceCreateInfoVARJO(address, null); + return address == NULL ? null : wrap(XrMarkerSpaceCreateInfoVARJO.class, address); } /** @@ -181,7 +172,7 @@ public static XrMarkerSpaceCreateInfoVARJO createSafe(long address) { * @param capacity the buffer capacity */ public static XrMarkerSpaceCreateInfoVARJO.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -190,7 +181,7 @@ public static XrMarkerSpaceCreateInfoVARJO.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrMarkerSpaceCreateInfoVARJO.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -200,7 +191,7 @@ public static XrMarkerSpaceCreateInfoVARJO.Buffer calloc(int capacity) { */ public static XrMarkerSpaceCreateInfoVARJO.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); } /** @@ -210,13 +201,13 @@ public static XrMarkerSpaceCreateInfoVARJO.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrMarkerSpaceCreateInfoVARJO.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 XrMarkerSpaceCreateInfoVARJO.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -225,7 +216,7 @@ public static XrMarkerSpaceCreateInfoVARJO.Buffer createSafe(long address, int c * @param stack the stack from which to allocate */ public static XrMarkerSpaceCreateInfoVARJO malloc(MemoryStack stack) { - return new XrMarkerSpaceCreateInfoVARJO(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrMarkerSpaceCreateInfoVARJO.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -234,7 +225,7 @@ public static XrMarkerSpaceCreateInfoVARJO malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrMarkerSpaceCreateInfoVARJO calloc(MemoryStack stack) { - return new XrMarkerSpaceCreateInfoVARJO(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrMarkerSpaceCreateInfoVARJO.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -244,7 +235,7 @@ public static XrMarkerSpaceCreateInfoVARJO calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrMarkerSpaceCreateInfoVARJO.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); } /** @@ -254,30 +245,30 @@ public static XrMarkerSpaceCreateInfoVARJO.Buffer malloc(int capacity, MemorySta * @param capacity the buffer capacity */ public static XrMarkerSpaceCreateInfoVARJO.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 + XrMarkerSpaceCreateInfoVARJO.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrMarkerSpaceCreateInfoVARJO.NEXT); } - /** Unsafe version of {@link #markerId}. */ - public static long nmarkerId(long struct) { return UNSAFE.getLong(null, struct + XrMarkerSpaceCreateInfoVARJO.MARKERID); } - /** Unsafe version of {@link #poseInMarkerSpace}. */ - public static XrPosef nposeInMarkerSpace(long struct) { return XrPosef.create(struct + XrMarkerSpaceCreateInfoVARJO.POSEINMARKERSPACE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrMarkerSpaceCreateInfoVARJO.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrMarkerSpaceCreateInfoVARJO.NEXT, value); } - /** Unsafe version of {@link #markerId(long) markerId}. */ - public static void nmarkerId(long struct, long value) { UNSAFE.putLong(null, struct + XrMarkerSpaceCreateInfoVARJO.MARKERID, value); } - /** Unsafe version of {@link #poseInMarkerSpace(XrPosef) poseInMarkerSpace}. */ - public static void nposeInMarkerSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrMarkerSpaceCreateInfoVARJO.POSEINMARKERSPACE, XrPosef.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrMarkerSpaceCreateInfoVARJO.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrMarkerSpaceCreateInfoVARJO.NEXT); } + /** Unsafe version of {@link #markerId}. */ + public static long nmarkerId(long struct) { return UNSAFE.getLong(null, struct + XrMarkerSpaceCreateInfoVARJO.MARKERID); } + /** Unsafe version of {@link #poseInMarkerSpace}. */ + public static XrPosef nposeInMarkerSpace(long struct) { return XrPosef.create(struct + XrMarkerSpaceCreateInfoVARJO.POSEINMARKERSPACE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrMarkerSpaceCreateInfoVARJO.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrMarkerSpaceCreateInfoVARJO.NEXT, value); } + /** Unsafe version of {@link #markerId(long) markerId}. */ + public static void nmarkerId(long struct, long value) { UNSAFE.putLong(null, struct + XrMarkerSpaceCreateInfoVARJO.MARKERID, value); } + /** Unsafe version of {@link #poseInMarkerSpace(XrPosef) poseInMarkerSpace}. */ + public static void nposeInMarkerSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrMarkerSpaceCreateInfoVARJO.POSEINMARKERSPACE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrMarkerSpaceCreateInfoVARJO} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -287,9 +278,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 XrMarkerSpaceCreateInfoVARJO#SIZEOF}, and its mark will be undefined.

        + * by {@link XrMarkerSpaceCreateInfoVARJO#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -314,31 +305,31 @@ protected Buffer self() { protected XrMarkerSpaceCreateInfoVARJO getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrMarkerSpaceCreateInfoVARJO#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrMarkerSpaceCreateInfoVARJO.ntype(address()); } - /** @return the value of the {@link XrMarkerSpaceCreateInfoVARJO#next} field. */ - @NativeType("void const *") - public long next() { return XrMarkerSpaceCreateInfoVARJO.nnext(address()); } - /** @return the value of the {@link XrMarkerSpaceCreateInfoVARJO#markerId} field. */ - @NativeType("uint64_t") - public long markerId() { return XrMarkerSpaceCreateInfoVARJO.nmarkerId(address()); } - /** @return a {@link XrPosef} view of the {@link XrMarkerSpaceCreateInfoVARJO#poseInMarkerSpace} field. */ - public XrPosef poseInMarkerSpace() { return XrMarkerSpaceCreateInfoVARJO.nposeInMarkerSpace(address()); } - - /** Sets the specified value to the {@link XrMarkerSpaceCreateInfoVARJO#type} field. */ - public XrMarkerSpaceCreateInfoVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrMarkerSpaceCreateInfoVARJO.ntype(address(), value); return this; } - /** Sets the {@link VARJOMarkerTracking#XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO TYPE_MARKER_SPACE_CREATE_INFO_VARJO} value to the {@link XrMarkerSpaceCreateInfoVARJO#type} field. */ - public XrMarkerSpaceCreateInfoVARJO.Buffer type$Default() { return type(VARJOMarkerTracking.XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO); } - /** Sets the specified value to the {@link XrMarkerSpaceCreateInfoVARJO#next} field. */ - public XrMarkerSpaceCreateInfoVARJO.Buffer next(@NativeType("void const *") long value) { XrMarkerSpaceCreateInfoVARJO.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrMarkerSpaceCreateInfoVARJO#markerId} field. */ - public XrMarkerSpaceCreateInfoVARJO.Buffer markerId(@NativeType("uint64_t") long value) { XrMarkerSpaceCreateInfoVARJO.nmarkerId(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrMarkerSpaceCreateInfoVARJO#poseInMarkerSpace} field. */ - public XrMarkerSpaceCreateInfoVARJO.Buffer poseInMarkerSpace(XrPosef value) { XrMarkerSpaceCreateInfoVARJO.nposeInMarkerSpace(address(), value); return this; } - /** Passes the {@link XrMarkerSpaceCreateInfoVARJO#poseInMarkerSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrMarkerSpaceCreateInfoVARJO.Buffer poseInMarkerSpace(java.util.function.Consumer consumer) { consumer.accept(poseInMarkerSpace()); return this; } + + /** @return the value of the {@link XrMarkerSpaceCreateInfoVARJO#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrMarkerSpaceCreateInfoVARJO.ntype(address()); } + /** @return the value of the {@link XrMarkerSpaceCreateInfoVARJO#next} field. */ + @NativeType("void const *") + public long next() { return XrMarkerSpaceCreateInfoVARJO.nnext(address()); } + /** @return the value of the {@link XrMarkerSpaceCreateInfoVARJO#markerId} field. */ + @NativeType("uint64_t") + public long markerId() { return XrMarkerSpaceCreateInfoVARJO.nmarkerId(address()); } + /** @return a {@link XrPosef} view of the {@link XrMarkerSpaceCreateInfoVARJO#poseInMarkerSpace} field. */ + public XrPosef poseInMarkerSpace() { return XrMarkerSpaceCreateInfoVARJO.nposeInMarkerSpace(address()); } + + /** Sets the specified value to the {@link XrMarkerSpaceCreateInfoVARJO#type} field. */ + public XrMarkerSpaceCreateInfoVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrMarkerSpaceCreateInfoVARJO.ntype(address(), value); return this; } + /** Sets the {@link VARJOMarkerTracking#XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO TYPE_MARKER_SPACE_CREATE_INFO_VARJO} value to the {@link XrMarkerSpaceCreateInfoVARJO#type} field. */ + public XrMarkerSpaceCreateInfoVARJO.Buffer type$Default() { return type(VARJOMarkerTracking.XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO); } + /** Sets the specified value to the {@link XrMarkerSpaceCreateInfoVARJO#next} field. */ + public XrMarkerSpaceCreateInfoVARJO.Buffer next(@NativeType("void const *") long value) { XrMarkerSpaceCreateInfoVARJO.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrMarkerSpaceCreateInfoVARJO#markerId} field. */ + public XrMarkerSpaceCreateInfoVARJO.Buffer markerId(@NativeType("uint64_t") long value) { XrMarkerSpaceCreateInfoVARJO.nmarkerId(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrMarkerSpaceCreateInfoVARJO#poseInMarkerSpace} field. */ + public XrMarkerSpaceCreateInfoVARJO.Buffer poseInMarkerSpace(XrPosef value) { XrMarkerSpaceCreateInfoVARJO.nposeInMarkerSpace(address(), value); return this; } + /** Passes the {@link XrMarkerSpaceCreateInfoVARJO#poseInMarkerSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrMarkerSpaceCreateInfoVARJO.Buffer poseInMarkerSpace(java.util.function.Consumer consumer) { consumer.accept(poseInMarkerSpace()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrNewSceneComputeInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrNewSceneComputeInfoMSFT.java index dad6e91975..a24b26ce20 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrNewSceneComputeInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrNewSceneComputeInfoMSFT.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.*; + /** * The information to compute a new scene. * @@ -46,8 +46,8 @@ * XrSceneComputeConsistencyMSFT {@link #consistency}; * {@link XrSceneBoundsMSFT XrSceneBoundsMSFT} {@link #bounds}; * } - */ -public class XrNewSceneComputeInfoMSFT extends Struct implements NativeResource { + */ +public class XrNewSceneComputeInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,41 +57,32 @@ public class XrNewSceneComputeInfoMSFT extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - REQUESTEDFEATURECOUNT, - REQUESTEDFEATURES, - CONSISTENCY, - BOUNDS; + TYPE, + NEXT, + REQUESTEDFEATURECOUNT, + REQUESTEDFEATURES, + CONSISTENCY, + BOUNDS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(POINTER_SIZE), + __member(4), __member(XrSceneBoundsMSFT.SIZEOF, XrSceneBoundsMSFT.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - REQUESTEDFEATURECOUNT = layout.offsetof(2); - REQUESTEDFEATURES = layout.offsetof(3); - CONSISTENCY = layout.offsetof(4); - BOUNDS = layout.offsetof(5); - } - - protected XrNewSceneComputeInfoMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrNewSceneComputeInfoMSFT create(long address, @Nullable ByteBuffer container) { - return new XrNewSceneComputeInfoMSFT(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + REQUESTEDFEATURECOUNT = layout.offsetof(2); + REQUESTEDFEATURES = layout.offsetof(3); + CONSISTENCY = layout.offsetof(4); + BOUNDS = layout.offsetof(5); } /** @@ -106,55 +97,55 @@ public XrNewSceneComputeInfoMSFT(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 features. */ - @NativeType("uint32_t") - public int requestedFeatureCount() { return nrequestedFeatureCount(address()); } - /** an array of {@code XrSceneComputeFeatureMSFT}. */ - @NativeType("XrSceneComputeFeatureMSFT const *") - public IntBuffer requestedFeatures() { return nrequestedFeatures(address()); } - /** indicates the requested {@code XrSceneComputeConsistencyMSFT}, trading off speed against the quality of the resulting scene. */ - @NativeType("XrSceneComputeConsistencyMSFT") - public int consistency() { return nconsistency(address()); } - /** an {@link XrSceneBoundsMSFT} representing the culling volume. Scene components entirely outside this volume should culled. */ - public XrSceneBoundsMSFT bounds() { return nbounds(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrNewSceneComputeInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT TYPE_NEW_SCENE_COMPUTE_INFO_MSFT} value to the {@link #type} field. */ - public XrNewSceneComputeInfoMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrNewSceneComputeInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrVisualMeshComputeLodInfoMSFT} value to the {@code next} chain. */ - public XrNewSceneComputeInfoMSFT next(XrVisualMeshComputeLodInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the address of the specified {@link IntBuffer} to the {@link #requestedFeatures} field. */ - public XrNewSceneComputeInfoMSFT requestedFeatures(@NativeType("XrSceneComputeFeatureMSFT const *") IntBuffer value) { nrequestedFeatures(address(), value); return this; } - /** Sets the specified value to the {@link #consistency} field. */ - public XrNewSceneComputeInfoMSFT consistency(@NativeType("XrSceneComputeConsistencyMSFT") int value) { nconsistency(address(), value); return this; } - /** Copies the specified {@link XrSceneBoundsMSFT} to the {@link #bounds} field. */ - public XrNewSceneComputeInfoMSFT bounds(XrSceneBoundsMSFT value) { nbounds(address(), value); return this; } - /** Passes the {@link #bounds} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrNewSceneComputeInfoMSFT bounds(java.util.function.Consumer consumer) { consumer.accept(bounds()); 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 features. */ + @NativeType("uint32_t") + public int requestedFeatureCount() { return nrequestedFeatureCount(address()); } + /** an array of {@code XrSceneComputeFeatureMSFT}. */ + @NativeType("XrSceneComputeFeatureMSFT const *") + public IntBuffer requestedFeatures() { return nrequestedFeatures(address()); } + /** indicates the requested {@code XrSceneComputeConsistencyMSFT}, trading off speed against the quality of the resulting scene. */ + @NativeType("XrSceneComputeConsistencyMSFT") + public int consistency() { return nconsistency(address()); } + /** an {@link XrSceneBoundsMSFT} representing the culling volume. Scene components entirely outside this volume should culled. */ + public XrSceneBoundsMSFT bounds() { return nbounds(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrNewSceneComputeInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT TYPE_NEW_SCENE_COMPUTE_INFO_MSFT} value to the {@link #type} field. */ + public XrNewSceneComputeInfoMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrNewSceneComputeInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrVisualMeshComputeLodInfoMSFT} value to the {@code next} chain. */ + public XrNewSceneComputeInfoMSFT next(XrVisualMeshComputeLodInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the address of the specified {@link IntBuffer} to the {@link #requestedFeatures} field. */ + public XrNewSceneComputeInfoMSFT requestedFeatures(@NativeType("XrSceneComputeFeatureMSFT const *") IntBuffer value) { nrequestedFeatures(address(), value); return this; } + /** Sets the specified value to the {@link #consistency} field. */ + public XrNewSceneComputeInfoMSFT consistency(@NativeType("XrSceneComputeConsistencyMSFT") int value) { nconsistency(address(), value); return this; } + /** Copies the specified {@link XrSceneBoundsMSFT} to the {@link #bounds} field. */ + public XrNewSceneComputeInfoMSFT bounds(XrSceneBoundsMSFT value) { nbounds(address(), value); return this; } + /** Passes the {@link #bounds} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrNewSceneComputeInfoMSFT bounds(java.util.function.Consumer consumer) { consumer.accept(bounds()); return this; } /** Initializes this struct with the specified values. */ public XrNewSceneComputeInfoMSFT set( - int type, - long next, - IntBuffer requestedFeatures, - int consistency, + int type, + long next, + IntBuffer requestedFeatures, + int consistency, XrSceneBoundsMSFT bounds - ) { - type(type); - next(next); - requestedFeatures(requestedFeatures); - consistency(consistency); - bounds(bounds); + ) { + type(type); + next(next); + requestedFeatures(requestedFeatures); + consistency(consistency); + bounds(bounds); return this; } @@ -175,29 +166,29 @@ public XrNewSceneComputeInfoMSFT set(XrNewSceneComputeInfoMSFT src) { /** Returns a new {@code XrNewSceneComputeInfoMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrNewSceneComputeInfoMSFT malloc() { - return new XrNewSceneComputeInfoMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrNewSceneComputeInfoMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrNewSceneComputeInfoMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrNewSceneComputeInfoMSFT calloc() { - return new XrNewSceneComputeInfoMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrNewSceneComputeInfoMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrNewSceneComputeInfoMSFT} instance allocated with {@link BufferUtils}. */ public static XrNewSceneComputeInfoMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrNewSceneComputeInfoMSFT(memAddress(container), container); + return wrap(XrNewSceneComputeInfoMSFT.class, memAddress(container), container); } /** Returns a new {@code XrNewSceneComputeInfoMSFT} instance for the specified memory address. */ public static XrNewSceneComputeInfoMSFT create(long address) { - return new XrNewSceneComputeInfoMSFT(address, null); + return wrap(XrNewSceneComputeInfoMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrNewSceneComputeInfoMSFT createSafe(long address) { - return address == NULL ? null : new XrNewSceneComputeInfoMSFT(address, null); + return address == NULL ? null : wrap(XrNewSceneComputeInfoMSFT.class, address); } /** @@ -206,7 +197,7 @@ public static XrNewSceneComputeInfoMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrNewSceneComputeInfoMSFT.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 XrNewSceneComputeInfoMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrNewSceneComputeInfoMSFT.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 XrNewSceneComputeInfoMSFT.Buffer calloc(int capacity) { */ public static XrNewSceneComputeInfoMSFT.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 XrNewSceneComputeInfoMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrNewSceneComputeInfoMSFT.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 XrNewSceneComputeInfoMSFT.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 XrNewSceneComputeInfoMSFT.Buffer createSafe(long address, int capa * @param stack the stack from which to allocate */ public static XrNewSceneComputeInfoMSFT malloc(MemoryStack stack) { - return new XrNewSceneComputeInfoMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrNewSceneComputeInfoMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -259,7 +250,7 @@ public static XrNewSceneComputeInfoMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrNewSceneComputeInfoMSFT calloc(MemoryStack stack) { - return new XrNewSceneComputeInfoMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrNewSceneComputeInfoMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -269,7 +260,7 @@ public static XrNewSceneComputeInfoMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrNewSceneComputeInfoMSFT.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,36 +270,36 @@ public static XrNewSceneComputeInfoMSFT.Buffer malloc(int capacity, MemoryStack * @param capacity the buffer capacity */ public static XrNewSceneComputeInfoMSFT.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 + XrNewSceneComputeInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrNewSceneComputeInfoMSFT.NEXT); } - /** Unsafe version of {@link #requestedFeatureCount}. */ - public static int nrequestedFeatureCount(long struct) { return UNSAFE.getInt(null, struct + XrNewSceneComputeInfoMSFT.REQUESTEDFEATURECOUNT); } - /** Unsafe version of {@link #requestedFeatures() requestedFeatures}. */ - public static IntBuffer nrequestedFeatures(long struct) { return memIntBuffer(memGetAddress(struct + XrNewSceneComputeInfoMSFT.REQUESTEDFEATURES), nrequestedFeatureCount(struct)); } - /** Unsafe version of {@link #consistency}. */ - public static int nconsistency(long struct) { return UNSAFE.getInt(null, struct + XrNewSceneComputeInfoMSFT.CONSISTENCY); } - /** Unsafe version of {@link #bounds}. */ - public static XrSceneBoundsMSFT nbounds(long struct) { return XrSceneBoundsMSFT.create(struct + XrNewSceneComputeInfoMSFT.BOUNDS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrNewSceneComputeInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrNewSceneComputeInfoMSFT.NEXT, value); } - /** Sets the specified value to the {@code requestedFeatureCount} field of the specified {@code struct}. */ - public static void nrequestedFeatureCount(long struct, int value) { UNSAFE.putInt(null, struct + XrNewSceneComputeInfoMSFT.REQUESTEDFEATURECOUNT, value); } - /** Unsafe version of {@link #requestedFeatures(IntBuffer) requestedFeatures}. */ - public static void nrequestedFeatures(long struct, IntBuffer value) { memPutAddress(struct + XrNewSceneComputeInfoMSFT.REQUESTEDFEATURES, memAddress(value)); nrequestedFeatureCount(struct, value.remaining()); } - /** Unsafe version of {@link #consistency(int) consistency}. */ - public static void nconsistency(long struct, int value) { UNSAFE.putInt(null, struct + XrNewSceneComputeInfoMSFT.CONSISTENCY, value); } - /** Unsafe version of {@link #bounds(XrSceneBoundsMSFT) bounds}. */ - public static void nbounds(long struct, XrSceneBoundsMSFT value) { memCopy(value.address(), struct + XrNewSceneComputeInfoMSFT.BOUNDS, XrSceneBoundsMSFT.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrNewSceneComputeInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrNewSceneComputeInfoMSFT.NEXT); } + /** Unsafe version of {@link #requestedFeatureCount}. */ + public static int nrequestedFeatureCount(long struct) { return UNSAFE.getInt(null, struct + XrNewSceneComputeInfoMSFT.REQUESTEDFEATURECOUNT); } + /** Unsafe version of {@link #requestedFeatures() requestedFeatures}. */ + public static IntBuffer nrequestedFeatures(long struct) { return memIntBuffer(memGetAddress(struct + XrNewSceneComputeInfoMSFT.REQUESTEDFEATURES), nrequestedFeatureCount(struct)); } + /** Unsafe version of {@link #consistency}. */ + public static int nconsistency(long struct) { return UNSAFE.getInt(null, struct + XrNewSceneComputeInfoMSFT.CONSISTENCY); } + /** Unsafe version of {@link #bounds}. */ + public static XrSceneBoundsMSFT nbounds(long struct) { return XrSceneBoundsMSFT.create(struct + XrNewSceneComputeInfoMSFT.BOUNDS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrNewSceneComputeInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrNewSceneComputeInfoMSFT.NEXT, value); } + /** Sets the specified value to the {@code requestedFeatureCount} field of the specified {@code struct}. */ + public static void nrequestedFeatureCount(long struct, int value) { UNSAFE.putInt(null, struct + XrNewSceneComputeInfoMSFT.REQUESTEDFEATURECOUNT, value); } + /** Unsafe version of {@link #requestedFeatures(IntBuffer) requestedFeatures}. */ + public static void nrequestedFeatures(long struct, IntBuffer value) { memPutAddress(struct + XrNewSceneComputeInfoMSFT.REQUESTEDFEATURES, memAddress(value)); nrequestedFeatureCount(struct, value.remaining()); } + /** Unsafe version of {@link #consistency(int) consistency}. */ + public static void nconsistency(long struct, int value) { UNSAFE.putInt(null, struct + XrNewSceneComputeInfoMSFT.CONSISTENCY, value); } + /** Unsafe version of {@link #bounds(XrSceneBoundsMSFT) bounds}. */ + public static void nbounds(long struct, XrSceneBoundsMSFT value) { memCopy(value.address(), struct + XrNewSceneComputeInfoMSFT.BOUNDS, XrSceneBoundsMSFT.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -318,9 +309,9 @@ public static XrNewSceneComputeInfoMSFT.Buffer calloc(int capacity, MemoryStack public static void validate(long struct) { check(memGetAddress(struct + XrNewSceneComputeInfoMSFT.REQUESTEDFEATURES)); XrSceneBoundsMSFT.validate(struct + XrNewSceneComputeInfoMSFT.BOUNDS); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrNewSceneComputeInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -330,9 +321,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 XrNewSceneComputeInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrNewSceneComputeInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -357,41 +348,41 @@ protected Buffer self() { protected XrNewSceneComputeInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrNewSceneComputeInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrNewSceneComputeInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrNewSceneComputeInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrNewSceneComputeInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrNewSceneComputeInfoMSFT#requestedFeatureCount} field. */ - @NativeType("uint32_t") - public int requestedFeatureCount() { return XrNewSceneComputeInfoMSFT.nrequestedFeatureCount(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrNewSceneComputeInfoMSFT#requestedFeatures} field. */ - @NativeType("XrSceneComputeFeatureMSFT const *") - public IntBuffer requestedFeatures() { return XrNewSceneComputeInfoMSFT.nrequestedFeatures(address()); } - /** @return the value of the {@link XrNewSceneComputeInfoMSFT#consistency} field. */ - @NativeType("XrSceneComputeConsistencyMSFT") - public int consistency() { return XrNewSceneComputeInfoMSFT.nconsistency(address()); } - /** @return a {@link XrSceneBoundsMSFT} view of the {@link XrNewSceneComputeInfoMSFT#bounds} field. */ - public XrSceneBoundsMSFT bounds() { return XrNewSceneComputeInfoMSFT.nbounds(address()); } - - /** Sets the specified value to the {@link XrNewSceneComputeInfoMSFT#type} field. */ - public XrNewSceneComputeInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrNewSceneComputeInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT TYPE_NEW_SCENE_COMPUTE_INFO_MSFT} value to the {@link XrNewSceneComputeInfoMSFT#type} field. */ - public XrNewSceneComputeInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT); } - /** Sets the specified value to the {@link XrNewSceneComputeInfoMSFT#next} field. */ - public XrNewSceneComputeInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrNewSceneComputeInfoMSFT.nnext(address(), value); return this; } - /** Prepends the specified {@link XrVisualMeshComputeLodInfoMSFT} value to the {@code next} chain. */ - public XrNewSceneComputeInfoMSFT.Buffer next(XrVisualMeshComputeLodInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrNewSceneComputeInfoMSFT#requestedFeatures} field. */ - public XrNewSceneComputeInfoMSFT.Buffer requestedFeatures(@NativeType("XrSceneComputeFeatureMSFT const *") IntBuffer value) { XrNewSceneComputeInfoMSFT.nrequestedFeatures(address(), value); return this; } - /** Sets the specified value to the {@link XrNewSceneComputeInfoMSFT#consistency} field. */ - public XrNewSceneComputeInfoMSFT.Buffer consistency(@NativeType("XrSceneComputeConsistencyMSFT") int value) { XrNewSceneComputeInfoMSFT.nconsistency(address(), value); return this; } - /** Copies the specified {@link XrSceneBoundsMSFT} to the {@link XrNewSceneComputeInfoMSFT#bounds} field. */ - public XrNewSceneComputeInfoMSFT.Buffer bounds(XrSceneBoundsMSFT value) { XrNewSceneComputeInfoMSFT.nbounds(address(), value); return this; } - /** Passes the {@link XrNewSceneComputeInfoMSFT#bounds} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrNewSceneComputeInfoMSFT.Buffer bounds(java.util.function.Consumer consumer) { consumer.accept(bounds()); return this; } + + /** @return the value of the {@link XrNewSceneComputeInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrNewSceneComputeInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrNewSceneComputeInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrNewSceneComputeInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrNewSceneComputeInfoMSFT#requestedFeatureCount} field. */ + @NativeType("uint32_t") + public int requestedFeatureCount() { return XrNewSceneComputeInfoMSFT.nrequestedFeatureCount(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrNewSceneComputeInfoMSFT#requestedFeatures} field. */ + @NativeType("XrSceneComputeFeatureMSFT const *") + public IntBuffer requestedFeatures() { return XrNewSceneComputeInfoMSFT.nrequestedFeatures(address()); } + /** @return the value of the {@link XrNewSceneComputeInfoMSFT#consistency} field. */ + @NativeType("XrSceneComputeConsistencyMSFT") + public int consistency() { return XrNewSceneComputeInfoMSFT.nconsistency(address()); } + /** @return a {@link XrSceneBoundsMSFT} view of the {@link XrNewSceneComputeInfoMSFT#bounds} field. */ + public XrSceneBoundsMSFT bounds() { return XrNewSceneComputeInfoMSFT.nbounds(address()); } + + /** Sets the specified value to the {@link XrNewSceneComputeInfoMSFT#type} field. */ + public XrNewSceneComputeInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrNewSceneComputeInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT TYPE_NEW_SCENE_COMPUTE_INFO_MSFT} value to the {@link XrNewSceneComputeInfoMSFT#type} field. */ + public XrNewSceneComputeInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT); } + /** Sets the specified value to the {@link XrNewSceneComputeInfoMSFT#next} field. */ + public XrNewSceneComputeInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrNewSceneComputeInfoMSFT.nnext(address(), value); return this; } + /** Prepends the specified {@link XrVisualMeshComputeLodInfoMSFT} value to the {@code next} chain. */ + public XrNewSceneComputeInfoMSFT.Buffer next(XrVisualMeshComputeLodInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrNewSceneComputeInfoMSFT#requestedFeatures} field. */ + public XrNewSceneComputeInfoMSFT.Buffer requestedFeatures(@NativeType("XrSceneComputeFeatureMSFT const *") IntBuffer value) { XrNewSceneComputeInfoMSFT.nrequestedFeatures(address(), value); return this; } + /** Sets the specified value to the {@link XrNewSceneComputeInfoMSFT#consistency} field. */ + public XrNewSceneComputeInfoMSFT.Buffer consistency(@NativeType("XrSceneComputeConsistencyMSFT") int value) { XrNewSceneComputeInfoMSFT.nconsistency(address(), value); return this; } + /** Copies the specified {@link XrSceneBoundsMSFT} to the {@link XrNewSceneComputeInfoMSFT#bounds} field. */ + public XrNewSceneComputeInfoMSFT.Buffer bounds(XrSceneBoundsMSFT value) { XrNewSceneComputeInfoMSFT.nbounds(address(), value); return this; } + /** Passes the {@link XrNewSceneComputeInfoMSFT#bounds} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrNewSceneComputeInfoMSFT.Buffer bounds(java.util.function.Consumer consumer) { consumer.accept(bounds()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset2Df.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset2Df.java index 8f65f84fb5..4feeb21149 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset2Df.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset2Df.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.*; + /** * Float offset in two dimensions. * @@ -33,8 +33,8 @@ * float {@link #x}; * float {@link #y}; * } - */ -public class XrOffset2Df extends Struct implements NativeResource { + */ +public class XrOffset2Df extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -44,29 +44,20 @@ public class XrOffset2Df extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - X, - Y; + X, + Y; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - X = layout.offsetof(0); - Y = layout.offsetof(1); - } - - protected XrOffset2Df(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrOffset2Df create(long address, @Nullable ByteBuffer container) { - return new XrOffset2Df(address, container); + X = layout.offsetof(0); + Y = layout.offsetof(1); } /** @@ -81,24 +72,24 @@ public XrOffset2Df(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the floating-point offset in the x direction. */ - public float x() { return nx(address()); } - /** the floating-point offset in the y direction. */ - public float y() { return ny(address()); } - - /** Sets the specified value to the {@link #x} field. */ - public XrOffset2Df x(float value) { nx(address(), value); return this; } - /** Sets the specified value to the {@link #y} field. */ - public XrOffset2Df y(float value) { ny(address(), value); return this; } + + /** the floating-point offset in the x direction. */ + public float x() { return nx(address()); } + /** the floating-point offset in the y direction. */ + public float y() { return ny(address()); } + + /** Sets the specified value to the {@link #x} field. */ + public XrOffset2Df x(float value) { nx(address(), value); return this; } + /** Sets the specified value to the {@link #y} field. */ + public XrOffset2Df y(float value) { ny(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrOffset2Df set( - float x, + float x, float y - ) { - x(x); - y(y); + ) { + x(x); + y(y); return this; } @@ -119,29 +110,29 @@ public XrOffset2Df set(XrOffset2Df src) { /** Returns a new {@code XrOffset2Df} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrOffset2Df malloc() { - return new XrOffset2Df(nmemAllocChecked(SIZEOF), null); + return wrap(XrOffset2Df.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrOffset2Df} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrOffset2Df calloc() { - return new XrOffset2Df(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrOffset2Df.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrOffset2Df} instance allocated with {@link BufferUtils}. */ public static XrOffset2Df create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrOffset2Df(memAddress(container), container); + return wrap(XrOffset2Df.class, memAddress(container), container); } /** Returns a new {@code XrOffset2Df} instance for the specified memory address. */ public static XrOffset2Df create(long address) { - return new XrOffset2Df(address, null); + return wrap(XrOffset2Df.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrOffset2Df createSafe(long address) { - return address == NULL ? null : new XrOffset2Df(address, null); + return address == NULL ? null : wrap(XrOffset2Df.class, address); } /** @@ -150,7 +141,7 @@ public static XrOffset2Df createSafe(long address) { * @param capacity the buffer capacity */ public static XrOffset2Df.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -159,7 +150,7 @@ public static XrOffset2Df.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrOffset2Df.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -169,7 +160,7 @@ public static XrOffset2Df.Buffer calloc(int capacity) { */ public static XrOffset2Df.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); } /** @@ -179,13 +170,13 @@ public static XrOffset2Df.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrOffset2Df.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 XrOffset2Df.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -194,7 +185,7 @@ public static XrOffset2Df.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrOffset2Df malloc(MemoryStack stack) { - return new XrOffset2Df(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrOffset2Df.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -203,7 +194,7 @@ public static XrOffset2Df malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrOffset2Df calloc(MemoryStack stack) { - return new XrOffset2Df(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrOffset2Df.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -213,7 +204,7 @@ public static XrOffset2Df calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrOffset2Df.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); } /** @@ -223,22 +214,22 @@ public static XrOffset2Df.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrOffset2Df.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 #x}. */ - public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrOffset2Df.X); } - /** Unsafe version of {@link #y}. */ - public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrOffset2Df.Y); } - - /** Unsafe version of {@link #x(float) x}. */ - public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset2Df.X, value); } - /** Unsafe version of {@link #y(float) y}. */ - public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset2Df.Y, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #x}. */ + public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrOffset2Df.X); } + /** Unsafe version of {@link #y}. */ + public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrOffset2Df.Y); } + + /** Unsafe version of {@link #x(float) x}. */ + public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset2Df.X, value); } + /** Unsafe version of {@link #y(float) y}. */ + public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset2Df.Y, value); } + + // ----------------------------------- /** An array of {@link XrOffset2Df} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -248,9 +239,9 @@ public static class Buffer extends StructBuffer implements /** * Creates a new {@code XrOffset2Df.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 XrOffset2Df#SIZEOF}, and its mark will be undefined.

        + * by {@link XrOffset2Df#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -275,16 +266,16 @@ protected Buffer self() { protected XrOffset2Df getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrOffset2Df#x} field. */ - public float x() { return XrOffset2Df.nx(address()); } - /** @return the value of the {@link XrOffset2Df#y} field. */ - public float y() { return XrOffset2Df.ny(address()); } - - /** Sets the specified value to the {@link XrOffset2Df#x} field. */ - public XrOffset2Df.Buffer x(float value) { XrOffset2Df.nx(address(), value); return this; } - /** Sets the specified value to the {@link XrOffset2Df#y} field. */ - public XrOffset2Df.Buffer y(float value) { XrOffset2Df.ny(address(), value); return this; } + + /** @return the value of the {@link XrOffset2Df#x} field. */ + public float x() { return XrOffset2Df.nx(address()); } + /** @return the value of the {@link XrOffset2Df#y} field. */ + public float y() { return XrOffset2Df.ny(address()); } + + /** Sets the specified value to the {@link XrOffset2Df#x} field. */ + public XrOffset2Df.Buffer x(float value) { XrOffset2Df.nx(address(), value); return this; } + /** Sets the specified value to the {@link XrOffset2Df#y} field. */ + public XrOffset2Df.Buffer y(float value) { XrOffset2Df.ny(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset2Di.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset2Di.java index f69f2c7504..299c3362be 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset2Di.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset2Di.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.*; + /** * Offset in two dimensions. * @@ -33,8 +33,8 @@ * int32_t {@link #x}; * int32_t {@link #y}; * } - */ -public class XrOffset2Di extends Struct implements NativeResource { + */ +public class XrOffset2Di extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -44,29 +44,20 @@ public class XrOffset2Di extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - X, - Y; + X, + Y; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - X = layout.offsetof(0); - Y = layout.offsetof(1); - } - - protected XrOffset2Di(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrOffset2Di create(long address, @Nullable ByteBuffer container) { - return new XrOffset2Di(address, container); + X = layout.offsetof(0); + Y = layout.offsetof(1); } /** @@ -81,26 +72,26 @@ public XrOffset2Di(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the integer offset in the x direction. */ - @NativeType("int32_t") - public int x() { return nx(address()); } - /** the integer offset in the y direction. */ - @NativeType("int32_t") - public int y() { return ny(address()); } - - /** Sets the specified value to the {@link #x} field. */ - public XrOffset2Di x(@NativeType("int32_t") int value) { nx(address(), value); return this; } - /** Sets the specified value to the {@link #y} field. */ - public XrOffset2Di y(@NativeType("int32_t") int value) { ny(address(), value); return this; } + + /** the integer offset in the x direction. */ + @NativeType("int32_t") + public int x() { return nx(address()); } + /** the integer offset in the y direction. */ + @NativeType("int32_t") + public int y() { return ny(address()); } + + /** Sets the specified value to the {@link #x} field. */ + public XrOffset2Di x(@NativeType("int32_t") int value) { nx(address(), value); return this; } + /** Sets the specified value to the {@link #y} field. */ + public XrOffset2Di y(@NativeType("int32_t") int value) { ny(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrOffset2Di set( - int x, + int x, int y - ) { - x(x); - y(y); + ) { + x(x); + y(y); return this; } @@ -121,29 +112,29 @@ public XrOffset2Di set(XrOffset2Di src) { /** Returns a new {@code XrOffset2Di} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrOffset2Di malloc() { - return new XrOffset2Di(nmemAllocChecked(SIZEOF), null); + return wrap(XrOffset2Di.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrOffset2Di} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrOffset2Di calloc() { - return new XrOffset2Di(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrOffset2Di.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrOffset2Di} instance allocated with {@link BufferUtils}. */ public static XrOffset2Di create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrOffset2Di(memAddress(container), container); + return wrap(XrOffset2Di.class, memAddress(container), container); } /** Returns a new {@code XrOffset2Di} instance for the specified memory address. */ public static XrOffset2Di create(long address) { - return new XrOffset2Di(address, null); + return wrap(XrOffset2Di.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrOffset2Di createSafe(long address) { - return address == NULL ? null : new XrOffset2Di(address, null); + return address == NULL ? null : wrap(XrOffset2Di.class, address); } /** @@ -152,7 +143,7 @@ public static XrOffset2Di createSafe(long address) { * @param capacity the buffer capacity */ public static XrOffset2Di.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -161,7 +152,7 @@ public static XrOffset2Di.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrOffset2Di.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -171,7 +162,7 @@ public static XrOffset2Di.Buffer calloc(int capacity) { */ public static XrOffset2Di.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); } /** @@ -181,13 +172,13 @@ public static XrOffset2Di.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrOffset2Di.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 XrOffset2Di.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -196,7 +187,7 @@ public static XrOffset2Di.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrOffset2Di malloc(MemoryStack stack) { - return new XrOffset2Di(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrOffset2Di.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -205,7 +196,7 @@ public static XrOffset2Di malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrOffset2Di calloc(MemoryStack stack) { - return new XrOffset2Di(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrOffset2Di.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -215,7 +206,7 @@ public static XrOffset2Di calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrOffset2Di.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); } /** @@ -225,22 +216,22 @@ public static XrOffset2Di.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrOffset2Di.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 #x}. */ - public static int nx(long struct) { return UNSAFE.getInt(null, struct + XrOffset2Di.X); } - /** Unsafe version of {@link #y}. */ - public static int ny(long struct) { return UNSAFE.getInt(null, struct + XrOffset2Di.Y); } - - /** Unsafe version of {@link #x(int) x}. */ - public static void nx(long struct, int value) { UNSAFE.putInt(null, struct + XrOffset2Di.X, value); } - /** Unsafe version of {@link #y(int) y}. */ - public static void ny(long struct, int value) { UNSAFE.putInt(null, struct + XrOffset2Di.Y, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #x}. */ + public static int nx(long struct) { return UNSAFE.getInt(null, struct + XrOffset2Di.X); } + /** Unsafe version of {@link #y}. */ + public static int ny(long struct) { return UNSAFE.getInt(null, struct + XrOffset2Di.Y); } + + /** Unsafe version of {@link #x(int) x}. */ + public static void nx(long struct, int value) { UNSAFE.putInt(null, struct + XrOffset2Di.X, value); } + /** Unsafe version of {@link #y(int) y}. */ + public static void ny(long struct, int value) { UNSAFE.putInt(null, struct + XrOffset2Di.Y, value); } + + // ----------------------------------- /** An array of {@link XrOffset2Di} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -250,9 +241,9 @@ public static class Buffer extends StructBuffer implements /** * Creates a new {@code XrOffset2Di.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 XrOffset2Di#SIZEOF}, and its mark will be undefined.

        + * by {@link XrOffset2Di#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -277,18 +268,18 @@ protected Buffer self() { protected XrOffset2Di getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrOffset2Di#x} field. */ - @NativeType("int32_t") - public int x() { return XrOffset2Di.nx(address()); } - /** @return the value of the {@link XrOffset2Di#y} field. */ - @NativeType("int32_t") - public int y() { return XrOffset2Di.ny(address()); } - - /** Sets the specified value to the {@link XrOffset2Di#x} field. */ - public XrOffset2Di.Buffer x(@NativeType("int32_t") int value) { XrOffset2Di.nx(address(), value); return this; } - /** Sets the specified value to the {@link XrOffset2Di#y} field. */ - public XrOffset2Di.Buffer y(@NativeType("int32_t") int value) { XrOffset2Di.ny(address(), value); return this; } + + /** @return the value of the {@link XrOffset2Di#x} field. */ + @NativeType("int32_t") + public int x() { return XrOffset2Di.nx(address()); } + /** @return the value of the {@link XrOffset2Di#y} field. */ + @NativeType("int32_t") + public int y() { return XrOffset2Di.ny(address()); } + + /** Sets the specified value to the {@link XrOffset2Di#x} field. */ + public XrOffset2Di.Buffer x(@NativeType("int32_t") int value) { XrOffset2Di.nx(address(), value); return this; } + /** Sets the specified value to the {@link XrOffset2Di#y} field. */ + public XrOffset2Di.Buffer y(@NativeType("int32_t") int value) { XrOffset2Di.ny(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset3DfFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset3DfFB.java index 0cbd94b8b4..9872dd2b99 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset3DfFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset3DfFB.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.*; + /** * Represents a point of 3D space. * @@ -40,8 +40,8 @@ * float {@link #y}; * float {@link #z}; * } - */ -public class XrOffset3DfFB extends Struct implements NativeResource { + */ +public class XrOffset3DfFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,32 +51,23 @@ public class XrOffset3DfFB extends Struct implements NativeResour /** The struct member offsets. */ public static final int - X, - Y, - Z; + X, + Y, + Z; static { - Layout layout = __struct( - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - X = layout.offsetof(0); - Y = layout.offsetof(1); - Z = layout.offsetof(2); - } - - protected XrOffset3DfFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrOffset3DfFB create(long address, @Nullable ByteBuffer container) { - return new XrOffset3DfFB(address, container); + X = layout.offsetof(0); + Y = layout.offsetof(1); + Z = layout.offsetof(2); } /** @@ -91,30 +82,30 @@ public XrOffset3DfFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the floating-point offset in the x direction. */ - public float x() { return nx(address()); } - /** the floating-point offset in the y direction. */ - public float y() { return ny(address()); } - /** the floating-point offset in the z direction. */ - public float z() { return nz(address()); } - - /** Sets the specified value to the {@link #x} field. */ - public XrOffset3DfFB x(float value) { nx(address(), value); return this; } - /** Sets the specified value to the {@link #y} field. */ - public XrOffset3DfFB y(float value) { ny(address(), value); return this; } - /** Sets the specified value to the {@link #z} field. */ - public XrOffset3DfFB z(float value) { nz(address(), value); return this; } + + /** the floating-point offset in the x direction. */ + public float x() { return nx(address()); } + /** the floating-point offset in the y direction. */ + public float y() { return ny(address()); } + /** the floating-point offset in the z direction. */ + public float z() { return nz(address()); } + + /** Sets the specified value to the {@link #x} field. */ + public XrOffset3DfFB x(float value) { nx(address(), value); return this; } + /** Sets the specified value to the {@link #y} field. */ + public XrOffset3DfFB y(float value) { ny(address(), value); return this; } + /** Sets the specified value to the {@link #z} field. */ + public XrOffset3DfFB z(float value) { nz(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrOffset3DfFB set( - float x, - float y, + float x, + float y, float z - ) { - x(x); - y(y); - z(z); + ) { + x(x); + y(y); + z(z); return this; } @@ -135,29 +126,29 @@ public XrOffset3DfFB set(XrOffset3DfFB src) { /** Returns a new {@code XrOffset3DfFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrOffset3DfFB malloc() { - return new XrOffset3DfFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrOffset3DfFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrOffset3DfFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrOffset3DfFB calloc() { - return new XrOffset3DfFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrOffset3DfFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrOffset3DfFB} instance allocated with {@link BufferUtils}. */ public static XrOffset3DfFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrOffset3DfFB(memAddress(container), container); + return wrap(XrOffset3DfFB.class, memAddress(container), container); } /** Returns a new {@code XrOffset3DfFB} instance for the specified memory address. */ public static XrOffset3DfFB create(long address) { - return new XrOffset3DfFB(address, null); + return wrap(XrOffset3DfFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrOffset3DfFB createSafe(long address) { - return address == NULL ? null : new XrOffset3DfFB(address, null); + return address == NULL ? null : wrap(XrOffset3DfFB.class, address); } /** @@ -166,7 +157,7 @@ public static XrOffset3DfFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrOffset3DfFB.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 XrOffset3DfFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrOffset3DfFB.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 XrOffset3DfFB.Buffer calloc(int capacity) { */ public static XrOffset3DfFB.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 XrOffset3DfFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrOffset3DfFB.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 XrOffset3DfFB.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 XrOffset3DfFB.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrOffset3DfFB malloc(MemoryStack stack) { - return new XrOffset3DfFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrOffset3DfFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -219,7 +210,7 @@ public static XrOffset3DfFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrOffset3DfFB calloc(MemoryStack stack) { - return new XrOffset3DfFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrOffset3DfFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -229,7 +220,7 @@ public static XrOffset3DfFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrOffset3DfFB.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 XrOffset3DfFB.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrOffset3DfFB.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 #x}. */ - public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrOffset3DfFB.X); } - /** Unsafe version of {@link #y}. */ - public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrOffset3DfFB.Y); } - /** Unsafe version of {@link #z}. */ - public static float nz(long struct) { return UNSAFE.getFloat(null, struct + XrOffset3DfFB.Z); } - - /** Unsafe version of {@link #x(float) x}. */ - public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset3DfFB.X, value); } - /** Unsafe version of {@link #y(float) y}. */ - public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset3DfFB.Y, value); } - /** Unsafe version of {@link #z(float) z}. */ - public static void nz(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset3DfFB.Z, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #x}. */ + public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrOffset3DfFB.X); } + /** Unsafe version of {@link #y}. */ + public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrOffset3DfFB.Y); } + /** Unsafe version of {@link #z}. */ + public static float nz(long struct) { return UNSAFE.getFloat(null, struct + XrOffset3DfFB.Z); } + + /** Unsafe version of {@link #x(float) x}. */ + public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset3DfFB.X, value); } + /** Unsafe version of {@link #y(float) y}. */ + public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset3DfFB.Y, value); } + /** Unsafe version of {@link #z(float) z}. */ + public static void nz(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset3DfFB.Z, value); } + + // ----------------------------------- /** An array of {@link XrOffset3DfFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -268,9 +259,9 @@ public static class Buffer extends StructBuffer implement /** * Creates a new {@code XrOffset3DfFB.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 XrOffset3DfFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrOffset3DfFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -295,20 +286,20 @@ protected Buffer self() { protected XrOffset3DfFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrOffset3DfFB#x} field. */ - public float x() { return XrOffset3DfFB.nx(address()); } - /** @return the value of the {@link XrOffset3DfFB#y} field. */ - public float y() { return XrOffset3DfFB.ny(address()); } - /** @return the value of the {@link XrOffset3DfFB#z} field. */ - public float z() { return XrOffset3DfFB.nz(address()); } - - /** Sets the specified value to the {@link XrOffset3DfFB#x} field. */ - public XrOffset3DfFB.Buffer x(float value) { XrOffset3DfFB.nx(address(), value); return this; } - /** Sets the specified value to the {@link XrOffset3DfFB#y} field. */ - public XrOffset3DfFB.Buffer y(float value) { XrOffset3DfFB.ny(address(), value); return this; } - /** Sets the specified value to the {@link XrOffset3DfFB#z} field. */ - public XrOffset3DfFB.Buffer z(float value) { XrOffset3DfFB.nz(address(), value); return this; } + + /** @return the value of the {@link XrOffset3DfFB#x} field. */ + public float x() { return XrOffset3DfFB.nx(address()); } + /** @return the value of the {@link XrOffset3DfFB#y} field. */ + public float y() { return XrOffset3DfFB.ny(address()); } + /** @return the value of the {@link XrOffset3DfFB#z} field. */ + public float z() { return XrOffset3DfFB.nz(address()); } + + /** Sets the specified value to the {@link XrOffset3DfFB#x} field. */ + public XrOffset3DfFB.Buffer x(float value) { XrOffset3DfFB.nx(address(), value); return this; } + /** Sets the specified value to the {@link XrOffset3DfFB#y} field. */ + public XrOffset3DfFB.Buffer y(float value) { XrOffset3DfFB.ny(address(), value); return this; } + /** Sets the specified value to the {@link XrOffset3DfFB#z} field. */ + public XrOffset3DfFB.Buffer z(float value) { XrOffset3DfFB.nz(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughBrightnessContrastSaturationFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughBrightnessContrastSaturationFB.java index 6086edd268..861d4ee61c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughBrightnessContrastSaturationFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughBrightnessContrastSaturationFB.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.*; + /** * A color adjustment for passthrough layers. * @@ -51,8 +51,8 @@ * float {@link #contrast}; * float {@link #saturation}; * } - */ -public class XrPassthroughBrightnessContrastSaturationFB extends Struct implements NativeResource { + */ +public class XrPassthroughBrightnessContrastSaturationFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -62,38 +62,29 @@ public class XrPassthroughBrightnessContrastSaturationFB extends Struct implements NativeResource { @@ -309,9 +300,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 XrPassthroughBrightnessContrastSaturationFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrPassthroughBrightnessContrastSaturationFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -336,32 +327,32 @@ protected Buffer self() { protected XrPassthroughBrightnessContrastSaturationFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughBrightnessContrastSaturationFB.ntype(address()); } - /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughBrightnessContrastSaturationFB.nnext(address()); } - /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#brightness} field. */ - public float brightness() { return XrPassthroughBrightnessContrastSaturationFB.nbrightness(address()); } - /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#contrast} field. */ - public float contrast() { return XrPassthroughBrightnessContrastSaturationFB.ncontrast(address()); } - /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#saturation} field. */ - public float saturation() { return XrPassthroughBrightnessContrastSaturationFB.nsaturation(address()); } - - /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#type} field. */ - public XrPassthroughBrightnessContrastSaturationFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughBrightnessContrastSaturationFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB} value to the {@link XrPassthroughBrightnessContrastSaturationFB#type} field. */ - public XrPassthroughBrightnessContrastSaturationFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB); } - /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#next} field. */ - public XrPassthroughBrightnessContrastSaturationFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughBrightnessContrastSaturationFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#brightness} field. */ - public XrPassthroughBrightnessContrastSaturationFB.Buffer brightness(float value) { XrPassthroughBrightnessContrastSaturationFB.nbrightness(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#contrast} field. */ - public XrPassthroughBrightnessContrastSaturationFB.Buffer contrast(float value) { XrPassthroughBrightnessContrastSaturationFB.ncontrast(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#saturation} field. */ - public XrPassthroughBrightnessContrastSaturationFB.Buffer saturation(float value) { XrPassthroughBrightnessContrastSaturationFB.nsaturation(address(), value); return this; } + + /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughBrightnessContrastSaturationFB.ntype(address()); } + /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughBrightnessContrastSaturationFB.nnext(address()); } + /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#brightness} field. */ + public float brightness() { return XrPassthroughBrightnessContrastSaturationFB.nbrightness(address()); } + /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#contrast} field. */ + public float contrast() { return XrPassthroughBrightnessContrastSaturationFB.ncontrast(address()); } + /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#saturation} field. */ + public float saturation() { return XrPassthroughBrightnessContrastSaturationFB.nsaturation(address()); } + + /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#type} field. */ + public XrPassthroughBrightnessContrastSaturationFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughBrightnessContrastSaturationFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB} value to the {@link XrPassthroughBrightnessContrastSaturationFB#type} field. */ + public XrPassthroughBrightnessContrastSaturationFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB); } + /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#next} field. */ + public XrPassthroughBrightnessContrastSaturationFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughBrightnessContrastSaturationFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#brightness} field. */ + public XrPassthroughBrightnessContrastSaturationFB.Buffer brightness(float value) { XrPassthroughBrightnessContrastSaturationFB.nbrightness(address(), value); return this; } + /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#contrast} field. */ + public XrPassthroughBrightnessContrastSaturationFB.Buffer contrast(float value) { XrPassthroughBrightnessContrastSaturationFB.ncontrast(address(), value); return this; } + /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#saturation} field. */ + public XrPassthroughBrightnessContrastSaturationFB.Buffer saturation(float value) { XrPassthroughBrightnessContrastSaturationFB.nsaturation(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorHTC.java index 6d32443b48..0bd502b227 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorHTC.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 alpha value of the passthrough. * @@ -42,8 +42,8 @@ * void const * {@link #next}; * float {@link #alpha}; * } - */ -public class XrPassthroughColorHTC extends Struct implements NativeResource { + */ +public class XrPassthroughColorHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,32 +53,23 @@ public class XrPassthroughColorHTC extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - ALPHA; + TYPE, + NEXT, + ALPHA; 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); - ALPHA = layout.offsetof(2); - } - - protected XrPassthroughColorHTC(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrPassthroughColorHTC create(long address, @Nullable ByteBuffer container) { - return new XrPassthroughColorHTC(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + ALPHA = layout.offsetof(2); } /** @@ -93,34 +84,34 @@ public XrPassthroughColorHTC(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 alpha value of the passthrough in the range [0, 1]. */ - public float alpha() { return nalpha(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrPassthroughColorHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_COLOR_HTC TYPE_PASSTHROUGH_COLOR_HTC} value to the {@link #type} field. */ - public XrPassthroughColorHTC type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_COLOR_HTC); } - /** Sets the specified value to the {@link #next} field. */ - public XrPassthroughColorHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #alpha} field. */ - public XrPassthroughColorHTC alpha(float value) { nalpha(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 alpha value of the passthrough in the range [0, 1]. */ + public float alpha() { return nalpha(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrPassthroughColorHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_COLOR_HTC TYPE_PASSTHROUGH_COLOR_HTC} value to the {@link #type} field. */ + public XrPassthroughColorHTC type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_COLOR_HTC); } + /** Sets the specified value to the {@link #next} field. */ + public XrPassthroughColorHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #alpha} field. */ + public XrPassthroughColorHTC alpha(float value) { nalpha(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrPassthroughColorHTC set( - int type, - long next, + int type, + long next, float alpha - ) { - type(type); - next(next); - alpha(alpha); + ) { + type(type); + next(next); + alpha(alpha); return this; } @@ -141,29 +132,29 @@ public XrPassthroughColorHTC set(XrPassthroughColorHTC src) { /** Returns a new {@code XrPassthroughColorHTC} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrPassthroughColorHTC malloc() { - return new XrPassthroughColorHTC(nmemAllocChecked(SIZEOF), null); + return wrap(XrPassthroughColorHTC.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrPassthroughColorHTC} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrPassthroughColorHTC calloc() { - return new XrPassthroughColorHTC(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrPassthroughColorHTC.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrPassthroughColorHTC} instance allocated with {@link BufferUtils}. */ public static XrPassthroughColorHTC create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrPassthroughColorHTC(memAddress(container), container); + return wrap(XrPassthroughColorHTC.class, memAddress(container), container); } /** Returns a new {@code XrPassthroughColorHTC} instance for the specified memory address. */ public static XrPassthroughColorHTC create(long address) { - return new XrPassthroughColorHTC(address, null); + return wrap(XrPassthroughColorHTC.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrPassthroughColorHTC createSafe(long address) { - return address == NULL ? null : new XrPassthroughColorHTC(address, null); + return address == NULL ? null : wrap(XrPassthroughColorHTC.class, address); } /** @@ -172,7 +163,7 @@ public static XrPassthroughColorHTC createSafe(long address) { * @param capacity the buffer capacity */ public static XrPassthroughColorHTC.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 XrPassthroughColorHTC.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrPassthroughColorHTC.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 XrPassthroughColorHTC.Buffer calloc(int capacity) { */ public static XrPassthroughColorHTC.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 XrPassthroughColorHTC.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrPassthroughColorHTC.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 XrPassthroughColorHTC.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 XrPassthroughColorHTC.Buffer createSafe(long address, int capacity * @param stack the stack from which to allocate */ public static XrPassthroughColorHTC malloc(MemoryStack stack) { - return new XrPassthroughColorHTC(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrPassthroughColorHTC.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -225,7 +216,7 @@ public static XrPassthroughColorHTC malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrPassthroughColorHTC calloc(MemoryStack stack) { - return new XrPassthroughColorHTC(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrPassthroughColorHTC.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -235,7 +226,7 @@ public static XrPassthroughColorHTC calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrPassthroughColorHTC.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 XrPassthroughColorHTC.Buffer malloc(int capacity, MemoryStack stac * @param capacity the buffer capacity */ public static XrPassthroughColorHTC.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 + XrPassthroughColorHTC.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughColorHTC.NEXT); } - /** Unsafe version of {@link #alpha}. */ - public static float nalpha(long struct) { return UNSAFE.getFloat(null, struct + XrPassthroughColorHTC.ALPHA); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughColorHTC.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughColorHTC.NEXT, value); } - /** Unsafe version of {@link #alpha(float) alpha}. */ - public static void nalpha(long struct, float value) { UNSAFE.putFloat(null, struct + XrPassthroughColorHTC.ALPHA, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughColorHTC.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughColorHTC.NEXT); } + /** Unsafe version of {@link #alpha}. */ + public static float nalpha(long struct) { return UNSAFE.getFloat(null, struct + XrPassthroughColorHTC.ALPHA); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughColorHTC.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughColorHTC.NEXT, value); } + /** Unsafe version of {@link #alpha(float) alpha}. */ + public static void nalpha(long struct, float value) { UNSAFE.putFloat(null, struct + XrPassthroughColorHTC.ALPHA, value); } + + // ----------------------------------- /** An array of {@link XrPassthroughColorHTC} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -274,9 +265,9 @@ public static class Buffer extends StructBuffer i /** * Creates a new {@code XrPassthroughColorHTC.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 XrPassthroughColorHTC#SIZEOF}, and its mark will be undefined.

        + * by {@link XrPassthroughColorHTC#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -301,24 +292,24 @@ protected Buffer self() { protected XrPassthroughColorHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPassthroughColorHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughColorHTC.ntype(address()); } - /** @return the value of the {@link XrPassthroughColorHTC#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughColorHTC.nnext(address()); } - /** @return the value of the {@link XrPassthroughColorHTC#alpha} field. */ - public float alpha() { return XrPassthroughColorHTC.nalpha(address()); } - - /** Sets the specified value to the {@link XrPassthroughColorHTC#type} field. */ - public XrPassthroughColorHTC.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughColorHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_COLOR_HTC TYPE_PASSTHROUGH_COLOR_HTC} value to the {@link XrPassthroughColorHTC#type} field. */ - public XrPassthroughColorHTC.Buffer type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_COLOR_HTC); } - /** Sets the specified value to the {@link XrPassthroughColorHTC#next} field. */ - public XrPassthroughColorHTC.Buffer next(@NativeType("void const *") long value) { XrPassthroughColorHTC.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughColorHTC#alpha} field. */ - public XrPassthroughColorHTC.Buffer alpha(float value) { XrPassthroughColorHTC.nalpha(address(), value); return this; } + + /** @return the value of the {@link XrPassthroughColorHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughColorHTC.ntype(address()); } + /** @return the value of the {@link XrPassthroughColorHTC#next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughColorHTC.nnext(address()); } + /** @return the value of the {@link XrPassthroughColorHTC#alpha} field. */ + public float alpha() { return XrPassthroughColorHTC.nalpha(address()); } + + /** Sets the specified value to the {@link XrPassthroughColorHTC#type} field. */ + public XrPassthroughColorHTC.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughColorHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_COLOR_HTC TYPE_PASSTHROUGH_COLOR_HTC} value to the {@link XrPassthroughColorHTC#type} field. */ + public XrPassthroughColorHTC.Buffer type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_COLOR_HTC); } + /** Sets the specified value to the {@link XrPassthroughColorHTC#next} field. */ + public XrPassthroughColorHTC.Buffer next(@NativeType("void const *") long value) { XrPassthroughColorHTC.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrPassthroughColorHTC#alpha} field. */ + public XrPassthroughColorHTC.Buffer alpha(float value) { XrPassthroughColorHTC.nalpha(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapMonoToMonoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapMonoToMonoFB.java index 680d1e51b9..7ea0c09898 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapMonoToMonoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapMonoToMonoFB.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.FBPassthrough.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.FBPassthrough.*; + /** * A layer color map. * @@ -43,8 +43,8 @@ * void const * {@link #next}; * uint8_t {@link #textureColorMap}[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]; * } - */ -public class XrPassthroughColorMapMonoToMonoFB extends Struct implements NativeResource { + */ +public class XrPassthroughColorMapMonoToMonoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,32 +54,23 @@ public class XrPassthroughColorMapMonoToMonoFB extends Struct implements NativeResource { @@ -292,9 +283,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 XrPassthroughColorMapMonoToMonoFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrPassthroughColorMapMonoToMonoFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -319,30 +310,30 @@ protected Buffer self() { protected XrPassthroughColorMapMonoToMonoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPassthroughColorMapMonoToMonoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughColorMapMonoToMonoFB.ntype(address()); } - /** @return the value of the {@link XrPassthroughColorMapMonoToMonoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughColorMapMonoToMonoFB.nnext(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrPassthroughColorMapMonoToMonoFB#textureColorMap} field. */ - @NativeType("uint8_t[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") - public ByteBuffer textureColorMap() { return XrPassthroughColorMapMonoToMonoFB.ntextureColorMap(address()); } - /** @return the value at the specified index of the {@link XrPassthroughColorMapMonoToMonoFB#textureColorMap} field. */ - @NativeType("uint8_t") - public byte textureColorMap(int index) { return XrPassthroughColorMapMonoToMonoFB.ntextureColorMap(address(), index); } - - /** Sets the specified value to the {@link XrPassthroughColorMapMonoToMonoFB#type} field. */ - public XrPassthroughColorMapMonoToMonoFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughColorMapMonoToMonoFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB} value to the {@link XrPassthroughColorMapMonoToMonoFB#type} field. */ - public XrPassthroughColorMapMonoToMonoFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB); } - /** Sets the specified value to the {@link XrPassthroughColorMapMonoToMonoFB#next} field. */ - public XrPassthroughColorMapMonoToMonoFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughColorMapMonoToMonoFB.nnext(address(), value); return this; } - /** Copies the specified {@link ByteBuffer} to the {@link XrPassthroughColorMapMonoToMonoFB#textureColorMap} field. */ - public XrPassthroughColorMapMonoToMonoFB.Buffer textureColorMap(@NativeType("uint8_t[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") ByteBuffer value) { XrPassthroughColorMapMonoToMonoFB.ntextureColorMap(address(), value); return this; } - /** Sets the specified value at the specified index of the {@link XrPassthroughColorMapMonoToMonoFB#textureColorMap} field. */ - public XrPassthroughColorMapMonoToMonoFB.Buffer textureColorMap(int index, @NativeType("uint8_t") byte value) { XrPassthroughColorMapMonoToMonoFB.ntextureColorMap(address(), index, value); return this; } + + /** @return the value of the {@link XrPassthroughColorMapMonoToMonoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughColorMapMonoToMonoFB.ntype(address()); } + /** @return the value of the {@link XrPassthroughColorMapMonoToMonoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughColorMapMonoToMonoFB.nnext(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrPassthroughColorMapMonoToMonoFB#textureColorMap} field. */ + @NativeType("uint8_t[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") + public ByteBuffer textureColorMap() { return XrPassthroughColorMapMonoToMonoFB.ntextureColorMap(address()); } + /** @return the value at the specified index of the {@link XrPassthroughColorMapMonoToMonoFB#textureColorMap} field. */ + @NativeType("uint8_t") + public byte textureColorMap(int index) { return XrPassthroughColorMapMonoToMonoFB.ntextureColorMap(address(), index); } + + /** Sets the specified value to the {@link XrPassthroughColorMapMonoToMonoFB#type} field. */ + public XrPassthroughColorMapMonoToMonoFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughColorMapMonoToMonoFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB} value to the {@link XrPassthroughColorMapMonoToMonoFB#type} field. */ + public XrPassthroughColorMapMonoToMonoFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB); } + /** Sets the specified value to the {@link XrPassthroughColorMapMonoToMonoFB#next} field. */ + public XrPassthroughColorMapMonoToMonoFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughColorMapMonoToMonoFB.nnext(address(), value); return this; } + /** Copies the specified {@link ByteBuffer} to the {@link XrPassthroughColorMapMonoToMonoFB#textureColorMap} field. */ + public XrPassthroughColorMapMonoToMonoFB.Buffer textureColorMap(@NativeType("uint8_t[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") ByteBuffer value) { XrPassthroughColorMapMonoToMonoFB.ntextureColorMap(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link XrPassthroughColorMapMonoToMonoFB#textureColorMap} field. */ + public XrPassthroughColorMapMonoToMonoFB.Buffer textureColorMap(int index, @NativeType("uint8_t") byte value) { XrPassthroughColorMapMonoToMonoFB.ntextureColorMap(address(), index, value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapMonoToRgbaFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapMonoToRgbaFB.java index 4b35dbfc20..d6c442fbb8 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapMonoToRgbaFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapMonoToRgbaFB.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.FBPassthrough.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.FBPassthrough.*; + /** * A layer color map. * @@ -47,8 +47,8 @@ * void const * {@link #next}; * {@link XrColor4f XrColor4f} {@link #textureColorMap}[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]; * } - */ -public class XrPassthroughColorMapMonoToRgbaFB extends Struct implements NativeResource { + */ +public class XrPassthroughColorMapMonoToRgbaFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -58,32 +58,23 @@ public class XrPassthroughColorMapMonoToRgbaFB extends Struct consumer) { consumer.accept(textureColorMap()); return this; } - /** Passes the element at {@code index} of the {@link #textureColorMap} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughColorMapMonoToRgbaFB textureColorMap(int index, java.util.function.Consumer consumer) { consumer.accept(textureColorMap(index)); 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()); } + /** an array of {@link XrColor4f} colors to which the passthrough imagery luminance values are mapped. */ + @NativeType("XrColor4f[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") + public XrColor4f.Buffer textureColorMap() { return ntextureColorMap(address()); } + /** an array of {@link XrColor4f} colors to which the passthrough imagery luminance values are mapped. */ + public XrColor4f textureColorMap(int index) { return ntextureColorMap(address(), index); } + + /** Sets the specified value to the {@link #type} field. */ + public XrPassthroughColorMapMonoToRgbaFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB} value to the {@link #type} field. */ + public XrPassthroughColorMapMonoToRgbaFB type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrPassthroughColorMapMonoToRgbaFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrColor4f.Buffer} to the {@link #textureColorMap} field. */ + public XrPassthroughColorMapMonoToRgbaFB textureColorMap(@NativeType("XrColor4f[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") XrColor4f.Buffer value) { ntextureColorMap(address(), value); return this; } + /** Copies the specified {@link XrColor4f} at the specified index of the {@link #textureColorMap} field. */ + public XrPassthroughColorMapMonoToRgbaFB textureColorMap(int index, XrColor4f value) { ntextureColorMap(address(), index, value); return this; } + /** Passes the {@link #textureColorMap} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughColorMapMonoToRgbaFB textureColorMap(java.util.function.Consumer consumer) { consumer.accept(textureColorMap()); return this; } + /** Passes the element at {@code index} of the {@link #textureColorMap} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughColorMapMonoToRgbaFB textureColorMap(int index, java.util.function.Consumer consumer) { consumer.accept(textureColorMap(index)); return this; } /** Initializes this struct with the specified values. */ public XrPassthroughColorMapMonoToRgbaFB set( - int type, - long next, + int type, + long next, XrColor4f.Buffer textureColorMap - ) { - type(type); - next(next); - textureColorMap(textureColorMap); + ) { + type(type); + next(next); + textureColorMap(textureColorMap); return this; } @@ -155,29 +146,29 @@ public XrPassthroughColorMapMonoToRgbaFB set(XrPassthroughColorMapMonoToRgbaFB s /** Returns a new {@code XrPassthroughColorMapMonoToRgbaFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrPassthroughColorMapMonoToRgbaFB malloc() { - return new XrPassthroughColorMapMonoToRgbaFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrPassthroughColorMapMonoToRgbaFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrPassthroughColorMapMonoToRgbaFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrPassthroughColorMapMonoToRgbaFB calloc() { - return new XrPassthroughColorMapMonoToRgbaFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrPassthroughColorMapMonoToRgbaFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrPassthroughColorMapMonoToRgbaFB} instance allocated with {@link BufferUtils}. */ public static XrPassthroughColorMapMonoToRgbaFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrPassthroughColorMapMonoToRgbaFB(memAddress(container), container); + return wrap(XrPassthroughColorMapMonoToRgbaFB.class, memAddress(container), container); } /** Returns a new {@code XrPassthroughColorMapMonoToRgbaFB} instance for the specified memory address. */ public static XrPassthroughColorMapMonoToRgbaFB create(long address) { - return new XrPassthroughColorMapMonoToRgbaFB(address, null); + return wrap(XrPassthroughColorMapMonoToRgbaFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrPassthroughColorMapMonoToRgbaFB createSafe(long address) { - return address == NULL ? null : new XrPassthroughColorMapMonoToRgbaFB(address, null); + return address == NULL ? null : wrap(XrPassthroughColorMapMonoToRgbaFB.class, address); } /** @@ -186,7 +177,7 @@ public static XrPassthroughColorMapMonoToRgbaFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrPassthroughColorMapMonoToRgbaFB.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 XrPassthroughColorMapMonoToRgbaFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrPassthroughColorMapMonoToRgbaFB.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 XrPassthroughColorMapMonoToRgbaFB.Buffer calloc(int capacity) { */ public static XrPassthroughColorMapMonoToRgbaFB.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 XrPassthroughColorMapMonoToRgbaFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrPassthroughColorMapMonoToRgbaFB.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 XrPassthroughColorMapMonoToRgbaFB.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 XrPassthroughColorMapMonoToRgbaFB.Buffer createSafe(long address, * @param stack the stack from which to allocate */ public static XrPassthroughColorMapMonoToRgbaFB malloc(MemoryStack stack) { - return new XrPassthroughColorMapMonoToRgbaFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrPassthroughColorMapMonoToRgbaFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -239,7 +230,7 @@ public static XrPassthroughColorMapMonoToRgbaFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrPassthroughColorMapMonoToRgbaFB calloc(MemoryStack stack) { - return new XrPassthroughColorMapMonoToRgbaFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrPassthroughColorMapMonoToRgbaFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -249,7 +240,7 @@ public static XrPassthroughColorMapMonoToRgbaFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrPassthroughColorMapMonoToRgbaFB.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,37 +250,37 @@ public static XrPassthroughColorMapMonoToRgbaFB.Buffer malloc(int capacity, Memo * @param capacity the buffer capacity */ public static XrPassthroughColorMapMonoToRgbaFB.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 + XrPassthroughColorMapMonoToRgbaFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughColorMapMonoToRgbaFB.NEXT); } + /** Unsafe version of {@link #textureColorMap}. */ + public static XrColor4f.Buffer ntextureColorMap(long struct) { return XrColor4f.create(struct + XrPassthroughColorMapMonoToRgbaFB.TEXTURECOLORMAP, XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB); } + /** Unsafe version of {@link #textureColorMap(int) textureColorMap}. */ + public static XrColor4f ntextureColorMap(long struct, int index) { + return XrColor4f.create(struct + XrPassthroughColorMapMonoToRgbaFB.TEXTURECOLORMAP + check(index, XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB) * XrColor4f.SIZEOF); + } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughColorMapMonoToRgbaFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughColorMapMonoToRgbaFB.NEXT, value); } + /** Unsafe version of {@link #textureColorMap(XrColor4f.Buffer) textureColorMap}. */ + public static void ntextureColorMap(long struct, XrColor4f.Buffer value) { + if (CHECKS) { checkGT(value, XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB); } + memCopy(value.address(), struct + XrPassthroughColorMapMonoToRgbaFB.TEXTURECOLORMAP, value.remaining() * XrColor4f.SIZEOF); + } + /** Unsafe version of {@link #textureColorMap(int, XrColor4f) textureColorMap}. */ + public static void ntextureColorMap(long struct, int index, XrColor4f value) { + memCopy(value.address(), struct + XrPassthroughColorMapMonoToRgbaFB.TEXTURECOLORMAP + check(index, XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB) * XrColor4f.SIZEOF, XrColor4f.SIZEOF); } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughColorMapMonoToRgbaFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughColorMapMonoToRgbaFB.NEXT); } - /** Unsafe version of {@link #textureColorMap}. */ - public static XrColor4f.Buffer ntextureColorMap(long struct) { return XrColor4f.create(struct + XrPassthroughColorMapMonoToRgbaFB.TEXTURECOLORMAP, XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB); } - /** Unsafe version of {@link #textureColorMap(int) textureColorMap}. */ - public static XrColor4f ntextureColorMap(long struct, int index) { - return XrColor4f.create(struct + XrPassthroughColorMapMonoToRgbaFB.TEXTURECOLORMAP + check(index, XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB) * XrColor4f.SIZEOF); - } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughColorMapMonoToRgbaFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughColorMapMonoToRgbaFB.NEXT, value); } - /** Unsafe version of {@link #textureColorMap(XrColor4f.Buffer) textureColorMap}. */ - public static void ntextureColorMap(long struct, XrColor4f.Buffer value) { - if (CHECKS) { checkGT(value, XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB); } - memCopy(value.address(), struct + XrPassthroughColorMapMonoToRgbaFB.TEXTURECOLORMAP, value.remaining() * XrColor4f.SIZEOF); - } - /** Unsafe version of {@link #textureColorMap(int, XrColor4f) textureColorMap}. */ - public static void ntextureColorMap(long struct, int index, XrColor4f value) { - memCopy(value.address(), struct + XrPassthroughColorMapMonoToRgbaFB.TEXTURECOLORMAP + check(index, XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB) * XrColor4f.SIZEOF, XrColor4f.SIZEOF); - } - - // ----------------------------------- /** An array of {@link XrPassthroughColorMapMonoToRgbaFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -299,9 +290,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 XrPassthroughColorMapMonoToRgbaFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrPassthroughColorMapMonoToRgbaFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -326,33 +317,33 @@ protected Buffer self() { protected XrPassthroughColorMapMonoToRgbaFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPassthroughColorMapMonoToRgbaFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughColorMapMonoToRgbaFB.ntype(address()); } - /** @return the value of the {@link XrPassthroughColorMapMonoToRgbaFB#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughColorMapMonoToRgbaFB.nnext(address()); } - /** @return a {@link XrColor4f}.Buffer view of the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field. */ - @NativeType("XrColor4f[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") - public XrColor4f.Buffer textureColorMap() { return XrPassthroughColorMapMonoToRgbaFB.ntextureColorMap(address()); } - /** @return a {@link XrColor4f} view of the struct at the specified index of the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field. */ - public XrColor4f textureColorMap(int index) { return XrPassthroughColorMapMonoToRgbaFB.ntextureColorMap(address(), index); } - - /** Sets the specified value to the {@link XrPassthroughColorMapMonoToRgbaFB#type} field. */ - public XrPassthroughColorMapMonoToRgbaFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughColorMapMonoToRgbaFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB} value to the {@link XrPassthroughColorMapMonoToRgbaFB#type} field. */ - public XrPassthroughColorMapMonoToRgbaFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB); } - /** Sets the specified value to the {@link XrPassthroughColorMapMonoToRgbaFB#next} field. */ - public XrPassthroughColorMapMonoToRgbaFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughColorMapMonoToRgbaFB.nnext(address(), value); return this; } - /** Copies the specified {@link XrColor4f.Buffer} to the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field. */ - public XrPassthroughColorMapMonoToRgbaFB.Buffer textureColorMap(@NativeType("XrColor4f[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") XrColor4f.Buffer value) { XrPassthroughColorMapMonoToRgbaFB.ntextureColorMap(address(), value); return this; } - /** Copies the specified {@link XrColor4f} at the specified index of the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field. */ - public XrPassthroughColorMapMonoToRgbaFB.Buffer textureColorMap(int index, XrColor4f value) { XrPassthroughColorMapMonoToRgbaFB.ntextureColorMap(address(), index, value); return this; } - /** Passes the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughColorMapMonoToRgbaFB.Buffer textureColorMap(java.util.function.Consumer consumer) { consumer.accept(textureColorMap()); return this; } - /** Passes the element at {@code index} of the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughColorMapMonoToRgbaFB.Buffer textureColorMap(int index, java.util.function.Consumer consumer) { consumer.accept(textureColorMap(index)); return this; } + + /** @return the value of the {@link XrPassthroughColorMapMonoToRgbaFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughColorMapMonoToRgbaFB.ntype(address()); } + /** @return the value of the {@link XrPassthroughColorMapMonoToRgbaFB#next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughColorMapMonoToRgbaFB.nnext(address()); } + /** @return a {@link XrColor4f}.Buffer view of the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field. */ + @NativeType("XrColor4f[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") + public XrColor4f.Buffer textureColorMap() { return XrPassthroughColorMapMonoToRgbaFB.ntextureColorMap(address()); } + /** @return a {@link XrColor4f} view of the struct at the specified index of the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field. */ + public XrColor4f textureColorMap(int index) { return XrPassthroughColorMapMonoToRgbaFB.ntextureColorMap(address(), index); } + + /** Sets the specified value to the {@link XrPassthroughColorMapMonoToRgbaFB#type} field. */ + public XrPassthroughColorMapMonoToRgbaFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughColorMapMonoToRgbaFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB} value to the {@link XrPassthroughColorMapMonoToRgbaFB#type} field. */ + public XrPassthroughColorMapMonoToRgbaFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB); } + /** Sets the specified value to the {@link XrPassthroughColorMapMonoToRgbaFB#next} field. */ + public XrPassthroughColorMapMonoToRgbaFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughColorMapMonoToRgbaFB.nnext(address(), value); return this; } + /** Copies the specified {@link XrColor4f.Buffer} to the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field. */ + public XrPassthroughColorMapMonoToRgbaFB.Buffer textureColorMap(@NativeType("XrColor4f[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") XrColor4f.Buffer value) { XrPassthroughColorMapMonoToRgbaFB.ntextureColorMap(address(), value); return this; } + /** Copies the specified {@link XrColor4f} at the specified index of the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field. */ + public XrPassthroughColorMapMonoToRgbaFB.Buffer textureColorMap(int index, XrColor4f value) { XrPassthroughColorMapMonoToRgbaFB.ntextureColorMap(address(), index, value); return this; } + /** Passes the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughColorMapMonoToRgbaFB.Buffer textureColorMap(java.util.function.Consumer consumer) { consumer.accept(textureColorMap()); return this; } + /** Passes the element at {@code index} of the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughColorMapMonoToRgbaFB.Buffer textureColorMap(int index, java.util.function.Consumer consumer) { consumer.accept(textureColorMap(index)); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughCreateInfoFB.java index 1cb42010a5..76d0837257 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughCreateInfoFB.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.*; + /** * A create structure for passthrough. * @@ -48,8 +48,8 @@ * void const * next; * XrPassthroughFlagsFB flags; * } - */ -public class XrPassthroughCreateInfoFB extends Struct implements NativeResource { + */ +public class XrPassthroughCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -59,32 +59,23 @@ public class XrPassthroughCreateInfoFB extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - FLAGS; + TYPE, + NEXT, + FLAGS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - FLAGS = layout.offsetof(2); - } - - protected XrPassthroughCreateInfoFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrPassthroughCreateInfoFB create(long address, @Nullable ByteBuffer container) { - return new XrPassthroughCreateInfoFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + FLAGS = layout.offsetof(2); } /** @@ -99,35 +90,35 @@ public XrPassthroughCreateInfoFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** @return the value of the {@code flags} field. */ - @NativeType("XrPassthroughFlagsFB") - public long flags() { return nflags(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrPassthroughCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_CREATE_INFO_FB TYPE_PASSTHROUGH_CREATE_INFO_FB} value to the {@code type} field. */ - public XrPassthroughCreateInfoFB type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_CREATE_INFO_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrPassthroughCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@code flags} field. */ - public XrPassthroughCreateInfoFB flags(@NativeType("XrPassthroughFlagsFB") long value) { nflags(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** @return the value of the {@code flags} field. */ + @NativeType("XrPassthroughFlagsFB") + public long flags() { return nflags(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrPassthroughCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_CREATE_INFO_FB TYPE_PASSTHROUGH_CREATE_INFO_FB} value to the {@code type} field. */ + public XrPassthroughCreateInfoFB type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_CREATE_INFO_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrPassthroughCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@code flags} field. */ + public XrPassthroughCreateInfoFB flags(@NativeType("XrPassthroughFlagsFB") long value) { nflags(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrPassthroughCreateInfoFB set( - int type, - long next, + int type, + long next, long flags - ) { - type(type); - next(next); - flags(flags); + ) { + type(type); + next(next); + flags(flags); return this; } @@ -148,29 +139,29 @@ public XrPassthroughCreateInfoFB set(XrPassthroughCreateInfoFB src) { /** Returns a new {@code XrPassthroughCreateInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrPassthroughCreateInfoFB malloc() { - return new XrPassthroughCreateInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrPassthroughCreateInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrPassthroughCreateInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrPassthroughCreateInfoFB calloc() { - return new XrPassthroughCreateInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrPassthroughCreateInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrPassthroughCreateInfoFB} instance allocated with {@link BufferUtils}. */ public static XrPassthroughCreateInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrPassthroughCreateInfoFB(memAddress(container), container); + return wrap(XrPassthroughCreateInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrPassthroughCreateInfoFB} instance for the specified memory address. */ public static XrPassthroughCreateInfoFB create(long address) { - return new XrPassthroughCreateInfoFB(address, null); + return wrap(XrPassthroughCreateInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrPassthroughCreateInfoFB createSafe(long address) { - return address == NULL ? null : new XrPassthroughCreateInfoFB(address, null); + return address == NULL ? null : wrap(XrPassthroughCreateInfoFB.class, address); } /** @@ -179,7 +170,7 @@ public static XrPassthroughCreateInfoFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrPassthroughCreateInfoFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -188,7 +179,7 @@ public static XrPassthroughCreateInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrPassthroughCreateInfoFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -198,7 +189,7 @@ public static XrPassthroughCreateInfoFB.Buffer calloc(int capacity) { */ public static XrPassthroughCreateInfoFB.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); } /** @@ -208,13 +199,13 @@ public static XrPassthroughCreateInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrPassthroughCreateInfoFB.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 XrPassthroughCreateInfoFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -223,7 +214,7 @@ public static XrPassthroughCreateInfoFB.Buffer createSafe(long address, int capa * @param stack the stack from which to allocate */ public static XrPassthroughCreateInfoFB malloc(MemoryStack stack) { - return new XrPassthroughCreateInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrPassthroughCreateInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -232,7 +223,7 @@ public static XrPassthroughCreateInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrPassthroughCreateInfoFB calloc(MemoryStack stack) { - return new XrPassthroughCreateInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrPassthroughCreateInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -242,7 +233,7 @@ public static XrPassthroughCreateInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrPassthroughCreateInfoFB.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); } /** @@ -252,26 +243,26 @@ public static XrPassthroughCreateInfoFB.Buffer malloc(int capacity, MemoryStack * @param capacity the buffer capacity */ public static XrPassthroughCreateInfoFB.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 + XrPassthroughCreateInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughCreateInfoFB.NEXT); } - /** Unsafe version of {@link #flags}. */ - public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrPassthroughCreateInfoFB.FLAGS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughCreateInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughCreateInfoFB.NEXT, value); } - /** Unsafe version of {@link #flags(long) flags}. */ - public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrPassthroughCreateInfoFB.FLAGS, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughCreateInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughCreateInfoFB.NEXT); } + /** Unsafe version of {@link #flags}. */ + public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrPassthroughCreateInfoFB.FLAGS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughCreateInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughCreateInfoFB.NEXT, value); } + /** Unsafe version of {@link #flags(long) flags}. */ + public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrPassthroughCreateInfoFB.FLAGS, value); } + + // ----------------------------------- /** An array of {@link XrPassthroughCreateInfoFB} structs. */ public static class Buffer extends StructBuffer 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 XrPassthroughCreateInfoFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrPassthroughCreateInfoFB#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 XrPassthroughCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughCreateInfoFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughCreateInfoFB.nnext(address()); } - /** @return the value of the {@code flags} field. */ - @NativeType("XrPassthroughFlagsFB") - public long flags() { return XrPassthroughCreateInfoFB.nflags(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrPassthroughCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_CREATE_INFO_FB TYPE_PASSTHROUGH_CREATE_INFO_FB} value to the {@code type} field. */ - public XrPassthroughCreateInfoFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_CREATE_INFO_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrPassthroughCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughCreateInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@code flags} field. */ - public XrPassthroughCreateInfoFB.Buffer flags(@NativeType("XrPassthroughFlagsFB") long value) { XrPassthroughCreateInfoFB.nflags(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughCreateInfoFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughCreateInfoFB.nnext(address()); } + /** @return the value of the {@code flags} field. */ + @NativeType("XrPassthroughFlagsFB") + public long flags() { return XrPassthroughCreateInfoFB.nflags(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrPassthroughCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_CREATE_INFO_FB TYPE_PASSTHROUGH_CREATE_INFO_FB} value to the {@code type} field. */ + public XrPassthroughCreateInfoFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_CREATE_INFO_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrPassthroughCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughCreateInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@code flags} field. */ + public XrPassthroughCreateInfoFB.Buffer flags(@NativeType("XrPassthroughFlagsFB") long value) { XrPassthroughCreateInfoFB.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughCreateInfoHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughCreateInfoHTC.java index 48b09b0b9b..6016fbdf32 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughCreateInfoHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughCreateInfoHTC.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 passthrough handle. * @@ -39,8 +39,8 @@ * void const * {@link #next}; * XrPassthroughFormHTC {@link #form}; * } - */ -public class XrPassthroughCreateInfoHTC extends Struct implements NativeResource { + */ +public class XrPassthroughCreateInfoHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,32 +50,23 @@ public class XrPassthroughCreateInfoHTC extends Struct 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 XrPassthroughCreateInfoHTC#SIZEOF}, and its mark will be undefined.

        + * by {@link XrPassthroughCreateInfoHTC#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 XrPassthroughCreateInfoHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPassthroughCreateInfoHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughCreateInfoHTC.ntype(address()); } - /** @return the value of the {@link XrPassthroughCreateInfoHTC#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughCreateInfoHTC.nnext(address()); } - /** @return the value of the {@link XrPassthroughCreateInfoHTC#form} field. */ - @NativeType("XrPassthroughFormHTC") - public int form() { return XrPassthroughCreateInfoHTC.nform(address()); } - - /** Sets the specified value to the {@link XrPassthroughCreateInfoHTC#type} field. */ - public XrPassthroughCreateInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughCreateInfoHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_CREATE_INFO_HTC TYPE_PASSTHROUGH_CREATE_INFO_HTC} value to the {@link XrPassthroughCreateInfoHTC#type} field. */ - public XrPassthroughCreateInfoHTC.Buffer type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_CREATE_INFO_HTC); } - /** Sets the specified value to the {@link XrPassthroughCreateInfoHTC#next} field. */ - public XrPassthroughCreateInfoHTC.Buffer next(@NativeType("void const *") long value) { XrPassthroughCreateInfoHTC.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughCreateInfoHTC#form} field. */ - public XrPassthroughCreateInfoHTC.Buffer form(@NativeType("XrPassthroughFormHTC") int value) { XrPassthroughCreateInfoHTC.nform(address(), value); return this; } + + /** @return the value of the {@link XrPassthroughCreateInfoHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughCreateInfoHTC.ntype(address()); } + /** @return the value of the {@link XrPassthroughCreateInfoHTC#next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughCreateInfoHTC.nnext(address()); } + /** @return the value of the {@link XrPassthroughCreateInfoHTC#form} field. */ + @NativeType("XrPassthroughFormHTC") + public int form() { return XrPassthroughCreateInfoHTC.nform(address()); } + + /** Sets the specified value to the {@link XrPassthroughCreateInfoHTC#type} field. */ + public XrPassthroughCreateInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughCreateInfoHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_CREATE_INFO_HTC TYPE_PASSTHROUGH_CREATE_INFO_HTC} value to the {@link XrPassthroughCreateInfoHTC#type} field. */ + public XrPassthroughCreateInfoHTC.Buffer type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_CREATE_INFO_HTC); } + /** Sets the specified value to the {@link XrPassthroughCreateInfoHTC#next} field. */ + public XrPassthroughCreateInfoHTC.Buffer next(@NativeType("void const *") long value) { XrPassthroughCreateInfoHTC.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrPassthroughCreateInfoHTC#form} field. */ + public XrPassthroughCreateInfoHTC.Buffer form(@NativeType("XrPassthroughFormHTC") int value) { XrPassthroughCreateInfoHTC.nform(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughFB.java index 90776116df..2244e0d972 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughFB.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrPassthroughFB} handle. */ + +/** Wraps an {@code XrPassthroughFB} handle. */ public class XrPassthroughFB 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/XrPassthroughHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughHTC.java index 16e394a7fd..7e5dc5278b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughHTC.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrPassthroughHTC} handle. */ + +/** Wraps an {@code XrPassthroughHTC} handle. */ public class XrPassthroughHTC 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/XrPassthroughKeyboardHandsIntensityFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughKeyboardHandsIntensityFB.java index 4e62050c1f..b1664eeabb 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughKeyboardHandsIntensityFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughKeyboardHandsIntensityFB.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.*; + /** * A struct for setting the level of intensity for hands in the passthrough layer. * @@ -47,8 +47,8 @@ * float {@link #leftHandIntensity}; * float {@link #rightHandIntensity}; * } - */ -public class XrPassthroughKeyboardHandsIntensityFB extends Struct implements NativeResource { + */ +public class XrPassthroughKeyboardHandsIntensityFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -58,35 +58,26 @@ public class XrPassthroughKeyboardHandsIntensityFB extends Struct implements NativeResource { @@ -292,9 +283,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 XrPassthroughKeyboardHandsIntensityFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrPassthroughKeyboardHandsIntensityFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -319,28 +310,28 @@ protected Buffer self() { protected XrPassthroughKeyboardHandsIntensityFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPassthroughKeyboardHandsIntensityFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughKeyboardHandsIntensityFB.ntype(address()); } - /** @return the value of the {@link XrPassthroughKeyboardHandsIntensityFB#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughKeyboardHandsIntensityFB.nnext(address()); } - /** @return the value of the {@link XrPassthroughKeyboardHandsIntensityFB#leftHandIntensity} field. */ - public float leftHandIntensity() { return XrPassthroughKeyboardHandsIntensityFB.nleftHandIntensity(address()); } - /** @return the value of the {@link XrPassthroughKeyboardHandsIntensityFB#rightHandIntensity} field. */ - public float rightHandIntensity() { return XrPassthroughKeyboardHandsIntensityFB.nrightHandIntensity(address()); } - - /** Sets the specified value to the {@link XrPassthroughKeyboardHandsIntensityFB#type} field. */ - public XrPassthroughKeyboardHandsIntensityFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughKeyboardHandsIntensityFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthroughKeyboardHands#XR_TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FB TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FB} value to the {@link XrPassthroughKeyboardHandsIntensityFB#type} field. */ - public XrPassthroughKeyboardHandsIntensityFB.Buffer type$Default() { return type(FBPassthroughKeyboardHands.XR_TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FB); } - /** Sets the specified value to the {@link XrPassthroughKeyboardHandsIntensityFB#next} field. */ - public XrPassthroughKeyboardHandsIntensityFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughKeyboardHandsIntensityFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughKeyboardHandsIntensityFB#leftHandIntensity} field. */ - public XrPassthroughKeyboardHandsIntensityFB.Buffer leftHandIntensity(float value) { XrPassthroughKeyboardHandsIntensityFB.nleftHandIntensity(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughKeyboardHandsIntensityFB#rightHandIntensity} field. */ - public XrPassthroughKeyboardHandsIntensityFB.Buffer rightHandIntensity(float value) { XrPassthroughKeyboardHandsIntensityFB.nrightHandIntensity(address(), value); return this; } + + /** @return the value of the {@link XrPassthroughKeyboardHandsIntensityFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughKeyboardHandsIntensityFB.ntype(address()); } + /** @return the value of the {@link XrPassthroughKeyboardHandsIntensityFB#next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughKeyboardHandsIntensityFB.nnext(address()); } + /** @return the value of the {@link XrPassthroughKeyboardHandsIntensityFB#leftHandIntensity} field. */ + public float leftHandIntensity() { return XrPassthroughKeyboardHandsIntensityFB.nleftHandIntensity(address()); } + /** @return the value of the {@link XrPassthroughKeyboardHandsIntensityFB#rightHandIntensity} field. */ + public float rightHandIntensity() { return XrPassthroughKeyboardHandsIntensityFB.nrightHandIntensity(address()); } + + /** Sets the specified value to the {@link XrPassthroughKeyboardHandsIntensityFB#type} field. */ + public XrPassthroughKeyboardHandsIntensityFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughKeyboardHandsIntensityFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthroughKeyboardHands#XR_TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FB TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FB} value to the {@link XrPassthroughKeyboardHandsIntensityFB#type} field. */ + public XrPassthroughKeyboardHandsIntensityFB.Buffer type$Default() { return type(FBPassthroughKeyboardHands.XR_TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FB); } + /** Sets the specified value to the {@link XrPassthroughKeyboardHandsIntensityFB#next} field. */ + public XrPassthroughKeyboardHandsIntensityFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughKeyboardHandsIntensityFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrPassthroughKeyboardHandsIntensityFB#leftHandIntensity} field. */ + public XrPassthroughKeyboardHandsIntensityFB.Buffer leftHandIntensity(float value) { XrPassthroughKeyboardHandsIntensityFB.nleftHandIntensity(address(), value); return this; } + /** Sets the specified value to the {@link XrPassthroughKeyboardHandsIntensityFB#rightHandIntensity} field. */ + public XrPassthroughKeyboardHandsIntensityFB.Buffer rightHandIntensity(float value) { XrPassthroughKeyboardHandsIntensityFB.nrightHandIntensity(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughLayerCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughLayerCreateInfoFB.java index 36e8b2a128..7090d7b8c0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughLayerCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughLayerCreateInfoFB.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.*; + /** * A create structure for passthrough layers. * @@ -54,8 +54,8 @@ * XrPassthroughFlagsFB flags; * XrPassthroughLayerPurposeFB purpose; * } - */ -public class XrPassthroughLayerCreateInfoFB extends Struct implements NativeResource { + */ +public class XrPassthroughLayerCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -65,38 +65,29 @@ public class XrPassthroughLayerCreateInfoFB extends Struct implements NativeResource { @@ -324,9 +315,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 XrPassthroughLayerCreateInfoFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrPassthroughLayerCreateInfoFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -351,35 +342,35 @@ protected Buffer self() { protected XrPassthroughLayerCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughLayerCreateInfoFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughLayerCreateInfoFB.nnext(address()); } - /** @return the value of the {@code passthrough} field. */ - @NativeType("XrPassthroughFB") - public long passthrough() { return XrPassthroughLayerCreateInfoFB.npassthrough(address()); } - /** @return the value of the {@code flags} field. */ - @NativeType("XrPassthroughFlagsFB") - public long flags() { return XrPassthroughLayerCreateInfoFB.nflags(address()); } - /** @return the value of the {@code purpose} field. */ - @NativeType("XrPassthroughLayerPurposeFB") - public int purpose() { return XrPassthroughLayerCreateInfoFB.npurpose(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrPassthroughLayerCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughLayerCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB} value to the {@code type} field. */ - public XrPassthroughLayerCreateInfoFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrPassthroughLayerCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughLayerCreateInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@code passthrough} field. */ - public XrPassthroughLayerCreateInfoFB.Buffer passthrough(XrPassthroughFB value) { XrPassthroughLayerCreateInfoFB.npassthrough(address(), value); return this; } - /** Sets the specified value to the {@code flags} field. */ - public XrPassthroughLayerCreateInfoFB.Buffer flags(@NativeType("XrPassthroughFlagsFB") long value) { XrPassthroughLayerCreateInfoFB.nflags(address(), value); return this; } - /** Sets the specified value to the {@code purpose} field. */ - public XrPassthroughLayerCreateInfoFB.Buffer purpose(@NativeType("XrPassthroughLayerPurposeFB") int value) { XrPassthroughLayerCreateInfoFB.npurpose(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughLayerCreateInfoFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughLayerCreateInfoFB.nnext(address()); } + /** @return the value of the {@code passthrough} field. */ + @NativeType("XrPassthroughFB") + public long passthrough() { return XrPassthroughLayerCreateInfoFB.npassthrough(address()); } + /** @return the value of the {@code flags} field. */ + @NativeType("XrPassthroughFlagsFB") + public long flags() { return XrPassthroughLayerCreateInfoFB.nflags(address()); } + /** @return the value of the {@code purpose} field. */ + @NativeType("XrPassthroughLayerPurposeFB") + public int purpose() { return XrPassthroughLayerCreateInfoFB.npurpose(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrPassthroughLayerCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughLayerCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB} value to the {@code type} field. */ + public XrPassthroughLayerCreateInfoFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrPassthroughLayerCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughLayerCreateInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@code passthrough} field. */ + public XrPassthroughLayerCreateInfoFB.Buffer passthrough(XrPassthroughFB value) { XrPassthroughLayerCreateInfoFB.npassthrough(address(), value); return this; } + /** Sets the specified value to the {@code flags} field. */ + public XrPassthroughLayerCreateInfoFB.Buffer flags(@NativeType("XrPassthroughFlagsFB") long value) { XrPassthroughLayerCreateInfoFB.nflags(address(), value); return this; } + /** Sets the specified value to the {@code purpose} field. */ + public XrPassthroughLayerCreateInfoFB.Buffer purpose(@NativeType("XrPassthroughLayerPurposeFB") int value) { XrPassthroughLayerCreateInfoFB.npurpose(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughLayerFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughLayerFB.java index c4692400b5..87a42ad281 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughLayerFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughLayerFB.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrPassthroughLayerFB} handle. */ + +/** Wraps an {@code XrPassthroughLayerFB} handle. */ public class XrPassthroughLayerFB 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/XrPassthroughMeshTransformInfoHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughMeshTransformInfoHTC.java index a470650875..180b7377d6 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughMeshTransformInfoHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughMeshTransformInfoHTC.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.*; + /** * The information of mesh and transformation of the passthrough. * @@ -61,8 +61,8 @@ * {@link XrPosef XrPosef} {@link #pose}; * {@link XrVector3f XrVector3f} {@link #scale}; * } - */ -public class XrPassthroughMeshTransformInfoHTC extends Struct implements NativeResource { + */ +public class XrPassthroughMeshTransformInfoHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -72,53 +72,44 @@ public class XrPassthroughMeshTransformInfoHTC extends Structmust be equal to vertexCount. */ - @NativeType("XrVector3f const *") - public XrVector3f.Buffer vertices() { return nvertices(address()); } - /** the count of indices array in the mesh. */ - @NativeType("uint32_t") - public int indexCount() { return nindexCount(address()); } - /** an array of triangle indices. The size of the array must be equal to indexCount. */ - @NativeType("uint32_t const *") - public IntBuffer indices() { return nindices(address()); } - /** the {@code XrSpace} that defines the projected passthrough’s base space for transformations. */ - @NativeType("XrSpace") - public long baseSpace() { return nbaseSpace(address()); } - /** the {@code XrTime} that defines the time at which the transform is applied. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - /** the {@link XrPosef} that defines the pose of the mesh */ - public XrPosef pose() { return npose(address()); } - /** the {@link XrVector3f} that defines the scale of the mesh */ - public XrVector3f scale() { return nscale(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrPassthroughMeshTransformInfoHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC} value to the {@link #type} field. */ - public XrPassthroughMeshTransformInfoHTC type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC); } - /** Sets the specified value to the {@link #next} field. */ - public XrPassthroughMeshTransformInfoHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link #vertices} field. */ - public XrPassthroughMeshTransformInfoHTC vertices(@NativeType("XrVector3f const *") XrVector3f.Buffer value) { nvertices(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link #indices} field. */ - public XrPassthroughMeshTransformInfoHTC indices(@NativeType("uint32_t const *") IntBuffer value) { nindices(address(), value); return this; } - /** Sets the specified value to the {@link #baseSpace} field. */ - public XrPassthroughMeshTransformInfoHTC baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrPassthroughMeshTransformInfoHTC time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrPassthroughMeshTransformInfoHTC pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughMeshTransformInfoHTC pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #scale} field. */ - public XrPassthroughMeshTransformInfoHTC scale(XrVector3f value) { nscale(address(), value); return this; } - /** Passes the {@link #scale} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughMeshTransformInfoHTC scale(java.util.function.Consumer consumer) { consumer.accept(scale()); 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 count of vertices array in the mesh. */ + @NativeType("uint32_t") + public int vertexCount() { return nvertexCount(address()); } + /** an array of {@link XrVector3f}. The size of the array must be equal to vertexCount. */ + @NativeType("XrVector3f const *") + public XrVector3f.Buffer vertices() { return nvertices(address()); } + /** the count of indices array in the mesh. */ + @NativeType("uint32_t") + public int indexCount() { return nindexCount(address()); } + /** an array of triangle indices. The size of the array must be equal to indexCount. */ + @NativeType("uint32_t const *") + public IntBuffer indices() { return nindices(address()); } + /** the {@code XrSpace} that defines the projected passthrough’s base space for transformations. */ + @NativeType("XrSpace") + public long baseSpace() { return nbaseSpace(address()); } + /** the {@code XrTime} that defines the time at which the transform is applied. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + /** the {@link XrPosef} that defines the pose of the mesh */ + public XrPosef pose() { return npose(address()); } + /** the {@link XrVector3f} that defines the scale of the mesh */ + public XrVector3f scale() { return nscale(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrPassthroughMeshTransformInfoHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC} value to the {@link #type} field. */ + public XrPassthroughMeshTransformInfoHTC type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC); } + /** Sets the specified value to the {@link #next} field. */ + public XrPassthroughMeshTransformInfoHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link #vertices} field. */ + public XrPassthroughMeshTransformInfoHTC vertices(@NativeType("XrVector3f const *") XrVector3f.Buffer value) { nvertices(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link #indices} field. */ + public XrPassthroughMeshTransformInfoHTC indices(@NativeType("uint32_t const *") IntBuffer value) { nindices(address(), value); return this; } + /** Sets the specified value to the {@link #baseSpace} field. */ + public XrPassthroughMeshTransformInfoHTC baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrPassthroughMeshTransformInfoHTC time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrPassthroughMeshTransformInfoHTC pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughMeshTransformInfoHTC pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #scale} field. */ + public XrPassthroughMeshTransformInfoHTC scale(XrVector3f value) { nscale(address(), value); return this; } + /** Passes the {@link #scale} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughMeshTransformInfoHTC scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } /** Initializes this struct with the specified values. */ public XrPassthroughMeshTransformInfoHTC set( - int type, - long next, - XrVector3f.Buffer vertices, - IntBuffer indices, - XrSpace baseSpace, - long time, - XrPosef pose, + int type, + long next, + XrVector3f.Buffer vertices, + IntBuffer indices, + XrSpace baseSpace, + long time, + XrPosef pose, XrVector3f scale - ) { - type(type); - next(next); - vertices(vertices); - indices(indices); - baseSpace(baseSpace); - time(time); - pose(pose); - scale(scale); + ) { + type(type); + next(next); + vertices(vertices); + indices(indices); + baseSpace(baseSpace); + time(time); + pose(pose); + scale(scale); return this; } @@ -225,29 +216,29 @@ public XrPassthroughMeshTransformInfoHTC set(XrPassthroughMeshTransformInfoHTC s /** Returns a new {@code XrPassthroughMeshTransformInfoHTC} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrPassthroughMeshTransformInfoHTC malloc() { - return new XrPassthroughMeshTransformInfoHTC(nmemAllocChecked(SIZEOF), null); + return wrap(XrPassthroughMeshTransformInfoHTC.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrPassthroughMeshTransformInfoHTC} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrPassthroughMeshTransformInfoHTC calloc() { - return new XrPassthroughMeshTransformInfoHTC(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrPassthroughMeshTransformInfoHTC.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrPassthroughMeshTransformInfoHTC} instance allocated with {@link BufferUtils}. */ public static XrPassthroughMeshTransformInfoHTC create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrPassthroughMeshTransformInfoHTC(memAddress(container), container); + return wrap(XrPassthroughMeshTransformInfoHTC.class, memAddress(container), container); } /** Returns a new {@code XrPassthroughMeshTransformInfoHTC} instance for the specified memory address. */ public static XrPassthroughMeshTransformInfoHTC create(long address) { - return new XrPassthroughMeshTransformInfoHTC(address, null); + return wrap(XrPassthroughMeshTransformInfoHTC.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrPassthroughMeshTransformInfoHTC createSafe(long address) { - return address == NULL ? null : new XrPassthroughMeshTransformInfoHTC(address, null); + return address == NULL ? null : wrap(XrPassthroughMeshTransformInfoHTC.class, address); } /** @@ -256,7 +247,7 @@ public static XrPassthroughMeshTransformInfoHTC createSafe(long address) { * @param capacity the buffer capacity */ public static XrPassthroughMeshTransformInfoHTC.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -265,7 +256,7 @@ public static XrPassthroughMeshTransformInfoHTC.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrPassthroughMeshTransformInfoHTC.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -275,7 +266,7 @@ public static XrPassthroughMeshTransformInfoHTC.Buffer calloc(int capacity) { */ public static XrPassthroughMeshTransformInfoHTC.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); } /** @@ -285,13 +276,13 @@ public static XrPassthroughMeshTransformInfoHTC.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrPassthroughMeshTransformInfoHTC.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 XrPassthroughMeshTransformInfoHTC.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -300,7 +291,7 @@ public static XrPassthroughMeshTransformInfoHTC.Buffer createSafe(long address, * @param stack the stack from which to allocate */ public static XrPassthroughMeshTransformInfoHTC malloc(MemoryStack stack) { - return new XrPassthroughMeshTransformInfoHTC(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrPassthroughMeshTransformInfoHTC.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -309,7 +300,7 @@ public static XrPassthroughMeshTransformInfoHTC malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrPassthroughMeshTransformInfoHTC calloc(MemoryStack stack) { - return new XrPassthroughMeshTransformInfoHTC(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrPassthroughMeshTransformInfoHTC.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -319,7 +310,7 @@ public static XrPassthroughMeshTransformInfoHTC calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrPassthroughMeshTransformInfoHTC.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); } /** @@ -329,52 +320,52 @@ public static XrPassthroughMeshTransformInfoHTC.Buffer malloc(int capacity, Memo * @param capacity the buffer capacity */ public static XrPassthroughMeshTransformInfoHTC.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 + XrPassthroughMeshTransformInfoHTC.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.NEXT); } - /** Unsafe version of {@link #vertexCount}. */ - public static int nvertexCount(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughMeshTransformInfoHTC.VERTEXCOUNT); } - /** Unsafe version of {@link #vertices}. */ - public static XrVector3f.Buffer nvertices(long struct) { return XrVector3f.create(memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.VERTICES), nvertexCount(struct)); } - /** Unsafe version of {@link #indexCount}. */ - public static int nindexCount(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughMeshTransformInfoHTC.INDEXCOUNT); } - /** Unsafe version of {@link #indices() indices}. */ - public static IntBuffer nindices(long struct) { return memIntBuffer(memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.INDICES), nindexCount(struct)); } - /** Unsafe version of {@link #baseSpace}. */ - public static long nbaseSpace(long struct) { return memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.BASESPACE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrPassthroughMeshTransformInfoHTC.TIME); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrPassthroughMeshTransformInfoHTC.POSE); } - /** Unsafe version of {@link #scale}. */ - public static XrVector3f nscale(long struct) { return XrVector3f.create(struct + XrPassthroughMeshTransformInfoHTC.SCALE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughMeshTransformInfoHTC.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughMeshTransformInfoHTC.NEXT, value); } - /** Sets the specified value to the {@code vertexCount} field of the specified {@code struct}. */ - public static void nvertexCount(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughMeshTransformInfoHTC.VERTEXCOUNT, value); } - /** Unsafe version of {@link #vertices(XrVector3f.Buffer) vertices}. */ - public static void nvertices(long struct, XrVector3f.Buffer value) { memPutAddress(struct + XrPassthroughMeshTransformInfoHTC.VERTICES, value.address()); nvertexCount(struct, value.remaining()); } - /** Sets the specified value to the {@code indexCount} field of the specified {@code struct}. */ - public static void nindexCount(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughMeshTransformInfoHTC.INDEXCOUNT, value); } - /** Unsafe version of {@link #indices(IntBuffer) indices}. */ - public static void nindices(long struct, IntBuffer value) { memPutAddress(struct + XrPassthroughMeshTransformInfoHTC.INDICES, memAddress(value)); nindexCount(struct, value.remaining()); } - /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ - public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrPassthroughMeshTransformInfoHTC.BASESPACE, value.address()); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrPassthroughMeshTransformInfoHTC.TIME, value); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrPassthroughMeshTransformInfoHTC.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #scale(XrVector3f) scale}. */ - public static void nscale(long struct, XrVector3f value) { memCopy(value.address(), struct + XrPassthroughMeshTransformInfoHTC.SCALE, XrVector3f.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughMeshTransformInfoHTC.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.NEXT); } + /** Unsafe version of {@link #vertexCount}. */ + public static int nvertexCount(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughMeshTransformInfoHTC.VERTEXCOUNT); } + /** Unsafe version of {@link #vertices}. */ + public static XrVector3f.Buffer nvertices(long struct) { return XrVector3f.create(memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.VERTICES), nvertexCount(struct)); } + /** Unsafe version of {@link #indexCount}. */ + public static int nindexCount(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughMeshTransformInfoHTC.INDEXCOUNT); } + /** Unsafe version of {@link #indices() indices}. */ + public static IntBuffer nindices(long struct) { return memIntBuffer(memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.INDICES), nindexCount(struct)); } + /** Unsafe version of {@link #baseSpace}. */ + public static long nbaseSpace(long struct) { return memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.BASESPACE); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrPassthroughMeshTransformInfoHTC.TIME); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrPassthroughMeshTransformInfoHTC.POSE); } + /** Unsafe version of {@link #scale}. */ + public static XrVector3f nscale(long struct) { return XrVector3f.create(struct + XrPassthroughMeshTransformInfoHTC.SCALE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughMeshTransformInfoHTC.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughMeshTransformInfoHTC.NEXT, value); } + /** Sets the specified value to the {@code vertexCount} field of the specified {@code struct}. */ + public static void nvertexCount(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughMeshTransformInfoHTC.VERTEXCOUNT, value); } + /** Unsafe version of {@link #vertices(XrVector3f.Buffer) vertices}. */ + public static void nvertices(long struct, XrVector3f.Buffer value) { memPutAddress(struct + XrPassthroughMeshTransformInfoHTC.VERTICES, value.address()); nvertexCount(struct, value.remaining()); } + /** Sets the specified value to the {@code indexCount} field of the specified {@code struct}. */ + public static void nindexCount(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughMeshTransformInfoHTC.INDEXCOUNT, value); } + /** Unsafe version of {@link #indices(IntBuffer) indices}. */ + public static void nindices(long struct, IntBuffer value) { memPutAddress(struct + XrPassthroughMeshTransformInfoHTC.INDICES, memAddress(value)); nindexCount(struct, value.remaining()); } + /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ + public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrPassthroughMeshTransformInfoHTC.BASESPACE, value.address()); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrPassthroughMeshTransformInfoHTC.TIME, value); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrPassthroughMeshTransformInfoHTC.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #scale(XrVector3f) scale}. */ + public static void nscale(long struct, XrVector3f value) { memCopy(value.address(), struct + XrPassthroughMeshTransformInfoHTC.SCALE, XrVector3f.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -385,9 +376,9 @@ public static void validate(long struct) { check(memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.VERTICES)); check(memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.INDICES)); check(memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.BASESPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrPassthroughMeshTransformInfoHTC} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -397,9 +388,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 XrPassthroughMeshTransformInfoHTC#SIZEOF}, and its mark will be undefined.

        + * by {@link XrPassthroughMeshTransformInfoHTC#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -424,58 +415,58 @@ protected Buffer self() { protected XrPassthroughMeshTransformInfoHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughMeshTransformInfoHTC.ntype(address()); } - /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughMeshTransformInfoHTC.nnext(address()); } - /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#vertexCount} field. */ - @NativeType("uint32_t") - public int vertexCount() { return XrPassthroughMeshTransformInfoHTC.nvertexCount(address()); } - /** @return a {@link XrVector3f.Buffer} view of the struct array pointed to by the {@link XrPassthroughMeshTransformInfoHTC#vertices} field. */ - @NativeType("XrVector3f const *") - public XrVector3f.Buffer vertices() { return XrPassthroughMeshTransformInfoHTC.nvertices(address()); } - /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#indexCount} field. */ - @NativeType("uint32_t") - public int indexCount() { return XrPassthroughMeshTransformInfoHTC.nindexCount(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrPassthroughMeshTransformInfoHTC#indices} field. */ - @NativeType("uint32_t const *") - public IntBuffer indices() { return XrPassthroughMeshTransformInfoHTC.nindices(address()); } - /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#baseSpace} field. */ - @NativeType("XrSpace") - public long baseSpace() { return XrPassthroughMeshTransformInfoHTC.nbaseSpace(address()); } - /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#time} field. */ - @NativeType("XrTime") - public long time() { return XrPassthroughMeshTransformInfoHTC.ntime(address()); } - /** @return a {@link XrPosef} view of the {@link XrPassthroughMeshTransformInfoHTC#pose} field. */ - public XrPosef pose() { return XrPassthroughMeshTransformInfoHTC.npose(address()); } - /** @return a {@link XrVector3f} view of the {@link XrPassthroughMeshTransformInfoHTC#scale} field. */ - public XrVector3f scale() { return XrPassthroughMeshTransformInfoHTC.nscale(address()); } - - /** Sets the specified value to the {@link XrPassthroughMeshTransformInfoHTC#type} field. */ - public XrPassthroughMeshTransformInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughMeshTransformInfoHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC} value to the {@link XrPassthroughMeshTransformInfoHTC#type} field. */ - public XrPassthroughMeshTransformInfoHTC.Buffer type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC); } - /** Sets the specified value to the {@link XrPassthroughMeshTransformInfoHTC#next} field. */ - public XrPassthroughMeshTransformInfoHTC.Buffer next(@NativeType("void const *") long value) { XrPassthroughMeshTransformInfoHTC.nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link XrPassthroughMeshTransformInfoHTC#vertices} field. */ - public XrPassthroughMeshTransformInfoHTC.Buffer vertices(@NativeType("XrVector3f const *") XrVector3f.Buffer value) { XrPassthroughMeshTransformInfoHTC.nvertices(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrPassthroughMeshTransformInfoHTC#indices} field. */ - public XrPassthroughMeshTransformInfoHTC.Buffer indices(@NativeType("uint32_t const *") IntBuffer value) { XrPassthroughMeshTransformInfoHTC.nindices(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughMeshTransformInfoHTC#baseSpace} field. */ - public XrPassthroughMeshTransformInfoHTC.Buffer baseSpace(XrSpace value) { XrPassthroughMeshTransformInfoHTC.nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughMeshTransformInfoHTC#time} field. */ - public XrPassthroughMeshTransformInfoHTC.Buffer time(@NativeType("XrTime") long value) { XrPassthroughMeshTransformInfoHTC.ntime(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrPassthroughMeshTransformInfoHTC#pose} field. */ - public XrPassthroughMeshTransformInfoHTC.Buffer pose(XrPosef value) { XrPassthroughMeshTransformInfoHTC.npose(address(), value); return this; } - /** Passes the {@link XrPassthroughMeshTransformInfoHTC#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughMeshTransformInfoHTC.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrPassthroughMeshTransformInfoHTC#scale} field. */ - public XrPassthroughMeshTransformInfoHTC.Buffer scale(XrVector3f value) { XrPassthroughMeshTransformInfoHTC.nscale(address(), value); return this; } - /** Passes the {@link XrPassthroughMeshTransformInfoHTC#scale} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughMeshTransformInfoHTC.Buffer scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } + + /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughMeshTransformInfoHTC.ntype(address()); } + /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughMeshTransformInfoHTC.nnext(address()); } + /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#vertexCount} field. */ + @NativeType("uint32_t") + public int vertexCount() { return XrPassthroughMeshTransformInfoHTC.nvertexCount(address()); } + /** @return a {@link XrVector3f.Buffer} view of the struct array pointed to by the {@link XrPassthroughMeshTransformInfoHTC#vertices} field. */ + @NativeType("XrVector3f const *") + public XrVector3f.Buffer vertices() { return XrPassthroughMeshTransformInfoHTC.nvertices(address()); } + /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#indexCount} field. */ + @NativeType("uint32_t") + public int indexCount() { return XrPassthroughMeshTransformInfoHTC.nindexCount(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrPassthroughMeshTransformInfoHTC#indices} field. */ + @NativeType("uint32_t const *") + public IntBuffer indices() { return XrPassthroughMeshTransformInfoHTC.nindices(address()); } + /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#baseSpace} field. */ + @NativeType("XrSpace") + public long baseSpace() { return XrPassthroughMeshTransformInfoHTC.nbaseSpace(address()); } + /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#time} field. */ + @NativeType("XrTime") + public long time() { return XrPassthroughMeshTransformInfoHTC.ntime(address()); } + /** @return a {@link XrPosef} view of the {@link XrPassthroughMeshTransformInfoHTC#pose} field. */ + public XrPosef pose() { return XrPassthroughMeshTransformInfoHTC.npose(address()); } + /** @return a {@link XrVector3f} view of the {@link XrPassthroughMeshTransformInfoHTC#scale} field. */ + public XrVector3f scale() { return XrPassthroughMeshTransformInfoHTC.nscale(address()); } + + /** Sets the specified value to the {@link XrPassthroughMeshTransformInfoHTC#type} field. */ + public XrPassthroughMeshTransformInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughMeshTransformInfoHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC} value to the {@link XrPassthroughMeshTransformInfoHTC#type} field. */ + public XrPassthroughMeshTransformInfoHTC.Buffer type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC); } + /** Sets the specified value to the {@link XrPassthroughMeshTransformInfoHTC#next} field. */ + public XrPassthroughMeshTransformInfoHTC.Buffer next(@NativeType("void const *") long value) { XrPassthroughMeshTransformInfoHTC.nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link XrPassthroughMeshTransformInfoHTC#vertices} field. */ + public XrPassthroughMeshTransformInfoHTC.Buffer vertices(@NativeType("XrVector3f const *") XrVector3f.Buffer value) { XrPassthroughMeshTransformInfoHTC.nvertices(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrPassthroughMeshTransformInfoHTC#indices} field. */ + public XrPassthroughMeshTransformInfoHTC.Buffer indices(@NativeType("uint32_t const *") IntBuffer value) { XrPassthroughMeshTransformInfoHTC.nindices(address(), value); return this; } + /** Sets the specified value to the {@link XrPassthroughMeshTransformInfoHTC#baseSpace} field. */ + public XrPassthroughMeshTransformInfoHTC.Buffer baseSpace(XrSpace value) { XrPassthroughMeshTransformInfoHTC.nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@link XrPassthroughMeshTransformInfoHTC#time} field. */ + public XrPassthroughMeshTransformInfoHTC.Buffer time(@NativeType("XrTime") long value) { XrPassthroughMeshTransformInfoHTC.ntime(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrPassthroughMeshTransformInfoHTC#pose} field. */ + public XrPassthroughMeshTransformInfoHTC.Buffer pose(XrPosef value) { XrPassthroughMeshTransformInfoHTC.npose(address(), value); return this; } + /** Passes the {@link XrPassthroughMeshTransformInfoHTC#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughMeshTransformInfoHTC.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrPassthroughMeshTransformInfoHTC#scale} field. */ + public XrPassthroughMeshTransformInfoHTC.Buffer scale(XrVector3f value) { XrPassthroughMeshTransformInfoHTC.nscale(address(), value); return this; } + /** Passes the {@link XrPassthroughMeshTransformInfoHTC#scale} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughMeshTransformInfoHTC.Buffer scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughStyleFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughStyleFB.java index 8544eb7cae..84109033d0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughStyleFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughStyleFB.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.*; + /** * A layer style. * @@ -43,8 +43,8 @@ * float {@link #textureOpacityFactor}; * {@link XrColor4f XrColor4f} {@link #edgeColor}; * } - */ -public class XrPassthroughStyleFB extends Struct implements NativeResource { + */ +public class XrPassthroughStyleFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,35 +54,26 @@ public class XrPassthroughStyleFB extends Struct implement /** The struct member offsets. */ public static final int - TYPE, - NEXT, - TEXTUREOPACITYFACTOR, - EDGECOLOR; + TYPE, + NEXT, + TEXTUREOPACITYFACTOR, + EDGECOLOR; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), __member(XrColor4f.SIZEOF, XrColor4f.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - TEXTUREOPACITYFACTOR = layout.offsetof(2); - EDGECOLOR = layout.offsetof(3); - } - - protected XrPassthroughStyleFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrPassthroughStyleFB create(long address, @Nullable ByteBuffer container) { - return new XrPassthroughStyleFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + TEXTUREOPACITYFACTOR = layout.offsetof(2); + EDGECOLOR = layout.offsetof(3); } /** @@ -97,48 +88,48 @@ public XrPassthroughStyleFB(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 opacity of the passthrough imagery in the range [0, 1]. */ - public float textureOpacityFactor() { return ntextureOpacityFactor(address()); } - /** the {@link XrColor4f} that defines the edge rendering color. Edges are detected in the original passthrough imagery and rendered on top of it. Edge rendering is disabled when the alpha value of {@code edgeColor} is zero. */ - public XrColor4f edgeColor() { return nedgeColor(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrPassthroughStyleFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_STYLE_FB TYPE_PASSTHROUGH_STYLE_FB} value to the {@link #type} field. */ - public XrPassthroughStyleFB type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_STYLE_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrPassthroughStyleFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrPassthroughBrightnessContrastSaturationFB} value to the {@code next} chain. */ - public XrPassthroughStyleFB next(XrPassthroughBrightnessContrastSaturationFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrPassthroughColorMapMonoToMonoFB} value to the {@code next} chain. */ - public XrPassthroughStyleFB next(XrPassthroughColorMapMonoToMonoFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrPassthroughColorMapMonoToRgbaFB} value to the {@code next} chain. */ - public XrPassthroughStyleFB next(XrPassthroughColorMapMonoToRgbaFB value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #textureOpacityFactor} field. */ - public XrPassthroughStyleFB textureOpacityFactor(float value) { ntextureOpacityFactor(address(), value); return this; } - /** Copies the specified {@link XrColor4f} to the {@link #edgeColor} field. */ - public XrPassthroughStyleFB edgeColor(XrColor4f value) { nedgeColor(address(), value); return this; } - /** Passes the {@link #edgeColor} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughStyleFB edgeColor(java.util.function.Consumer consumer) { consumer.accept(edgeColor()); 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 opacity of the passthrough imagery in the range [0, 1]. */ + public float textureOpacityFactor() { return ntextureOpacityFactor(address()); } + /** the {@link XrColor4f} that defines the edge rendering color. Edges are detected in the original passthrough imagery and rendered on top of it. Edge rendering is disabled when the alpha value of {@code edgeColor} is zero. */ + public XrColor4f edgeColor() { return nedgeColor(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrPassthroughStyleFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_STYLE_FB TYPE_PASSTHROUGH_STYLE_FB} value to the {@link #type} field. */ + public XrPassthroughStyleFB type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_STYLE_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrPassthroughStyleFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrPassthroughBrightnessContrastSaturationFB} value to the {@code next} chain. */ + public XrPassthroughStyleFB next(XrPassthroughBrightnessContrastSaturationFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrPassthroughColorMapMonoToMonoFB} value to the {@code next} chain. */ + public XrPassthroughStyleFB next(XrPassthroughColorMapMonoToMonoFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrPassthroughColorMapMonoToRgbaFB} value to the {@code next} chain. */ + public XrPassthroughStyleFB next(XrPassthroughColorMapMonoToRgbaFB value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #textureOpacityFactor} field. */ + public XrPassthroughStyleFB textureOpacityFactor(float value) { ntextureOpacityFactor(address(), value); return this; } + /** Copies the specified {@link XrColor4f} to the {@link #edgeColor} field. */ + public XrPassthroughStyleFB edgeColor(XrColor4f value) { nedgeColor(address(), value); return this; } + /** Passes the {@link #edgeColor} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughStyleFB edgeColor(java.util.function.Consumer consumer) { consumer.accept(edgeColor()); return this; } /** Initializes this struct with the specified values. */ public XrPassthroughStyleFB set( - int type, - long next, - float textureOpacityFactor, + int type, + long next, + float textureOpacityFactor, XrColor4f edgeColor - ) { - type(type); - next(next); - textureOpacityFactor(textureOpacityFactor); - edgeColor(edgeColor); + ) { + type(type); + next(next); + textureOpacityFactor(textureOpacityFactor); + edgeColor(edgeColor); return this; } @@ -159,29 +150,29 @@ public XrPassthroughStyleFB set(XrPassthroughStyleFB src) { /** Returns a new {@code XrPassthroughStyleFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrPassthroughStyleFB malloc() { - return new XrPassthroughStyleFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrPassthroughStyleFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrPassthroughStyleFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrPassthroughStyleFB calloc() { - return new XrPassthroughStyleFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrPassthroughStyleFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrPassthroughStyleFB} instance allocated with {@link BufferUtils}. */ public static XrPassthroughStyleFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrPassthroughStyleFB(memAddress(container), container); + return wrap(XrPassthroughStyleFB.class, memAddress(container), container); } /** Returns a new {@code XrPassthroughStyleFB} instance for the specified memory address. */ public static XrPassthroughStyleFB create(long address) { - return new XrPassthroughStyleFB(address, null); + return wrap(XrPassthroughStyleFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrPassthroughStyleFB createSafe(long address) { - return address == NULL ? null : new XrPassthroughStyleFB(address, null); + return address == NULL ? null : wrap(XrPassthroughStyleFB.class, address); } /** @@ -190,7 +181,7 @@ public static XrPassthroughStyleFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrPassthroughStyleFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -199,7 +190,7 @@ public static XrPassthroughStyleFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrPassthroughStyleFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -209,7 +200,7 @@ public static XrPassthroughStyleFB.Buffer calloc(int capacity) { */ public static XrPassthroughStyleFB.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); } /** @@ -219,13 +210,13 @@ public static XrPassthroughStyleFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrPassthroughStyleFB.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 XrPassthroughStyleFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -234,7 +225,7 @@ public static XrPassthroughStyleFB.Buffer createSafe(long address, int capacity) * @param stack the stack from which to allocate */ public static XrPassthroughStyleFB malloc(MemoryStack stack) { - return new XrPassthroughStyleFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrPassthroughStyleFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -243,7 +234,7 @@ public static XrPassthroughStyleFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrPassthroughStyleFB calloc(MemoryStack stack) { - return new XrPassthroughStyleFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrPassthroughStyleFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -253,7 +244,7 @@ public static XrPassthroughStyleFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrPassthroughStyleFB.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); } /** @@ -263,30 +254,30 @@ public static XrPassthroughStyleFB.Buffer malloc(int capacity, MemoryStack stack * @param capacity the buffer capacity */ public static XrPassthroughStyleFB.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 + XrPassthroughStyleFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughStyleFB.NEXT); } - /** Unsafe version of {@link #textureOpacityFactor}. */ - public static float ntextureOpacityFactor(long struct) { return UNSAFE.getFloat(null, struct + XrPassthroughStyleFB.TEXTUREOPACITYFACTOR); } - /** Unsafe version of {@link #edgeColor}. */ - public static XrColor4f nedgeColor(long struct) { return XrColor4f.create(struct + XrPassthroughStyleFB.EDGECOLOR); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughStyleFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughStyleFB.NEXT, value); } - /** Unsafe version of {@link #textureOpacityFactor(float) textureOpacityFactor}. */ - public static void ntextureOpacityFactor(long struct, float value) { UNSAFE.putFloat(null, struct + XrPassthroughStyleFB.TEXTUREOPACITYFACTOR, value); } - /** Unsafe version of {@link #edgeColor(XrColor4f) edgeColor}. */ - public static void nedgeColor(long struct, XrColor4f value) { memCopy(value.address(), struct + XrPassthroughStyleFB.EDGECOLOR, XrColor4f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughStyleFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughStyleFB.NEXT); } + /** Unsafe version of {@link #textureOpacityFactor}. */ + public static float ntextureOpacityFactor(long struct) { return UNSAFE.getFloat(null, struct + XrPassthroughStyleFB.TEXTUREOPACITYFACTOR); } + /** Unsafe version of {@link #edgeColor}. */ + public static XrColor4f nedgeColor(long struct) { return XrColor4f.create(struct + XrPassthroughStyleFB.EDGECOLOR); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughStyleFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughStyleFB.NEXT, value); } + /** Unsafe version of {@link #textureOpacityFactor(float) textureOpacityFactor}. */ + public static void ntextureOpacityFactor(long struct, float value) { UNSAFE.putFloat(null, struct + XrPassthroughStyleFB.TEXTUREOPACITYFACTOR, value); } + /** Unsafe version of {@link #edgeColor(XrColor4f) edgeColor}. */ + public static void nedgeColor(long struct, XrColor4f value) { memCopy(value.address(), struct + XrPassthroughStyleFB.EDGECOLOR, XrColor4f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrPassthroughStyleFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -296,9 +287,9 @@ public static class Buffer extends StructBuffer im /** * Creates a new {@code XrPassthroughStyleFB.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 XrPassthroughStyleFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrPassthroughStyleFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -323,36 +314,36 @@ protected Buffer self() { protected XrPassthroughStyleFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPassthroughStyleFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughStyleFB.ntype(address()); } - /** @return the value of the {@link XrPassthroughStyleFB#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughStyleFB.nnext(address()); } - /** @return the value of the {@link XrPassthroughStyleFB#textureOpacityFactor} field. */ - public float textureOpacityFactor() { return XrPassthroughStyleFB.ntextureOpacityFactor(address()); } - /** @return a {@link XrColor4f} view of the {@link XrPassthroughStyleFB#edgeColor} field. */ - public XrColor4f edgeColor() { return XrPassthroughStyleFB.nedgeColor(address()); } - - /** Sets the specified value to the {@link XrPassthroughStyleFB#type} field. */ - public XrPassthroughStyleFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughStyleFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_STYLE_FB TYPE_PASSTHROUGH_STYLE_FB} value to the {@link XrPassthroughStyleFB#type} field. */ - public XrPassthroughStyleFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_STYLE_FB); } - /** Sets the specified value to the {@link XrPassthroughStyleFB#next} field. */ - public XrPassthroughStyleFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughStyleFB.nnext(address(), value); return this; } - /** Prepends the specified {@link XrPassthroughBrightnessContrastSaturationFB} value to the {@code next} chain. */ - public XrPassthroughStyleFB.Buffer next(XrPassthroughBrightnessContrastSaturationFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrPassthroughColorMapMonoToMonoFB} value to the {@code next} chain. */ - public XrPassthroughStyleFB.Buffer next(XrPassthroughColorMapMonoToMonoFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrPassthroughColorMapMonoToRgbaFB} value to the {@code next} chain. */ - public XrPassthroughStyleFB.Buffer next(XrPassthroughColorMapMonoToRgbaFB value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrPassthroughStyleFB#textureOpacityFactor} field. */ - public XrPassthroughStyleFB.Buffer textureOpacityFactor(float value) { XrPassthroughStyleFB.ntextureOpacityFactor(address(), value); return this; } - /** Copies the specified {@link XrColor4f} to the {@link XrPassthroughStyleFB#edgeColor} field. */ - public XrPassthroughStyleFB.Buffer edgeColor(XrColor4f value) { XrPassthroughStyleFB.nedgeColor(address(), value); return this; } - /** Passes the {@link XrPassthroughStyleFB#edgeColor} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughStyleFB.Buffer edgeColor(java.util.function.Consumer consumer) { consumer.accept(edgeColor()); return this; } + + /** @return the value of the {@link XrPassthroughStyleFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughStyleFB.ntype(address()); } + /** @return the value of the {@link XrPassthroughStyleFB#next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughStyleFB.nnext(address()); } + /** @return the value of the {@link XrPassthroughStyleFB#textureOpacityFactor} field. */ + public float textureOpacityFactor() { return XrPassthroughStyleFB.ntextureOpacityFactor(address()); } + /** @return a {@link XrColor4f} view of the {@link XrPassthroughStyleFB#edgeColor} field. */ + public XrColor4f edgeColor() { return XrPassthroughStyleFB.nedgeColor(address()); } + + /** Sets the specified value to the {@link XrPassthroughStyleFB#type} field. */ + public XrPassthroughStyleFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughStyleFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_STYLE_FB TYPE_PASSTHROUGH_STYLE_FB} value to the {@link XrPassthroughStyleFB#type} field. */ + public XrPassthroughStyleFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_STYLE_FB); } + /** Sets the specified value to the {@link XrPassthroughStyleFB#next} field. */ + public XrPassthroughStyleFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughStyleFB.nnext(address(), value); return this; } + /** Prepends the specified {@link XrPassthroughBrightnessContrastSaturationFB} value to the {@code next} chain. */ + public XrPassthroughStyleFB.Buffer next(XrPassthroughBrightnessContrastSaturationFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrPassthroughColorMapMonoToMonoFB} value to the {@code next} chain. */ + public XrPassthroughStyleFB.Buffer next(XrPassthroughColorMapMonoToMonoFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrPassthroughColorMapMonoToRgbaFB} value to the {@code next} chain. */ + public XrPassthroughStyleFB.Buffer next(XrPassthroughColorMapMonoToRgbaFB value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrPassthroughStyleFB#textureOpacityFactor} field. */ + public XrPassthroughStyleFB.Buffer textureOpacityFactor(float value) { XrPassthroughStyleFB.ntextureOpacityFactor(address(), value); return this; } + /** Copies the specified {@link XrColor4f} to the {@link XrPassthroughStyleFB#edgeColor} field. */ + public XrPassthroughStyleFB.Buffer edgeColor(XrColor4f value) { XrPassthroughStyleFB.nedgeColor(address(), value); return this; } + /** Passes the {@link XrPassthroughStyleFB#edgeColor} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughStyleFB.Buffer edgeColor(java.util.function.Consumer consumer) { consumer.accept(edgeColor()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPerformanceMetricsCounterMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPerformanceMetricsCounterMETA.java index 35f866545a..ec2c67cf54 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPerformanceMetricsCounterMETA.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPerformanceMetricsCounterMETA.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.*; + /** * Performance metrics counter value. * @@ -47,8 +47,8 @@ * uint32_t {@link #uintValue}; * float {@link #floatValue}; * } - */ -public class XrPerformanceMetricsCounterMETA extends Struct implements NativeResource { + */ +public class XrPerformanceMetricsCounterMETA extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -58,41 +58,32 @@ public class XrPerformanceMetricsCounterMETA extends Struct implements NativeResource { @@ -321,9 +312,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 XrPerformanceMetricsCounterMETA#SIZEOF}, and its mark will be undefined.

        + * by {@link XrPerformanceMetricsCounterMETA#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -348,39 +339,39 @@ protected Buffer self() { protected XrPerformanceMetricsCounterMETA getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPerformanceMetricsCounterMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPerformanceMetricsCounterMETA.ntype(address()); } - /** @return the value of the {@link XrPerformanceMetricsCounterMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrPerformanceMetricsCounterMETA.nnext(address()); } - /** @return the value of the {@link XrPerformanceMetricsCounterMETA#counterFlags} field. */ - @NativeType("XrPerformanceMetricsCounterFlagsMETA") - public long counterFlags() { return XrPerformanceMetricsCounterMETA.ncounterFlags(address()); } - /** @return the value of the {@link XrPerformanceMetricsCounterMETA#counterUnit} field. */ - @NativeType("XrPerformanceMetricsCounterUnitMETA") - public int counterUnit() { return XrPerformanceMetricsCounterMETA.ncounterUnit(address()); } - /** @return the value of the {@link XrPerformanceMetricsCounterMETA#uintValue} field. */ - @NativeType("uint32_t") - public int uintValue() { return XrPerformanceMetricsCounterMETA.nuintValue(address()); } - /** @return the value of the {@link XrPerformanceMetricsCounterMETA#floatValue} field. */ - public float floatValue() { return XrPerformanceMetricsCounterMETA.nfloatValue(address()); } - - /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#type} field. */ - public XrPerformanceMetricsCounterMETA.Buffer type(@NativeType("XrStructureType") int value) { XrPerformanceMetricsCounterMETA.ntype(address(), value); return this; } - /** Sets the {@link METAPerformanceMetrics#XR_TYPE_PERFORMANCE_METRICS_COUNTER_META TYPE_PERFORMANCE_METRICS_COUNTER_META} value to the {@link XrPerformanceMetricsCounterMETA#type} field. */ - public XrPerformanceMetricsCounterMETA.Buffer type$Default() { return type(METAPerformanceMetrics.XR_TYPE_PERFORMANCE_METRICS_COUNTER_META); } - /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#next} field. */ - public XrPerformanceMetricsCounterMETA.Buffer next(@NativeType("void const *") long value) { XrPerformanceMetricsCounterMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#counterFlags} field. */ - public XrPerformanceMetricsCounterMETA.Buffer counterFlags(@NativeType("XrPerformanceMetricsCounterFlagsMETA") long value) { XrPerformanceMetricsCounterMETA.ncounterFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#counterUnit} field. */ - public XrPerformanceMetricsCounterMETA.Buffer counterUnit(@NativeType("XrPerformanceMetricsCounterUnitMETA") int value) { XrPerformanceMetricsCounterMETA.ncounterUnit(address(), value); return this; } - /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#uintValue} field. */ - public XrPerformanceMetricsCounterMETA.Buffer uintValue(@NativeType("uint32_t") int value) { XrPerformanceMetricsCounterMETA.nuintValue(address(), value); return this; } - /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#floatValue} field. */ - public XrPerformanceMetricsCounterMETA.Buffer floatValue(float value) { XrPerformanceMetricsCounterMETA.nfloatValue(address(), value); return this; } + + /** @return the value of the {@link XrPerformanceMetricsCounterMETA#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPerformanceMetricsCounterMETA.ntype(address()); } + /** @return the value of the {@link XrPerformanceMetricsCounterMETA#next} field. */ + @NativeType("void const *") + public long next() { return XrPerformanceMetricsCounterMETA.nnext(address()); } + /** @return the value of the {@link XrPerformanceMetricsCounterMETA#counterFlags} field. */ + @NativeType("XrPerformanceMetricsCounterFlagsMETA") + public long counterFlags() { return XrPerformanceMetricsCounterMETA.ncounterFlags(address()); } + /** @return the value of the {@link XrPerformanceMetricsCounterMETA#counterUnit} field. */ + @NativeType("XrPerformanceMetricsCounterUnitMETA") + public int counterUnit() { return XrPerformanceMetricsCounterMETA.ncounterUnit(address()); } + /** @return the value of the {@link XrPerformanceMetricsCounterMETA#uintValue} field. */ + @NativeType("uint32_t") + public int uintValue() { return XrPerformanceMetricsCounterMETA.nuintValue(address()); } + /** @return the value of the {@link XrPerformanceMetricsCounterMETA#floatValue} field. */ + public float floatValue() { return XrPerformanceMetricsCounterMETA.nfloatValue(address()); } + + /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#type} field. */ + public XrPerformanceMetricsCounterMETA.Buffer type(@NativeType("XrStructureType") int value) { XrPerformanceMetricsCounterMETA.ntype(address(), value); return this; } + /** Sets the {@link METAPerformanceMetrics#XR_TYPE_PERFORMANCE_METRICS_COUNTER_META TYPE_PERFORMANCE_METRICS_COUNTER_META} value to the {@link XrPerformanceMetricsCounterMETA#type} field. */ + public XrPerformanceMetricsCounterMETA.Buffer type$Default() { return type(METAPerformanceMetrics.XR_TYPE_PERFORMANCE_METRICS_COUNTER_META); } + /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#next} field. */ + public XrPerformanceMetricsCounterMETA.Buffer next(@NativeType("void const *") long value) { XrPerformanceMetricsCounterMETA.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#counterFlags} field. */ + public XrPerformanceMetricsCounterMETA.Buffer counterFlags(@NativeType("XrPerformanceMetricsCounterFlagsMETA") long value) { XrPerformanceMetricsCounterMETA.ncounterFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#counterUnit} field. */ + public XrPerformanceMetricsCounterMETA.Buffer counterUnit(@NativeType("XrPerformanceMetricsCounterUnitMETA") int value) { XrPerformanceMetricsCounterMETA.ncounterUnit(address(), value); return this; } + /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#uintValue} field. */ + public XrPerformanceMetricsCounterMETA.Buffer uintValue(@NativeType("uint32_t") int value) { XrPerformanceMetricsCounterMETA.nuintValue(address(), value); return this; } + /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#floatValue} field. */ + public XrPerformanceMetricsCounterMETA.Buffer floatValue(float value) { XrPerformanceMetricsCounterMETA.nfloatValue(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPerformanceMetricsStateMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPerformanceMetricsStateMETA.java index e4e53d6917..59c0dde688 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPerformanceMetricsStateMETA.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPerformanceMetricsStateMETA.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.*; + /** * Performance metrics enable state. * @@ -42,8 +42,8 @@ * void const * {@link #next}; * XrBool32 {@link #enabled}; * } - */ -public class XrPerformanceMetricsStateMETA extends Struct implements NativeResource { + */ +public class XrPerformanceMetricsStateMETA extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,32 +53,23 @@ public class XrPerformanceMetricsStateMETA extends Struct implements NativeResource { @@ -275,9 +266,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 XrPerformanceMetricsStateMETA#SIZEOF}, and its mark will be undefined.

        + * by {@link XrPerformanceMetricsStateMETA#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -302,25 +293,25 @@ protected Buffer self() { protected XrPerformanceMetricsStateMETA getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPerformanceMetricsStateMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPerformanceMetricsStateMETA.ntype(address()); } - /** @return the value of the {@link XrPerformanceMetricsStateMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrPerformanceMetricsStateMETA.nnext(address()); } - /** @return the value of the {@link XrPerformanceMetricsStateMETA#enabled} field. */ - @NativeType("XrBool32") - public boolean enabled() { return XrPerformanceMetricsStateMETA.nenabled(address()) != 0; } - - /** Sets the specified value to the {@link XrPerformanceMetricsStateMETA#type} field. */ - public XrPerformanceMetricsStateMETA.Buffer type(@NativeType("XrStructureType") int value) { XrPerformanceMetricsStateMETA.ntype(address(), value); return this; } - /** Sets the {@link METAPerformanceMetrics#XR_TYPE_PERFORMANCE_METRICS_STATE_META TYPE_PERFORMANCE_METRICS_STATE_META} value to the {@link XrPerformanceMetricsStateMETA#type} field. */ - public XrPerformanceMetricsStateMETA.Buffer type$Default() { return type(METAPerformanceMetrics.XR_TYPE_PERFORMANCE_METRICS_STATE_META); } - /** Sets the specified value to the {@link XrPerformanceMetricsStateMETA#next} field. */ - public XrPerformanceMetricsStateMETA.Buffer next(@NativeType("void const *") long value) { XrPerformanceMetricsStateMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPerformanceMetricsStateMETA#enabled} field. */ - public XrPerformanceMetricsStateMETA.Buffer enabled(@NativeType("XrBool32") boolean value) { XrPerformanceMetricsStateMETA.nenabled(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrPerformanceMetricsStateMETA#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPerformanceMetricsStateMETA.ntype(address()); } + /** @return the value of the {@link XrPerformanceMetricsStateMETA#next} field. */ + @NativeType("void const *") + public long next() { return XrPerformanceMetricsStateMETA.nnext(address()); } + /** @return the value of the {@link XrPerformanceMetricsStateMETA#enabled} field. */ + @NativeType("XrBool32") + public boolean enabled() { return XrPerformanceMetricsStateMETA.nenabled(address()) != 0; } + + /** Sets the specified value to the {@link XrPerformanceMetricsStateMETA#type} field. */ + public XrPerformanceMetricsStateMETA.Buffer type(@NativeType("XrStructureType") int value) { XrPerformanceMetricsStateMETA.ntype(address(), value); return this; } + /** Sets the {@link METAPerformanceMetrics#XR_TYPE_PERFORMANCE_METRICS_STATE_META TYPE_PERFORMANCE_METRICS_STATE_META} value to the {@link XrPerformanceMetricsStateMETA#type} field. */ + public XrPerformanceMetricsStateMETA.Buffer type$Default() { return type(METAPerformanceMetrics.XR_TYPE_PERFORMANCE_METRICS_STATE_META); } + /** Sets the specified value to the {@link XrPerformanceMetricsStateMETA#next} field. */ + public XrPerformanceMetricsStateMETA.Buffer next(@NativeType("void const *") long value) { XrPerformanceMetricsStateMETA.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrPerformanceMetricsStateMETA#enabled} field. */ + public XrPerformanceMetricsStateMETA.Buffer enabled(@NativeType("XrBool32") boolean value) { XrPerformanceMetricsStateMETA.nenabled(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPosef.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPosef.java index bb59ded03e..f956adc951 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPosef.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPosef.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.*; + /** * Location and orientation in a space. * @@ -33,8 +33,8 @@ * {@link XrQuaternionf XrQuaternionf} {@link #orientation}; * {@link XrVector3f XrVector3f} {@link #position$ position}; * } - */ -public class XrPosef extends Struct implements NativeResource { + */ +public class XrPosef extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -44,29 +44,20 @@ public class XrPosef extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - ORIENTATION, - POSITION; + ORIENTATION, + POSITION; static { - Layout layout = __struct( - __member(XrQuaternionf.SIZEOF, XrQuaternionf.ALIGNOF), + Layout layout = __struct( + __member(XrQuaternionf.SIZEOF, XrQuaternionf.ALIGNOF), __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - ORIENTATION = layout.offsetof(0); - POSITION = layout.offsetof(1); - } - - protected XrPosef(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrPosef create(long address, @Nullable ByteBuffer container) { - return new XrPosef(address, container); + ORIENTATION = layout.offsetof(0); + POSITION = layout.offsetof(1); } /** @@ -81,28 +72,28 @@ public XrPosef(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** an {@link XrQuaternionf} representing the orientation within a space. */ - public XrQuaternionf orientation() { return norientation(address()); } - /** an {@link XrVector3f} representing position within a space. */ - public XrVector3f position$() { return nposition$(address()); } - - /** Copies the specified {@link XrQuaternionf} to the {@link #orientation} field. */ - public XrPosef orientation(XrQuaternionf value) { norientation(address(), value); return this; } - /** Passes the {@link #orientation} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPosef orientation(java.util.function.Consumer consumer) { consumer.accept(orientation()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #position$} field. */ - public XrPosef position$(XrVector3f value) { nposition$(address(), value); return this; } - /** Passes the {@link #position$} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPosef position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } + + /** an {@link XrQuaternionf} representing the orientation within a space. */ + public XrQuaternionf orientation() { return norientation(address()); } + /** an {@link XrVector3f} representing position within a space. */ + public XrVector3f position$() { return nposition$(address()); } + + /** Copies the specified {@link XrQuaternionf} to the {@link #orientation} field. */ + public XrPosef orientation(XrQuaternionf value) { norientation(address(), value); return this; } + /** Passes the {@link #orientation} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPosef orientation(java.util.function.Consumer consumer) { consumer.accept(orientation()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #position$} field. */ + public XrPosef position$(XrVector3f value) { nposition$(address(), value); return this; } + /** Passes the {@link #position$} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPosef position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } /** Initializes this struct with the specified values. */ public XrPosef set( - XrQuaternionf orientation, + XrQuaternionf orientation, XrVector3f position$ - ) { - orientation(orientation); - position$(position$); + ) { + orientation(orientation); + position$(position$); return this; } @@ -123,29 +114,29 @@ public XrPosef set(XrPosef src) { /** Returns a new {@code XrPosef} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrPosef malloc() { - return new XrPosef(nmemAllocChecked(SIZEOF), null); + return wrap(XrPosef.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrPosef} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrPosef calloc() { - return new XrPosef(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrPosef.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrPosef} instance allocated with {@link BufferUtils}. */ public static XrPosef create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrPosef(memAddress(container), container); + return wrap(XrPosef.class, memAddress(container), container); } /** Returns a new {@code XrPosef} instance for the specified memory address. */ public static XrPosef create(long address) { - return new XrPosef(address, null); + return wrap(XrPosef.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrPosef createSafe(long address) { - return address == NULL ? null : new XrPosef(address, null); + return address == NULL ? null : wrap(XrPosef.class, address); } /** @@ -154,7 +145,7 @@ public static XrPosef createSafe(long address) { * @param capacity the buffer capacity */ public static XrPosef.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -163,7 +154,7 @@ public static XrPosef.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrPosef.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -173,7 +164,7 @@ public static XrPosef.Buffer calloc(int capacity) { */ public static XrPosef.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); } /** @@ -183,13 +174,13 @@ public static XrPosef.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrPosef.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 XrPosef.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -198,7 +189,7 @@ public static XrPosef.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrPosef malloc(MemoryStack stack) { - return new XrPosef(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrPosef.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -207,7 +198,7 @@ public static XrPosef malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrPosef calloc(MemoryStack stack) { - return new XrPosef(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrPosef.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -217,7 +208,7 @@ public static XrPosef calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrPosef.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); } /** @@ -227,22 +218,22 @@ public static XrPosef.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrPosef.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 #orientation}. */ - public static XrQuaternionf norientation(long struct) { return XrQuaternionf.create(struct + XrPosef.ORIENTATION); } - /** Unsafe version of {@link #position$}. */ - public static XrVector3f nposition$(long struct) { return XrVector3f.create(struct + XrPosef.POSITION); } - - /** Unsafe version of {@link #orientation(XrQuaternionf) orientation}. */ - public static void norientation(long struct, XrQuaternionf value) { memCopy(value.address(), struct + XrPosef.ORIENTATION, XrQuaternionf.SIZEOF); } - /** Unsafe version of {@link #position$(XrVector3f) position$}. */ - public static void nposition$(long struct, XrVector3f value) { memCopy(value.address(), struct + XrPosef.POSITION, XrVector3f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #orientation}. */ + public static XrQuaternionf norientation(long struct) { return XrQuaternionf.create(struct + XrPosef.ORIENTATION); } + /** Unsafe version of {@link #position$}. */ + public static XrVector3f nposition$(long struct) { return XrVector3f.create(struct + XrPosef.POSITION); } + + /** Unsafe version of {@link #orientation(XrQuaternionf) orientation}. */ + public static void norientation(long struct, XrQuaternionf value) { memCopy(value.address(), struct + XrPosef.ORIENTATION, XrQuaternionf.SIZEOF); } + /** Unsafe version of {@link #position$(XrVector3f) position$}. */ + public static void nposition$(long struct, XrVector3f value) { memCopy(value.address(), struct + XrPosef.POSITION, XrVector3f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrPosef} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -252,9 +243,9 @@ public static class Buffer extends StructBuffer implements Nati /** * Creates a new {@code XrPosef.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 XrPosef#SIZEOF}, and its mark will be undefined.

        + * by {@link XrPosef#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -279,20 +270,20 @@ protected Buffer self() { protected XrPosef getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link XrQuaternionf} view of the {@link XrPosef#orientation} field. */ - public XrQuaternionf orientation() { return XrPosef.norientation(address()); } - /** @return a {@link XrVector3f} view of the {@link XrPosef#position$} field. */ - public XrVector3f position$() { return XrPosef.nposition$(address()); } - - /** Copies the specified {@link XrQuaternionf} to the {@link XrPosef#orientation} field. */ - public XrPosef.Buffer orientation(XrQuaternionf value) { XrPosef.norientation(address(), value); return this; } - /** Passes the {@link XrPosef#orientation} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPosef.Buffer orientation(java.util.function.Consumer consumer) { consumer.accept(orientation()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrPosef#position$} field. */ - public XrPosef.Buffer position$(XrVector3f value) { XrPosef.nposition$(address(), value); return this; } - /** Passes the {@link XrPosef#position$} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPosef.Buffer position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } + + /** @return a {@link XrQuaternionf} view of the {@link XrPosef#orientation} field. */ + public XrQuaternionf orientation() { return XrPosef.norientation(address()); } + /** @return a {@link XrVector3f} view of the {@link XrPosef#position$} field. */ + public XrVector3f position$() { return XrPosef.nposition$(address()); } + + /** Copies the specified {@link XrQuaternionf} to the {@link XrPosef#orientation} field. */ + public XrPosef.Buffer orientation(XrQuaternionf value) { XrPosef.norientation(address(), value); return this; } + /** Passes the {@link XrPosef#orientation} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPosef.Buffer orientation(java.util.function.Consumer consumer) { consumer.accept(orientation()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrPosef#position$} field. */ + public XrPosef.Buffer position$(XrVector3f value) { XrPosef.nposition$(address(), value); return this; } + /** Passes the {@link XrPosef#position$} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPosef.Buffer position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrQuaternionf.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrQuaternionf.java index 7d7e029f3f..b184830b2d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrQuaternionf.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrQuaternionf.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.*; + /** * Unit Quaternion. * @@ -31,8 +31,8 @@ * float {@link #z}; * float {@link #w}; * } - */ -public class XrQuaternionf extends Struct implements NativeResource { + */ +public class XrQuaternionf extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -42,35 +42,26 @@ public class XrQuaternionf extends Struct implements NativeResour /** The struct member offsets. */ public static final int - X, - Y, - Z, - W; + X, + Y, + Z, + W; 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(); - X = layout.offsetof(0); - Y = layout.offsetof(1); - Z = layout.offsetof(2); - W = layout.offsetof(3); - } - - protected XrQuaternionf(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrQuaternionf create(long address, @Nullable ByteBuffer container) { - return new XrQuaternionf(address, container); + X = layout.offsetof(0); + Y = layout.offsetof(1); + Z = layout.offsetof(2); + W = layout.offsetof(3); } /** @@ -85,36 +76,36 @@ public XrQuaternionf(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the x coordinate of the quaternion. */ - public float x() { return nx(address()); } - /** the y coordinate of the quaternion. */ - public float y() { return ny(address()); } - /** the z coordinate of the quaternion. */ - public float z() { return nz(address()); } - /** the w coordinate of the quaternion. */ - public float w() { return nw(address()); } - - /** Sets the specified value to the {@link #x} field. */ - public XrQuaternionf x(float value) { nx(address(), value); return this; } - /** Sets the specified value to the {@link #y} field. */ - public XrQuaternionf y(float value) { ny(address(), value); return this; } - /** Sets the specified value to the {@link #z} field. */ - public XrQuaternionf z(float value) { nz(address(), value); return this; } - /** Sets the specified value to the {@link #w} field. */ - public XrQuaternionf w(float value) { nw(address(), value); return this; } + + /** the x coordinate of the quaternion. */ + public float x() { return nx(address()); } + /** the y coordinate of the quaternion. */ + public float y() { return ny(address()); } + /** the z coordinate of the quaternion. */ + public float z() { return nz(address()); } + /** the w coordinate of the quaternion. */ + public float w() { return nw(address()); } + + /** Sets the specified value to the {@link #x} field. */ + public XrQuaternionf x(float value) { nx(address(), value); return this; } + /** Sets the specified value to the {@link #y} field. */ + public XrQuaternionf y(float value) { ny(address(), value); return this; } + /** Sets the specified value to the {@link #z} field. */ + public XrQuaternionf z(float value) { nz(address(), value); return this; } + /** Sets the specified value to the {@link #w} field. */ + public XrQuaternionf w(float value) { nw(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrQuaternionf set( - float x, - float y, - float z, + float x, + float y, + float z, float w - ) { - x(x); - y(y); - z(z); - w(w); + ) { + x(x); + y(y); + z(z); + w(w); return this; } @@ -135,29 +126,29 @@ public XrQuaternionf set(XrQuaternionf src) { /** Returns a new {@code XrQuaternionf} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrQuaternionf malloc() { - return new XrQuaternionf(nmemAllocChecked(SIZEOF), null); + return wrap(XrQuaternionf.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrQuaternionf} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrQuaternionf calloc() { - return new XrQuaternionf(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrQuaternionf.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrQuaternionf} instance allocated with {@link BufferUtils}. */ public static XrQuaternionf create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrQuaternionf(memAddress(container), container); + return wrap(XrQuaternionf.class, memAddress(container), container); } /** Returns a new {@code XrQuaternionf} instance for the specified memory address. */ public static XrQuaternionf create(long address) { - return new XrQuaternionf(address, null); + return wrap(XrQuaternionf.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrQuaternionf createSafe(long address) { - return address == NULL ? null : new XrQuaternionf(address, null); + return address == NULL ? null : wrap(XrQuaternionf.class, address); } /** @@ -166,7 +157,7 @@ public static XrQuaternionf createSafe(long address) { * @param capacity the buffer capacity */ public static XrQuaternionf.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 XrQuaternionf.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrQuaternionf.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 XrQuaternionf.Buffer calloc(int capacity) { */ public static XrQuaternionf.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 XrQuaternionf.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrQuaternionf.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 XrQuaternionf.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 XrQuaternionf.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrQuaternionf malloc(MemoryStack stack) { - return new XrQuaternionf(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrQuaternionf.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -219,7 +210,7 @@ public static XrQuaternionf malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrQuaternionf calloc(MemoryStack stack) { - return new XrQuaternionf(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrQuaternionf.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -229,7 +220,7 @@ public static XrQuaternionf calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrQuaternionf.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,30 +230,30 @@ public static XrQuaternionf.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrQuaternionf.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 #x}. */ - public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrQuaternionf.X); } - /** Unsafe version of {@link #y}. */ - public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrQuaternionf.Y); } - /** Unsafe version of {@link #z}. */ - public static float nz(long struct) { return UNSAFE.getFloat(null, struct + XrQuaternionf.Z); } - /** Unsafe version of {@link #w}. */ - public static float nw(long struct) { return UNSAFE.getFloat(null, struct + XrQuaternionf.W); } - - /** Unsafe version of {@link #x(float) x}. */ - public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrQuaternionf.X, value); } - /** Unsafe version of {@link #y(float) y}. */ - public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrQuaternionf.Y, value); } - /** Unsafe version of {@link #z(float) z}. */ - public static void nz(long struct, float value) { UNSAFE.putFloat(null, struct + XrQuaternionf.Z, value); } - /** Unsafe version of {@link #w(float) w}. */ - public static void nw(long struct, float value) { UNSAFE.putFloat(null, struct + XrQuaternionf.W, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #x}. */ + public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrQuaternionf.X); } + /** Unsafe version of {@link #y}. */ + public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrQuaternionf.Y); } + /** Unsafe version of {@link #z}. */ + public static float nz(long struct) { return UNSAFE.getFloat(null, struct + XrQuaternionf.Z); } + /** Unsafe version of {@link #w}. */ + public static float nw(long struct) { return UNSAFE.getFloat(null, struct + XrQuaternionf.W); } + + /** Unsafe version of {@link #x(float) x}. */ + public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrQuaternionf.X, value); } + /** Unsafe version of {@link #y(float) y}. */ + public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrQuaternionf.Y, value); } + /** Unsafe version of {@link #z(float) z}. */ + public static void nz(long struct, float value) { UNSAFE.putFloat(null, struct + XrQuaternionf.Z, value); } + /** Unsafe version of {@link #w(float) w}. */ + public static void nw(long struct, float value) { UNSAFE.putFloat(null, struct + XrQuaternionf.W, value); } + + // ----------------------------------- /** An array of {@link XrQuaternionf} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -272,9 +263,9 @@ public static class Buffer extends StructBuffer implement /** * Creates a new {@code XrQuaternionf.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 XrQuaternionf#SIZEOF}, and its mark will be undefined.

        + * by {@link XrQuaternionf#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -299,24 +290,24 @@ protected Buffer self() { protected XrQuaternionf getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrQuaternionf#x} field. */ - public float x() { return XrQuaternionf.nx(address()); } - /** @return the value of the {@link XrQuaternionf#y} field. */ - public float y() { return XrQuaternionf.ny(address()); } - /** @return the value of the {@link XrQuaternionf#z} field. */ - public float z() { return XrQuaternionf.nz(address()); } - /** @return the value of the {@link XrQuaternionf#w} field. */ - public float w() { return XrQuaternionf.nw(address()); } - - /** Sets the specified value to the {@link XrQuaternionf#x} field. */ - public XrQuaternionf.Buffer x(float value) { XrQuaternionf.nx(address(), value); return this; } - /** Sets the specified value to the {@link XrQuaternionf#y} field. */ - public XrQuaternionf.Buffer y(float value) { XrQuaternionf.ny(address(), value); return this; } - /** Sets the specified value to the {@link XrQuaternionf#z} field. */ - public XrQuaternionf.Buffer z(float value) { XrQuaternionf.nz(address(), value); return this; } - /** Sets the specified value to the {@link XrQuaternionf#w} field. */ - public XrQuaternionf.Buffer w(float value) { XrQuaternionf.nw(address(), value); return this; } + + /** @return the value of the {@link XrQuaternionf#x} field. */ + public float x() { return XrQuaternionf.nx(address()); } + /** @return the value of the {@link XrQuaternionf#y} field. */ + public float y() { return XrQuaternionf.ny(address()); } + /** @return the value of the {@link XrQuaternionf#z} field. */ + public float z() { return XrQuaternionf.nz(address()); } + /** @return the value of the {@link XrQuaternionf#w} field. */ + public float w() { return XrQuaternionf.nw(address()); } + + /** Sets the specified value to the {@link XrQuaternionf#x} field. */ + public XrQuaternionf.Buffer x(float value) { XrQuaternionf.nx(address(), value); return this; } + /** Sets the specified value to the {@link XrQuaternionf#y} field. */ + public XrQuaternionf.Buffer y(float value) { XrQuaternionf.ny(address(), value); return this; } + /** Sets the specified value to the {@link XrQuaternionf#z} field. */ + public XrQuaternionf.Buffer z(float value) { XrQuaternionf.nz(address(), value); return this; } + /** Sets the specified value to the {@link XrQuaternionf#w} field. */ + public XrQuaternionf.Buffer w(float value) { XrQuaternionf.nw(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect2Df.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect2Df.java index fbcd3d5114..f775b62e14 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect2Df.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect2Df.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.*; + /** * Rect in two dimensions. * @@ -33,8 +33,8 @@ * {@link XrOffset2Df XrOffset2Df} {@link #offset}; * {@link XrExtent2Df XrExtent2Df} {@link #extent}; * } - */ -public class XrRect2Df extends Struct implements NativeResource { + */ +public class XrRect2Df extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -44,29 +44,20 @@ public class XrRect2Df extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - OFFSET, - EXTENT; + OFFSET, + EXTENT; static { - Layout layout = __struct( - __member(XrOffset2Df.SIZEOF, XrOffset2Df.ALIGNOF), + Layout layout = __struct( + __member(XrOffset2Df.SIZEOF, XrOffset2Df.ALIGNOF), __member(XrExtent2Df.SIZEOF, XrExtent2Df.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - OFFSET = layout.offsetof(0); - EXTENT = layout.offsetof(1); - } - - protected XrRect2Df(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrRect2Df create(long address, @Nullable ByteBuffer container) { - return new XrRect2Df(address, container); + OFFSET = layout.offsetof(0); + EXTENT = layout.offsetof(1); } /** @@ -81,28 +72,28 @@ public XrRect2Df(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@link XrOffset2Df} specifying the rectangle offset. */ - public XrOffset2Df offset() { return noffset(address()); } - /** the {@link XrExtent2Df} specifying the rectangle extent. */ - public XrExtent2Df extent() { return nextent(address()); } - - /** Copies the specified {@link XrOffset2Df} to the {@link #offset} field. */ - public XrRect2Df offset(XrOffset2Df value) { noffset(address(), value); return this; } - /** Passes the {@link #offset} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect2Df offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } - /** Copies the specified {@link XrExtent2Df} to the {@link #extent} field. */ - public XrRect2Df extent(XrExtent2Df value) { nextent(address(), value); return this; } - /** Passes the {@link #extent} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect2Df extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } + + /** the {@link XrOffset2Df} specifying the rectangle offset. */ + public XrOffset2Df offset() { return noffset(address()); } + /** the {@link XrExtent2Df} specifying the rectangle extent. */ + public XrExtent2Df extent() { return nextent(address()); } + + /** Copies the specified {@link XrOffset2Df} to the {@link #offset} field. */ + public XrRect2Df offset(XrOffset2Df value) { noffset(address(), value); return this; } + /** Passes the {@link #offset} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect2Df offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } + /** Copies the specified {@link XrExtent2Df} to the {@link #extent} field. */ + public XrRect2Df extent(XrExtent2Df value) { nextent(address(), value); return this; } + /** Passes the {@link #extent} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect2Df extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } /** Initializes this struct with the specified values. */ public XrRect2Df set( - XrOffset2Df offset, + XrOffset2Df offset, XrExtent2Df extent - ) { - offset(offset); - extent(extent); + ) { + offset(offset); + extent(extent); return this; } @@ -123,29 +114,29 @@ public XrRect2Df set(XrRect2Df src) { /** Returns a new {@code XrRect2Df} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrRect2Df malloc() { - return new XrRect2Df(nmemAllocChecked(SIZEOF), null); + return wrap(XrRect2Df.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrRect2Df} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrRect2Df calloc() { - return new XrRect2Df(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrRect2Df.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrRect2Df} instance allocated with {@link BufferUtils}. */ public static XrRect2Df create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrRect2Df(memAddress(container), container); + return wrap(XrRect2Df.class, memAddress(container), container); } /** Returns a new {@code XrRect2Df} instance for the specified memory address. */ public static XrRect2Df create(long address) { - return new XrRect2Df(address, null); + return wrap(XrRect2Df.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrRect2Df createSafe(long address) { - return address == NULL ? null : new XrRect2Df(address, null); + return address == NULL ? null : wrap(XrRect2Df.class, address); } /** @@ -154,7 +145,7 @@ public static XrRect2Df createSafe(long address) { * @param capacity the buffer capacity */ public static XrRect2Df.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -163,7 +154,7 @@ public static XrRect2Df.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrRect2Df.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -173,7 +164,7 @@ public static XrRect2Df.Buffer calloc(int capacity) { */ public static XrRect2Df.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); } /** @@ -183,13 +174,13 @@ public static XrRect2Df.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrRect2Df.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 XrRect2Df.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -198,7 +189,7 @@ public static XrRect2Df.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrRect2Df malloc(MemoryStack stack) { - return new XrRect2Df(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrRect2Df.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -207,7 +198,7 @@ public static XrRect2Df malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrRect2Df calloc(MemoryStack stack) { - return new XrRect2Df(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrRect2Df.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -217,7 +208,7 @@ public static XrRect2Df calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrRect2Df.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); } /** @@ -227,22 +218,22 @@ public static XrRect2Df.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrRect2Df.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 #offset}. */ - public static XrOffset2Df noffset(long struct) { return XrOffset2Df.create(struct + XrRect2Df.OFFSET); } - /** Unsafe version of {@link #extent}. */ - public static XrExtent2Df nextent(long struct) { return XrExtent2Df.create(struct + XrRect2Df.EXTENT); } - - /** Unsafe version of {@link #offset(XrOffset2Df) offset}. */ - public static void noffset(long struct, XrOffset2Df value) { memCopy(value.address(), struct + XrRect2Df.OFFSET, XrOffset2Df.SIZEOF); } - /** Unsafe version of {@link #extent(XrExtent2Df) extent}. */ - public static void nextent(long struct, XrExtent2Df value) { memCopy(value.address(), struct + XrRect2Df.EXTENT, XrExtent2Df.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #offset}. */ + public static XrOffset2Df noffset(long struct) { return XrOffset2Df.create(struct + XrRect2Df.OFFSET); } + /** Unsafe version of {@link #extent}. */ + public static XrExtent2Df nextent(long struct) { return XrExtent2Df.create(struct + XrRect2Df.EXTENT); } + + /** Unsafe version of {@link #offset(XrOffset2Df) offset}. */ + public static void noffset(long struct, XrOffset2Df value) { memCopy(value.address(), struct + XrRect2Df.OFFSET, XrOffset2Df.SIZEOF); } + /** Unsafe version of {@link #extent(XrExtent2Df) extent}. */ + public static void nextent(long struct, XrExtent2Df value) { memCopy(value.address(), struct + XrRect2Df.EXTENT, XrExtent2Df.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrRect2Df} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -252,9 +243,9 @@ public static class Buffer extends StructBuffer implements Na /** * Creates a new {@code XrRect2Df.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 XrRect2Df#SIZEOF}, and its mark will be undefined.

        + * by {@link XrRect2Df#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -279,20 +270,20 @@ protected Buffer self() { protected XrRect2Df getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link XrOffset2Df} view of the {@link XrRect2Df#offset} field. */ - public XrOffset2Df offset() { return XrRect2Df.noffset(address()); } - /** @return a {@link XrExtent2Df} view of the {@link XrRect2Df#extent} field. */ - public XrExtent2Df extent() { return XrRect2Df.nextent(address()); } - - /** Copies the specified {@link XrOffset2Df} to the {@link XrRect2Df#offset} field. */ - public XrRect2Df.Buffer offset(XrOffset2Df value) { XrRect2Df.noffset(address(), value); return this; } - /** Passes the {@link XrRect2Df#offset} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect2Df.Buffer offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } - /** Copies the specified {@link XrExtent2Df} to the {@link XrRect2Df#extent} field. */ - public XrRect2Df.Buffer extent(XrExtent2Df value) { XrRect2Df.nextent(address(), value); return this; } - /** Passes the {@link XrRect2Df#extent} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect2Df.Buffer extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } + + /** @return a {@link XrOffset2Df} view of the {@link XrRect2Df#offset} field. */ + public XrOffset2Df offset() { return XrRect2Df.noffset(address()); } + /** @return a {@link XrExtent2Df} view of the {@link XrRect2Df#extent} field. */ + public XrExtent2Df extent() { return XrRect2Df.nextent(address()); } + + /** Copies the specified {@link XrOffset2Df} to the {@link XrRect2Df#offset} field. */ + public XrRect2Df.Buffer offset(XrOffset2Df value) { XrRect2Df.noffset(address(), value); return this; } + /** Passes the {@link XrRect2Df#offset} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect2Df.Buffer offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } + /** Copies the specified {@link XrExtent2Df} to the {@link XrRect2Df#extent} field. */ + public XrRect2Df.Buffer extent(XrExtent2Df value) { XrRect2Df.nextent(address(), value); return this; } + /** Passes the {@link XrRect2Df#extent} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect2Df.Buffer extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect2Di.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect2Di.java index 97e9cc89f5..5d63d195e0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect2Di.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect2Di.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.*; + /** * Rect in two dimensions. * @@ -33,8 +33,8 @@ * {@link XrOffset2Di XrOffset2Di} {@link #offset}; * {@link XrExtent2Di XrExtent2Di} {@link #extent}; * } - */ -public class XrRect2Di extends Struct implements NativeResource { + */ +public class XrRect2Di extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -44,29 +44,20 @@ public class XrRect2Di extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - OFFSET, - EXTENT; + OFFSET, + EXTENT; static { - Layout layout = __struct( - __member(XrOffset2Di.SIZEOF, XrOffset2Di.ALIGNOF), + Layout layout = __struct( + __member(XrOffset2Di.SIZEOF, XrOffset2Di.ALIGNOF), __member(XrExtent2Di.SIZEOF, XrExtent2Di.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - OFFSET = layout.offsetof(0); - EXTENT = layout.offsetof(1); - } - - protected XrRect2Di(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrRect2Di create(long address, @Nullable ByteBuffer container) { - return new XrRect2Di(address, container); + OFFSET = layout.offsetof(0); + EXTENT = layout.offsetof(1); } /** @@ -81,28 +72,28 @@ public XrRect2Di(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@link XrOffset2Di} specifying the integer rectangle offset. */ - public XrOffset2Di offset() { return noffset(address()); } - /** the {@link XrExtent2Di} specifying the integer rectangle extent. */ - public XrExtent2Di extent() { return nextent(address()); } - - /** Copies the specified {@link XrOffset2Di} to the {@link #offset} field. */ - public XrRect2Di offset(XrOffset2Di value) { noffset(address(), value); return this; } - /** Passes the {@link #offset} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect2Di offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } - /** Copies the specified {@link XrExtent2Di} to the {@link #extent} field. */ - public XrRect2Di extent(XrExtent2Di value) { nextent(address(), value); return this; } - /** Passes the {@link #extent} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect2Di extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } + + /** the {@link XrOffset2Di} specifying the integer rectangle offset. */ + public XrOffset2Di offset() { return noffset(address()); } + /** the {@link XrExtent2Di} specifying the integer rectangle extent. */ + public XrExtent2Di extent() { return nextent(address()); } + + /** Copies the specified {@link XrOffset2Di} to the {@link #offset} field. */ + public XrRect2Di offset(XrOffset2Di value) { noffset(address(), value); return this; } + /** Passes the {@link #offset} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect2Di offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } + /** Copies the specified {@link XrExtent2Di} to the {@link #extent} field. */ + public XrRect2Di extent(XrExtent2Di value) { nextent(address(), value); return this; } + /** Passes the {@link #extent} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect2Di extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } /** Initializes this struct with the specified values. */ public XrRect2Di set( - XrOffset2Di offset, + XrOffset2Di offset, XrExtent2Di extent - ) { - offset(offset); - extent(extent); + ) { + offset(offset); + extent(extent); return this; } @@ -123,29 +114,29 @@ public XrRect2Di set(XrRect2Di src) { /** Returns a new {@code XrRect2Di} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrRect2Di malloc() { - return new XrRect2Di(nmemAllocChecked(SIZEOF), null); + return wrap(XrRect2Di.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrRect2Di} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrRect2Di calloc() { - return new XrRect2Di(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrRect2Di.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrRect2Di} instance allocated with {@link BufferUtils}. */ public static XrRect2Di create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrRect2Di(memAddress(container), container); + return wrap(XrRect2Di.class, memAddress(container), container); } /** Returns a new {@code XrRect2Di} instance for the specified memory address. */ public static XrRect2Di create(long address) { - return new XrRect2Di(address, null); + return wrap(XrRect2Di.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrRect2Di createSafe(long address) { - return address == NULL ? null : new XrRect2Di(address, null); + return address == NULL ? null : wrap(XrRect2Di.class, address); } /** @@ -154,7 +145,7 @@ public static XrRect2Di createSafe(long address) { * @param capacity the buffer capacity */ public static XrRect2Di.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -163,7 +154,7 @@ public static XrRect2Di.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrRect2Di.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -173,7 +164,7 @@ public static XrRect2Di.Buffer calloc(int capacity) { */ public static XrRect2Di.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); } /** @@ -183,13 +174,13 @@ public static XrRect2Di.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrRect2Di.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 XrRect2Di.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -198,7 +189,7 @@ public static XrRect2Di.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrRect2Di malloc(MemoryStack stack) { - return new XrRect2Di(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrRect2Di.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -207,7 +198,7 @@ public static XrRect2Di malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrRect2Di calloc(MemoryStack stack) { - return new XrRect2Di(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrRect2Di.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -217,7 +208,7 @@ public static XrRect2Di calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrRect2Di.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); } /** @@ -227,22 +218,22 @@ public static XrRect2Di.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrRect2Di.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 #offset}. */ - public static XrOffset2Di noffset(long struct) { return XrOffset2Di.create(struct + XrRect2Di.OFFSET); } - /** Unsafe version of {@link #extent}. */ - public static XrExtent2Di nextent(long struct) { return XrExtent2Di.create(struct + XrRect2Di.EXTENT); } - - /** Unsafe version of {@link #offset(XrOffset2Di) offset}. */ - public static void noffset(long struct, XrOffset2Di value) { memCopy(value.address(), struct + XrRect2Di.OFFSET, XrOffset2Di.SIZEOF); } - /** Unsafe version of {@link #extent(XrExtent2Di) extent}. */ - public static void nextent(long struct, XrExtent2Di value) { memCopy(value.address(), struct + XrRect2Di.EXTENT, XrExtent2Di.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #offset}. */ + public static XrOffset2Di noffset(long struct) { return XrOffset2Di.create(struct + XrRect2Di.OFFSET); } + /** Unsafe version of {@link #extent}. */ + public static XrExtent2Di nextent(long struct) { return XrExtent2Di.create(struct + XrRect2Di.EXTENT); } + + /** Unsafe version of {@link #offset(XrOffset2Di) offset}. */ + public static void noffset(long struct, XrOffset2Di value) { memCopy(value.address(), struct + XrRect2Di.OFFSET, XrOffset2Di.SIZEOF); } + /** Unsafe version of {@link #extent(XrExtent2Di) extent}. */ + public static void nextent(long struct, XrExtent2Di value) { memCopy(value.address(), struct + XrRect2Di.EXTENT, XrExtent2Di.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrRect2Di} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -252,9 +243,9 @@ public static class Buffer extends StructBuffer implements Na /** * Creates a new {@code XrRect2Di.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 XrRect2Di#SIZEOF}, and its mark will be undefined.

        + * by {@link XrRect2Di#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -279,20 +270,20 @@ protected Buffer self() { protected XrRect2Di getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link XrOffset2Di} view of the {@link XrRect2Di#offset} field. */ - public XrOffset2Di offset() { return XrRect2Di.noffset(address()); } - /** @return a {@link XrExtent2Di} view of the {@link XrRect2Di#extent} field. */ - public XrExtent2Di extent() { return XrRect2Di.nextent(address()); } - - /** Copies the specified {@link XrOffset2Di} to the {@link XrRect2Di#offset} field. */ - public XrRect2Di.Buffer offset(XrOffset2Di value) { XrRect2Di.noffset(address(), value); return this; } - /** Passes the {@link XrRect2Di#offset} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect2Di.Buffer offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } - /** Copies the specified {@link XrExtent2Di} to the {@link XrRect2Di#extent} field. */ - public XrRect2Di.Buffer extent(XrExtent2Di value) { XrRect2Di.nextent(address(), value); return this; } - /** Passes the {@link XrRect2Di#extent} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect2Di.Buffer extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } + + /** @return a {@link XrOffset2Di} view of the {@link XrRect2Di#offset} field. */ + public XrOffset2Di offset() { return XrRect2Di.noffset(address()); } + /** @return a {@link XrExtent2Di} view of the {@link XrRect2Di#extent} field. */ + public XrExtent2Di extent() { return XrRect2Di.nextent(address()); } + + /** Copies the specified {@link XrOffset2Di} to the {@link XrRect2Di#offset} field. */ + public XrRect2Di.Buffer offset(XrOffset2Di value) { XrRect2Di.noffset(address(), value); return this; } + /** Passes the {@link XrRect2Di#offset} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect2Di.Buffer offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } + /** Copies the specified {@link XrExtent2Di} to the {@link XrRect2Di#extent} field. */ + public XrRect2Di.Buffer extent(XrExtent2Di value) { XrRect2Di.nextent(address(), value); return this; } + /** Passes the {@link XrRect2Di#extent} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect2Di.Buffer extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect3DfFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect3DfFB.java index 074bbb4975..e94d7bf0d1 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect3DfFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect3DfFB.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.*; + /** * Represents a rectangular prism containing a region of space. * @@ -39,8 +39,8 @@ * {@link XrOffset3DfFB XrOffset3DfFB} {@link #offset}; * {@link XrExtent3DfFB XrExtent3DfFB} {@link #extent}; * } - */ -public class XrRect3DfFB extends Struct implements NativeResource { + */ +public class XrRect3DfFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,29 +50,20 @@ public class XrRect3DfFB extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - OFFSET, - EXTENT; + OFFSET, + EXTENT; static { - Layout layout = __struct( - __member(XrOffset3DfFB.SIZEOF, XrOffset3DfFB.ALIGNOF), + Layout layout = __struct( + __member(XrOffset3DfFB.SIZEOF, XrOffset3DfFB.ALIGNOF), __member(XrExtent3DfFB.SIZEOF, XrExtent3DfFB.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - OFFSET = layout.offsetof(0); - EXTENT = layout.offsetof(1); - } - - protected XrRect3DfFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrRect3DfFB create(long address, @Nullable ByteBuffer container) { - return new XrRect3DfFB(address, container); + OFFSET = layout.offsetof(0); + EXTENT = layout.offsetof(1); } /** @@ -87,28 +78,28 @@ public XrRect3DfFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@link XrOffset3DfFB} specifying the rectangle offset. */ - public XrOffset3DfFB offset() { return noffset(address()); } - /** the {@link XrExtent3DfFB} specifying the rectangle extent. */ - public XrExtent3DfFB extent() { return nextent(address()); } - - /** Copies the specified {@link XrOffset3DfFB} to the {@link #offset} field. */ - public XrRect3DfFB offset(XrOffset3DfFB value) { noffset(address(), value); return this; } - /** Passes the {@link #offset} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect3DfFB offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } - /** Copies the specified {@link XrExtent3DfFB} to the {@link #extent} field. */ - public XrRect3DfFB extent(XrExtent3DfFB value) { nextent(address(), value); return this; } - /** Passes the {@link #extent} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect3DfFB extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } + + /** the {@link XrOffset3DfFB} specifying the rectangle offset. */ + public XrOffset3DfFB offset() { return noffset(address()); } + /** the {@link XrExtent3DfFB} specifying the rectangle extent. */ + public XrExtent3DfFB extent() { return nextent(address()); } + + /** Copies the specified {@link XrOffset3DfFB} to the {@link #offset} field. */ + public XrRect3DfFB offset(XrOffset3DfFB value) { noffset(address(), value); return this; } + /** Passes the {@link #offset} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect3DfFB offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } + /** Copies the specified {@link XrExtent3DfFB} to the {@link #extent} field. */ + public XrRect3DfFB extent(XrExtent3DfFB value) { nextent(address(), value); return this; } + /** Passes the {@link #extent} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect3DfFB extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } /** Initializes this struct with the specified values. */ public XrRect3DfFB set( - XrOffset3DfFB offset, + XrOffset3DfFB offset, XrExtent3DfFB extent - ) { - offset(offset); - extent(extent); + ) { + offset(offset); + extent(extent); return this; } @@ -129,29 +120,29 @@ public XrRect3DfFB set(XrRect3DfFB src) { /** Returns a new {@code XrRect3DfFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrRect3DfFB malloc() { - return new XrRect3DfFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrRect3DfFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrRect3DfFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrRect3DfFB calloc() { - return new XrRect3DfFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrRect3DfFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrRect3DfFB} instance allocated with {@link BufferUtils}. */ public static XrRect3DfFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrRect3DfFB(memAddress(container), container); + return wrap(XrRect3DfFB.class, memAddress(container), container); } /** Returns a new {@code XrRect3DfFB} instance for the specified memory address. */ public static XrRect3DfFB create(long address) { - return new XrRect3DfFB(address, null); + return wrap(XrRect3DfFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrRect3DfFB createSafe(long address) { - return address == NULL ? null : new XrRect3DfFB(address, null); + return address == NULL ? null : wrap(XrRect3DfFB.class, address); } /** @@ -160,7 +151,7 @@ public static XrRect3DfFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrRect3DfFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -169,7 +160,7 @@ public static XrRect3DfFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrRect3DfFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -179,7 +170,7 @@ public static XrRect3DfFB.Buffer calloc(int capacity) { */ public static XrRect3DfFB.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); } /** @@ -189,13 +180,13 @@ public static XrRect3DfFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrRect3DfFB.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 XrRect3DfFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -204,7 +195,7 @@ public static XrRect3DfFB.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrRect3DfFB malloc(MemoryStack stack) { - return new XrRect3DfFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrRect3DfFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -213,7 +204,7 @@ public static XrRect3DfFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrRect3DfFB calloc(MemoryStack stack) { - return new XrRect3DfFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrRect3DfFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -223,7 +214,7 @@ public static XrRect3DfFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrRect3DfFB.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); } /** @@ -233,22 +224,22 @@ public static XrRect3DfFB.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrRect3DfFB.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 #offset}. */ - public static XrOffset3DfFB noffset(long struct) { return XrOffset3DfFB.create(struct + XrRect3DfFB.OFFSET); } - /** Unsafe version of {@link #extent}. */ - public static XrExtent3DfFB nextent(long struct) { return XrExtent3DfFB.create(struct + XrRect3DfFB.EXTENT); } - - /** Unsafe version of {@link #offset(XrOffset3DfFB) offset}. */ - public static void noffset(long struct, XrOffset3DfFB value) { memCopy(value.address(), struct + XrRect3DfFB.OFFSET, XrOffset3DfFB.SIZEOF); } - /** Unsafe version of {@link #extent(XrExtent3DfFB) extent}. */ - public static void nextent(long struct, XrExtent3DfFB value) { memCopy(value.address(), struct + XrRect3DfFB.EXTENT, XrExtent3DfFB.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #offset}. */ + public static XrOffset3DfFB noffset(long struct) { return XrOffset3DfFB.create(struct + XrRect3DfFB.OFFSET); } + /** Unsafe version of {@link #extent}. */ + public static XrExtent3DfFB nextent(long struct) { return XrExtent3DfFB.create(struct + XrRect3DfFB.EXTENT); } + + /** Unsafe version of {@link #offset(XrOffset3DfFB) offset}. */ + public static void noffset(long struct, XrOffset3DfFB value) { memCopy(value.address(), struct + XrRect3DfFB.OFFSET, XrOffset3DfFB.SIZEOF); } + /** Unsafe version of {@link #extent(XrExtent3DfFB) extent}. */ + public static void nextent(long struct, XrExtent3DfFB value) { memCopy(value.address(), struct + XrRect3DfFB.EXTENT, XrExtent3DfFB.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrRect3DfFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -258,9 +249,9 @@ public static class Buffer extends StructBuffer implements /** * Creates a new {@code XrRect3DfFB.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 XrRect3DfFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrRect3DfFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -285,20 +276,20 @@ protected Buffer self() { protected XrRect3DfFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link XrOffset3DfFB} view of the {@link XrRect3DfFB#offset} field. */ - public XrOffset3DfFB offset() { return XrRect3DfFB.noffset(address()); } - /** @return a {@link XrExtent3DfFB} view of the {@link XrRect3DfFB#extent} field. */ - public XrExtent3DfFB extent() { return XrRect3DfFB.nextent(address()); } - - /** Copies the specified {@link XrOffset3DfFB} to the {@link XrRect3DfFB#offset} field. */ - public XrRect3DfFB.Buffer offset(XrOffset3DfFB value) { XrRect3DfFB.noffset(address(), value); return this; } - /** Passes the {@link XrRect3DfFB#offset} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect3DfFB.Buffer offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } - /** Copies the specified {@link XrExtent3DfFB} to the {@link XrRect3DfFB#extent} field. */ - public XrRect3DfFB.Buffer extent(XrExtent3DfFB value) { XrRect3DfFB.nextent(address(), value); return this; } - /** Passes the {@link XrRect3DfFB#extent} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect3DfFB.Buffer extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } + + /** @return a {@link XrOffset3DfFB} view of the {@link XrRect3DfFB#offset} field. */ + public XrOffset3DfFB offset() { return XrRect3DfFB.noffset(address()); } + /** @return a {@link XrExtent3DfFB} view of the {@link XrRect3DfFB#extent} field. */ + public XrExtent3DfFB extent() { return XrRect3DfFB.nextent(address()); } + + /** Copies the specified {@link XrOffset3DfFB} to the {@link XrRect3DfFB#offset} field. */ + public XrRect3DfFB.Buffer offset(XrOffset3DfFB value) { XrRect3DfFB.noffset(address(), value); return this; } + /** Passes the {@link XrRect3DfFB#offset} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect3DfFB.Buffer offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } + /** Copies the specified {@link XrExtent3DfFB} to the {@link XrRect3DfFB#extent} field. */ + public XrRect3DfFB.Buffer extent(XrExtent3DfFB value) { XrRect3DfFB.nextent(address(), value); return this; } + /** Passes the {@link XrRect3DfFB#extent} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect3DfFB.Buffer extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrReferenceSpaceCreateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrReferenceSpaceCreateInfo.java index 2ca85f6988..b5a6ed23af 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrReferenceSpaceCreateInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrReferenceSpaceCreateInfo.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.*; + /** * Creation info for a reference space. * @@ -39,8 +39,8 @@ * XrReferenceSpaceType {@link #referenceSpaceType}; * {@link XrPosef XrPosef} {@link #poseInReferenceSpace}; * } - */ -public class XrReferenceSpaceCreateInfo extends Struct implements NativeResource { + */ +public class XrReferenceSpaceCreateInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,35 +50,26 @@ public class XrReferenceSpaceCreateInfo extends Struct consumer) { consumer.accept(poseInReferenceSpace()); 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 chosen {@code XrReferenceSpaceType}. */ + @NativeType("XrReferenceSpaceType") + public int referenceSpaceType() { return nreferenceSpaceType(address()); } + /** an {@link XrPosef} defining the position and orientation of the new space’s origin within the natural reference frame of the reference space. */ + public XrPosef poseInReferenceSpace() { return nposeInReferenceSpace(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrReferenceSpaceCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_REFERENCE_SPACE_CREATE_INFO TYPE_REFERENCE_SPACE_CREATE_INFO} value to the {@link #type} field. */ + public XrReferenceSpaceCreateInfo type$Default() { return type(XR10.XR_TYPE_REFERENCE_SPACE_CREATE_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrReferenceSpaceCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #referenceSpaceType} field. */ + public XrReferenceSpaceCreateInfo referenceSpaceType(@NativeType("XrReferenceSpaceType") int value) { nreferenceSpaceType(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #poseInReferenceSpace} field. */ + public XrReferenceSpaceCreateInfo poseInReferenceSpace(XrPosef value) { nposeInReferenceSpace(address(), value); return this; } + /** Passes the {@link #poseInReferenceSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrReferenceSpaceCreateInfo poseInReferenceSpace(java.util.function.Consumer consumer) { consumer.accept(poseInReferenceSpace()); return this; } /** Initializes this struct with the specified values. */ public XrReferenceSpaceCreateInfo set( - int type, - long next, - int referenceSpaceType, + int type, + long next, + int referenceSpaceType, XrPosef poseInReferenceSpace - ) { - type(type); - next(next); - referenceSpaceType(referenceSpaceType); - poseInReferenceSpace(poseInReferenceSpace); + ) { + type(type); + next(next); + referenceSpaceType(referenceSpaceType); + poseInReferenceSpace(poseInReferenceSpace); return this; } @@ -150,29 +141,29 @@ public XrReferenceSpaceCreateInfo set(XrReferenceSpaceCreateInfo src) { /** Returns a new {@code XrReferenceSpaceCreateInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrReferenceSpaceCreateInfo malloc() { - return new XrReferenceSpaceCreateInfo(nmemAllocChecked(SIZEOF), null); + return wrap(XrReferenceSpaceCreateInfo.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrReferenceSpaceCreateInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrReferenceSpaceCreateInfo calloc() { - return new XrReferenceSpaceCreateInfo(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrReferenceSpaceCreateInfo.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrReferenceSpaceCreateInfo} instance allocated with {@link BufferUtils}. */ public static XrReferenceSpaceCreateInfo create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrReferenceSpaceCreateInfo(memAddress(container), container); + return wrap(XrReferenceSpaceCreateInfo.class, memAddress(container), container); } /** Returns a new {@code XrReferenceSpaceCreateInfo} instance for the specified memory address. */ public static XrReferenceSpaceCreateInfo create(long address) { - return new XrReferenceSpaceCreateInfo(address, null); + return wrap(XrReferenceSpaceCreateInfo.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrReferenceSpaceCreateInfo createSafe(long address) { - return address == NULL ? null : new XrReferenceSpaceCreateInfo(address, null); + return address == NULL ? null : wrap(XrReferenceSpaceCreateInfo.class, address); } /** @@ -181,7 +172,7 @@ public static XrReferenceSpaceCreateInfo createSafe(long address) { * @param capacity the buffer capacity */ public static XrReferenceSpaceCreateInfo.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -190,7 +181,7 @@ public static XrReferenceSpaceCreateInfo.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrReferenceSpaceCreateInfo.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -200,7 +191,7 @@ public static XrReferenceSpaceCreateInfo.Buffer calloc(int capacity) { */ public static XrReferenceSpaceCreateInfo.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); } /** @@ -210,13 +201,13 @@ public static XrReferenceSpaceCreateInfo.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrReferenceSpaceCreateInfo.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 XrReferenceSpaceCreateInfo.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -225,7 +216,7 @@ public static XrReferenceSpaceCreateInfo.Buffer createSafe(long address, int cap * @param stack the stack from which to allocate */ public static XrReferenceSpaceCreateInfo malloc(MemoryStack stack) { - return new XrReferenceSpaceCreateInfo(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrReferenceSpaceCreateInfo.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -234,7 +225,7 @@ public static XrReferenceSpaceCreateInfo malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrReferenceSpaceCreateInfo calloc(MemoryStack stack) { - return new XrReferenceSpaceCreateInfo(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrReferenceSpaceCreateInfo.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -244,7 +235,7 @@ public static XrReferenceSpaceCreateInfo calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrReferenceSpaceCreateInfo.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); } /** @@ -254,30 +245,30 @@ public static XrReferenceSpaceCreateInfo.Buffer malloc(int capacity, MemoryStack * @param capacity the buffer capacity */ public static XrReferenceSpaceCreateInfo.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 + XrReferenceSpaceCreateInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrReferenceSpaceCreateInfo.NEXT); } - /** Unsafe version of {@link #referenceSpaceType}. */ - public static int nreferenceSpaceType(long struct) { return UNSAFE.getInt(null, struct + XrReferenceSpaceCreateInfo.REFERENCESPACETYPE); } - /** Unsafe version of {@link #poseInReferenceSpace}. */ - public static XrPosef nposeInReferenceSpace(long struct) { return XrPosef.create(struct + XrReferenceSpaceCreateInfo.POSEINREFERENCESPACE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrReferenceSpaceCreateInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrReferenceSpaceCreateInfo.NEXT, value); } - /** Unsafe version of {@link #referenceSpaceType(int) referenceSpaceType}. */ - public static void nreferenceSpaceType(long struct, int value) { UNSAFE.putInt(null, struct + XrReferenceSpaceCreateInfo.REFERENCESPACETYPE, value); } - /** Unsafe version of {@link #poseInReferenceSpace(XrPosef) poseInReferenceSpace}. */ - public static void nposeInReferenceSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrReferenceSpaceCreateInfo.POSEINREFERENCESPACE, XrPosef.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrReferenceSpaceCreateInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrReferenceSpaceCreateInfo.NEXT); } + /** Unsafe version of {@link #referenceSpaceType}. */ + public static int nreferenceSpaceType(long struct) { return UNSAFE.getInt(null, struct + XrReferenceSpaceCreateInfo.REFERENCESPACETYPE); } + /** Unsafe version of {@link #poseInReferenceSpace}. */ + public static XrPosef nposeInReferenceSpace(long struct) { return XrPosef.create(struct + XrReferenceSpaceCreateInfo.POSEINREFERENCESPACE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrReferenceSpaceCreateInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrReferenceSpaceCreateInfo.NEXT, value); } + /** Unsafe version of {@link #referenceSpaceType(int) referenceSpaceType}. */ + public static void nreferenceSpaceType(long struct, int value) { UNSAFE.putInt(null, struct + XrReferenceSpaceCreateInfo.REFERENCESPACETYPE, value); } + /** Unsafe version of {@link #poseInReferenceSpace(XrPosef) poseInReferenceSpace}. */ + public static void nposeInReferenceSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrReferenceSpaceCreateInfo.POSEINREFERENCESPACE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrReferenceSpaceCreateInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -287,9 +278,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 XrReferenceSpaceCreateInfo#SIZEOF}, and its mark will be undefined.

        + * by {@link XrReferenceSpaceCreateInfo#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -314,31 +305,31 @@ protected Buffer self() { protected XrReferenceSpaceCreateInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrReferenceSpaceCreateInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrReferenceSpaceCreateInfo.ntype(address()); } - /** @return the value of the {@link XrReferenceSpaceCreateInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrReferenceSpaceCreateInfo.nnext(address()); } - /** @return the value of the {@link XrReferenceSpaceCreateInfo#referenceSpaceType} field. */ - @NativeType("XrReferenceSpaceType") - public int referenceSpaceType() { return XrReferenceSpaceCreateInfo.nreferenceSpaceType(address()); } - /** @return a {@link XrPosef} view of the {@link XrReferenceSpaceCreateInfo#poseInReferenceSpace} field. */ - public XrPosef poseInReferenceSpace() { return XrReferenceSpaceCreateInfo.nposeInReferenceSpace(address()); } - - /** Sets the specified value to the {@link XrReferenceSpaceCreateInfo#type} field. */ - public XrReferenceSpaceCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrReferenceSpaceCreateInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_REFERENCE_SPACE_CREATE_INFO TYPE_REFERENCE_SPACE_CREATE_INFO} value to the {@link XrReferenceSpaceCreateInfo#type} field. */ - public XrReferenceSpaceCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_REFERENCE_SPACE_CREATE_INFO); } - /** Sets the specified value to the {@link XrReferenceSpaceCreateInfo#next} field. */ - public XrReferenceSpaceCreateInfo.Buffer next(@NativeType("void const *") long value) { XrReferenceSpaceCreateInfo.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrReferenceSpaceCreateInfo#referenceSpaceType} field. */ - public XrReferenceSpaceCreateInfo.Buffer referenceSpaceType(@NativeType("XrReferenceSpaceType") int value) { XrReferenceSpaceCreateInfo.nreferenceSpaceType(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrReferenceSpaceCreateInfo#poseInReferenceSpace} field. */ - public XrReferenceSpaceCreateInfo.Buffer poseInReferenceSpace(XrPosef value) { XrReferenceSpaceCreateInfo.nposeInReferenceSpace(address(), value); return this; } - /** Passes the {@link XrReferenceSpaceCreateInfo#poseInReferenceSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrReferenceSpaceCreateInfo.Buffer poseInReferenceSpace(java.util.function.Consumer consumer) { consumer.accept(poseInReferenceSpace()); return this; } + + /** @return the value of the {@link XrReferenceSpaceCreateInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrReferenceSpaceCreateInfo.ntype(address()); } + /** @return the value of the {@link XrReferenceSpaceCreateInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrReferenceSpaceCreateInfo.nnext(address()); } + /** @return the value of the {@link XrReferenceSpaceCreateInfo#referenceSpaceType} field. */ + @NativeType("XrReferenceSpaceType") + public int referenceSpaceType() { return XrReferenceSpaceCreateInfo.nreferenceSpaceType(address()); } + /** @return a {@link XrPosef} view of the {@link XrReferenceSpaceCreateInfo#poseInReferenceSpace} field. */ + public XrPosef poseInReferenceSpace() { return XrReferenceSpaceCreateInfo.nposeInReferenceSpace(address()); } + + /** Sets the specified value to the {@link XrReferenceSpaceCreateInfo#type} field. */ + public XrReferenceSpaceCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrReferenceSpaceCreateInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_REFERENCE_SPACE_CREATE_INFO TYPE_REFERENCE_SPACE_CREATE_INFO} value to the {@link XrReferenceSpaceCreateInfo#type} field. */ + public XrReferenceSpaceCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_REFERENCE_SPACE_CREATE_INFO); } + /** Sets the specified value to the {@link XrReferenceSpaceCreateInfo#next} field. */ + public XrReferenceSpaceCreateInfo.Buffer next(@NativeType("void const *") long value) { XrReferenceSpaceCreateInfo.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrReferenceSpaceCreateInfo#referenceSpaceType} field. */ + public XrReferenceSpaceCreateInfo.Buffer referenceSpaceType(@NativeType("XrReferenceSpaceType") int value) { XrReferenceSpaceCreateInfo.nreferenceSpaceType(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrReferenceSpaceCreateInfo#poseInReferenceSpace} field. */ + public XrReferenceSpaceCreateInfo.Buffer poseInReferenceSpace(XrPosef value) { XrReferenceSpaceCreateInfo.nposeInReferenceSpace(address(), value); return this; } + /** Passes the {@link XrReferenceSpaceCreateInfo#poseInReferenceSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrReferenceSpaceCreateInfo.Buffer poseInReferenceSpace(java.util.function.Consumer consumer) { consumer.accept(poseInReferenceSpace()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelBufferFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelBufferFB.java index beb911588f..b2586a8499 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelBufferFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelBufferFB.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 buffer containing the data for the render model. * @@ -45,8 +45,8 @@ * uint32_t {@link #bufferCountOutput}; * uint8_t * {@link #buffer}; * } - */ -public class XrRenderModelBufferFB extends Struct implements NativeResource { + */ +public class XrRenderModelBufferFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,38 +56,29 @@ public class XrRenderModelBufferFB extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - BUFFERCAPACITYINPUT, - BUFFERCOUNTOUTPUT, - BUFFER; + TYPE, + NEXT, + BUFFERCAPACITYINPUT, + BUFFERCOUNTOUTPUT, + BUFFER; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - BUFFERCAPACITYINPUT = layout.offsetof(2); - BUFFERCOUNTOUTPUT = layout.offsetof(3); - BUFFER = layout.offsetof(4); - } - - protected XrRenderModelBufferFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrRenderModelBufferFB create(long address, @Nullable ByteBuffer container) { - return new XrRenderModelBufferFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + BUFFERCAPACITYINPUT = layout.offsetof(2); + BUFFERCOUNTOUTPUT = layout.offsetof(3); + BUFFER = layout.offsetof(4); } /** @@ -102,50 +93,50 @@ public XrRenderModelBufferFB(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()); } - /** the capacity of the {@code buffer}, or 0 to retrieve the required capacity. */ - @NativeType("uint32_t") - public int bufferCapacityInput() { return nbufferCapacityInput(address()); } - /** the count of {@code uint8_t} {@code buffer} written, or the required capacity in the case that {@code bufferCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int bufferCountOutput() { return nbufferCountOutput(address()); } - /** a pointer to an application-allocated array that will be filled with the render model binary data. */ - @Nullable - @NativeType("uint8_t *") - public ByteBuffer buffer() { return nbuffer(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrRenderModelBufferFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_BUFFER_FB TYPE_RENDER_MODEL_BUFFER_FB} value to the {@link #type} field. */ - public XrRenderModelBufferFB type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_BUFFER_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrRenderModelBufferFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #bufferCapacityInput} field. */ - public XrRenderModelBufferFB bufferCapacityInput(@NativeType("uint32_t") int value) { nbufferCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #bufferCountOutput} field. */ - public XrRenderModelBufferFB bufferCountOutput(@NativeType("uint32_t") int value) { nbufferCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link ByteBuffer} to the {@link #buffer} field. */ - public XrRenderModelBufferFB buffer(@Nullable @NativeType("uint8_t *") ByteBuffer value) { nbuffer(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()); } + /** the capacity of the {@code buffer}, or 0 to retrieve the required capacity. */ + @NativeType("uint32_t") + public int bufferCapacityInput() { return nbufferCapacityInput(address()); } + /** the count of {@code uint8_t} {@code buffer} written, or the required capacity in the case that {@code bufferCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int bufferCountOutput() { return nbufferCountOutput(address()); } + /** a pointer to an application-allocated array that will be filled with the render model binary data. */ + @Nullable + @NativeType("uint8_t *") + public ByteBuffer buffer() { return nbuffer(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrRenderModelBufferFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_BUFFER_FB TYPE_RENDER_MODEL_BUFFER_FB} value to the {@link #type} field. */ + public XrRenderModelBufferFB type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_BUFFER_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrRenderModelBufferFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #bufferCapacityInput} field. */ + public XrRenderModelBufferFB bufferCapacityInput(@NativeType("uint32_t") int value) { nbufferCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #bufferCountOutput} field. */ + public XrRenderModelBufferFB bufferCountOutput(@NativeType("uint32_t") int value) { nbufferCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link ByteBuffer} to the {@link #buffer} field. */ + public XrRenderModelBufferFB buffer(@Nullable @NativeType("uint8_t *") ByteBuffer value) { nbuffer(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrRenderModelBufferFB set( - int type, - long next, - int bufferCapacityInput, - int bufferCountOutput, + int type, + long next, + int bufferCapacityInput, + int bufferCountOutput, @Nullable ByteBuffer buffer - ) { - type(type); - next(next); - bufferCapacityInput(bufferCapacityInput); - bufferCountOutput(bufferCountOutput); - buffer(buffer); + ) { + type(type); + next(next); + bufferCapacityInput(bufferCapacityInput); + bufferCountOutput(bufferCountOutput); + buffer(buffer); return this; } @@ -166,29 +157,29 @@ public XrRenderModelBufferFB set(XrRenderModelBufferFB src) { /** Returns a new {@code XrRenderModelBufferFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrRenderModelBufferFB malloc() { - return new XrRenderModelBufferFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrRenderModelBufferFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrRenderModelBufferFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrRenderModelBufferFB calloc() { - return new XrRenderModelBufferFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrRenderModelBufferFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrRenderModelBufferFB} instance allocated with {@link BufferUtils}. */ public static XrRenderModelBufferFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrRenderModelBufferFB(memAddress(container), container); + return wrap(XrRenderModelBufferFB.class, memAddress(container), container); } /** Returns a new {@code XrRenderModelBufferFB} instance for the specified memory address. */ public static XrRenderModelBufferFB create(long address) { - return new XrRenderModelBufferFB(address, null); + return wrap(XrRenderModelBufferFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrRenderModelBufferFB createSafe(long address) { - return address == NULL ? null : new XrRenderModelBufferFB(address, null); + return address == NULL ? null : wrap(XrRenderModelBufferFB.class, address); } /** @@ -197,7 +188,7 @@ public static XrRenderModelBufferFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrRenderModelBufferFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -206,7 +197,7 @@ public static XrRenderModelBufferFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrRenderModelBufferFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -216,7 +207,7 @@ public static XrRenderModelBufferFB.Buffer calloc(int capacity) { */ public static XrRenderModelBufferFB.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); } /** @@ -226,13 +217,13 @@ public static XrRenderModelBufferFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrRenderModelBufferFB.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 XrRenderModelBufferFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -241,7 +232,7 @@ public static XrRenderModelBufferFB.Buffer createSafe(long address, int capacity * @param stack the stack from which to allocate */ public static XrRenderModelBufferFB malloc(MemoryStack stack) { - return new XrRenderModelBufferFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrRenderModelBufferFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -250,7 +241,7 @@ public static XrRenderModelBufferFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrRenderModelBufferFB calloc(MemoryStack stack) { - return new XrRenderModelBufferFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrRenderModelBufferFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -260,7 +251,7 @@ public static XrRenderModelBufferFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrRenderModelBufferFB.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); } /** @@ -270,34 +261,34 @@ public static XrRenderModelBufferFB.Buffer malloc(int capacity, MemoryStack stac * @param capacity the buffer capacity */ public static XrRenderModelBufferFB.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 + XrRenderModelBufferFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrRenderModelBufferFB.NEXT); } - /** Unsafe version of {@link #bufferCapacityInput}. */ - public static int nbufferCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelBufferFB.BUFFERCAPACITYINPUT); } - /** Unsafe version of {@link #bufferCountOutput}. */ - public static int nbufferCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelBufferFB.BUFFERCOUNTOUTPUT); } - /** Unsafe version of {@link #buffer() buffer}. */ - @Nullable public static ByteBuffer nbuffer(long struct) { return memByteBufferSafe(memGetAddress(struct + XrRenderModelBufferFB.BUFFER), nbufferCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelBufferFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrRenderModelBufferFB.NEXT, value); } - /** Sets the specified value to the {@code bufferCapacityInput} field of the specified {@code struct}. */ - public static void nbufferCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelBufferFB.BUFFERCAPACITYINPUT, value); } - /** Unsafe version of {@link #bufferCountOutput(int) bufferCountOutput}. */ - public static void nbufferCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelBufferFB.BUFFERCOUNTOUTPUT, value); } - /** Unsafe version of {@link #buffer(ByteBuffer) buffer}. */ - public static void nbuffer(long struct, @Nullable ByteBuffer value) { memPutAddress(struct + XrRenderModelBufferFB.BUFFER, memAddressSafe(value)); if (value != null) { nbufferCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelBufferFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrRenderModelBufferFB.NEXT); } + /** Unsafe version of {@link #bufferCapacityInput}. */ + public static int nbufferCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelBufferFB.BUFFERCAPACITYINPUT); } + /** Unsafe version of {@link #bufferCountOutput}. */ + public static int nbufferCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelBufferFB.BUFFERCOUNTOUTPUT); } + /** Unsafe version of {@link #buffer() buffer}. */ + @Nullable public static ByteBuffer nbuffer(long struct) { return memByteBufferSafe(memGetAddress(struct + XrRenderModelBufferFB.BUFFER), nbufferCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelBufferFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrRenderModelBufferFB.NEXT, value); } + /** Sets the specified value to the {@code bufferCapacityInput} field of the specified {@code struct}. */ + public static void nbufferCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelBufferFB.BUFFERCAPACITYINPUT, value); } + /** Unsafe version of {@link #bufferCountOutput(int) bufferCountOutput}. */ + public static void nbufferCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelBufferFB.BUFFERCOUNTOUTPUT, value); } + /** Unsafe version of {@link #buffer(ByteBuffer) buffer}. */ + public static void nbuffer(long struct, @Nullable ByteBuffer value) { memPutAddress(struct + XrRenderModelBufferFB.BUFFER, memAddressSafe(value)); if (value != null) { nbufferCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrRenderModelBufferFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -307,9 +298,9 @@ public static class Buffer extends StructBuffer i /** * Creates a new {@code XrRenderModelBufferFB.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 XrRenderModelBufferFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrRenderModelBufferFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -334,36 +325,36 @@ protected Buffer self() { protected XrRenderModelBufferFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrRenderModelBufferFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrRenderModelBufferFB.ntype(address()); } - /** @return the value of the {@link XrRenderModelBufferFB#next} field. */ - @NativeType("void *") - public long next() { return XrRenderModelBufferFB.nnext(address()); } - /** @return the value of the {@link XrRenderModelBufferFB#bufferCapacityInput} field. */ - @NativeType("uint32_t") - public int bufferCapacityInput() { return XrRenderModelBufferFB.nbufferCapacityInput(address()); } - /** @return the value of the {@link XrRenderModelBufferFB#bufferCountOutput} field. */ - @NativeType("uint32_t") - public int bufferCountOutput() { return XrRenderModelBufferFB.nbufferCountOutput(address()); } - /** @return a {@link ByteBuffer} view of the data pointed to by the {@link XrRenderModelBufferFB#buffer} field. */ - @Nullable - @NativeType("uint8_t *") - public ByteBuffer buffer() { return XrRenderModelBufferFB.nbuffer(address()); } - - /** Sets the specified value to the {@link XrRenderModelBufferFB#type} field. */ - public XrRenderModelBufferFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelBufferFB.ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_BUFFER_FB TYPE_RENDER_MODEL_BUFFER_FB} value to the {@link XrRenderModelBufferFB#type} field. */ - public XrRenderModelBufferFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_BUFFER_FB); } - /** Sets the specified value to the {@link XrRenderModelBufferFB#next} field. */ - public XrRenderModelBufferFB.Buffer next(@NativeType("void *") long value) { XrRenderModelBufferFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrRenderModelBufferFB#bufferCapacityInput} field. */ - public XrRenderModelBufferFB.Buffer bufferCapacityInput(@NativeType("uint32_t") int value) { XrRenderModelBufferFB.nbufferCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrRenderModelBufferFB#bufferCountOutput} field. */ - public XrRenderModelBufferFB.Buffer bufferCountOutput(@NativeType("uint32_t") int value) { XrRenderModelBufferFB.nbufferCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link ByteBuffer} to the {@link XrRenderModelBufferFB#buffer} field. */ - public XrRenderModelBufferFB.Buffer buffer(@Nullable @NativeType("uint8_t *") ByteBuffer value) { XrRenderModelBufferFB.nbuffer(address(), value); return this; } + + /** @return the value of the {@link XrRenderModelBufferFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrRenderModelBufferFB.ntype(address()); } + /** @return the value of the {@link XrRenderModelBufferFB#next} field. */ + @NativeType("void *") + public long next() { return XrRenderModelBufferFB.nnext(address()); } + /** @return the value of the {@link XrRenderModelBufferFB#bufferCapacityInput} field. */ + @NativeType("uint32_t") + public int bufferCapacityInput() { return XrRenderModelBufferFB.nbufferCapacityInput(address()); } + /** @return the value of the {@link XrRenderModelBufferFB#bufferCountOutput} field. */ + @NativeType("uint32_t") + public int bufferCountOutput() { return XrRenderModelBufferFB.nbufferCountOutput(address()); } + /** @return a {@link ByteBuffer} view of the data pointed to by the {@link XrRenderModelBufferFB#buffer} field. */ + @Nullable + @NativeType("uint8_t *") + public ByteBuffer buffer() { return XrRenderModelBufferFB.nbuffer(address()); } + + /** Sets the specified value to the {@link XrRenderModelBufferFB#type} field. */ + public XrRenderModelBufferFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelBufferFB.ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_BUFFER_FB TYPE_RENDER_MODEL_BUFFER_FB} value to the {@link XrRenderModelBufferFB#type} field. */ + public XrRenderModelBufferFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_BUFFER_FB); } + /** Sets the specified value to the {@link XrRenderModelBufferFB#next} field. */ + public XrRenderModelBufferFB.Buffer next(@NativeType("void *") long value) { XrRenderModelBufferFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrRenderModelBufferFB#bufferCapacityInput} field. */ + public XrRenderModelBufferFB.Buffer bufferCapacityInput(@NativeType("uint32_t") int value) { XrRenderModelBufferFB.nbufferCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrRenderModelBufferFB#bufferCountOutput} field. */ + public XrRenderModelBufferFB.Buffer bufferCountOutput(@NativeType("uint32_t") int value) { XrRenderModelBufferFB.nbufferCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link ByteBuffer} to the {@link XrRenderModelBufferFB#buffer} field. */ + public XrRenderModelBufferFB.Buffer buffer(@Nullable @NativeType("uint8_t *") ByteBuffer value) { XrRenderModelBufferFB.nbuffer(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelCapabilitiesRequestFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelCapabilitiesRequestFB.java index 2ba244cb8a..b8d38abcf7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelCapabilitiesRequestFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelCapabilitiesRequestFB.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.*; + /** * A render model system property. * @@ -38,8 +38,8 @@ * void * {@link #next}; * XrRenderModelFlagsFB {@link #flags}; * } - */ -public class XrRenderModelCapabilitiesRequestFB extends Struct implements NativeResource { + */ +public class XrRenderModelCapabilitiesRequestFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,32 +49,23 @@ public class XrRenderModelCapabilitiesRequestFB extends Struct implements NativeResource { @@ -265,9 +256,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 XrRenderModelCapabilitiesRequestFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrRenderModelCapabilitiesRequestFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -292,23 +283,23 @@ protected Buffer self() { protected XrRenderModelCapabilitiesRequestFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrRenderModelCapabilitiesRequestFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrRenderModelCapabilitiesRequestFB.ntype(address()); } - /** @return the value of the {@link XrRenderModelCapabilitiesRequestFB#next} field. */ - @NativeType("void *") - public long next() { return XrRenderModelCapabilitiesRequestFB.nnext(address()); } - /** @return the value of the {@link XrRenderModelCapabilitiesRequestFB#flags} field. */ - @NativeType("XrRenderModelFlagsFB") - public long flags() { return XrRenderModelCapabilitiesRequestFB.nflags(address()); } - - /** Sets the specified value to the {@link XrRenderModelCapabilitiesRequestFB#type} field. */ - public XrRenderModelCapabilitiesRequestFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelCapabilitiesRequestFB.ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB} value to the {@link XrRenderModelCapabilitiesRequestFB#type} field. */ - public XrRenderModelCapabilitiesRequestFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB); } - /** Sets the specified value to the {@link XrRenderModelCapabilitiesRequestFB#next} field. */ - public XrRenderModelCapabilitiesRequestFB.Buffer next(@NativeType("void *") long value) { XrRenderModelCapabilitiesRequestFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrRenderModelCapabilitiesRequestFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrRenderModelCapabilitiesRequestFB.ntype(address()); } + /** @return the value of the {@link XrRenderModelCapabilitiesRequestFB#next} field. */ + @NativeType("void *") + public long next() { return XrRenderModelCapabilitiesRequestFB.nnext(address()); } + /** @return the value of the {@link XrRenderModelCapabilitiesRequestFB#flags} field. */ + @NativeType("XrRenderModelFlagsFB") + public long flags() { return XrRenderModelCapabilitiesRequestFB.nflags(address()); } + + /** Sets the specified value to the {@link XrRenderModelCapabilitiesRequestFB#type} field. */ + public XrRenderModelCapabilitiesRequestFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelCapabilitiesRequestFB.ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB} value to the {@link XrRenderModelCapabilitiesRequestFB#type} field. */ + public XrRenderModelCapabilitiesRequestFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB); } + /** Sets the specified value to the {@link XrRenderModelCapabilitiesRequestFB#next} field. */ + public XrRenderModelCapabilitiesRequestFB.Buffer next(@NativeType("void *") long value) { XrRenderModelCapabilitiesRequestFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelLoadInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelLoadInfoFB.java index df86b52f40..5cdde270c5 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelLoadInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelLoadInfoFB.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 information for which render model to load. * @@ -42,8 +42,8 @@ * void * {@link #next}; * XrRenderModelKeyFB {@link #modelKey}; * } - */ -public class XrRenderModelLoadInfoFB extends Struct implements NativeResource { + */ +public class XrRenderModelLoadInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,32 +53,23 @@ public class XrRenderModelLoadInfoFB extends Struct imp /** The struct member offsets. */ public static final int - TYPE, - NEXT, - MODELKEY; + TYPE, + NEXT, + MODELKEY; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - MODELKEY = layout.offsetof(2); - } - - protected XrRenderModelLoadInfoFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrRenderModelLoadInfoFB create(long address, @Nullable ByteBuffer container) { - return new XrRenderModelLoadInfoFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + MODELKEY = layout.offsetof(2); } /** @@ -93,35 +84,35 @@ public XrRenderModelLoadInfoFB(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()); } - /** the unique model key for a connected device. */ - @NativeType("XrRenderModelKeyFB") - public long modelKey() { return nmodelKey(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrRenderModelLoadInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_LOAD_INFO_FB TYPE_RENDER_MODEL_LOAD_INFO_FB} value to the {@link #type} field. */ - public XrRenderModelLoadInfoFB type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_LOAD_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrRenderModelLoadInfoFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #modelKey} field. */ - public XrRenderModelLoadInfoFB modelKey(@NativeType("XrRenderModelKeyFB") long value) { nmodelKey(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()); } + /** the unique model key for a connected device. */ + @NativeType("XrRenderModelKeyFB") + public long modelKey() { return nmodelKey(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrRenderModelLoadInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_LOAD_INFO_FB TYPE_RENDER_MODEL_LOAD_INFO_FB} value to the {@link #type} field. */ + public XrRenderModelLoadInfoFB type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_LOAD_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrRenderModelLoadInfoFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #modelKey} field. */ + public XrRenderModelLoadInfoFB modelKey(@NativeType("XrRenderModelKeyFB") long value) { nmodelKey(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrRenderModelLoadInfoFB set( - int type, - long next, + int type, + long next, long modelKey - ) { - type(type); - next(next); - modelKey(modelKey); + ) { + type(type); + next(next); + modelKey(modelKey); return this; } @@ -142,29 +133,29 @@ public XrRenderModelLoadInfoFB set(XrRenderModelLoadInfoFB src) { /** Returns a new {@code XrRenderModelLoadInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrRenderModelLoadInfoFB malloc() { - return new XrRenderModelLoadInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrRenderModelLoadInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrRenderModelLoadInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrRenderModelLoadInfoFB calloc() { - return new XrRenderModelLoadInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrRenderModelLoadInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrRenderModelLoadInfoFB} instance allocated with {@link BufferUtils}. */ public static XrRenderModelLoadInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrRenderModelLoadInfoFB(memAddress(container), container); + return wrap(XrRenderModelLoadInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrRenderModelLoadInfoFB} instance for the specified memory address. */ public static XrRenderModelLoadInfoFB create(long address) { - return new XrRenderModelLoadInfoFB(address, null); + return wrap(XrRenderModelLoadInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrRenderModelLoadInfoFB createSafe(long address) { - return address == NULL ? null : new XrRenderModelLoadInfoFB(address, null); + return address == NULL ? null : wrap(XrRenderModelLoadInfoFB.class, address); } /** @@ -173,7 +164,7 @@ public static XrRenderModelLoadInfoFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrRenderModelLoadInfoFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -182,7 +173,7 @@ public static XrRenderModelLoadInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrRenderModelLoadInfoFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -192,7 +183,7 @@ public static XrRenderModelLoadInfoFB.Buffer calloc(int capacity) { */ public static XrRenderModelLoadInfoFB.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); } /** @@ -202,13 +193,13 @@ public static XrRenderModelLoadInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrRenderModelLoadInfoFB.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 XrRenderModelLoadInfoFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -217,7 +208,7 @@ public static XrRenderModelLoadInfoFB.Buffer createSafe(long address, int capaci * @param stack the stack from which to allocate */ public static XrRenderModelLoadInfoFB malloc(MemoryStack stack) { - return new XrRenderModelLoadInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrRenderModelLoadInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -226,7 +217,7 @@ public static XrRenderModelLoadInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrRenderModelLoadInfoFB calloc(MemoryStack stack) { - return new XrRenderModelLoadInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrRenderModelLoadInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -236,7 +227,7 @@ public static XrRenderModelLoadInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrRenderModelLoadInfoFB.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); } /** @@ -246,26 +237,26 @@ public static XrRenderModelLoadInfoFB.Buffer malloc(int capacity, MemoryStack st * @param capacity the buffer capacity */ public static XrRenderModelLoadInfoFB.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 + XrRenderModelLoadInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrRenderModelLoadInfoFB.NEXT); } - /** Unsafe version of {@link #modelKey}. */ - public static long nmodelKey(long struct) { return UNSAFE.getLong(null, struct + XrRenderModelLoadInfoFB.MODELKEY); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelLoadInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrRenderModelLoadInfoFB.NEXT, value); } - /** Unsafe version of {@link #modelKey(long) modelKey}. */ - public static void nmodelKey(long struct, long value) { UNSAFE.putLong(null, struct + XrRenderModelLoadInfoFB.MODELKEY, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelLoadInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrRenderModelLoadInfoFB.NEXT); } + /** Unsafe version of {@link #modelKey}. */ + public static long nmodelKey(long struct) { return UNSAFE.getLong(null, struct + XrRenderModelLoadInfoFB.MODELKEY); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelLoadInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrRenderModelLoadInfoFB.NEXT, value); } + /** Unsafe version of {@link #modelKey(long) modelKey}. */ + public static void nmodelKey(long struct, long value) { UNSAFE.putLong(null, struct + XrRenderModelLoadInfoFB.MODELKEY, value); } + + // ----------------------------------- /** An array of {@link XrRenderModelLoadInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -275,9 +266,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrRenderModelLoadInfoFB.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 XrRenderModelLoadInfoFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrRenderModelLoadInfoFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -302,25 +293,25 @@ protected Buffer self() { protected XrRenderModelLoadInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrRenderModelLoadInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrRenderModelLoadInfoFB.ntype(address()); } - /** @return the value of the {@link XrRenderModelLoadInfoFB#next} field. */ - @NativeType("void *") - public long next() { return XrRenderModelLoadInfoFB.nnext(address()); } - /** @return the value of the {@link XrRenderModelLoadInfoFB#modelKey} field. */ - @NativeType("XrRenderModelKeyFB") - public long modelKey() { return XrRenderModelLoadInfoFB.nmodelKey(address()); } - - /** Sets the specified value to the {@link XrRenderModelLoadInfoFB#type} field. */ - public XrRenderModelLoadInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelLoadInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_LOAD_INFO_FB TYPE_RENDER_MODEL_LOAD_INFO_FB} value to the {@link XrRenderModelLoadInfoFB#type} field. */ - public XrRenderModelLoadInfoFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_LOAD_INFO_FB); } - /** Sets the specified value to the {@link XrRenderModelLoadInfoFB#next} field. */ - public XrRenderModelLoadInfoFB.Buffer next(@NativeType("void *") long value) { XrRenderModelLoadInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrRenderModelLoadInfoFB#modelKey} field. */ - public XrRenderModelLoadInfoFB.Buffer modelKey(@NativeType("XrRenderModelKeyFB") long value) { XrRenderModelLoadInfoFB.nmodelKey(address(), value); return this; } + + /** @return the value of the {@link XrRenderModelLoadInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrRenderModelLoadInfoFB.ntype(address()); } + /** @return the value of the {@link XrRenderModelLoadInfoFB#next} field. */ + @NativeType("void *") + public long next() { return XrRenderModelLoadInfoFB.nnext(address()); } + /** @return the value of the {@link XrRenderModelLoadInfoFB#modelKey} field. */ + @NativeType("XrRenderModelKeyFB") + public long modelKey() { return XrRenderModelLoadInfoFB.nmodelKey(address()); } + + /** Sets the specified value to the {@link XrRenderModelLoadInfoFB#type} field. */ + public XrRenderModelLoadInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelLoadInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_LOAD_INFO_FB TYPE_RENDER_MODEL_LOAD_INFO_FB} value to the {@link XrRenderModelLoadInfoFB#type} field. */ + public XrRenderModelLoadInfoFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_LOAD_INFO_FB); } + /** Sets the specified value to the {@link XrRenderModelLoadInfoFB#next} field. */ + public XrRenderModelLoadInfoFB.Buffer next(@NativeType("void *") long value) { XrRenderModelLoadInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrRenderModelLoadInfoFB#modelKey} field. */ + public XrRenderModelLoadInfoFB.Buffer modelKey(@NativeType("XrRenderModelKeyFB") long value) { XrRenderModelLoadInfoFB.nmodelKey(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelPathInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelPathInfoFB.java index 6a07fafdb6..7731dac95f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelPathInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelPathInfoFB.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.*; + /** * Supported model paths. * @@ -61,8 +61,8 @@ * void * {@link #next}; * XrPath {@link #path}; * } - */ -public class XrRenderModelPathInfoFB extends Struct implements NativeResource { + */ +public class XrRenderModelPathInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -72,32 +72,23 @@ public class XrRenderModelPathInfoFB extends Struct imp /** The struct member offsets. */ public static final int - TYPE, - NEXT, - PATH; + TYPE, + NEXT, + PATH; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - PATH = layout.offsetof(2); - } - - protected XrRenderModelPathInfoFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrRenderModelPathInfoFB create(long address, @Nullable ByteBuffer container) { - return new XrRenderModelPathInfoFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + PATH = layout.offsetof(2); } /** @@ -112,35 +103,35 @@ public XrRenderModelPathInfoFB(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()); } - /** a valid {@code XrPath} used for retrieving model properties from {@link FBRenderModel#xrGetRenderModelPropertiesFB GetRenderModelPropertiesFB}. */ - @NativeType("XrPath") - public long path() { return npath(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrRenderModelPathInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_PATH_INFO_FB TYPE_RENDER_MODEL_PATH_INFO_FB} value to the {@link #type} field. */ - public XrRenderModelPathInfoFB type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_PATH_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrRenderModelPathInfoFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #path} field. */ - public XrRenderModelPathInfoFB path(@NativeType("XrPath") long value) { npath(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()); } + /** a valid {@code XrPath} used for retrieving model properties from {@link FBRenderModel#xrGetRenderModelPropertiesFB GetRenderModelPropertiesFB}. */ + @NativeType("XrPath") + public long path() { return npath(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrRenderModelPathInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_PATH_INFO_FB TYPE_RENDER_MODEL_PATH_INFO_FB} value to the {@link #type} field. */ + public XrRenderModelPathInfoFB type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_PATH_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrRenderModelPathInfoFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #path} field. */ + public XrRenderModelPathInfoFB path(@NativeType("XrPath") long value) { npath(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrRenderModelPathInfoFB set( - int type, - long next, + int type, + long next, long path - ) { - type(type); - next(next); - path(path); + ) { + type(type); + next(next); + path(path); return this; } @@ -161,29 +152,29 @@ public XrRenderModelPathInfoFB set(XrRenderModelPathInfoFB src) { /** Returns a new {@code XrRenderModelPathInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrRenderModelPathInfoFB malloc() { - return new XrRenderModelPathInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrRenderModelPathInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrRenderModelPathInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrRenderModelPathInfoFB calloc() { - return new XrRenderModelPathInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrRenderModelPathInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrRenderModelPathInfoFB} instance allocated with {@link BufferUtils}. */ public static XrRenderModelPathInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrRenderModelPathInfoFB(memAddress(container), container); + return wrap(XrRenderModelPathInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrRenderModelPathInfoFB} instance for the specified memory address. */ public static XrRenderModelPathInfoFB create(long address) { - return new XrRenderModelPathInfoFB(address, null); + return wrap(XrRenderModelPathInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrRenderModelPathInfoFB createSafe(long address) { - return address == NULL ? null : new XrRenderModelPathInfoFB(address, null); + return address == NULL ? null : wrap(XrRenderModelPathInfoFB.class, address); } /** @@ -192,7 +183,7 @@ public static XrRenderModelPathInfoFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrRenderModelPathInfoFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -201,7 +192,7 @@ public static XrRenderModelPathInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrRenderModelPathInfoFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -211,7 +202,7 @@ public static XrRenderModelPathInfoFB.Buffer calloc(int capacity) { */ public static XrRenderModelPathInfoFB.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); } /** @@ -221,13 +212,13 @@ public static XrRenderModelPathInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrRenderModelPathInfoFB.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 XrRenderModelPathInfoFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -236,7 +227,7 @@ public static XrRenderModelPathInfoFB.Buffer createSafe(long address, int capaci * @param stack the stack from which to allocate */ public static XrRenderModelPathInfoFB malloc(MemoryStack stack) { - return new XrRenderModelPathInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrRenderModelPathInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -245,7 +236,7 @@ public static XrRenderModelPathInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrRenderModelPathInfoFB calloc(MemoryStack stack) { - return new XrRenderModelPathInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrRenderModelPathInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -255,7 +246,7 @@ public static XrRenderModelPathInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrRenderModelPathInfoFB.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); } /** @@ -265,26 +256,26 @@ public static XrRenderModelPathInfoFB.Buffer malloc(int capacity, MemoryStack st * @param capacity the buffer capacity */ public static XrRenderModelPathInfoFB.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 + XrRenderModelPathInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrRenderModelPathInfoFB.NEXT); } - /** Unsafe version of {@link #path}. */ - public static long npath(long struct) { return UNSAFE.getLong(null, struct + XrRenderModelPathInfoFB.PATH); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelPathInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrRenderModelPathInfoFB.NEXT, value); } - /** Unsafe version of {@link #path(long) path}. */ - public static void npath(long struct, long value) { UNSAFE.putLong(null, struct + XrRenderModelPathInfoFB.PATH, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelPathInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrRenderModelPathInfoFB.NEXT); } + /** Unsafe version of {@link #path}. */ + public static long npath(long struct) { return UNSAFE.getLong(null, struct + XrRenderModelPathInfoFB.PATH); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelPathInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrRenderModelPathInfoFB.NEXT, value); } + /** Unsafe version of {@link #path(long) path}. */ + public static void npath(long struct, long value) { UNSAFE.putLong(null, struct + XrRenderModelPathInfoFB.PATH, value); } + + // ----------------------------------- /** An array of {@link XrRenderModelPathInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -294,9 +285,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrRenderModelPathInfoFB.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 XrRenderModelPathInfoFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrRenderModelPathInfoFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -321,25 +312,25 @@ protected Buffer self() { protected XrRenderModelPathInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrRenderModelPathInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrRenderModelPathInfoFB.ntype(address()); } - /** @return the value of the {@link XrRenderModelPathInfoFB#next} field. */ - @NativeType("void *") - public long next() { return XrRenderModelPathInfoFB.nnext(address()); } - /** @return the value of the {@link XrRenderModelPathInfoFB#path} field. */ - @NativeType("XrPath") - public long path() { return XrRenderModelPathInfoFB.npath(address()); } - - /** Sets the specified value to the {@link XrRenderModelPathInfoFB#type} field. */ - public XrRenderModelPathInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelPathInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_PATH_INFO_FB TYPE_RENDER_MODEL_PATH_INFO_FB} value to the {@link XrRenderModelPathInfoFB#type} field. */ - public XrRenderModelPathInfoFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_PATH_INFO_FB); } - /** Sets the specified value to the {@link XrRenderModelPathInfoFB#next} field. */ - public XrRenderModelPathInfoFB.Buffer next(@NativeType("void *") long value) { XrRenderModelPathInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrRenderModelPathInfoFB#path} field. */ - public XrRenderModelPathInfoFB.Buffer path(@NativeType("XrPath") long value) { XrRenderModelPathInfoFB.npath(address(), value); return this; } + + /** @return the value of the {@link XrRenderModelPathInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrRenderModelPathInfoFB.ntype(address()); } + /** @return the value of the {@link XrRenderModelPathInfoFB#next} field. */ + @NativeType("void *") + public long next() { return XrRenderModelPathInfoFB.nnext(address()); } + /** @return the value of the {@link XrRenderModelPathInfoFB#path} field. */ + @NativeType("XrPath") + public long path() { return XrRenderModelPathInfoFB.npath(address()); } + + /** Sets the specified value to the {@link XrRenderModelPathInfoFB#type} field. */ + public XrRenderModelPathInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelPathInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_PATH_INFO_FB TYPE_RENDER_MODEL_PATH_INFO_FB} value to the {@link XrRenderModelPathInfoFB#type} field. */ + public XrRenderModelPathInfoFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_PATH_INFO_FB); } + /** Sets the specified value to the {@link XrRenderModelPathInfoFB#next} field. */ + public XrRenderModelPathInfoFB.Buffer next(@NativeType("void *") long value) { XrRenderModelPathInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrRenderModelPathInfoFB#path} field. */ + public XrRenderModelPathInfoFB.Buffer path(@NativeType("XrPath") long value) { XrRenderModelPathInfoFB.npath(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelPropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelPropertiesFB.java index 730b192b37..e15a6bfe52 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelPropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelPropertiesFB.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.FBRenderModel.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.FBRenderModel.*; + /** * The information about the render model. * @@ -54,8 +54,8 @@ * uint32_t {@link #modelVersion}; * XrRenderModelFlagsFB {@link #flags}; * } - */ -public class XrRenderModelPropertiesFB extends Struct implements NativeResource { + */ +public class XrRenderModelPropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -65,44 +65,35 @@ public class XrRenderModelPropertiesFB extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - VENDORID, - MODELNAME, - MODELKEY, - MODELVERSION, - FLAGS; + TYPE, + NEXT, + VENDORID, + MODELNAME, + MODELKEY, + MODELVERSION, + FLAGS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __array(1, XR_MAX_RENDER_MODEL_NAME_SIZE_FB), - __member(8), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __array(1, XR_MAX_RENDER_MODEL_NAME_SIZE_FB), + __member(8), + __member(4), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - VENDORID = layout.offsetof(2); - MODELNAME = layout.offsetof(3); - MODELKEY = layout.offsetof(4); - MODELVERSION = layout.offsetof(5); - FLAGS = layout.offsetof(6); - } - - protected XrRenderModelPropertiesFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrRenderModelPropertiesFB create(long address, @Nullable ByteBuffer container) { - return new XrRenderModelPropertiesFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + VENDORID = layout.offsetof(2); + MODELNAME = layout.offsetof(3); + MODELKEY = layout.offsetof(4); + MODELVERSION = layout.offsetof(5); + FLAGS = layout.offsetof(6); } /** @@ -117,66 +108,66 @@ public XrRenderModelPropertiesFB(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. {@link XrRenderModelCapabilitiesRequestFB} is a structure in this structure chain and should be linked when this structure is passed to {@link FBRenderModel#xrGetRenderModelPropertiesFB GetRenderModelPropertiesFB}. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** the vendor id of the model. */ - @NativeType("uint32_t") - public int vendorId() { return nvendorId(address()); } - /** the name of the model. */ - @NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") - public ByteBuffer modelName() { return nmodelName(address()); } - /** the name of the model. */ - @NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") - public String modelNameString() { return nmodelNameString(address()); } - /** the unique model key used to load the model in {@link FBRenderModel#xrLoadRenderModelFB LoadRenderModelFB}. */ - @NativeType("XrRenderModelKeyFB") - public long modelKey() { return nmodelKey(address()); } - /** the version number of the model. */ - @NativeType("uint32_t") - public int modelVersion() { return nmodelVersion(address()); } - /** a bitmask of {@code XrRenderModelFlagsFB}. After a successful call to {@link FBRenderModel#xrGetRenderModelPropertiesFB GetRenderModelPropertiesFB}, flags must contain the support level of the model and no other support levels. */ - @NativeType("XrRenderModelFlagsFB") - public long flags() { return nflags(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrRenderModelPropertiesFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_PROPERTIES_FB TYPE_RENDER_MODEL_PROPERTIES_FB} value to the {@link #type} field. */ - public XrRenderModelPropertiesFB type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_PROPERTIES_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrRenderModelPropertiesFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #vendorId} field. */ - public XrRenderModelPropertiesFB vendorId(@NativeType("uint32_t") int value) { nvendorId(address(), value); return this; } - /** Copies the specified encoded string to the {@link #modelName} field. */ - public XrRenderModelPropertiesFB modelName(@NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") ByteBuffer value) { nmodelName(address(), value); return this; } - /** Sets the specified value to the {@link #modelKey} field. */ - public XrRenderModelPropertiesFB modelKey(@NativeType("XrRenderModelKeyFB") long value) { nmodelKey(address(), value); return this; } - /** Sets the specified value to the {@link #modelVersion} field. */ - public XrRenderModelPropertiesFB modelVersion(@NativeType("uint32_t") int value) { nmodelVersion(address(), value); return this; } - /** Sets the specified value to the {@link #flags} field. */ - public XrRenderModelPropertiesFB flags(@NativeType("XrRenderModelFlagsFB") long value) { nflags(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. {@link XrRenderModelCapabilitiesRequestFB} is a structure in this structure chain and should be linked when this structure is passed to {@link FBRenderModel#xrGetRenderModelPropertiesFB GetRenderModelPropertiesFB}. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the vendor id of the model. */ + @NativeType("uint32_t") + public int vendorId() { return nvendorId(address()); } + /** the name of the model. */ + @NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") + public ByteBuffer modelName() { return nmodelName(address()); } + /** the name of the model. */ + @NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") + public String modelNameString() { return nmodelNameString(address()); } + /** the unique model key used to load the model in {@link FBRenderModel#xrLoadRenderModelFB LoadRenderModelFB}. */ + @NativeType("XrRenderModelKeyFB") + public long modelKey() { return nmodelKey(address()); } + /** the version number of the model. */ + @NativeType("uint32_t") + public int modelVersion() { return nmodelVersion(address()); } + /** a bitmask of {@code XrRenderModelFlagsFB}. After a successful call to {@link FBRenderModel#xrGetRenderModelPropertiesFB GetRenderModelPropertiesFB}, flags must contain the support level of the model and no other support levels. */ + @NativeType("XrRenderModelFlagsFB") + public long flags() { return nflags(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrRenderModelPropertiesFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_PROPERTIES_FB TYPE_RENDER_MODEL_PROPERTIES_FB} value to the {@link #type} field. */ + public XrRenderModelPropertiesFB type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_PROPERTIES_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrRenderModelPropertiesFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #vendorId} field. */ + public XrRenderModelPropertiesFB vendorId(@NativeType("uint32_t") int value) { nvendorId(address(), value); return this; } + /** Copies the specified encoded string to the {@link #modelName} field. */ + public XrRenderModelPropertiesFB modelName(@NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") ByteBuffer value) { nmodelName(address(), value); return this; } + /** Sets the specified value to the {@link #modelKey} field. */ + public XrRenderModelPropertiesFB modelKey(@NativeType("XrRenderModelKeyFB") long value) { nmodelKey(address(), value); return this; } + /** Sets the specified value to the {@link #modelVersion} field. */ + public XrRenderModelPropertiesFB modelVersion(@NativeType("uint32_t") int value) { nmodelVersion(address(), value); return this; } + /** Sets the specified value to the {@link #flags} field. */ + public XrRenderModelPropertiesFB flags(@NativeType("XrRenderModelFlagsFB") long value) { nflags(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrRenderModelPropertiesFB set( - int type, - long next, - int vendorId, - ByteBuffer modelName, - long modelKey, - int modelVersion, + int type, + long next, + int vendorId, + ByteBuffer modelName, + long modelKey, + int modelVersion, long flags - ) { - type(type); - next(next); - vendorId(vendorId); - modelName(modelName); - modelKey(modelKey); - modelVersion(modelVersion); - flags(flags); + ) { + type(type); + next(next); + vendorId(vendorId); + modelName(modelName); + modelKey(modelKey); + modelVersion(modelVersion); + flags(flags); return this; } @@ -197,29 +188,29 @@ public XrRenderModelPropertiesFB set(XrRenderModelPropertiesFB src) { /** Returns a new {@code XrRenderModelPropertiesFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrRenderModelPropertiesFB malloc() { - return new XrRenderModelPropertiesFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrRenderModelPropertiesFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrRenderModelPropertiesFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrRenderModelPropertiesFB calloc() { - return new XrRenderModelPropertiesFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrRenderModelPropertiesFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrRenderModelPropertiesFB} instance allocated with {@link BufferUtils}. */ public static XrRenderModelPropertiesFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrRenderModelPropertiesFB(memAddress(container), container); + return wrap(XrRenderModelPropertiesFB.class, memAddress(container), container); } /** Returns a new {@code XrRenderModelPropertiesFB} instance for the specified memory address. */ public static XrRenderModelPropertiesFB create(long address) { - return new XrRenderModelPropertiesFB(address, null); + return wrap(XrRenderModelPropertiesFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrRenderModelPropertiesFB createSafe(long address) { - return address == NULL ? null : new XrRenderModelPropertiesFB(address, null); + return address == NULL ? null : wrap(XrRenderModelPropertiesFB.class, address); } /** @@ -228,7 +219,7 @@ public static XrRenderModelPropertiesFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrRenderModelPropertiesFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -237,7 +228,7 @@ public static XrRenderModelPropertiesFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrRenderModelPropertiesFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -247,7 +238,7 @@ public static XrRenderModelPropertiesFB.Buffer calloc(int capacity) { */ public static XrRenderModelPropertiesFB.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); } /** @@ -257,13 +248,13 @@ public static XrRenderModelPropertiesFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrRenderModelPropertiesFB.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 XrRenderModelPropertiesFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -272,7 +263,7 @@ public static XrRenderModelPropertiesFB.Buffer createSafe(long address, int capa * @param stack the stack from which to allocate */ public static XrRenderModelPropertiesFB malloc(MemoryStack stack) { - return new XrRenderModelPropertiesFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrRenderModelPropertiesFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -281,7 +272,7 @@ public static XrRenderModelPropertiesFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrRenderModelPropertiesFB calloc(MemoryStack stack) { - return new XrRenderModelPropertiesFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrRenderModelPropertiesFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -291,7 +282,7 @@ public static XrRenderModelPropertiesFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrRenderModelPropertiesFB.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); } /** @@ -301,50 +292,50 @@ public static XrRenderModelPropertiesFB.Buffer malloc(int capacity, MemoryStack * @param capacity the buffer capacity */ public static XrRenderModelPropertiesFB.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 + XrRenderModelPropertiesFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrRenderModelPropertiesFB.NEXT); } + /** Unsafe version of {@link #vendorId}. */ + public static int nvendorId(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelPropertiesFB.VENDORID); } + /** Unsafe version of {@link #modelName}. */ + public static ByteBuffer nmodelName(long struct) { return memByteBuffer(struct + XrRenderModelPropertiesFB.MODELNAME, XR_MAX_RENDER_MODEL_NAME_SIZE_FB); } + /** Unsafe version of {@link #modelNameString}. */ + public static String nmodelNameString(long struct) { return memUTF8(struct + XrRenderModelPropertiesFB.MODELNAME); } + /** Unsafe version of {@link #modelKey}. */ + public static long nmodelKey(long struct) { return UNSAFE.getLong(null, struct + XrRenderModelPropertiesFB.MODELKEY); } + /** Unsafe version of {@link #modelVersion}. */ + public static int nmodelVersion(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelPropertiesFB.MODELVERSION); } + /** Unsafe version of {@link #flags}. */ + public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrRenderModelPropertiesFB.FLAGS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelPropertiesFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrRenderModelPropertiesFB.NEXT, value); } + /** Unsafe version of {@link #vendorId(int) vendorId}. */ + public static void nvendorId(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelPropertiesFB.VENDORID, value); } + /** Unsafe version of {@link #modelName(ByteBuffer) modelName}. */ + public static void nmodelName(long struct, ByteBuffer value) { + if (CHECKS) { + checkNT1(value); + checkGT(value, XR_MAX_RENDER_MODEL_NAME_SIZE_FB); + } + memCopy(memAddress(value), struct + XrRenderModelPropertiesFB.MODELNAME, value.remaining()); } + /** Unsafe version of {@link #modelKey(long) modelKey}. */ + public static void nmodelKey(long struct, long value) { UNSAFE.putLong(null, struct + XrRenderModelPropertiesFB.MODELKEY, value); } + /** Unsafe version of {@link #modelVersion(int) modelVersion}. */ + public static void nmodelVersion(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelPropertiesFB.MODELVERSION, value); } + /** Unsafe version of {@link #flags(long) flags}. */ + public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrRenderModelPropertiesFB.FLAGS, value); } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelPropertiesFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrRenderModelPropertiesFB.NEXT); } - /** Unsafe version of {@link #vendorId}. */ - public static int nvendorId(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelPropertiesFB.VENDORID); } - /** Unsafe version of {@link #modelName}. */ - public static ByteBuffer nmodelName(long struct) { return memByteBuffer(struct + XrRenderModelPropertiesFB.MODELNAME, XR_MAX_RENDER_MODEL_NAME_SIZE_FB); } - /** Unsafe version of {@link #modelNameString}. */ - public static String nmodelNameString(long struct) { return memUTF8(struct + XrRenderModelPropertiesFB.MODELNAME); } - /** Unsafe version of {@link #modelKey}. */ - public static long nmodelKey(long struct) { return UNSAFE.getLong(null, struct + XrRenderModelPropertiesFB.MODELKEY); } - /** Unsafe version of {@link #modelVersion}. */ - public static int nmodelVersion(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelPropertiesFB.MODELVERSION); } - /** Unsafe version of {@link #flags}. */ - public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrRenderModelPropertiesFB.FLAGS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelPropertiesFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrRenderModelPropertiesFB.NEXT, value); } - /** Unsafe version of {@link #vendorId(int) vendorId}. */ - public static void nvendorId(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelPropertiesFB.VENDORID, value); } - /** Unsafe version of {@link #modelName(ByteBuffer) modelName}. */ - public static void nmodelName(long struct, ByteBuffer value) { - if (CHECKS) { - checkNT1(value); - checkGT(value, XR_MAX_RENDER_MODEL_NAME_SIZE_FB); - } - memCopy(memAddress(value), struct + XrRenderModelPropertiesFB.MODELNAME, value.remaining()); - } - /** Unsafe version of {@link #modelKey(long) modelKey}. */ - public static void nmodelKey(long struct, long value) { UNSAFE.putLong(null, struct + XrRenderModelPropertiesFB.MODELKEY, value); } - /** Unsafe version of {@link #modelVersion(int) modelVersion}. */ - public static void nmodelVersion(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelPropertiesFB.MODELVERSION, value); } - /** Unsafe version of {@link #flags(long) flags}. */ - public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrRenderModelPropertiesFB.FLAGS, value); } - - // ----------------------------------- /** An array of {@link XrRenderModelPropertiesFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -354,9 +345,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 XrRenderModelPropertiesFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrRenderModelPropertiesFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -381,48 +372,48 @@ protected Buffer self() { protected XrRenderModelPropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrRenderModelPropertiesFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrRenderModelPropertiesFB.ntype(address()); } - /** @return the value of the {@link XrRenderModelPropertiesFB#next} field. */ - @NativeType("void *") - public long next() { return XrRenderModelPropertiesFB.nnext(address()); } - /** @return the value of the {@link XrRenderModelPropertiesFB#vendorId} field. */ - @NativeType("uint32_t") - public int vendorId() { return XrRenderModelPropertiesFB.nvendorId(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrRenderModelPropertiesFB#modelName} field. */ - @NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") - public ByteBuffer modelName() { return XrRenderModelPropertiesFB.nmodelName(address()); } - /** @return the null-terminated string stored in the {@link XrRenderModelPropertiesFB#modelName} field. */ - @NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") - public String modelNameString() { return XrRenderModelPropertiesFB.nmodelNameString(address()); } - /** @return the value of the {@link XrRenderModelPropertiesFB#modelKey} field. */ - @NativeType("XrRenderModelKeyFB") - public long modelKey() { return XrRenderModelPropertiesFB.nmodelKey(address()); } - /** @return the value of the {@link XrRenderModelPropertiesFB#modelVersion} field. */ - @NativeType("uint32_t") - public int modelVersion() { return XrRenderModelPropertiesFB.nmodelVersion(address()); } - /** @return the value of the {@link XrRenderModelPropertiesFB#flags} field. */ - @NativeType("XrRenderModelFlagsFB") - public long flags() { return XrRenderModelPropertiesFB.nflags(address()); } - - /** Sets the specified value to the {@link XrRenderModelPropertiesFB#type} field. */ - public XrRenderModelPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelPropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_PROPERTIES_FB TYPE_RENDER_MODEL_PROPERTIES_FB} value to the {@link XrRenderModelPropertiesFB#type} field. */ - public XrRenderModelPropertiesFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_PROPERTIES_FB); } - /** Sets the specified value to the {@link XrRenderModelPropertiesFB#next} field. */ - public XrRenderModelPropertiesFB.Buffer next(@NativeType("void *") long value) { XrRenderModelPropertiesFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrRenderModelPropertiesFB#vendorId} field. */ - public XrRenderModelPropertiesFB.Buffer vendorId(@NativeType("uint32_t") int value) { XrRenderModelPropertiesFB.nvendorId(address(), value); return this; } - /** Copies the specified encoded string to the {@link XrRenderModelPropertiesFB#modelName} field. */ - public XrRenderModelPropertiesFB.Buffer modelName(@NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") ByteBuffer value) { XrRenderModelPropertiesFB.nmodelName(address(), value); return this; } - /** Sets the specified value to the {@link XrRenderModelPropertiesFB#modelKey} field. */ - public XrRenderModelPropertiesFB.Buffer modelKey(@NativeType("XrRenderModelKeyFB") long value) { XrRenderModelPropertiesFB.nmodelKey(address(), value); return this; } - /** Sets the specified value to the {@link XrRenderModelPropertiesFB#modelVersion} field. */ - public XrRenderModelPropertiesFB.Buffer modelVersion(@NativeType("uint32_t") int value) { XrRenderModelPropertiesFB.nmodelVersion(address(), value); return this; } - /** Sets the specified value to the {@link XrRenderModelPropertiesFB#flags} field. */ - public XrRenderModelPropertiesFB.Buffer flags(@NativeType("XrRenderModelFlagsFB") long value) { XrRenderModelPropertiesFB.nflags(address(), value); return this; } + + /** @return the value of the {@link XrRenderModelPropertiesFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrRenderModelPropertiesFB.ntype(address()); } + /** @return the value of the {@link XrRenderModelPropertiesFB#next} field. */ + @NativeType("void *") + public long next() { return XrRenderModelPropertiesFB.nnext(address()); } + /** @return the value of the {@link XrRenderModelPropertiesFB#vendorId} field. */ + @NativeType("uint32_t") + public int vendorId() { return XrRenderModelPropertiesFB.nvendorId(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrRenderModelPropertiesFB#modelName} field. */ + @NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") + public ByteBuffer modelName() { return XrRenderModelPropertiesFB.nmodelName(address()); } + /** @return the null-terminated string stored in the {@link XrRenderModelPropertiesFB#modelName} field. */ + @NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") + public String modelNameString() { return XrRenderModelPropertiesFB.nmodelNameString(address()); } + /** @return the value of the {@link XrRenderModelPropertiesFB#modelKey} field. */ + @NativeType("XrRenderModelKeyFB") + public long modelKey() { return XrRenderModelPropertiesFB.nmodelKey(address()); } + /** @return the value of the {@link XrRenderModelPropertiesFB#modelVersion} field. */ + @NativeType("uint32_t") + public int modelVersion() { return XrRenderModelPropertiesFB.nmodelVersion(address()); } + /** @return the value of the {@link XrRenderModelPropertiesFB#flags} field. */ + @NativeType("XrRenderModelFlagsFB") + public long flags() { return XrRenderModelPropertiesFB.nflags(address()); } + + /** Sets the specified value to the {@link XrRenderModelPropertiesFB#type} field. */ + public XrRenderModelPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelPropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_PROPERTIES_FB TYPE_RENDER_MODEL_PROPERTIES_FB} value to the {@link XrRenderModelPropertiesFB#type} field. */ + public XrRenderModelPropertiesFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_PROPERTIES_FB); } + /** Sets the specified value to the {@link XrRenderModelPropertiesFB#next} field. */ + public XrRenderModelPropertiesFB.Buffer next(@NativeType("void *") long value) { XrRenderModelPropertiesFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrRenderModelPropertiesFB#vendorId} field. */ + public XrRenderModelPropertiesFB.Buffer vendorId(@NativeType("uint32_t") int value) { XrRenderModelPropertiesFB.nvendorId(address(), value); return this; } + /** Copies the specified encoded string to the {@link XrRenderModelPropertiesFB#modelName} field. */ + public XrRenderModelPropertiesFB.Buffer modelName(@NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") ByteBuffer value) { XrRenderModelPropertiesFB.nmodelName(address(), value); return this; } + /** Sets the specified value to the {@link XrRenderModelPropertiesFB#modelKey} field. */ + public XrRenderModelPropertiesFB.Buffer modelKey(@NativeType("XrRenderModelKeyFB") long value) { XrRenderModelPropertiesFB.nmodelKey(address(), value); return this; } + /** Sets the specified value to the {@link XrRenderModelPropertiesFB#modelVersion} field. */ + public XrRenderModelPropertiesFB.Buffer modelVersion(@NativeType("uint32_t") int value) { XrRenderModelPropertiesFB.nmodelVersion(address(), value); return this; } + /** Sets the specified value to the {@link XrRenderModelPropertiesFB#flags} field. */ + public XrRenderModelPropertiesFB.Buffer flags(@NativeType("XrRenderModelFlagsFB") long value) { XrRenderModelPropertiesFB.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneBoundsMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneBoundsMSFT.java index 6cd3ee0e38..1c0d830a69 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneBoundsMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneBoundsMSFT.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.*; + /** * The scene bounds. * @@ -46,8 +46,8 @@ * uint32_t {@link #frustumCount}; * {@link XrSceneFrustumBoundMSFT XrSceneFrustumBoundMSFT} const * {@link #frustums}; * } - */ -public class XrSceneBoundsMSFT extends Struct implements NativeResource { + */ +public class XrSceneBoundsMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,47 +57,38 @@ public class XrSceneBoundsMSFT extends Struct implements Nati /** The struct member offsets. */ public static final int - SPACE, - TIME, - SPHERECOUNT, - SPHERES, - BOXCOUNT, - BOXES, - FRUSTUMCOUNT, - FRUSTUMS; + SPACE, + TIME, + SPHERECOUNT, + SPHERES, + BOXCOUNT, + BOXES, + FRUSTUMCOUNT, + FRUSTUMS; static { - Layout layout = __struct( - __member(POINTER_SIZE), - __member(8), - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(POINTER_SIZE), + __member(8), + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(POINTER_SIZE), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - SPACE = layout.offsetof(0); - TIME = layout.offsetof(1); - SPHERECOUNT = layout.offsetof(2); - SPHERES = layout.offsetof(3); - BOXCOUNT = layout.offsetof(4); - BOXES = layout.offsetof(5); - FRUSTUMCOUNT = layout.offsetof(6); - FRUSTUMS = layout.offsetof(7); - } - - protected XrSceneBoundsMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSceneBoundsMSFT create(long address, @Nullable ByteBuffer container) { - return new XrSceneBoundsMSFT(address, container); + SPACE = layout.offsetof(0); + TIME = layout.offsetof(1); + SPHERECOUNT = layout.offsetof(2); + SPHERES = layout.offsetof(3); + BOXCOUNT = layout.offsetof(4); + BOXES = layout.offsetof(5); + FRUSTUMCOUNT = layout.offsetof(6); + FRUSTUMS = layout.offsetof(7); } /** @@ -112,71 +103,71 @@ public XrSceneBoundsMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** a handle to the {@code XrSpace} in which the bounds are specified. */ - @NativeType("XrSpace") - public long space() { return nspace(address()); } - /** the {@code XrTime} at which the bounds will be evaluated within {@code space}. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - /** the number of sphere bounds. */ - @NativeType("uint32_t") - public int sphereCount() { return nsphereCount(address()); } - /** an array of {@link XrSceneSphereBoundMSFT}. */ - @Nullable - @NativeType("XrSceneSphereBoundMSFT const *") - public XrSceneSphereBoundMSFT.Buffer spheres() { return nspheres(address()); } - /** the number of oriented box bounds. */ - @NativeType("uint32_t") - public int boxCount() { return nboxCount(address()); } - /** an array of {@link XrSceneOrientedBoxBoundMSFT}. */ - @Nullable - @NativeType("XrSceneOrientedBoxBoundMSFT const *") - public XrSceneOrientedBoxBoundMSFT.Buffer boxes() { return nboxes(address()); } - /** the number of frustum bounds. */ - @NativeType("uint32_t") - public int frustumCount() { return nfrustumCount(address()); } - /** an array of {@link XrSceneFrustumBoundMSFT}. */ - @Nullable - @NativeType("XrSceneFrustumBoundMSFT const *") - public XrSceneFrustumBoundMSFT.Buffer frustums() { return nfrustums(address()); } - - /** Sets the specified value to the {@link #space} field. */ - public XrSceneBoundsMSFT space(XrSpace value) { nspace(address(), value); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrSceneBoundsMSFT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } - /** Sets the specified value to the {@link #sphereCount} field. */ - public XrSceneBoundsMSFT sphereCount(@NativeType("uint32_t") int value) { nsphereCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneSphereBoundMSFT.Buffer} to the {@link #spheres} field. */ - public XrSceneBoundsMSFT spheres(@Nullable @NativeType("XrSceneSphereBoundMSFT const *") XrSceneSphereBoundMSFT.Buffer value) { nspheres(address(), value); return this; } - /** Sets the specified value to the {@link #boxCount} field. */ - public XrSceneBoundsMSFT boxCount(@NativeType("uint32_t") int value) { nboxCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneOrientedBoxBoundMSFT.Buffer} to the {@link #boxes} field. */ - public XrSceneBoundsMSFT boxes(@Nullable @NativeType("XrSceneOrientedBoxBoundMSFT const *") XrSceneOrientedBoxBoundMSFT.Buffer value) { nboxes(address(), value); return this; } - /** Sets the specified value to the {@link #frustumCount} field. */ - public XrSceneBoundsMSFT frustumCount(@NativeType("uint32_t") int value) { nfrustumCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneFrustumBoundMSFT.Buffer} to the {@link #frustums} field. */ - public XrSceneBoundsMSFT frustums(@Nullable @NativeType("XrSceneFrustumBoundMSFT const *") XrSceneFrustumBoundMSFT.Buffer value) { nfrustums(address(), value); return this; } + + /** a handle to the {@code XrSpace} in which the bounds are specified. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the {@code XrTime} at which the bounds will be evaluated within {@code space}. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + /** the number of sphere bounds. */ + @NativeType("uint32_t") + public int sphereCount() { return nsphereCount(address()); } + /** an array of {@link XrSceneSphereBoundMSFT}. */ + @Nullable + @NativeType("XrSceneSphereBoundMSFT const *") + public XrSceneSphereBoundMSFT.Buffer spheres() { return nspheres(address()); } + /** the number of oriented box bounds. */ + @NativeType("uint32_t") + public int boxCount() { return nboxCount(address()); } + /** an array of {@link XrSceneOrientedBoxBoundMSFT}. */ + @Nullable + @NativeType("XrSceneOrientedBoxBoundMSFT const *") + public XrSceneOrientedBoxBoundMSFT.Buffer boxes() { return nboxes(address()); } + /** the number of frustum bounds. */ + @NativeType("uint32_t") + public int frustumCount() { return nfrustumCount(address()); } + /** an array of {@link XrSceneFrustumBoundMSFT}. */ + @Nullable + @NativeType("XrSceneFrustumBoundMSFT const *") + public XrSceneFrustumBoundMSFT.Buffer frustums() { return nfrustums(address()); } + + /** Sets the specified value to the {@link #space} field. */ + public XrSceneBoundsMSFT space(XrSpace value) { nspace(address(), value); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrSceneBoundsMSFT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } + /** Sets the specified value to the {@link #sphereCount} field. */ + public XrSceneBoundsMSFT sphereCount(@NativeType("uint32_t") int value) { nsphereCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneSphereBoundMSFT.Buffer} to the {@link #spheres} field. */ + public XrSceneBoundsMSFT spheres(@Nullable @NativeType("XrSceneSphereBoundMSFT const *") XrSceneSphereBoundMSFT.Buffer value) { nspheres(address(), value); return this; } + /** Sets the specified value to the {@link #boxCount} field. */ + public XrSceneBoundsMSFT boxCount(@NativeType("uint32_t") int value) { nboxCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneOrientedBoxBoundMSFT.Buffer} to the {@link #boxes} field. */ + public XrSceneBoundsMSFT boxes(@Nullable @NativeType("XrSceneOrientedBoxBoundMSFT const *") XrSceneOrientedBoxBoundMSFT.Buffer value) { nboxes(address(), value); return this; } + /** Sets the specified value to the {@link #frustumCount} field. */ + public XrSceneBoundsMSFT frustumCount(@NativeType("uint32_t") int value) { nfrustumCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneFrustumBoundMSFT.Buffer} to the {@link #frustums} field. */ + public XrSceneBoundsMSFT frustums(@Nullable @NativeType("XrSceneFrustumBoundMSFT const *") XrSceneFrustumBoundMSFT.Buffer value) { nfrustums(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneBoundsMSFT set( - XrSpace space, - long time, - int sphereCount, - @Nullable XrSceneSphereBoundMSFT.Buffer spheres, - int boxCount, - @Nullable XrSceneOrientedBoxBoundMSFT.Buffer boxes, - int frustumCount, + XrSpace space, + long time, + int sphereCount, + @Nullable XrSceneSphereBoundMSFT.Buffer spheres, + int boxCount, + @Nullable XrSceneOrientedBoxBoundMSFT.Buffer boxes, + int frustumCount, @Nullable XrSceneFrustumBoundMSFT.Buffer frustums - ) { - space(space); - time(time); - sphereCount(sphereCount); - spheres(spheres); - boxCount(boxCount); - boxes(boxes); - frustumCount(frustumCount); - frustums(frustums); + ) { + space(space); + time(time); + sphereCount(sphereCount); + spheres(spheres); + boxCount(boxCount); + boxes(boxes); + frustumCount(frustumCount); + frustums(frustums); return this; } @@ -197,29 +188,29 @@ public XrSceneBoundsMSFT set(XrSceneBoundsMSFT src) { /** Returns a new {@code XrSceneBoundsMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSceneBoundsMSFT malloc() { - return new XrSceneBoundsMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSceneBoundsMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSceneBoundsMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSceneBoundsMSFT calloc() { - return new XrSceneBoundsMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSceneBoundsMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSceneBoundsMSFT} instance allocated with {@link BufferUtils}. */ public static XrSceneBoundsMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSceneBoundsMSFT(memAddress(container), container); + return wrap(XrSceneBoundsMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSceneBoundsMSFT} instance for the specified memory address. */ public static XrSceneBoundsMSFT create(long address) { - return new XrSceneBoundsMSFT(address, null); + return wrap(XrSceneBoundsMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSceneBoundsMSFT createSafe(long address) { - return address == NULL ? null : new XrSceneBoundsMSFT(address, null); + return address == NULL ? null : wrap(XrSceneBoundsMSFT.class, address); } /** @@ -228,7 +219,7 @@ public static XrSceneBoundsMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSceneBoundsMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -237,7 +228,7 @@ public static XrSceneBoundsMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSceneBoundsMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -247,7 +238,7 @@ public static XrSceneBoundsMSFT.Buffer calloc(int capacity) { */ public static XrSceneBoundsMSFT.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); } /** @@ -257,13 +248,13 @@ public static XrSceneBoundsMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSceneBoundsMSFT.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 XrSceneBoundsMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -272,7 +263,7 @@ public static XrSceneBoundsMSFT.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrSceneBoundsMSFT malloc(MemoryStack stack) { - return new XrSceneBoundsMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSceneBoundsMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -281,7 +272,7 @@ public static XrSceneBoundsMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSceneBoundsMSFT calloc(MemoryStack stack) { - return new XrSceneBoundsMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSceneBoundsMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -291,7 +282,7 @@ public static XrSceneBoundsMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneBoundsMSFT.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); } /** @@ -301,44 +292,44 @@ public static XrSceneBoundsMSFT.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneBoundsMSFT.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 #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrSceneBoundsMSFT.SPACE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrSceneBoundsMSFT.TIME); } - /** Unsafe version of {@link #sphereCount}. */ - public static int nsphereCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneBoundsMSFT.SPHERECOUNT); } - /** Unsafe version of {@link #spheres}. */ - @Nullable public static XrSceneSphereBoundMSFT.Buffer nspheres(long struct) { return XrSceneSphereBoundMSFT.createSafe(memGetAddress(struct + XrSceneBoundsMSFT.SPHERES), nsphereCount(struct)); } - /** Unsafe version of {@link #boxCount}. */ - public static int nboxCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneBoundsMSFT.BOXCOUNT); } - /** Unsafe version of {@link #boxes}. */ - @Nullable public static XrSceneOrientedBoxBoundMSFT.Buffer nboxes(long struct) { return XrSceneOrientedBoxBoundMSFT.createSafe(memGetAddress(struct + XrSceneBoundsMSFT.BOXES), nboxCount(struct)); } - /** Unsafe version of {@link #frustumCount}. */ - public static int nfrustumCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneBoundsMSFT.FRUSTUMCOUNT); } - /** Unsafe version of {@link #frustums}. */ - @Nullable public static XrSceneFrustumBoundMSFT.Buffer nfrustums(long struct) { return XrSceneFrustumBoundMSFT.createSafe(memGetAddress(struct + XrSceneBoundsMSFT.FRUSTUMS), nfrustumCount(struct)); } - - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSceneBoundsMSFT.SPACE, value.address()); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrSceneBoundsMSFT.TIME, value); } - /** Sets the specified value to the {@code sphereCount} field of the specified {@code struct}. */ - public static void nsphereCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneBoundsMSFT.SPHERECOUNT, value); } - /** Unsafe version of {@link #spheres(XrSceneSphereBoundMSFT.Buffer) spheres}. */ - public static void nspheres(long struct, @Nullable XrSceneSphereBoundMSFT.Buffer value) { memPutAddress(struct + XrSceneBoundsMSFT.SPHERES, memAddressSafe(value)); if (value != null) { nsphereCount(struct, value.remaining()); } } - /** Sets the specified value to the {@code boxCount} field of the specified {@code struct}. */ - public static void nboxCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneBoundsMSFT.BOXCOUNT, value); } - /** Unsafe version of {@link #boxes(XrSceneOrientedBoxBoundMSFT.Buffer) boxes}. */ - public static void nboxes(long struct, @Nullable XrSceneOrientedBoxBoundMSFT.Buffer value) { memPutAddress(struct + XrSceneBoundsMSFT.BOXES, memAddressSafe(value)); if (value != null) { nboxCount(struct, value.remaining()); } } - /** Sets the specified value to the {@code frustumCount} field of the specified {@code struct}. */ - public static void nfrustumCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneBoundsMSFT.FRUSTUMCOUNT, value); } - /** Unsafe version of {@link #frustums(XrSceneFrustumBoundMSFT.Buffer) frustums}. */ - public static void nfrustums(long struct, @Nullable XrSceneFrustumBoundMSFT.Buffer value) { memPutAddress(struct + XrSceneBoundsMSFT.FRUSTUMS, memAddressSafe(value)); if (value != null) { nfrustumCount(struct, value.remaining()); } } + + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrSceneBoundsMSFT.SPACE); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrSceneBoundsMSFT.TIME); } + /** Unsafe version of {@link #sphereCount}. */ + public static int nsphereCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneBoundsMSFT.SPHERECOUNT); } + /** Unsafe version of {@link #spheres}. */ + @Nullable public static XrSceneSphereBoundMSFT.Buffer nspheres(long struct) { return XrSceneSphereBoundMSFT.createSafe(memGetAddress(struct + XrSceneBoundsMSFT.SPHERES), nsphereCount(struct)); } + /** Unsafe version of {@link #boxCount}. */ + public static int nboxCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneBoundsMSFT.BOXCOUNT); } + /** Unsafe version of {@link #boxes}. */ + @Nullable public static XrSceneOrientedBoxBoundMSFT.Buffer nboxes(long struct) { return XrSceneOrientedBoxBoundMSFT.createSafe(memGetAddress(struct + XrSceneBoundsMSFT.BOXES), nboxCount(struct)); } + /** Unsafe version of {@link #frustumCount}. */ + public static int nfrustumCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneBoundsMSFT.FRUSTUMCOUNT); } + /** Unsafe version of {@link #frustums}. */ + @Nullable public static XrSceneFrustumBoundMSFT.Buffer nfrustums(long struct) { return XrSceneFrustumBoundMSFT.createSafe(memGetAddress(struct + XrSceneBoundsMSFT.FRUSTUMS), nfrustumCount(struct)); } + + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSceneBoundsMSFT.SPACE, value.address()); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrSceneBoundsMSFT.TIME, value); } + /** Sets the specified value to the {@code sphereCount} field of the specified {@code struct}. */ + public static void nsphereCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneBoundsMSFT.SPHERECOUNT, value); } + /** Unsafe version of {@link #spheres(XrSceneSphereBoundMSFT.Buffer) spheres}. */ + public static void nspheres(long struct, @Nullable XrSceneSphereBoundMSFT.Buffer value) { memPutAddress(struct + XrSceneBoundsMSFT.SPHERES, memAddressSafe(value)); if (value != null) { nsphereCount(struct, value.remaining()); } } + /** Sets the specified value to the {@code boxCount} field of the specified {@code struct}. */ + public static void nboxCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneBoundsMSFT.BOXCOUNT, value); } + /** Unsafe version of {@link #boxes(XrSceneOrientedBoxBoundMSFT.Buffer) boxes}. */ + public static void nboxes(long struct, @Nullable XrSceneOrientedBoxBoundMSFT.Buffer value) { memPutAddress(struct + XrSceneBoundsMSFT.BOXES, memAddressSafe(value)); if (value != null) { nboxCount(struct, value.remaining()); } } + /** Sets the specified value to the {@code frustumCount} field of the specified {@code struct}. */ + public static void nfrustumCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneBoundsMSFT.FRUSTUMCOUNT, value); } + /** Unsafe version of {@link #frustums(XrSceneFrustumBoundMSFT.Buffer) frustums}. */ + public static void nfrustums(long struct, @Nullable XrSceneFrustumBoundMSFT.Buffer value) { memPutAddress(struct + XrSceneBoundsMSFT.FRUSTUMS, memAddressSafe(value)); if (value != null) { nfrustumCount(struct, value.remaining()); } } /** * Validates pointer members that should not be {@code NULL}. @@ -347,9 +338,9 @@ public static XrSceneBoundsMSFT.Buffer calloc(int capacity, MemoryStack stack) { */ public static void validate(long struct) { check(memGetAddress(struct + XrSceneBoundsMSFT.SPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSceneBoundsMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -359,9 +350,9 @@ public static class Buffer extends StructBuffer imple /** * Creates a new {@code XrSceneBoundsMSFT.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 XrSceneBoundsMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneBoundsMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -386,51 +377,51 @@ protected Buffer self() { protected XrSceneBoundsMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneBoundsMSFT#space} field. */ - @NativeType("XrSpace") - public long space() { return XrSceneBoundsMSFT.nspace(address()); } - /** @return the value of the {@link XrSceneBoundsMSFT#time} field. */ - @NativeType("XrTime") - public long time() { return XrSceneBoundsMSFT.ntime(address()); } - /** @return the value of the {@link XrSceneBoundsMSFT#sphereCount} field. */ - @NativeType("uint32_t") - public int sphereCount() { return XrSceneBoundsMSFT.nsphereCount(address()); } - /** @return a {@link XrSceneSphereBoundMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneBoundsMSFT#spheres} field. */ - @Nullable - @NativeType("XrSceneSphereBoundMSFT const *") - public XrSceneSphereBoundMSFT.Buffer spheres() { return XrSceneBoundsMSFT.nspheres(address()); } - /** @return the value of the {@link XrSceneBoundsMSFT#boxCount} field. */ - @NativeType("uint32_t") - public int boxCount() { return XrSceneBoundsMSFT.nboxCount(address()); } - /** @return a {@link XrSceneOrientedBoxBoundMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneBoundsMSFT#boxes} field. */ - @Nullable - @NativeType("XrSceneOrientedBoxBoundMSFT const *") - public XrSceneOrientedBoxBoundMSFT.Buffer boxes() { return XrSceneBoundsMSFT.nboxes(address()); } - /** @return the value of the {@link XrSceneBoundsMSFT#frustumCount} field. */ - @NativeType("uint32_t") - public int frustumCount() { return XrSceneBoundsMSFT.nfrustumCount(address()); } - /** @return a {@link XrSceneFrustumBoundMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneBoundsMSFT#frustums} field. */ - @Nullable - @NativeType("XrSceneFrustumBoundMSFT const *") - public XrSceneFrustumBoundMSFT.Buffer frustums() { return XrSceneBoundsMSFT.nfrustums(address()); } - - /** Sets the specified value to the {@link XrSceneBoundsMSFT#space} field. */ - public XrSceneBoundsMSFT.Buffer space(XrSpace value) { XrSceneBoundsMSFT.nspace(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneBoundsMSFT#time} field. */ - public XrSceneBoundsMSFT.Buffer time(@NativeType("XrTime") long value) { XrSceneBoundsMSFT.ntime(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneBoundsMSFT#sphereCount} field. */ - public XrSceneBoundsMSFT.Buffer sphereCount(@NativeType("uint32_t") int value) { XrSceneBoundsMSFT.nsphereCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneSphereBoundMSFT.Buffer} to the {@link XrSceneBoundsMSFT#spheres} field. */ - public XrSceneBoundsMSFT.Buffer spheres(@Nullable @NativeType("XrSceneSphereBoundMSFT const *") XrSceneSphereBoundMSFT.Buffer value) { XrSceneBoundsMSFT.nspheres(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneBoundsMSFT#boxCount} field. */ - public XrSceneBoundsMSFT.Buffer boxCount(@NativeType("uint32_t") int value) { XrSceneBoundsMSFT.nboxCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneOrientedBoxBoundMSFT.Buffer} to the {@link XrSceneBoundsMSFT#boxes} field. */ - public XrSceneBoundsMSFT.Buffer boxes(@Nullable @NativeType("XrSceneOrientedBoxBoundMSFT const *") XrSceneOrientedBoxBoundMSFT.Buffer value) { XrSceneBoundsMSFT.nboxes(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneBoundsMSFT#frustumCount} field. */ - public XrSceneBoundsMSFT.Buffer frustumCount(@NativeType("uint32_t") int value) { XrSceneBoundsMSFT.nfrustumCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneFrustumBoundMSFT.Buffer} to the {@link XrSceneBoundsMSFT#frustums} field. */ - public XrSceneBoundsMSFT.Buffer frustums(@Nullable @NativeType("XrSceneFrustumBoundMSFT const *") XrSceneFrustumBoundMSFT.Buffer value) { XrSceneBoundsMSFT.nfrustums(address(), value); return this; } + + /** @return the value of the {@link XrSceneBoundsMSFT#space} field. */ + @NativeType("XrSpace") + public long space() { return XrSceneBoundsMSFT.nspace(address()); } + /** @return the value of the {@link XrSceneBoundsMSFT#time} field. */ + @NativeType("XrTime") + public long time() { return XrSceneBoundsMSFT.ntime(address()); } + /** @return the value of the {@link XrSceneBoundsMSFT#sphereCount} field. */ + @NativeType("uint32_t") + public int sphereCount() { return XrSceneBoundsMSFT.nsphereCount(address()); } + /** @return a {@link XrSceneSphereBoundMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneBoundsMSFT#spheres} field. */ + @Nullable + @NativeType("XrSceneSphereBoundMSFT const *") + public XrSceneSphereBoundMSFT.Buffer spheres() { return XrSceneBoundsMSFT.nspheres(address()); } + /** @return the value of the {@link XrSceneBoundsMSFT#boxCount} field. */ + @NativeType("uint32_t") + public int boxCount() { return XrSceneBoundsMSFT.nboxCount(address()); } + /** @return a {@link XrSceneOrientedBoxBoundMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneBoundsMSFT#boxes} field. */ + @Nullable + @NativeType("XrSceneOrientedBoxBoundMSFT const *") + public XrSceneOrientedBoxBoundMSFT.Buffer boxes() { return XrSceneBoundsMSFT.nboxes(address()); } + /** @return the value of the {@link XrSceneBoundsMSFT#frustumCount} field. */ + @NativeType("uint32_t") + public int frustumCount() { return XrSceneBoundsMSFT.nfrustumCount(address()); } + /** @return a {@link XrSceneFrustumBoundMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneBoundsMSFT#frustums} field. */ + @Nullable + @NativeType("XrSceneFrustumBoundMSFT const *") + public XrSceneFrustumBoundMSFT.Buffer frustums() { return XrSceneBoundsMSFT.nfrustums(address()); } + + /** Sets the specified value to the {@link XrSceneBoundsMSFT#space} field. */ + public XrSceneBoundsMSFT.Buffer space(XrSpace value) { XrSceneBoundsMSFT.nspace(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneBoundsMSFT#time} field. */ + public XrSceneBoundsMSFT.Buffer time(@NativeType("XrTime") long value) { XrSceneBoundsMSFT.ntime(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneBoundsMSFT#sphereCount} field. */ + public XrSceneBoundsMSFT.Buffer sphereCount(@NativeType("uint32_t") int value) { XrSceneBoundsMSFT.nsphereCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneSphereBoundMSFT.Buffer} to the {@link XrSceneBoundsMSFT#spheres} field. */ + public XrSceneBoundsMSFT.Buffer spheres(@Nullable @NativeType("XrSceneSphereBoundMSFT const *") XrSceneSphereBoundMSFT.Buffer value) { XrSceneBoundsMSFT.nspheres(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneBoundsMSFT#boxCount} field. */ + public XrSceneBoundsMSFT.Buffer boxCount(@NativeType("uint32_t") int value) { XrSceneBoundsMSFT.nboxCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneOrientedBoxBoundMSFT.Buffer} to the {@link XrSceneBoundsMSFT#boxes} field. */ + public XrSceneBoundsMSFT.Buffer boxes(@Nullable @NativeType("XrSceneOrientedBoxBoundMSFT const *") XrSceneOrientedBoxBoundMSFT.Buffer value) { XrSceneBoundsMSFT.nboxes(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneBoundsMSFT#frustumCount} field. */ + public XrSceneBoundsMSFT.Buffer frustumCount(@NativeType("uint32_t") int value) { XrSceneBoundsMSFT.nfrustumCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneFrustumBoundMSFT.Buffer} to the {@link XrSceneBoundsMSFT#frustums} field. */ + public XrSceneBoundsMSFT.Buffer frustums(@Nullable @NativeType("XrSceneFrustumBoundMSFT const *") XrSceneFrustumBoundMSFT.Buffer value) { XrSceneBoundsMSFT.nfrustums(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneCaptureRequestInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneCaptureRequestInfoFB.java index f875745bfa..1896e958bc 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneCaptureRequestInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneCaptureRequestInfoFB.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 how a scene capture should be conducted by the system. * @@ -44,8 +44,8 @@ * uint32_t {@link #requestByteCount}; * char const * {@link #request}; * } - */ -public class XrSceneCaptureRequestInfoFB extends Struct implements NativeResource { + */ +public class XrSceneCaptureRequestInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,35 +55,26 @@ public class XrSceneCaptureRequestInfoFB extends Structcan use to specify which type of scene capture should be initiated by the runtime. The contents of buffer pointed to by the {@code request} parameter is runtime-specific. */ - @Nullable - @NativeType("char const *") - public ByteBuffer request() { return nrequest(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSceneCaptureRequestInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSceneCapture#XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB TYPE_SCENE_CAPTURE_REQUEST_INFO_FB} value to the {@link #type} field. */ - public XrSceneCaptureRequestInfoFB type$Default() { return type(FBSceneCapture.XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSceneCaptureRequestInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #requestByteCount} field. */ - public XrSceneCaptureRequestInfoFB requestByteCount(@NativeType("uint32_t") int value) { nrequestByteCount(address(), value); return this; } - /** Sets the address of the specified {@link ByteBuffer} to the {@link #request} field. */ - public XrSceneCaptureRequestInfoFB request(@Nullable @NativeType("char const *") ByteBuffer value) { nrequest(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()); } + /** byte length of the {@code request} parameter. */ + @NativeType("uint32_t") + public int requestByteCount() { return nrequestByteCount(address()); } + /** a string which the application can use to specify which type of scene capture should be initiated by the runtime. The contents of buffer pointed to by the {@code request} parameter is runtime-specific. */ + @Nullable + @NativeType("char const *") + public ByteBuffer request() { return nrequest(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSceneCaptureRequestInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSceneCapture#XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB TYPE_SCENE_CAPTURE_REQUEST_INFO_FB} value to the {@link #type} field. */ + public XrSceneCaptureRequestInfoFB type$Default() { return type(FBSceneCapture.XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSceneCaptureRequestInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #requestByteCount} field. */ + public XrSceneCaptureRequestInfoFB requestByteCount(@NativeType("uint32_t") int value) { nrequestByteCount(address(), value); return this; } + /** Sets the address of the specified {@link ByteBuffer} to the {@link #request} field. */ + public XrSceneCaptureRequestInfoFB request(@Nullable @NativeType("char const *") ByteBuffer value) { nrequest(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneCaptureRequestInfoFB set( - int type, - long next, - int requestByteCount, + int type, + long next, + int requestByteCount, @Nullable ByteBuffer request - ) { - type(type); - next(next); - requestByteCount(requestByteCount); - request(request); + ) { + type(type); + next(next); + requestByteCount(requestByteCount); + request(request); return this; } @@ -155,29 +146,29 @@ public XrSceneCaptureRequestInfoFB set(XrSceneCaptureRequestInfoFB src) { /** Returns a new {@code XrSceneCaptureRequestInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSceneCaptureRequestInfoFB malloc() { - return new XrSceneCaptureRequestInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrSceneCaptureRequestInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSceneCaptureRequestInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSceneCaptureRequestInfoFB calloc() { - return new XrSceneCaptureRequestInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSceneCaptureRequestInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSceneCaptureRequestInfoFB} instance allocated with {@link BufferUtils}. */ public static XrSceneCaptureRequestInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSceneCaptureRequestInfoFB(memAddress(container), container); + return wrap(XrSceneCaptureRequestInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrSceneCaptureRequestInfoFB} instance for the specified memory address. */ public static XrSceneCaptureRequestInfoFB create(long address) { - return new XrSceneCaptureRequestInfoFB(address, null); + return wrap(XrSceneCaptureRequestInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSceneCaptureRequestInfoFB createSafe(long address) { - return address == NULL ? null : new XrSceneCaptureRequestInfoFB(address, null); + return address == NULL ? null : wrap(XrSceneCaptureRequestInfoFB.class, address); } /** @@ -186,7 +177,7 @@ public static XrSceneCaptureRequestInfoFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrSceneCaptureRequestInfoFB.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 XrSceneCaptureRequestInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSceneCaptureRequestInfoFB.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 XrSceneCaptureRequestInfoFB.Buffer calloc(int capacity) { */ public static XrSceneCaptureRequestInfoFB.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 XrSceneCaptureRequestInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSceneCaptureRequestInfoFB.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 XrSceneCaptureRequestInfoFB.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 XrSceneCaptureRequestInfoFB.Buffer createSafe(long address, int ca * @param stack the stack from which to allocate */ public static XrSceneCaptureRequestInfoFB malloc(MemoryStack stack) { - return new XrSceneCaptureRequestInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSceneCaptureRequestInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -239,7 +230,7 @@ public static XrSceneCaptureRequestInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSceneCaptureRequestInfoFB calloc(MemoryStack stack) { - return new XrSceneCaptureRequestInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSceneCaptureRequestInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -249,7 +240,7 @@ public static XrSceneCaptureRequestInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneCaptureRequestInfoFB.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,30 +250,30 @@ public static XrSceneCaptureRequestInfoFB.Buffer malloc(int capacity, MemoryStac * @param capacity the buffer capacity */ public static XrSceneCaptureRequestInfoFB.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 + XrSceneCaptureRequestInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSceneCaptureRequestInfoFB.NEXT); } - /** Unsafe version of {@link #requestByteCount}. */ - public static int nrequestByteCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneCaptureRequestInfoFB.REQUESTBYTECOUNT); } - /** Unsafe version of {@link #request() request}. */ - @Nullable public static ByteBuffer nrequest(long struct) { return memByteBufferSafe(memGetAddress(struct + XrSceneCaptureRequestInfoFB.REQUEST), nrequestByteCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneCaptureRequestInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneCaptureRequestInfoFB.NEXT, value); } - /** Sets the specified value to the {@code requestByteCount} field of the specified {@code struct}. */ - public static void nrequestByteCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneCaptureRequestInfoFB.REQUESTBYTECOUNT, value); } - /** Unsafe version of {@link #request(ByteBuffer) request}. */ - public static void nrequest(long struct, @Nullable ByteBuffer value) { memPutAddress(struct + XrSceneCaptureRequestInfoFB.REQUEST, memAddressSafe(value)); if (value != null) { nrequestByteCount(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneCaptureRequestInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSceneCaptureRequestInfoFB.NEXT); } + /** Unsafe version of {@link #requestByteCount}. */ + public static int nrequestByteCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneCaptureRequestInfoFB.REQUESTBYTECOUNT); } + /** Unsafe version of {@link #request() request}. */ + @Nullable public static ByteBuffer nrequest(long struct) { return memByteBufferSafe(memGetAddress(struct + XrSceneCaptureRequestInfoFB.REQUEST), nrequestByteCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneCaptureRequestInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneCaptureRequestInfoFB.NEXT, value); } + /** Sets the specified value to the {@code requestByteCount} field of the specified {@code struct}. */ + public static void nrequestByteCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneCaptureRequestInfoFB.REQUESTBYTECOUNT, value); } + /** Unsafe version of {@link #request(ByteBuffer) request}. */ + public static void nrequest(long struct, @Nullable ByteBuffer value) { memPutAddress(struct + XrSceneCaptureRequestInfoFB.REQUEST, memAddressSafe(value)); if (value != null) { nrequestByteCount(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrSceneCaptureRequestInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -292,9 +283,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 XrSceneCaptureRequestInfoFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneCaptureRequestInfoFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -319,31 +310,31 @@ protected Buffer self() { protected XrSceneCaptureRequestInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneCaptureRequestInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneCaptureRequestInfoFB.ntype(address()); } - /** @return the value of the {@link XrSceneCaptureRequestInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSceneCaptureRequestInfoFB.nnext(address()); } - /** @return the value of the {@link XrSceneCaptureRequestInfoFB#requestByteCount} field. */ - @NativeType("uint32_t") - public int requestByteCount() { return XrSceneCaptureRequestInfoFB.nrequestByteCount(address()); } - /** @return a {@link ByteBuffer} view of the data pointed to by the {@link XrSceneCaptureRequestInfoFB#request} field. */ - @Nullable - @NativeType("char const *") - public ByteBuffer request() { return XrSceneCaptureRequestInfoFB.nrequest(address()); } - - /** Sets the specified value to the {@link XrSceneCaptureRequestInfoFB#type} field. */ - public XrSceneCaptureRequestInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSceneCaptureRequestInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSceneCapture#XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB TYPE_SCENE_CAPTURE_REQUEST_INFO_FB} value to the {@link XrSceneCaptureRequestInfoFB#type} field. */ - public XrSceneCaptureRequestInfoFB.Buffer type$Default() { return type(FBSceneCapture.XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB); } - /** Sets the specified value to the {@link XrSceneCaptureRequestInfoFB#next} field. */ - public XrSceneCaptureRequestInfoFB.Buffer next(@NativeType("void const *") long value) { XrSceneCaptureRequestInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneCaptureRequestInfoFB#requestByteCount} field. */ - public XrSceneCaptureRequestInfoFB.Buffer requestByteCount(@NativeType("uint32_t") int value) { XrSceneCaptureRequestInfoFB.nrequestByteCount(address(), value); return this; } - /** Sets the address of the specified {@link ByteBuffer} to the {@link XrSceneCaptureRequestInfoFB#request} field. */ - public XrSceneCaptureRequestInfoFB.Buffer request(@Nullable @NativeType("char const *") ByteBuffer value) { XrSceneCaptureRequestInfoFB.nrequest(address(), value); return this; } + + /** @return the value of the {@link XrSceneCaptureRequestInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneCaptureRequestInfoFB.ntype(address()); } + /** @return the value of the {@link XrSceneCaptureRequestInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSceneCaptureRequestInfoFB.nnext(address()); } + /** @return the value of the {@link XrSceneCaptureRequestInfoFB#requestByteCount} field. */ + @NativeType("uint32_t") + public int requestByteCount() { return XrSceneCaptureRequestInfoFB.nrequestByteCount(address()); } + /** @return a {@link ByteBuffer} view of the data pointed to by the {@link XrSceneCaptureRequestInfoFB#request} field. */ + @Nullable + @NativeType("char const *") + public ByteBuffer request() { return XrSceneCaptureRequestInfoFB.nrequest(address()); } + + /** Sets the specified value to the {@link XrSceneCaptureRequestInfoFB#type} field. */ + public XrSceneCaptureRequestInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSceneCaptureRequestInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSceneCapture#XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB TYPE_SCENE_CAPTURE_REQUEST_INFO_FB} value to the {@link XrSceneCaptureRequestInfoFB#type} field. */ + public XrSceneCaptureRequestInfoFB.Buffer type$Default() { return type(FBSceneCapture.XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB); } + /** Sets the specified value to the {@link XrSceneCaptureRequestInfoFB#next} field. */ + public XrSceneCaptureRequestInfoFB.Buffer next(@NativeType("void const *") long value) { XrSceneCaptureRequestInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneCaptureRequestInfoFB#requestByteCount} field. */ + public XrSceneCaptureRequestInfoFB.Buffer requestByteCount(@NativeType("uint32_t") int value) { XrSceneCaptureRequestInfoFB.nrequestByteCount(address(), value); return this; } + /** Sets the address of the specified {@link ByteBuffer} to the {@link XrSceneCaptureRequestInfoFB#request} field. */ + public XrSceneCaptureRequestInfoFB.Buffer request(@Nullable @NativeType("char const *") ByteBuffer value) { XrSceneCaptureRequestInfoFB.nrequest(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentLocationMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentLocationMSFT.java index fe591f8f10..ddb2bad313 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentLocationMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentLocationMSFT.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 of a scene component. * @@ -36,8 +36,8 @@ * XrSpaceLocationFlags {@link #flags}; * {@link XrPosef XrPosef} {@link #pose}; * } - */ -public class XrSceneComponentLocationMSFT extends Struct implements NativeResource { + */ +public class XrSceneComponentLocationMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -47,29 +47,20 @@ public class XrSceneComponentLocationMSFT extends Struct consumer) { consumer.accept(pose()); return this; } + + /** a bitfield, with bit masks defined in {@code XrSpaceLocationFlagBits}, to indicate which members contain valid data. */ + @NativeType("XrSpaceLocationFlags") + public long flags() { return nflags(address()); } + /** an {@link XrPosef} defining the position and orientation of the scene component within the reference frame of the corresponding {@link XrSceneComponentsLocateInfoMSFT}{@code ::baseSpace}. */ + public XrPosef pose() { return npose(address()); } + + /** Sets the specified value to the {@link #flags} field. */ + public XrSceneComponentLocationMSFT flags(@NativeType("XrSpaceLocationFlags") long value) { nflags(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrSceneComponentLocationMSFT pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneComponentLocationMSFT pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } /** Initializes this struct with the specified values. */ public XrSceneComponentLocationMSFT set( - long flags, + long flags, XrPosef pose - ) { - flags(flags); - pose(pose); + ) { + flags(flags); + pose(pose); return this; } @@ -125,29 +116,29 @@ public XrSceneComponentLocationMSFT set(XrSceneComponentLocationMSFT src) { /** Returns a new {@code XrSceneComponentLocationMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSceneComponentLocationMSFT malloc() { - return new XrSceneComponentLocationMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSceneComponentLocationMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSceneComponentLocationMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSceneComponentLocationMSFT calloc() { - return new XrSceneComponentLocationMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSceneComponentLocationMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSceneComponentLocationMSFT} instance allocated with {@link BufferUtils}. */ public static XrSceneComponentLocationMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSceneComponentLocationMSFT(memAddress(container), container); + return wrap(XrSceneComponentLocationMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSceneComponentLocationMSFT} instance for the specified memory address. */ public static XrSceneComponentLocationMSFT create(long address) { - return new XrSceneComponentLocationMSFT(address, null); + return wrap(XrSceneComponentLocationMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSceneComponentLocationMSFT createSafe(long address) { - return address == NULL ? null : new XrSceneComponentLocationMSFT(address, null); + return address == NULL ? null : wrap(XrSceneComponentLocationMSFT.class, address); } /** @@ -156,7 +147,7 @@ public static XrSceneComponentLocationMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSceneComponentLocationMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -165,7 +156,7 @@ public static XrSceneComponentLocationMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSceneComponentLocationMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -175,7 +166,7 @@ public static XrSceneComponentLocationMSFT.Buffer calloc(int capacity) { */ public static XrSceneComponentLocationMSFT.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); } /** @@ -185,13 +176,13 @@ public static XrSceneComponentLocationMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSceneComponentLocationMSFT.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 XrSceneComponentLocationMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -200,7 +191,7 @@ public static XrSceneComponentLocationMSFT.Buffer createSafe(long address, int c * @param stack the stack from which to allocate */ public static XrSceneComponentLocationMSFT malloc(MemoryStack stack) { - return new XrSceneComponentLocationMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSceneComponentLocationMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -209,7 +200,7 @@ public static XrSceneComponentLocationMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSceneComponentLocationMSFT calloc(MemoryStack stack) { - return new XrSceneComponentLocationMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSceneComponentLocationMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -219,7 +210,7 @@ public static XrSceneComponentLocationMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneComponentLocationMSFT.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); } /** @@ -229,22 +220,22 @@ public static XrSceneComponentLocationMSFT.Buffer malloc(int capacity, MemorySta * @param capacity the buffer capacity */ public static XrSceneComponentLocationMSFT.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 #flags}. */ - public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrSceneComponentLocationMSFT.FLAGS); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSceneComponentLocationMSFT.POSE); } - - /** Unsafe version of {@link #flags(long) flags}. */ - public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrSceneComponentLocationMSFT.FLAGS, value); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSceneComponentLocationMSFT.POSE, XrPosef.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #flags}. */ + public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrSceneComponentLocationMSFT.FLAGS); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSceneComponentLocationMSFT.POSE); } + + /** Unsafe version of {@link #flags(long) flags}. */ + public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrSceneComponentLocationMSFT.FLAGS, value); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSceneComponentLocationMSFT.POSE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSceneComponentLocationMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -254,9 +245,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 XrSceneComponentLocationMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneComponentLocationMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -281,19 +272,19 @@ protected Buffer self() { protected XrSceneComponentLocationMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneComponentLocationMSFT#flags} field. */ - @NativeType("XrSpaceLocationFlags") - public long flags() { return XrSceneComponentLocationMSFT.nflags(address()); } - /** @return a {@link XrPosef} view of the {@link XrSceneComponentLocationMSFT#pose} field. */ - public XrPosef pose() { return XrSceneComponentLocationMSFT.npose(address()); } - - /** Sets the specified value to the {@link XrSceneComponentLocationMSFT#flags} field. */ - public XrSceneComponentLocationMSFT.Buffer flags(@NativeType("XrSpaceLocationFlags") long value) { XrSceneComponentLocationMSFT.nflags(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrSceneComponentLocationMSFT#pose} field. */ - public XrSceneComponentLocationMSFT.Buffer pose(XrPosef value) { XrSceneComponentLocationMSFT.npose(address(), value); return this; } - /** Passes the {@link XrSceneComponentLocationMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneComponentLocationMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + + /** @return the value of the {@link XrSceneComponentLocationMSFT#flags} field. */ + @NativeType("XrSpaceLocationFlags") + public long flags() { return XrSceneComponentLocationMSFT.nflags(address()); } + /** @return a {@link XrPosef} view of the {@link XrSceneComponentLocationMSFT#pose} field. */ + public XrPosef pose() { return XrSceneComponentLocationMSFT.npose(address()); } + + /** Sets the specified value to the {@link XrSceneComponentLocationMSFT#flags} field. */ + public XrSceneComponentLocationMSFT.Buffer flags(@NativeType("XrSpaceLocationFlags") long value) { XrSceneComponentLocationMSFT.nflags(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrSceneComponentLocationMSFT#pose} field. */ + public XrSceneComponentLocationMSFT.Buffer pose(XrPosef value) { XrSceneComponentLocationMSFT.npose(address(), value); return this; } + /** Passes the {@link XrSceneComponentLocationMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneComponentLocationMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentLocationsMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentLocationsMSFT.java index f2a38bac85..713356f6f6 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentLocationsMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentLocationsMSFT.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.*; + /** * Returns the scene component locations. * @@ -40,8 +40,8 @@ * uint32_t {@link #locationCount}; * {@link XrSceneComponentLocationMSFT XrSceneComponentLocationMSFT} * {@link #locations}; * } - */ -public class XrSceneComponentLocationsMSFT extends Struct implements NativeResource { + */ +public class XrSceneComponentLocationsMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,35 +51,26 @@ public class XrSceneComponentLocationsMSFT extends Struct 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 XrSceneComponentLocationsMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneComponentLocationsMSFT#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 XrSceneComponentLocationsMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneComponentLocationsMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneComponentLocationsMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneComponentLocationsMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSceneComponentLocationsMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneComponentLocationsMSFT#locationCount} field. */ - @NativeType("uint32_t") - public int locationCount() { return XrSceneComponentLocationsMSFT.nlocationCount(address()); } - /** @return a {@link XrSceneComponentLocationMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneComponentLocationsMSFT#locations} field. */ - @Nullable - @NativeType("XrSceneComponentLocationMSFT *") - public XrSceneComponentLocationMSFT.Buffer locations() { return XrSceneComponentLocationsMSFT.nlocations(address()); } - - /** Sets the specified value to the {@link XrSceneComponentLocationsMSFT#type} field. */ - public XrSceneComponentLocationsMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentLocationsMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENT_LOCATIONS_MSFT TYPE_SCENE_COMPONENT_LOCATIONS_MSFT} value to the {@link XrSceneComponentLocationsMSFT#type} field. */ - public XrSceneComponentLocationsMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENT_LOCATIONS_MSFT); } - /** Sets the specified value to the {@link XrSceneComponentLocationsMSFT#next} field. */ - public XrSceneComponentLocationsMSFT.Buffer next(@NativeType("void *") long value) { XrSceneComponentLocationsMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneComponentLocationsMSFT#locationCount} field. */ - public XrSceneComponentLocationsMSFT.Buffer locationCount(@NativeType("uint32_t") int value) { XrSceneComponentLocationsMSFT.nlocationCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneComponentLocationMSFT.Buffer} to the {@link XrSceneComponentLocationsMSFT#locations} field. */ - public XrSceneComponentLocationsMSFT.Buffer locations(@Nullable @NativeType("XrSceneComponentLocationMSFT *") XrSceneComponentLocationMSFT.Buffer value) { XrSceneComponentLocationsMSFT.nlocations(address(), value); return this; } + + /** @return the value of the {@link XrSceneComponentLocationsMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneComponentLocationsMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneComponentLocationsMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSceneComponentLocationsMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneComponentLocationsMSFT#locationCount} field. */ + @NativeType("uint32_t") + public int locationCount() { return XrSceneComponentLocationsMSFT.nlocationCount(address()); } + /** @return a {@link XrSceneComponentLocationMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneComponentLocationsMSFT#locations} field. */ + @Nullable + @NativeType("XrSceneComponentLocationMSFT *") + public XrSceneComponentLocationMSFT.Buffer locations() { return XrSceneComponentLocationsMSFT.nlocations(address()); } + + /** Sets the specified value to the {@link XrSceneComponentLocationsMSFT#type} field. */ + public XrSceneComponentLocationsMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentLocationsMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENT_LOCATIONS_MSFT TYPE_SCENE_COMPONENT_LOCATIONS_MSFT} value to the {@link XrSceneComponentLocationsMSFT#type} field. */ + public XrSceneComponentLocationsMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENT_LOCATIONS_MSFT); } + /** Sets the specified value to the {@link XrSceneComponentLocationsMSFT#next} field. */ + public XrSceneComponentLocationsMSFT.Buffer next(@NativeType("void *") long value) { XrSceneComponentLocationsMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneComponentLocationsMSFT#locationCount} field. */ + public XrSceneComponentLocationsMSFT.Buffer locationCount(@NativeType("uint32_t") int value) { XrSceneComponentLocationsMSFT.nlocationCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneComponentLocationMSFT.Buffer} to the {@link XrSceneComponentLocationsMSFT#locations} field. */ + public XrSceneComponentLocationsMSFT.Buffer locations(@Nullable @NativeType("XrSceneComponentLocationMSFT *") XrSceneComponentLocationMSFT.Buffer value) { XrSceneComponentLocationsMSFT.nlocations(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentMSFT.java index 736570dbce..41fbfbf1bd 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentMSFT.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.*; + /** * Scene component. * @@ -47,8 +47,8 @@ * {@link XrUuidMSFT XrUuidMSFT} {@link #parentId}; * XrTime {@link #updateTime}; * } - */ -public class XrSceneComponentMSFT extends Struct implements NativeResource { + */ +public class XrSceneComponentMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -58,35 +58,26 @@ public class XrSceneComponentMSFT extends Struct implement /** The struct member offsets. */ public static final int - COMPONENTTYPE, - ID, - PARENTID, - UPDATETIME; + COMPONENTTYPE, + ID, + PARENTID, + UPDATETIME; static { - Layout layout = __struct( - __member(4), - __member(XrUuidMSFT.SIZEOF, XrUuidMSFT.ALIGNOF), - __member(XrUuidMSFT.SIZEOF, XrUuidMSFT.ALIGNOF), + Layout layout = __struct( + __member(4), + __member(XrUuidMSFT.SIZEOF, XrUuidMSFT.ALIGNOF), + __member(XrUuidMSFT.SIZEOF, XrUuidMSFT.ALIGNOF), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - COMPONENTTYPE = layout.offsetof(0); - ID = layout.offsetof(1); - PARENTID = layout.offsetof(2); - UPDATETIME = layout.offsetof(3); - } - - protected XrSceneComponentMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSceneComponentMSFT create(long address, @Nullable ByteBuffer container) { - return new XrSceneComponentMSFT(address, container); + COMPONENTTYPE = layout.offsetof(0); + ID = layout.offsetof(1); + PARENTID = layout.offsetof(2); + UPDATETIME = layout.offsetof(3); } /** @@ -101,42 +92,42 @@ public XrSceneComponentMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrSceneComponentTypeMSFT} of the scene component. */ - @NativeType("XrSceneComponentTypeMSFT") - public int componentType() { return ncomponentType(address()); } - /** the {@link XrUuidMSFT} of the scene component. */ - public XrUuidMSFT id() { return nid(address()); } - /** the {@link XrUuidMSFT} of the parent scene object. If the scene component does not have a parent, then {@code parentId} will be equal to zero. */ - public XrUuidMSFT parentId() { return nparentId(address()); } - /** the {@code XrTime} that this scene component was last updated. */ - @NativeType("XrTime") - public long updateTime() { return nupdateTime(address()); } - - /** Sets the specified value to the {@link #componentType} field. */ - public XrSceneComponentMSFT componentType(@NativeType("XrSceneComponentTypeMSFT") int value) { ncomponentType(address(), value); return this; } - /** Copies the specified {@link XrUuidMSFT} to the {@link #id} field. */ - public XrSceneComponentMSFT id(XrUuidMSFT value) { nid(address(), value); return this; } - /** Passes the {@link #id} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneComponentMSFT id(java.util.function.Consumer consumer) { consumer.accept(id()); return this; } - /** Copies the specified {@link XrUuidMSFT} to the {@link #parentId} field. */ - public XrSceneComponentMSFT parentId(XrUuidMSFT value) { nparentId(address(), value); return this; } - /** Passes the {@link #parentId} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneComponentMSFT parentId(java.util.function.Consumer consumer) { consumer.accept(parentId()); return this; } - /** Sets the specified value to the {@link #updateTime} field. */ - public XrSceneComponentMSFT updateTime(@NativeType("XrTime") long value) { nupdateTime(address(), value); return this; } + + /** the {@code XrSceneComponentTypeMSFT} of the scene component. */ + @NativeType("XrSceneComponentTypeMSFT") + public int componentType() { return ncomponentType(address()); } + /** the {@link XrUuidMSFT} of the scene component. */ + public XrUuidMSFT id() { return nid(address()); } + /** the {@link XrUuidMSFT} of the parent scene object. If the scene component does not have a parent, then {@code parentId} will be equal to zero. */ + public XrUuidMSFT parentId() { return nparentId(address()); } + /** the {@code XrTime} that this scene component was last updated. */ + @NativeType("XrTime") + public long updateTime() { return nupdateTime(address()); } + + /** Sets the specified value to the {@link #componentType} field. */ + public XrSceneComponentMSFT componentType(@NativeType("XrSceneComponentTypeMSFT") int value) { ncomponentType(address(), value); return this; } + /** Copies the specified {@link XrUuidMSFT} to the {@link #id} field. */ + public XrSceneComponentMSFT id(XrUuidMSFT value) { nid(address(), value); return this; } + /** Passes the {@link #id} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneComponentMSFT id(java.util.function.Consumer consumer) { consumer.accept(id()); return this; } + /** Copies the specified {@link XrUuidMSFT} to the {@link #parentId} field. */ + public XrSceneComponentMSFT parentId(XrUuidMSFT value) { nparentId(address(), value); return this; } + /** Passes the {@link #parentId} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneComponentMSFT parentId(java.util.function.Consumer consumer) { consumer.accept(parentId()); return this; } + /** Sets the specified value to the {@link #updateTime} field. */ + public XrSceneComponentMSFT updateTime(@NativeType("XrTime") long value) { nupdateTime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneComponentMSFT set( - int componentType, - XrUuidMSFT id, - XrUuidMSFT parentId, + int componentType, + XrUuidMSFT id, + XrUuidMSFT parentId, long updateTime - ) { - componentType(componentType); - id(id); - parentId(parentId); - updateTime(updateTime); + ) { + componentType(componentType); + id(id); + parentId(parentId); + updateTime(updateTime); return this; } @@ -157,29 +148,29 @@ public XrSceneComponentMSFT set(XrSceneComponentMSFT src) { /** Returns a new {@code XrSceneComponentMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSceneComponentMSFT malloc() { - return new XrSceneComponentMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSceneComponentMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSceneComponentMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSceneComponentMSFT calloc() { - return new XrSceneComponentMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSceneComponentMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSceneComponentMSFT} instance allocated with {@link BufferUtils}. */ public static XrSceneComponentMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSceneComponentMSFT(memAddress(container), container); + return wrap(XrSceneComponentMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSceneComponentMSFT} instance for the specified memory address. */ public static XrSceneComponentMSFT create(long address) { - return new XrSceneComponentMSFT(address, null); + return wrap(XrSceneComponentMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSceneComponentMSFT createSafe(long address) { - return address == NULL ? null : new XrSceneComponentMSFT(address, null); + return address == NULL ? null : wrap(XrSceneComponentMSFT.class, address); } /** @@ -188,7 +179,7 @@ public static XrSceneComponentMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSceneComponentMSFT.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 XrSceneComponentMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSceneComponentMSFT.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 XrSceneComponentMSFT.Buffer calloc(int capacity) { */ public static XrSceneComponentMSFT.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 XrSceneComponentMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSceneComponentMSFT.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 XrSceneComponentMSFT.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 XrSceneComponentMSFT.Buffer createSafe(long address, int capacity) * @param stack the stack from which to allocate */ public static XrSceneComponentMSFT malloc(MemoryStack stack) { - return new XrSceneComponentMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSceneComponentMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -241,7 +232,7 @@ public static XrSceneComponentMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSceneComponentMSFT calloc(MemoryStack stack) { - return new XrSceneComponentMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSceneComponentMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -251,7 +242,7 @@ public static XrSceneComponentMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneComponentMSFT.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 XrSceneComponentMSFT.Buffer malloc(int capacity, MemoryStack stack * @param capacity the buffer capacity */ public static XrSceneComponentMSFT.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 #componentType}. */ - public static int ncomponentType(long struct) { return UNSAFE.getInt(null, struct + XrSceneComponentMSFT.COMPONENTTYPE); } - /** Unsafe version of {@link #id}. */ - public static XrUuidMSFT nid(long struct) { return XrUuidMSFT.create(struct + XrSceneComponentMSFT.ID); } - /** Unsafe version of {@link #parentId}. */ - public static XrUuidMSFT nparentId(long struct) { return XrUuidMSFT.create(struct + XrSceneComponentMSFT.PARENTID); } - /** Unsafe version of {@link #updateTime}. */ - public static long nupdateTime(long struct) { return UNSAFE.getLong(null, struct + XrSceneComponentMSFT.UPDATETIME); } - - /** Unsafe version of {@link #componentType(int) componentType}. */ - public static void ncomponentType(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentMSFT.COMPONENTTYPE, value); } - /** Unsafe version of {@link #id(XrUuidMSFT) id}. */ - public static void nid(long struct, XrUuidMSFT value) { memCopy(value.address(), struct + XrSceneComponentMSFT.ID, XrUuidMSFT.SIZEOF); } - /** Unsafe version of {@link #parentId(XrUuidMSFT) parentId}. */ - public static void nparentId(long struct, XrUuidMSFT value) { memCopy(value.address(), struct + XrSceneComponentMSFT.PARENTID, XrUuidMSFT.SIZEOF); } - /** Unsafe version of {@link #updateTime(long) updateTime}. */ - public static void nupdateTime(long struct, long value) { UNSAFE.putLong(null, struct + XrSceneComponentMSFT.UPDATETIME, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #componentType}. */ + public static int ncomponentType(long struct) { return UNSAFE.getInt(null, struct + XrSceneComponentMSFT.COMPONENTTYPE); } + /** Unsafe version of {@link #id}. */ + public static XrUuidMSFT nid(long struct) { return XrUuidMSFT.create(struct + XrSceneComponentMSFT.ID); } + /** Unsafe version of {@link #parentId}. */ + public static XrUuidMSFT nparentId(long struct) { return XrUuidMSFT.create(struct + XrSceneComponentMSFT.PARENTID); } + /** Unsafe version of {@link #updateTime}. */ + public static long nupdateTime(long struct) { return UNSAFE.getLong(null, struct + XrSceneComponentMSFT.UPDATETIME); } + + /** Unsafe version of {@link #componentType(int) componentType}. */ + public static void ncomponentType(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentMSFT.COMPONENTTYPE, value); } + /** Unsafe version of {@link #id(XrUuidMSFT) id}. */ + public static void nid(long struct, XrUuidMSFT value) { memCopy(value.address(), struct + XrSceneComponentMSFT.ID, XrUuidMSFT.SIZEOF); } + /** Unsafe version of {@link #parentId(XrUuidMSFT) parentId}. */ + public static void nparentId(long struct, XrUuidMSFT value) { memCopy(value.address(), struct + XrSceneComponentMSFT.PARENTID, XrUuidMSFT.SIZEOF); } + /** Unsafe version of {@link #updateTime(long) updateTime}. */ + public static void nupdateTime(long struct, long value) { UNSAFE.putLong(null, struct + XrSceneComponentMSFT.UPDATETIME, value); } + + // ----------------------------------- /** An array of {@link XrSceneComponentMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -294,9 +285,9 @@ public static class Buffer extends StructBuffer im /** * Creates a new {@code XrSceneComponentMSFT.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 XrSceneComponentMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneComponentMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -321,30 +312,30 @@ protected Buffer self() { protected XrSceneComponentMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneComponentMSFT#componentType} field. */ - @NativeType("XrSceneComponentTypeMSFT") - public int componentType() { return XrSceneComponentMSFT.ncomponentType(address()); } - /** @return a {@link XrUuidMSFT} view of the {@link XrSceneComponentMSFT#id} field. */ - public XrUuidMSFT id() { return XrSceneComponentMSFT.nid(address()); } - /** @return a {@link XrUuidMSFT} view of the {@link XrSceneComponentMSFT#parentId} field. */ - public XrUuidMSFT parentId() { return XrSceneComponentMSFT.nparentId(address()); } - /** @return the value of the {@link XrSceneComponentMSFT#updateTime} field. */ - @NativeType("XrTime") - public long updateTime() { return XrSceneComponentMSFT.nupdateTime(address()); } - - /** Sets the specified value to the {@link XrSceneComponentMSFT#componentType} field. */ - public XrSceneComponentMSFT.Buffer componentType(@NativeType("XrSceneComponentTypeMSFT") int value) { XrSceneComponentMSFT.ncomponentType(address(), value); return this; } - /** Copies the specified {@link XrUuidMSFT} to the {@link XrSceneComponentMSFT#id} field. */ - public XrSceneComponentMSFT.Buffer id(XrUuidMSFT value) { XrSceneComponentMSFT.nid(address(), value); return this; } - /** Passes the {@link XrSceneComponentMSFT#id} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneComponentMSFT.Buffer id(java.util.function.Consumer consumer) { consumer.accept(id()); return this; } - /** Copies the specified {@link XrUuidMSFT} to the {@link XrSceneComponentMSFT#parentId} field. */ - public XrSceneComponentMSFT.Buffer parentId(XrUuidMSFT value) { XrSceneComponentMSFT.nparentId(address(), value); return this; } - /** Passes the {@link XrSceneComponentMSFT#parentId} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneComponentMSFT.Buffer parentId(java.util.function.Consumer consumer) { consumer.accept(parentId()); return this; } - /** Sets the specified value to the {@link XrSceneComponentMSFT#updateTime} field. */ - public XrSceneComponentMSFT.Buffer updateTime(@NativeType("XrTime") long value) { XrSceneComponentMSFT.nupdateTime(address(), value); return this; } + + /** @return the value of the {@link XrSceneComponentMSFT#componentType} field. */ + @NativeType("XrSceneComponentTypeMSFT") + public int componentType() { return XrSceneComponentMSFT.ncomponentType(address()); } + /** @return a {@link XrUuidMSFT} view of the {@link XrSceneComponentMSFT#id} field. */ + public XrUuidMSFT id() { return XrSceneComponentMSFT.nid(address()); } + /** @return a {@link XrUuidMSFT} view of the {@link XrSceneComponentMSFT#parentId} field. */ + public XrUuidMSFT parentId() { return XrSceneComponentMSFT.nparentId(address()); } + /** @return the value of the {@link XrSceneComponentMSFT#updateTime} field. */ + @NativeType("XrTime") + public long updateTime() { return XrSceneComponentMSFT.nupdateTime(address()); } + + /** Sets the specified value to the {@link XrSceneComponentMSFT#componentType} field. */ + public XrSceneComponentMSFT.Buffer componentType(@NativeType("XrSceneComponentTypeMSFT") int value) { XrSceneComponentMSFT.ncomponentType(address(), value); return this; } + /** Copies the specified {@link XrUuidMSFT} to the {@link XrSceneComponentMSFT#id} field. */ + public XrSceneComponentMSFT.Buffer id(XrUuidMSFT value) { XrSceneComponentMSFT.nid(address(), value); return this; } + /** Passes the {@link XrSceneComponentMSFT#id} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneComponentMSFT.Buffer id(java.util.function.Consumer consumer) { consumer.accept(id()); return this; } + /** Copies the specified {@link XrUuidMSFT} to the {@link XrSceneComponentMSFT#parentId} field. */ + public XrSceneComponentMSFT.Buffer parentId(XrUuidMSFT value) { XrSceneComponentMSFT.nparentId(address(), value); return this; } + /** Passes the {@link XrSceneComponentMSFT#parentId} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneComponentMSFT.Buffer parentId(java.util.function.Consumer consumer) { consumer.accept(parentId()); return this; } + /** Sets the specified value to the {@link XrSceneComponentMSFT#updateTime} field. */ + public XrSceneComponentMSFT.Buffer updateTime(@NativeType("XrTime") long value) { XrSceneComponentMSFT.nupdateTime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentParentFilterInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentParentFilterInfoMSFT.java index 9f5467da3d..bc7b6d134c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentParentFilterInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentParentFilterInfoMSFT.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.*; + /** * Scene component parent filter. * @@ -42,8 +42,8 @@ * void const * {@link #next}; * {@link XrUuidMSFT XrUuidMSFT} {@link #parentId}; * } - */ -public class XrSceneComponentParentFilterInfoMSFT extends Struct implements NativeResource { + */ +public class XrSceneComponentParentFilterInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,32 +53,23 @@ public class XrSceneComponentParentFilterInfoMSFT extends Struct consumer) { consumer.accept(parentId()); 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 {@link XrUuidMSFT} of the parent scene component to filter by. */ + public XrUuidMSFT parentId() { return nparentId(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSceneComponentParentFilterInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT} value to the {@link #type} field. */ + public XrSceneComponentParentFilterInfoMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSceneComponentParentFilterInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrUuidMSFT} to the {@link #parentId} field. */ + public XrSceneComponentParentFilterInfoMSFT parentId(XrUuidMSFT value) { nparentId(address(), value); return this; } + /** Passes the {@link #parentId} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneComponentParentFilterInfoMSFT parentId(java.util.function.Consumer consumer) { consumer.accept(parentId()); return this; } /** Initializes this struct with the specified values. */ public XrSceneComponentParentFilterInfoMSFT set( - int type, - long next, + int type, + long next, XrUuidMSFT parentId - ) { - type(type); - next(next); - parentId(parentId); + ) { + type(type); + next(next); + parentId(parentId); return this; } @@ -143,29 +134,29 @@ public XrSceneComponentParentFilterInfoMSFT set(XrSceneComponentParentFilterInfo /** Returns a new {@code XrSceneComponentParentFilterInfoMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSceneComponentParentFilterInfoMSFT malloc() { - return new XrSceneComponentParentFilterInfoMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSceneComponentParentFilterInfoMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSceneComponentParentFilterInfoMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSceneComponentParentFilterInfoMSFT calloc() { - return new XrSceneComponentParentFilterInfoMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSceneComponentParentFilterInfoMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSceneComponentParentFilterInfoMSFT} instance allocated with {@link BufferUtils}. */ public static XrSceneComponentParentFilterInfoMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSceneComponentParentFilterInfoMSFT(memAddress(container), container); + return wrap(XrSceneComponentParentFilterInfoMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSceneComponentParentFilterInfoMSFT} instance for the specified memory address. */ public static XrSceneComponentParentFilterInfoMSFT create(long address) { - return new XrSceneComponentParentFilterInfoMSFT(address, null); + return wrap(XrSceneComponentParentFilterInfoMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSceneComponentParentFilterInfoMSFT createSafe(long address) { - return address == NULL ? null : new XrSceneComponentParentFilterInfoMSFT(address, null); + return address == NULL ? null : wrap(XrSceneComponentParentFilterInfoMSFT.class, address); } /** @@ -174,7 +165,7 @@ public static XrSceneComponentParentFilterInfoMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSceneComponentParentFilterInfoMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -183,7 +174,7 @@ public static XrSceneComponentParentFilterInfoMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSceneComponentParentFilterInfoMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -193,7 +184,7 @@ public static XrSceneComponentParentFilterInfoMSFT.Buffer calloc(int capacity) { */ public static XrSceneComponentParentFilterInfoMSFT.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); } /** @@ -203,13 +194,13 @@ public static XrSceneComponentParentFilterInfoMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSceneComponentParentFilterInfoMSFT.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 XrSceneComponentParentFilterInfoMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -218,7 +209,7 @@ public static XrSceneComponentParentFilterInfoMSFT.Buffer createSafe(long addres * @param stack the stack from which to allocate */ public static XrSceneComponentParentFilterInfoMSFT malloc(MemoryStack stack) { - return new XrSceneComponentParentFilterInfoMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSceneComponentParentFilterInfoMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -227,7 +218,7 @@ public static XrSceneComponentParentFilterInfoMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSceneComponentParentFilterInfoMSFT calloc(MemoryStack stack) { - return new XrSceneComponentParentFilterInfoMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSceneComponentParentFilterInfoMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -237,7 +228,7 @@ public static XrSceneComponentParentFilterInfoMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneComponentParentFilterInfoMSFT.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); } /** @@ -247,26 +238,26 @@ public static XrSceneComponentParentFilterInfoMSFT.Buffer malloc(int capacity, M * @param capacity the buffer capacity */ public static XrSceneComponentParentFilterInfoMSFT.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 + XrSceneComponentParentFilterInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSceneComponentParentFilterInfoMSFT.NEXT); } - /** Unsafe version of {@link #parentId}. */ - public static XrUuidMSFT nparentId(long struct) { return XrUuidMSFT.create(struct + XrSceneComponentParentFilterInfoMSFT.PARENTID); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentParentFilterInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneComponentParentFilterInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #parentId(XrUuidMSFT) parentId}. */ - public static void nparentId(long struct, XrUuidMSFT value) { memCopy(value.address(), struct + XrSceneComponentParentFilterInfoMSFT.PARENTID, XrUuidMSFT.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneComponentParentFilterInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSceneComponentParentFilterInfoMSFT.NEXT); } + /** Unsafe version of {@link #parentId}. */ + public static XrUuidMSFT nparentId(long struct) { return XrUuidMSFT.create(struct + XrSceneComponentParentFilterInfoMSFT.PARENTID); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentParentFilterInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneComponentParentFilterInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #parentId(XrUuidMSFT) parentId}. */ + public static void nparentId(long struct, XrUuidMSFT value) { memCopy(value.address(), struct + XrSceneComponentParentFilterInfoMSFT.PARENTID, XrUuidMSFT.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSceneComponentParentFilterInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -276,9 +267,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 XrSceneComponentParentFilterInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneComponentParentFilterInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -303,26 +294,26 @@ protected Buffer self() { protected XrSceneComponentParentFilterInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneComponentParentFilterInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneComponentParentFilterInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneComponentParentFilterInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSceneComponentParentFilterInfoMSFT.nnext(address()); } - /** @return a {@link XrUuidMSFT} view of the {@link XrSceneComponentParentFilterInfoMSFT#parentId} field. */ - public XrUuidMSFT parentId() { return XrSceneComponentParentFilterInfoMSFT.nparentId(address()); } - - /** Sets the specified value to the {@link XrSceneComponentParentFilterInfoMSFT#type} field. */ - public XrSceneComponentParentFilterInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentParentFilterInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT} value to the {@link XrSceneComponentParentFilterInfoMSFT#type} field. */ - public XrSceneComponentParentFilterInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT); } - /** Sets the specified value to the {@link XrSceneComponentParentFilterInfoMSFT#next} field. */ - public XrSceneComponentParentFilterInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneComponentParentFilterInfoMSFT.nnext(address(), value); return this; } - /** Copies the specified {@link XrUuidMSFT} to the {@link XrSceneComponentParentFilterInfoMSFT#parentId} field. */ - public XrSceneComponentParentFilterInfoMSFT.Buffer parentId(XrUuidMSFT value) { XrSceneComponentParentFilterInfoMSFT.nparentId(address(), value); return this; } - /** Passes the {@link XrSceneComponentParentFilterInfoMSFT#parentId} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneComponentParentFilterInfoMSFT.Buffer parentId(java.util.function.Consumer consumer) { consumer.accept(parentId()); return this; } + + /** @return the value of the {@link XrSceneComponentParentFilterInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneComponentParentFilterInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneComponentParentFilterInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSceneComponentParentFilterInfoMSFT.nnext(address()); } + /** @return a {@link XrUuidMSFT} view of the {@link XrSceneComponentParentFilterInfoMSFT#parentId} field. */ + public XrUuidMSFT parentId() { return XrSceneComponentParentFilterInfoMSFT.nparentId(address()); } + + /** Sets the specified value to the {@link XrSceneComponentParentFilterInfoMSFT#type} field. */ + public XrSceneComponentParentFilterInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentParentFilterInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT} value to the {@link XrSceneComponentParentFilterInfoMSFT#type} field. */ + public XrSceneComponentParentFilterInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT); } + /** Sets the specified value to the {@link XrSceneComponentParentFilterInfoMSFT#next} field. */ + public XrSceneComponentParentFilterInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneComponentParentFilterInfoMSFT.nnext(address(), value); return this; } + /** Copies the specified {@link XrUuidMSFT} to the {@link XrSceneComponentParentFilterInfoMSFT#parentId} field. */ + public XrSceneComponentParentFilterInfoMSFT.Buffer parentId(XrUuidMSFT value) { XrSceneComponentParentFilterInfoMSFT.nparentId(address(), value); return this; } + /** Passes the {@link XrSceneComponentParentFilterInfoMSFT#parentId} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneComponentParentFilterInfoMSFT.Buffer parentId(java.util.function.Consumer consumer) { consumer.accept(parentId()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsGetInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsGetInfoMSFT.java index d38c2e4215..20c5937afa 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsGetInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsGetInfoMSFT.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 information to get the scene components. * @@ -39,8 +39,8 @@ * void const * {@link #next}; * XrSceneComponentTypeMSFT {@link #componentType}; * } - */ -public class XrSceneComponentsGetInfoMSFT extends Struct implements NativeResource { + */ +public class XrSceneComponentsGetInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,32 +50,23 @@ public class XrSceneComponentsGetInfoMSFT extends Struct implements NativeResource { @@ -278,9 +269,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 XrSceneComponentsGetInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneComponentsGetInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -305,31 +296,31 @@ protected Buffer self() { protected XrSceneComponentsGetInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneComponentsGetInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneComponentsGetInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneComponentsGetInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSceneComponentsGetInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneComponentsGetInfoMSFT#componentType} field. */ - @NativeType("XrSceneComponentTypeMSFT") - public int componentType() { return XrSceneComponentsGetInfoMSFT.ncomponentType(address()); } - - /** Sets the specified value to the {@link XrSceneComponentsGetInfoMSFT#type} field. */ - public XrSceneComponentsGetInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentsGetInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENTS_GET_INFO_MSFT TYPE_SCENE_COMPONENTS_GET_INFO_MSFT} value to the {@link XrSceneComponentsGetInfoMSFT#type} field. */ - public XrSceneComponentsGetInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENTS_GET_INFO_MSFT); } - /** Sets the specified value to the {@link XrSceneComponentsGetInfoMSFT#next} field. */ - public XrSceneComponentsGetInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneComponentsGetInfoMSFT.nnext(address(), value); return this; } - /** Prepends the specified {@link XrSceneComponentParentFilterInfoMSFT} value to the {@code next} chain. */ - public XrSceneComponentsGetInfoMSFT.Buffer next(XrSceneComponentParentFilterInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSceneObjectTypesFilterInfoMSFT} value to the {@code next} chain. */ - public XrSceneComponentsGetInfoMSFT.Buffer next(XrSceneObjectTypesFilterInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrScenePlaneAlignmentFilterInfoMSFT} value to the {@code next} chain. */ - public XrSceneComponentsGetInfoMSFT.Buffer next(XrScenePlaneAlignmentFilterInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrSceneComponentsGetInfoMSFT#componentType} field. */ - public XrSceneComponentsGetInfoMSFT.Buffer componentType(@NativeType("XrSceneComponentTypeMSFT") int value) { XrSceneComponentsGetInfoMSFT.ncomponentType(address(), value); return this; } + + /** @return the value of the {@link XrSceneComponentsGetInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneComponentsGetInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneComponentsGetInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSceneComponentsGetInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneComponentsGetInfoMSFT#componentType} field. */ + @NativeType("XrSceneComponentTypeMSFT") + public int componentType() { return XrSceneComponentsGetInfoMSFT.ncomponentType(address()); } + + /** Sets the specified value to the {@link XrSceneComponentsGetInfoMSFT#type} field. */ + public XrSceneComponentsGetInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentsGetInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENTS_GET_INFO_MSFT TYPE_SCENE_COMPONENTS_GET_INFO_MSFT} value to the {@link XrSceneComponentsGetInfoMSFT#type} field. */ + public XrSceneComponentsGetInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENTS_GET_INFO_MSFT); } + /** Sets the specified value to the {@link XrSceneComponentsGetInfoMSFT#next} field. */ + public XrSceneComponentsGetInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneComponentsGetInfoMSFT.nnext(address(), value); return this; } + /** Prepends the specified {@link XrSceneComponentParentFilterInfoMSFT} value to the {@code next} chain. */ + public XrSceneComponentsGetInfoMSFT.Buffer next(XrSceneComponentParentFilterInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSceneObjectTypesFilterInfoMSFT} value to the {@code next} chain. */ + public XrSceneComponentsGetInfoMSFT.Buffer next(XrSceneObjectTypesFilterInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrScenePlaneAlignmentFilterInfoMSFT} value to the {@code next} chain. */ + public XrSceneComponentsGetInfoMSFT.Buffer next(XrScenePlaneAlignmentFilterInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrSceneComponentsGetInfoMSFT#componentType} field. */ + public XrSceneComponentsGetInfoMSFT.Buffer componentType(@NativeType("XrSceneComponentTypeMSFT") int value) { XrSceneComponentsGetInfoMSFT.ncomponentType(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsLocateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsLocateInfoMSFT.java index 0da0214345..eb7f748182 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsLocateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsLocateInfoMSFT.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 scene components. * @@ -44,8 +44,8 @@ * uint32_t {@link #componentIdCount}; * {@link XrUuidMSFT XrUuidMSFT} const * {@link #componentIds}; * } - */ -public class XrSceneComponentsLocateInfoMSFT extends Struct implements NativeResource { + */ +public class XrSceneComponentsLocateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,41 +55,32 @@ public class XrSceneComponentsLocateInfoMSFT extends Struct implements NativeResource { @@ -329,9 +320,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 XrSceneComponentsLocateInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneComponentsLocateInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -356,41 +347,41 @@ protected Buffer self() { protected XrSceneComponentsLocateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneComponentsLocateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSceneComponentsLocateInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#baseSpace} field. */ - @NativeType("XrSpace") - public long baseSpace() { return XrSceneComponentsLocateInfoMSFT.nbaseSpace(address()); } - /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#time} field. */ - @NativeType("XrTime") - public long time() { return XrSceneComponentsLocateInfoMSFT.ntime(address()); } - /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#componentIdCount} field. */ - @NativeType("uint32_t") - public int componentIdCount() { return XrSceneComponentsLocateInfoMSFT.ncomponentIdCount(address()); } - /** @return a {@link XrUuidMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneComponentsLocateInfoMSFT#componentIds} field. */ - @Nullable - @NativeType("XrUuidMSFT const *") - public XrUuidMSFT.Buffer componentIds() { return XrSceneComponentsLocateInfoMSFT.ncomponentIds(address()); } - - /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#type} field. */ - public XrSceneComponentsLocateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentsLocateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFT TYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFT} value to the {@link XrSceneComponentsLocateInfoMSFT#type} field. */ - public XrSceneComponentsLocateInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#next} field. */ - public XrSceneComponentsLocateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneComponentsLocateInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#baseSpace} field. */ - public XrSceneComponentsLocateInfoMSFT.Buffer baseSpace(XrSpace value) { XrSceneComponentsLocateInfoMSFT.nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#time} field. */ - public XrSceneComponentsLocateInfoMSFT.Buffer time(@NativeType("XrTime") long value) { XrSceneComponentsLocateInfoMSFT.ntime(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#componentIdCount} field. */ - public XrSceneComponentsLocateInfoMSFT.Buffer componentIdCount(@NativeType("uint32_t") int value) { XrSceneComponentsLocateInfoMSFT.ncomponentIdCount(address(), value); return this; } - /** Sets the address of the specified {@link XrUuidMSFT.Buffer} to the {@link XrSceneComponentsLocateInfoMSFT#componentIds} field. */ - public XrSceneComponentsLocateInfoMSFT.Buffer componentIds(@Nullable @NativeType("XrUuidMSFT const *") XrUuidMSFT.Buffer value) { XrSceneComponentsLocateInfoMSFT.ncomponentIds(address(), value); return this; } + + /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneComponentsLocateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSceneComponentsLocateInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#baseSpace} field. */ + @NativeType("XrSpace") + public long baseSpace() { return XrSceneComponentsLocateInfoMSFT.nbaseSpace(address()); } + /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#time} field. */ + @NativeType("XrTime") + public long time() { return XrSceneComponentsLocateInfoMSFT.ntime(address()); } + /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#componentIdCount} field. */ + @NativeType("uint32_t") + public int componentIdCount() { return XrSceneComponentsLocateInfoMSFT.ncomponentIdCount(address()); } + /** @return a {@link XrUuidMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneComponentsLocateInfoMSFT#componentIds} field. */ + @Nullable + @NativeType("XrUuidMSFT const *") + public XrUuidMSFT.Buffer componentIds() { return XrSceneComponentsLocateInfoMSFT.ncomponentIds(address()); } + + /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#type} field. */ + public XrSceneComponentsLocateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentsLocateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFT TYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFT} value to the {@link XrSceneComponentsLocateInfoMSFT#type} field. */ + public XrSceneComponentsLocateInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#next} field. */ + public XrSceneComponentsLocateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneComponentsLocateInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#baseSpace} field. */ + public XrSceneComponentsLocateInfoMSFT.Buffer baseSpace(XrSpace value) { XrSceneComponentsLocateInfoMSFT.nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#time} field. */ + public XrSceneComponentsLocateInfoMSFT.Buffer time(@NativeType("XrTime") long value) { XrSceneComponentsLocateInfoMSFT.ntime(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#componentIdCount} field. */ + public XrSceneComponentsLocateInfoMSFT.Buffer componentIdCount(@NativeType("uint32_t") int value) { XrSceneComponentsLocateInfoMSFT.ncomponentIdCount(address(), value); return this; } + /** Sets the address of the specified {@link XrUuidMSFT.Buffer} to the {@link XrSceneComponentsLocateInfoMSFT#componentIds} field. */ + public XrSceneComponentsLocateInfoMSFT.Buffer componentIds(@Nullable @NativeType("XrUuidMSFT const *") XrUuidMSFT.Buffer value) { XrSceneComponentsLocateInfoMSFT.ncomponentIds(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsMSFT.java index 24bb455227..d4a7f989f0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsMSFT.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.*; + /** * Scene components. * @@ -41,8 +41,8 @@ * uint32_t {@link #componentCountOutput}; * {@link XrSceneComponentMSFT XrSceneComponentMSFT} * {@link #components}; * } - */ -public class XrSceneComponentsMSFT extends Struct implements NativeResource { + */ +public class XrSceneComponentsMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,38 +52,29 @@ public class XrSceneComponentsMSFT extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - COMPONENTCAPACITYINPUT, - COMPONENTCOUNTOUTPUT, - COMPONENTS; + TYPE, + NEXT, + COMPONENTCAPACITYINPUT, + COMPONENTCOUNTOUTPUT, + COMPONENTS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - COMPONENTCAPACITYINPUT = layout.offsetof(2); - COMPONENTCOUNTOUTPUT = layout.offsetof(3); - COMPONENTS = layout.offsetof(4); - } - - protected XrSceneComponentsMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSceneComponentsMSFT create(long address, @Nullable ByteBuffer container) { - return new XrSceneComponentsMSFT(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + COMPONENTCAPACITYINPUT = layout.offsetof(2); + COMPONENTCOUNTOUTPUT = layout.offsetof(3); + COMPONENTS = layout.offsetof(4); } /** @@ -98,56 +89,56 @@ public XrSceneComponentsMSFT(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 *") - public long next() { return nnext(address()); } - /** the capacity of the array, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int componentCapacityInput() { return ncomponentCapacityInput(address()); } - /** a pointer to the count of components, or a pointer to the required capacity in the case that {@code componentCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int componentCountOutput() { return ncomponentCountOutput(address()); } - /** an array of {@link XrSceneComponentMSFT}. */ - @Nullable - @NativeType("XrSceneComponentMSFT *") - public XrSceneComponentMSFT.Buffer components() { return ncomponents(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSceneComponentsMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENTS_MSFT TYPE_SCENE_COMPONENTS_MSFT} value to the {@link #type} field. */ - public XrSceneComponentsMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENTS_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSceneComponentsMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrSceneMeshesMSFT} value to the {@code next} chain. */ - public XrSceneComponentsMSFT next(XrSceneMeshesMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSceneObjectsMSFT} value to the {@code next} chain. */ - public XrSceneComponentsMSFT next(XrSceneObjectsMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrScenePlanesMSFT} value to the {@code next} chain. */ - public XrSceneComponentsMSFT next(XrScenePlanesMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #componentCapacityInput} field. */ - public XrSceneComponentsMSFT componentCapacityInput(@NativeType("uint32_t") int value) { ncomponentCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #componentCountOutput} field. */ - public XrSceneComponentsMSFT componentCountOutput(@NativeType("uint32_t") int value) { ncomponentCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneComponentMSFT.Buffer} to the {@link #components} field. */ - public XrSceneComponentsMSFT components(@Nullable @NativeType("XrSceneComponentMSFT *") XrSceneComponentMSFT.Buffer value) { ncomponents(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 *") + public long next() { return nnext(address()); } + /** the capacity of the array, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int componentCapacityInput() { return ncomponentCapacityInput(address()); } + /** a pointer to the count of components, or a pointer to the required capacity in the case that {@code componentCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int componentCountOutput() { return ncomponentCountOutput(address()); } + /** an array of {@link XrSceneComponentMSFT}. */ + @Nullable + @NativeType("XrSceneComponentMSFT *") + public XrSceneComponentMSFT.Buffer components() { return ncomponents(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSceneComponentsMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENTS_MSFT TYPE_SCENE_COMPONENTS_MSFT} value to the {@link #type} field. */ + public XrSceneComponentsMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENTS_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSceneComponentsMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrSceneMeshesMSFT} value to the {@code next} chain. */ + public XrSceneComponentsMSFT next(XrSceneMeshesMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSceneObjectsMSFT} value to the {@code next} chain. */ + public XrSceneComponentsMSFT next(XrSceneObjectsMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrScenePlanesMSFT} value to the {@code next} chain. */ + public XrSceneComponentsMSFT next(XrScenePlanesMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #componentCapacityInput} field. */ + public XrSceneComponentsMSFT componentCapacityInput(@NativeType("uint32_t") int value) { ncomponentCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #componentCountOutput} field. */ + public XrSceneComponentsMSFT componentCountOutput(@NativeType("uint32_t") int value) { ncomponentCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneComponentMSFT.Buffer} to the {@link #components} field. */ + public XrSceneComponentsMSFT components(@Nullable @NativeType("XrSceneComponentMSFT *") XrSceneComponentMSFT.Buffer value) { ncomponents(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneComponentsMSFT set( - int type, - long next, - int componentCapacityInput, - int componentCountOutput, + int type, + long next, + int componentCapacityInput, + int componentCountOutput, @Nullable XrSceneComponentMSFT.Buffer components - ) { - type(type); - next(next); - componentCapacityInput(componentCapacityInput); - componentCountOutput(componentCountOutput); - components(components); + ) { + type(type); + next(next); + componentCapacityInput(componentCapacityInput); + componentCountOutput(componentCountOutput); + components(components); return this; } @@ -168,29 +159,29 @@ public XrSceneComponentsMSFT set(XrSceneComponentsMSFT src) { /** Returns a new {@code XrSceneComponentsMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSceneComponentsMSFT malloc() { - return new XrSceneComponentsMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSceneComponentsMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSceneComponentsMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSceneComponentsMSFT calloc() { - return new XrSceneComponentsMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSceneComponentsMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSceneComponentsMSFT} instance allocated with {@link BufferUtils}. */ public static XrSceneComponentsMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSceneComponentsMSFT(memAddress(container), container); + return wrap(XrSceneComponentsMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSceneComponentsMSFT} instance for the specified memory address. */ public static XrSceneComponentsMSFT create(long address) { - return new XrSceneComponentsMSFT(address, null); + return wrap(XrSceneComponentsMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSceneComponentsMSFT createSafe(long address) { - return address == NULL ? null : new XrSceneComponentsMSFT(address, null); + return address == NULL ? null : wrap(XrSceneComponentsMSFT.class, address); } /** @@ -199,7 +190,7 @@ public static XrSceneComponentsMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSceneComponentsMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -208,7 +199,7 @@ public static XrSceneComponentsMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSceneComponentsMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -218,7 +209,7 @@ public static XrSceneComponentsMSFT.Buffer calloc(int capacity) { */ public static XrSceneComponentsMSFT.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); } /** @@ -228,13 +219,13 @@ public static XrSceneComponentsMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSceneComponentsMSFT.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 XrSceneComponentsMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -243,7 +234,7 @@ public static XrSceneComponentsMSFT.Buffer createSafe(long address, int capacity * @param stack the stack from which to allocate */ public static XrSceneComponentsMSFT malloc(MemoryStack stack) { - return new XrSceneComponentsMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSceneComponentsMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -252,7 +243,7 @@ public static XrSceneComponentsMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSceneComponentsMSFT calloc(MemoryStack stack) { - return new XrSceneComponentsMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSceneComponentsMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -262,7 +253,7 @@ public static XrSceneComponentsMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneComponentsMSFT.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); } /** @@ -272,34 +263,34 @@ public static XrSceneComponentsMSFT.Buffer malloc(int capacity, MemoryStack stac * @param capacity the buffer capacity */ public static XrSceneComponentsMSFT.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 + XrSceneComponentsMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSceneComponentsMSFT.NEXT); } - /** Unsafe version of {@link #componentCapacityInput}. */ - public static int ncomponentCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSceneComponentsMSFT.COMPONENTCAPACITYINPUT); } - /** Unsafe version of {@link #componentCountOutput}. */ - public static int ncomponentCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSceneComponentsMSFT.COMPONENTCOUNTOUTPUT); } - /** Unsafe version of {@link #components}. */ - @Nullable public static XrSceneComponentMSFT.Buffer ncomponents(long struct) { return XrSceneComponentMSFT.createSafe(memGetAddress(struct + XrSceneComponentsMSFT.COMPONENTS), ncomponentCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentsMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneComponentsMSFT.NEXT, value); } - /** Sets the specified value to the {@code componentCapacityInput} field of the specified {@code struct}. */ - public static void ncomponentCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentsMSFT.COMPONENTCAPACITYINPUT, value); } - /** Unsafe version of {@link #componentCountOutput(int) componentCountOutput}. */ - public static void ncomponentCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentsMSFT.COMPONENTCOUNTOUTPUT, value); } - /** Unsafe version of {@link #components(XrSceneComponentMSFT.Buffer) components}. */ - public static void ncomponents(long struct, @Nullable XrSceneComponentMSFT.Buffer value) { memPutAddress(struct + XrSceneComponentsMSFT.COMPONENTS, memAddressSafe(value)); if (value != null) { ncomponentCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneComponentsMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSceneComponentsMSFT.NEXT); } + /** Unsafe version of {@link #componentCapacityInput}. */ + public static int ncomponentCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSceneComponentsMSFT.COMPONENTCAPACITYINPUT); } + /** Unsafe version of {@link #componentCountOutput}. */ + public static int ncomponentCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSceneComponentsMSFT.COMPONENTCOUNTOUTPUT); } + /** Unsafe version of {@link #components}. */ + @Nullable public static XrSceneComponentMSFT.Buffer ncomponents(long struct) { return XrSceneComponentMSFT.createSafe(memGetAddress(struct + XrSceneComponentsMSFT.COMPONENTS), ncomponentCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentsMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneComponentsMSFT.NEXT, value); } + /** Sets the specified value to the {@code componentCapacityInput} field of the specified {@code struct}. */ + public static void ncomponentCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentsMSFT.COMPONENTCAPACITYINPUT, value); } + /** Unsafe version of {@link #componentCountOutput(int) componentCountOutput}. */ + public static void ncomponentCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentsMSFT.COMPONENTCOUNTOUTPUT, value); } + /** Unsafe version of {@link #components(XrSceneComponentMSFT.Buffer) components}. */ + public static void ncomponents(long struct, @Nullable XrSceneComponentMSFT.Buffer value) { memPutAddress(struct + XrSceneComponentsMSFT.COMPONENTS, memAddressSafe(value)); if (value != null) { ncomponentCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrSceneComponentsMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -309,9 +300,9 @@ public static class Buffer extends StructBuffer i /** * Creates a new {@code XrSceneComponentsMSFT.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 XrSceneComponentsMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneComponentsMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -336,42 +327,42 @@ protected Buffer self() { protected XrSceneComponentsMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneComponentsMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneComponentsMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneComponentsMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSceneComponentsMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneComponentsMSFT#componentCapacityInput} field. */ - @NativeType("uint32_t") - public int componentCapacityInput() { return XrSceneComponentsMSFT.ncomponentCapacityInput(address()); } - /** @return the value of the {@link XrSceneComponentsMSFT#componentCountOutput} field. */ - @NativeType("uint32_t") - public int componentCountOutput() { return XrSceneComponentsMSFT.ncomponentCountOutput(address()); } - /** @return a {@link XrSceneComponentMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneComponentsMSFT#components} field. */ - @Nullable - @NativeType("XrSceneComponentMSFT *") - public XrSceneComponentMSFT.Buffer components() { return XrSceneComponentsMSFT.ncomponents(address()); } - - /** Sets the specified value to the {@link XrSceneComponentsMSFT#type} field. */ - public XrSceneComponentsMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentsMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENTS_MSFT TYPE_SCENE_COMPONENTS_MSFT} value to the {@link XrSceneComponentsMSFT#type} field. */ - public XrSceneComponentsMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENTS_MSFT); } - /** Sets the specified value to the {@link XrSceneComponentsMSFT#next} field. */ - public XrSceneComponentsMSFT.Buffer next(@NativeType("void *") long value) { XrSceneComponentsMSFT.nnext(address(), value); return this; } - /** Prepends the specified {@link XrSceneMeshesMSFT} value to the {@code next} chain. */ - public XrSceneComponentsMSFT.Buffer next(XrSceneMeshesMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSceneObjectsMSFT} value to the {@code next} chain. */ - public XrSceneComponentsMSFT.Buffer next(XrSceneObjectsMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrScenePlanesMSFT} value to the {@code next} chain. */ - public XrSceneComponentsMSFT.Buffer next(XrScenePlanesMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrSceneComponentsMSFT#componentCapacityInput} field. */ - public XrSceneComponentsMSFT.Buffer componentCapacityInput(@NativeType("uint32_t") int value) { XrSceneComponentsMSFT.ncomponentCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneComponentsMSFT#componentCountOutput} field. */ - public XrSceneComponentsMSFT.Buffer componentCountOutput(@NativeType("uint32_t") int value) { XrSceneComponentsMSFT.ncomponentCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneComponentMSFT.Buffer} to the {@link XrSceneComponentsMSFT#components} field. */ - public XrSceneComponentsMSFT.Buffer components(@Nullable @NativeType("XrSceneComponentMSFT *") XrSceneComponentMSFT.Buffer value) { XrSceneComponentsMSFT.ncomponents(address(), value); return this; } + + /** @return the value of the {@link XrSceneComponentsMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneComponentsMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneComponentsMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSceneComponentsMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneComponentsMSFT#componentCapacityInput} field. */ + @NativeType("uint32_t") + public int componentCapacityInput() { return XrSceneComponentsMSFT.ncomponentCapacityInput(address()); } + /** @return the value of the {@link XrSceneComponentsMSFT#componentCountOutput} field. */ + @NativeType("uint32_t") + public int componentCountOutput() { return XrSceneComponentsMSFT.ncomponentCountOutput(address()); } + /** @return a {@link XrSceneComponentMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneComponentsMSFT#components} field. */ + @Nullable + @NativeType("XrSceneComponentMSFT *") + public XrSceneComponentMSFT.Buffer components() { return XrSceneComponentsMSFT.ncomponents(address()); } + + /** Sets the specified value to the {@link XrSceneComponentsMSFT#type} field. */ + public XrSceneComponentsMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentsMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENTS_MSFT TYPE_SCENE_COMPONENTS_MSFT} value to the {@link XrSceneComponentsMSFT#type} field. */ + public XrSceneComponentsMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENTS_MSFT); } + /** Sets the specified value to the {@link XrSceneComponentsMSFT#next} field. */ + public XrSceneComponentsMSFT.Buffer next(@NativeType("void *") long value) { XrSceneComponentsMSFT.nnext(address(), value); return this; } + /** Prepends the specified {@link XrSceneMeshesMSFT} value to the {@code next} chain. */ + public XrSceneComponentsMSFT.Buffer next(XrSceneMeshesMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSceneObjectsMSFT} value to the {@code next} chain. */ + public XrSceneComponentsMSFT.Buffer next(XrSceneObjectsMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrScenePlanesMSFT} value to the {@code next} chain. */ + public XrSceneComponentsMSFT.Buffer next(XrScenePlanesMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrSceneComponentsMSFT#componentCapacityInput} field. */ + public XrSceneComponentsMSFT.Buffer componentCapacityInput(@NativeType("uint32_t") int value) { XrSceneComponentsMSFT.ncomponentCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneComponentsMSFT#componentCountOutput} field. */ + public XrSceneComponentsMSFT.Buffer componentCountOutput(@NativeType("uint32_t") int value) { XrSceneComponentsMSFT.ncomponentCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneComponentMSFT.Buffer} to the {@link XrSceneComponentsMSFT#components} field. */ + public XrSceneComponentsMSFT.Buffer components(@Nullable @NativeType("XrSceneComponentMSFT *") XrSceneComponentMSFT.Buffer value) { XrSceneComponentsMSFT.ncomponents(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneCreateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneCreateInfoMSFT.java index b9d3ff7638..d294233a54 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneCreateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneCreateInfoMSFT.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 information to create a scene handle. * @@ -37,8 +37,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrSceneCreateInfoMSFT extends Struct implements NativeResource { + */ +public class XrSceneCreateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,29 +48,20 @@ public class XrSceneCreateInfoMSFT extends Struct impleme /** 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 XrSceneCreateInfoMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSceneCreateInfoMSFT create(long address, @Nullable ByteBuffer container) { - return new XrSceneCreateInfoMSFT(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); } /** @@ -85,28 +76,28 @@ public XrSceneCreateInfoMSFT(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()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSceneCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_CREATE_INFO_MSFT TYPE_SCENE_CREATE_INFO_MSFT} value to the {@link #type} field. */ - public XrSceneCreateInfoMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSceneCreateInfoMSFT next(@NativeType("void const *") 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 or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSceneCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_CREATE_INFO_MSFT TYPE_SCENE_CREATE_INFO_MSFT} value to the {@link #type} field. */ + public XrSceneCreateInfoMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSceneCreateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneCreateInfoMSFT set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -127,29 +118,29 @@ public XrSceneCreateInfoMSFT set(XrSceneCreateInfoMSFT src) { /** Returns a new {@code XrSceneCreateInfoMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSceneCreateInfoMSFT malloc() { - return new XrSceneCreateInfoMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSceneCreateInfoMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSceneCreateInfoMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSceneCreateInfoMSFT calloc() { - return new XrSceneCreateInfoMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSceneCreateInfoMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSceneCreateInfoMSFT} instance allocated with {@link BufferUtils}. */ public static XrSceneCreateInfoMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSceneCreateInfoMSFT(memAddress(container), container); + return wrap(XrSceneCreateInfoMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSceneCreateInfoMSFT} instance for the specified memory address. */ public static XrSceneCreateInfoMSFT create(long address) { - return new XrSceneCreateInfoMSFT(address, null); + return wrap(XrSceneCreateInfoMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSceneCreateInfoMSFT createSafe(long address) { - return address == NULL ? null : new XrSceneCreateInfoMSFT(address, null); + return address == NULL ? null : wrap(XrSceneCreateInfoMSFT.class, address); } /** @@ -158,7 +149,7 @@ public static XrSceneCreateInfoMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSceneCreateInfoMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -167,7 +158,7 @@ public static XrSceneCreateInfoMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSceneCreateInfoMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -177,7 +168,7 @@ public static XrSceneCreateInfoMSFT.Buffer calloc(int capacity) { */ public static XrSceneCreateInfoMSFT.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); } /** @@ -187,13 +178,13 @@ public static XrSceneCreateInfoMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSceneCreateInfoMSFT.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 XrSceneCreateInfoMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -202,7 +193,7 @@ public static XrSceneCreateInfoMSFT.Buffer createSafe(long address, int capacity * @param stack the stack from which to allocate */ public static XrSceneCreateInfoMSFT malloc(MemoryStack stack) { - return new XrSceneCreateInfoMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSceneCreateInfoMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -211,7 +202,7 @@ public static XrSceneCreateInfoMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSceneCreateInfoMSFT calloc(MemoryStack stack) { - return new XrSceneCreateInfoMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSceneCreateInfoMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -221,7 +212,7 @@ public static XrSceneCreateInfoMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneCreateInfoMSFT.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); } /** @@ -231,22 +222,22 @@ public static XrSceneCreateInfoMSFT.Buffer malloc(int capacity, MemoryStack stac * @param capacity the buffer capacity */ public static XrSceneCreateInfoMSFT.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 + XrSceneCreateInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSceneCreateInfoMSFT.NEXT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneCreateInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneCreateInfoMSFT.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneCreateInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSceneCreateInfoMSFT.NEXT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneCreateInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneCreateInfoMSFT.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrSceneCreateInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -256,9 +247,9 @@ public static class Buffer extends StructBuffer i /** * Creates a new {@code XrSceneCreateInfoMSFT.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 XrSceneCreateInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneCreateInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -283,20 +274,20 @@ protected Buffer self() { protected XrSceneCreateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneCreateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneCreateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneCreateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSceneCreateInfoMSFT.nnext(address()); } - - /** Sets the specified value to the {@link XrSceneCreateInfoMSFT#type} field. */ - public XrSceneCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneCreateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_CREATE_INFO_MSFT TYPE_SCENE_CREATE_INFO_MSFT} value to the {@link XrSceneCreateInfoMSFT#type} field. */ - public XrSceneCreateInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSceneCreateInfoMSFT#next} field. */ - public XrSceneCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneCreateInfoMSFT.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSceneCreateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneCreateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneCreateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSceneCreateInfoMSFT.nnext(address()); } + + /** Sets the specified value to the {@link XrSceneCreateInfoMSFT#type} field. */ + public XrSceneCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneCreateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_CREATE_INFO_MSFT TYPE_SCENE_CREATE_INFO_MSFT} value to the {@link XrSceneCreateInfoMSFT#type} field. */ + public XrSceneCreateInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSceneCreateInfoMSFT#next} field. */ + public XrSceneCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneCreateInfoMSFT.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneDeserializeInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneDeserializeInfoMSFT.java index b13ccf2580..ab04f422a8 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneDeserializeInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneDeserializeInfoMSFT.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 information to deserialize a binary scene. * @@ -44,8 +44,8 @@ * uint32_t {@link #fragmentCount}; * {@link XrDeserializeSceneFragmentMSFT XrDeserializeSceneFragmentMSFT} const * {@link #fragments}; * } - */ -public class XrSceneDeserializeInfoMSFT extends Struct implements NativeResource { + */ +public class XrSceneDeserializeInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,35 +55,26 @@ public class XrSceneDeserializeInfoMSFT extends Struct implements NativeResource { @@ -292,9 +283,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 XrSceneDeserializeInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneDeserializeInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -319,31 +310,31 @@ protected Buffer self() { protected XrSceneDeserializeInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneDeserializeInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneDeserializeInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneDeserializeInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSceneDeserializeInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneDeserializeInfoMSFT#fragmentCount} field. */ - @NativeType("uint32_t") - public int fragmentCount() { return XrSceneDeserializeInfoMSFT.nfragmentCount(address()); } - /** @return a {@link XrDeserializeSceneFragmentMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneDeserializeInfoMSFT#fragments} field. */ - @Nullable - @NativeType("XrDeserializeSceneFragmentMSFT const *") - public XrDeserializeSceneFragmentMSFT.Buffer fragments() { return XrSceneDeserializeInfoMSFT.nfragments(address()); } - - /** Sets the specified value to the {@link XrSceneDeserializeInfoMSFT#type} field. */ - public XrSceneDeserializeInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneDeserializeInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstandingSerialization#XR_TYPE_SCENE_DESERIALIZE_INFO_MSFT TYPE_SCENE_DESERIALIZE_INFO_MSFT} value to the {@link XrSceneDeserializeInfoMSFT#type} field. */ - public XrSceneDeserializeInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstandingSerialization.XR_TYPE_SCENE_DESERIALIZE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSceneDeserializeInfoMSFT#next} field. */ - public XrSceneDeserializeInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneDeserializeInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneDeserializeInfoMSFT#fragmentCount} field. */ - public XrSceneDeserializeInfoMSFT.Buffer fragmentCount(@NativeType("uint32_t") int value) { XrSceneDeserializeInfoMSFT.nfragmentCount(address(), value); return this; } - /** Sets the address of the specified {@link XrDeserializeSceneFragmentMSFT.Buffer} to the {@link XrSceneDeserializeInfoMSFT#fragments} field. */ - public XrSceneDeserializeInfoMSFT.Buffer fragments(@Nullable @NativeType("XrDeserializeSceneFragmentMSFT const *") XrDeserializeSceneFragmentMSFT.Buffer value) { XrSceneDeserializeInfoMSFT.nfragments(address(), value); return this; } + + /** @return the value of the {@link XrSceneDeserializeInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneDeserializeInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneDeserializeInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSceneDeserializeInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneDeserializeInfoMSFT#fragmentCount} field. */ + @NativeType("uint32_t") + public int fragmentCount() { return XrSceneDeserializeInfoMSFT.nfragmentCount(address()); } + /** @return a {@link XrDeserializeSceneFragmentMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneDeserializeInfoMSFT#fragments} field. */ + @Nullable + @NativeType("XrDeserializeSceneFragmentMSFT const *") + public XrDeserializeSceneFragmentMSFT.Buffer fragments() { return XrSceneDeserializeInfoMSFT.nfragments(address()); } + + /** Sets the specified value to the {@link XrSceneDeserializeInfoMSFT#type} field. */ + public XrSceneDeserializeInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneDeserializeInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstandingSerialization#XR_TYPE_SCENE_DESERIALIZE_INFO_MSFT TYPE_SCENE_DESERIALIZE_INFO_MSFT} value to the {@link XrSceneDeserializeInfoMSFT#type} field. */ + public XrSceneDeserializeInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstandingSerialization.XR_TYPE_SCENE_DESERIALIZE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSceneDeserializeInfoMSFT#next} field. */ + public XrSceneDeserializeInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneDeserializeInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneDeserializeInfoMSFT#fragmentCount} field. */ + public XrSceneDeserializeInfoMSFT.Buffer fragmentCount(@NativeType("uint32_t") int value) { XrSceneDeserializeInfoMSFT.nfragmentCount(address(), value); return this; } + /** Sets the address of the specified {@link XrDeserializeSceneFragmentMSFT.Buffer} to the {@link XrSceneDeserializeInfoMSFT#fragments} field. */ + public XrSceneDeserializeInfoMSFT.Buffer fragments(@Nullable @NativeType("XrDeserializeSceneFragmentMSFT const *") XrDeserializeSceneFragmentMSFT.Buffer value) { XrSceneDeserializeInfoMSFT.nfragments(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneFrustumBoundMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneFrustumBoundMSFT.java index 8db0e57e69..7bbc52d1e2 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneFrustumBoundMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneFrustumBoundMSFT.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.*; + /** * Describe a scene frustum bounds. * @@ -40,8 +40,8 @@ * {@link XrFovf XrFovf} {@link #fov}; * float {@link #farDistance}; * } - */ -public class XrSceneFrustumBoundMSFT extends Struct implements NativeResource { + */ +public class XrSceneFrustumBoundMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,32 +51,23 @@ public class XrSceneFrustumBoundMSFT extends Struct imp /** The struct member offsets. */ public static final int - POSE, - FOV, - FARDISTANCE; + POSE, + FOV, + FARDISTANCE; static { - Layout layout = __struct( - __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), - __member(XrFovf.SIZEOF, XrFovf.ALIGNOF), + Layout layout = __struct( + __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), + __member(XrFovf.SIZEOF, XrFovf.ALIGNOF), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - POSE = layout.offsetof(0); - FOV = layout.offsetof(1); - FARDISTANCE = layout.offsetof(2); - } - - protected XrSceneFrustumBoundMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSceneFrustumBoundMSFT create(long address, @Nullable ByteBuffer container) { - return new XrSceneFrustumBoundMSFT(address, container); + POSE = layout.offsetof(0); + FOV = layout.offsetof(1); + FARDISTANCE = layout.offsetof(2); } /** @@ -91,34 +82,34 @@ public XrSceneFrustumBoundMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** an {@link XrPosef} defining the position and orientation of the tip of the frustum bound within the reference frame of the corresponding {@link XrSceneBoundsMSFT}{@code ::space}. */ - public XrPosef pose() { return npose(address()); } - /** an {@link XrFovf} for the four sides of the frustum bound where {@code angleLeft} and {@code angleRight} are along the X axis and {@code angleUp} and {@code angleDown} are along the Y axis of the frustum bound space. */ - public XrFovf fov() { return nfov(address()); } - /** the positive distance of the far plane of the frustum bound along the -Z direction of the frustum bound space. */ - public float farDistance() { return nfarDistance(address()); } - - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrSceneFrustumBoundMSFT pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneFrustumBoundMSFT pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrFovf} to the {@link #fov} field. */ - public XrSceneFrustumBoundMSFT fov(XrFovf value) { nfov(address(), value); return this; } - /** Passes the {@link #fov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneFrustumBoundMSFT fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } - /** Sets the specified value to the {@link #farDistance} field. */ - public XrSceneFrustumBoundMSFT farDistance(float value) { nfarDistance(address(), value); return this; } + + /** an {@link XrPosef} defining the position and orientation of the tip of the frustum bound within the reference frame of the corresponding {@link XrSceneBoundsMSFT}{@code ::space}. */ + public XrPosef pose() { return npose(address()); } + /** an {@link XrFovf} for the four sides of the frustum bound where {@code angleLeft} and {@code angleRight} are along the X axis and {@code angleUp} and {@code angleDown} are along the Y axis of the frustum bound space. */ + public XrFovf fov() { return nfov(address()); } + /** the positive distance of the far plane of the frustum bound along the -Z direction of the frustum bound space. */ + public float farDistance() { return nfarDistance(address()); } + + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrSceneFrustumBoundMSFT pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneFrustumBoundMSFT pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrFovf} to the {@link #fov} field. */ + public XrSceneFrustumBoundMSFT fov(XrFovf value) { nfov(address(), value); return this; } + /** Passes the {@link #fov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneFrustumBoundMSFT fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } + /** Sets the specified value to the {@link #farDistance} field. */ + public XrSceneFrustumBoundMSFT farDistance(float value) { nfarDistance(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneFrustumBoundMSFT set( - XrPosef pose, - XrFovf fov, + XrPosef pose, + XrFovf fov, float farDistance - ) { - pose(pose); - fov(fov); - farDistance(farDistance); + ) { + pose(pose); + fov(fov); + farDistance(farDistance); return this; } @@ -139,29 +130,29 @@ public XrSceneFrustumBoundMSFT set(XrSceneFrustumBoundMSFT src) { /** Returns a new {@code XrSceneFrustumBoundMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSceneFrustumBoundMSFT malloc() { - return new XrSceneFrustumBoundMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSceneFrustumBoundMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSceneFrustumBoundMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSceneFrustumBoundMSFT calloc() { - return new XrSceneFrustumBoundMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSceneFrustumBoundMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSceneFrustumBoundMSFT} instance allocated with {@link BufferUtils}. */ public static XrSceneFrustumBoundMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSceneFrustumBoundMSFT(memAddress(container), container); + return wrap(XrSceneFrustumBoundMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSceneFrustumBoundMSFT} instance for the specified memory address. */ public static XrSceneFrustumBoundMSFT create(long address) { - return new XrSceneFrustumBoundMSFT(address, null); + return wrap(XrSceneFrustumBoundMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSceneFrustumBoundMSFT createSafe(long address) { - return address == NULL ? null : new XrSceneFrustumBoundMSFT(address, null); + return address == NULL ? null : wrap(XrSceneFrustumBoundMSFT.class, address); } /** @@ -170,7 +161,7 @@ public static XrSceneFrustumBoundMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSceneFrustumBoundMSFT.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 XrSceneFrustumBoundMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSceneFrustumBoundMSFT.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 XrSceneFrustumBoundMSFT.Buffer calloc(int capacity) { */ public static XrSceneFrustumBoundMSFT.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 XrSceneFrustumBoundMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSceneFrustumBoundMSFT.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 XrSceneFrustumBoundMSFT.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 XrSceneFrustumBoundMSFT.Buffer createSafe(long address, int capaci * @param stack the stack from which to allocate */ public static XrSceneFrustumBoundMSFT malloc(MemoryStack stack) { - return new XrSceneFrustumBoundMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSceneFrustumBoundMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -223,7 +214,7 @@ public static XrSceneFrustumBoundMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSceneFrustumBoundMSFT calloc(MemoryStack stack) { - return new XrSceneFrustumBoundMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSceneFrustumBoundMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -233,7 +224,7 @@ public static XrSceneFrustumBoundMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneFrustumBoundMSFT.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 XrSceneFrustumBoundMSFT.Buffer malloc(int capacity, MemoryStack st * @param capacity the buffer capacity */ public static XrSceneFrustumBoundMSFT.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 #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSceneFrustumBoundMSFT.POSE); } - /** Unsafe version of {@link #fov}. */ - public static XrFovf nfov(long struct) { return XrFovf.create(struct + XrSceneFrustumBoundMSFT.FOV); } - /** Unsafe version of {@link #farDistance}. */ - public static float nfarDistance(long struct) { return UNSAFE.getFloat(null, struct + XrSceneFrustumBoundMSFT.FARDISTANCE); } - - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSceneFrustumBoundMSFT.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #fov(XrFovf) fov}. */ - public static void nfov(long struct, XrFovf value) { memCopy(value.address(), struct + XrSceneFrustumBoundMSFT.FOV, XrFovf.SIZEOF); } - /** Unsafe version of {@link #farDistance(float) farDistance}. */ - public static void nfarDistance(long struct, float value) { UNSAFE.putFloat(null, struct + XrSceneFrustumBoundMSFT.FARDISTANCE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSceneFrustumBoundMSFT.POSE); } + /** Unsafe version of {@link #fov}. */ + public static XrFovf nfov(long struct) { return XrFovf.create(struct + XrSceneFrustumBoundMSFT.FOV); } + /** Unsafe version of {@link #farDistance}. */ + public static float nfarDistance(long struct) { return UNSAFE.getFloat(null, struct + XrSceneFrustumBoundMSFT.FARDISTANCE); } + + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSceneFrustumBoundMSFT.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #fov(XrFovf) fov}. */ + public static void nfov(long struct, XrFovf value) { memCopy(value.address(), struct + XrSceneFrustumBoundMSFT.FOV, XrFovf.SIZEOF); } + /** Unsafe version of {@link #farDistance(float) farDistance}. */ + public static void nfarDistance(long struct, float value) { UNSAFE.putFloat(null, struct + XrSceneFrustumBoundMSFT.FARDISTANCE, value); } + + // ----------------------------------- /** An array of {@link XrSceneFrustumBoundMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -272,9 +263,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrSceneFrustumBoundMSFT.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 XrSceneFrustumBoundMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneFrustumBoundMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -299,24 +290,24 @@ protected Buffer self() { protected XrSceneFrustumBoundMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link XrPosef} view of the {@link XrSceneFrustumBoundMSFT#pose} field. */ - public XrPosef pose() { return XrSceneFrustumBoundMSFT.npose(address()); } - /** @return a {@link XrFovf} view of the {@link XrSceneFrustumBoundMSFT#fov} field. */ - public XrFovf fov() { return XrSceneFrustumBoundMSFT.nfov(address()); } - /** @return the value of the {@link XrSceneFrustumBoundMSFT#farDistance} field. */ - public float farDistance() { return XrSceneFrustumBoundMSFT.nfarDistance(address()); } - - /** Copies the specified {@link XrPosef} to the {@link XrSceneFrustumBoundMSFT#pose} field. */ - public XrSceneFrustumBoundMSFT.Buffer pose(XrPosef value) { XrSceneFrustumBoundMSFT.npose(address(), value); return this; } - /** Passes the {@link XrSceneFrustumBoundMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneFrustumBoundMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrFovf} to the {@link XrSceneFrustumBoundMSFT#fov} field. */ - public XrSceneFrustumBoundMSFT.Buffer fov(XrFovf value) { XrSceneFrustumBoundMSFT.nfov(address(), value); return this; } - /** Passes the {@link XrSceneFrustumBoundMSFT#fov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneFrustumBoundMSFT.Buffer fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } - /** Sets the specified value to the {@link XrSceneFrustumBoundMSFT#farDistance} field. */ - public XrSceneFrustumBoundMSFT.Buffer farDistance(float value) { XrSceneFrustumBoundMSFT.nfarDistance(address(), value); return this; } + + /** @return a {@link XrPosef} view of the {@link XrSceneFrustumBoundMSFT#pose} field. */ + public XrPosef pose() { return XrSceneFrustumBoundMSFT.npose(address()); } + /** @return a {@link XrFovf} view of the {@link XrSceneFrustumBoundMSFT#fov} field. */ + public XrFovf fov() { return XrSceneFrustumBoundMSFT.nfov(address()); } + /** @return the value of the {@link XrSceneFrustumBoundMSFT#farDistance} field. */ + public float farDistance() { return XrSceneFrustumBoundMSFT.nfarDistance(address()); } + + /** Copies the specified {@link XrPosef} to the {@link XrSceneFrustumBoundMSFT#pose} field. */ + public XrSceneFrustumBoundMSFT.Buffer pose(XrPosef value) { XrSceneFrustumBoundMSFT.npose(address(), value); return this; } + /** Passes the {@link XrSceneFrustumBoundMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneFrustumBoundMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrFovf} to the {@link XrSceneFrustumBoundMSFT#fov} field. */ + public XrSceneFrustumBoundMSFT.Buffer fov(XrFovf value) { XrSceneFrustumBoundMSFT.nfov(address(), value); return this; } + /** Passes the {@link XrSceneFrustumBoundMSFT#fov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneFrustumBoundMSFT.Buffer fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } + /** Sets the specified value to the {@link XrSceneFrustumBoundMSFT#farDistance} field. */ + public XrSceneFrustumBoundMSFT.Buffer farDistance(float value) { XrSceneFrustumBoundMSFT.nfarDistance(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMSFT.java index ec47785db2..94f9868b24 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMSFT.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrSceneMSFT} handle. */ + +/** Wraps an {@code XrSceneMSFT} handle. */ public class XrSceneMSFT extends DispatchableHandle { private final XrSceneObserverMSFT sceneObserverMSFT; @@ -26,4 +26,4 @@ public XrSceneObserverMSFT getSceneObserverMSFT() { return sceneObserverMSFT; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshBuffersGetInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshBuffersGetInfoMSFT.java index da3a1fdb91..439ac98c7f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshBuffersGetInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshBuffersGetInfoMSFT.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 information to get the scene mesh buffer data. * @@ -38,8 +38,8 @@ * void const * {@link #next}; * uint64_t {@link #meshBufferId}; * } - */ -public class XrSceneMeshBuffersGetInfoMSFT extends Struct implements NativeResource { + */ +public class XrSceneMeshBuffersGetInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,32 +49,23 @@ public class XrSceneMeshBuffersGetInfoMSFT extends Struct implements NativeResource { @@ -271,9 +262,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 XrSceneMeshBuffersGetInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneMeshBuffersGetInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -298,25 +289,25 @@ protected Buffer self() { protected XrSceneMeshBuffersGetInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneMeshBuffersGetInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneMeshBuffersGetInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneMeshBuffersGetInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSceneMeshBuffersGetInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneMeshBuffersGetInfoMSFT#meshBufferId} field. */ - @NativeType("uint64_t") - public long meshBufferId() { return XrSceneMeshBuffersGetInfoMSFT.nmeshBufferId(address()); } - - /** Sets the specified value to the {@link XrSceneMeshBuffersGetInfoMSFT#type} field. */ - public XrSceneMeshBuffersGetInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshBuffersGetInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFT TYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFT} value to the {@link XrSceneMeshBuffersGetInfoMSFT#type} field. */ - public XrSceneMeshBuffersGetInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFT); } - /** Sets the specified value to the {@link XrSceneMeshBuffersGetInfoMSFT#next} field. */ - public XrSceneMeshBuffersGetInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneMeshBuffersGetInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneMeshBuffersGetInfoMSFT#meshBufferId} field. */ - public XrSceneMeshBuffersGetInfoMSFT.Buffer meshBufferId(@NativeType("uint64_t") long value) { XrSceneMeshBuffersGetInfoMSFT.nmeshBufferId(address(), value); return this; } + + /** @return the value of the {@link XrSceneMeshBuffersGetInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneMeshBuffersGetInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneMeshBuffersGetInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSceneMeshBuffersGetInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneMeshBuffersGetInfoMSFT#meshBufferId} field. */ + @NativeType("uint64_t") + public long meshBufferId() { return XrSceneMeshBuffersGetInfoMSFT.nmeshBufferId(address()); } + + /** Sets the specified value to the {@link XrSceneMeshBuffersGetInfoMSFT#type} field. */ + public XrSceneMeshBuffersGetInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshBuffersGetInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFT TYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFT} value to the {@link XrSceneMeshBuffersGetInfoMSFT#type} field. */ + public XrSceneMeshBuffersGetInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFT); } + /** Sets the specified value to the {@link XrSceneMeshBuffersGetInfoMSFT#next} field. */ + public XrSceneMeshBuffersGetInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneMeshBuffersGetInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneMeshBuffersGetInfoMSFT#meshBufferId} field. */ + public XrSceneMeshBuffersGetInfoMSFT.Buffer meshBufferId(@NativeType("uint64_t") long value) { XrSceneMeshBuffersGetInfoMSFT.nmeshBufferId(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshBuffersMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshBuffersMSFT.java index a662fc1855..3fcf8d1a13 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshBuffersMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshBuffersMSFT.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.*; + /** * Scene mesh buffers. * @@ -37,8 +37,8 @@ * XrStructureType {@link #type}; * void * {@link #next}; * } - */ -public class XrSceneMeshBuffersMSFT extends Struct implements NativeResource { + */ +public class XrSceneMeshBuffersMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,29 +48,20 @@ public class XrSceneMeshBuffersMSFT extends Struct imple /** 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 XrSceneMeshBuffersMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSceneMeshBuffersMSFT create(long address, @Nullable ByteBuffer container) { - return new XrSceneMeshBuffersMSFT(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); } /** @@ -85,28 +76,28 @@ public XrSceneMeshBuffersMSFT(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 *") - public long next() { return nnext(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSceneMeshBuffersMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_BUFFERS_MSFT TYPE_SCENE_MESH_BUFFERS_MSFT} value to the {@link #type} field. */ - public XrSceneMeshBuffersMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_BUFFERS_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSceneMeshBuffersMSFT 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. */ + @NativeType("void *") + public long next() { return nnext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSceneMeshBuffersMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_BUFFERS_MSFT TYPE_SCENE_MESH_BUFFERS_MSFT} value to the {@link #type} field. */ + public XrSceneMeshBuffersMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_BUFFERS_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSceneMeshBuffersMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneMeshBuffersMSFT set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -127,29 +118,29 @@ public XrSceneMeshBuffersMSFT set(XrSceneMeshBuffersMSFT src) { /** Returns a new {@code XrSceneMeshBuffersMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSceneMeshBuffersMSFT malloc() { - return new XrSceneMeshBuffersMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSceneMeshBuffersMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSceneMeshBuffersMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSceneMeshBuffersMSFT calloc() { - return new XrSceneMeshBuffersMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSceneMeshBuffersMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSceneMeshBuffersMSFT} instance allocated with {@link BufferUtils}. */ public static XrSceneMeshBuffersMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSceneMeshBuffersMSFT(memAddress(container), container); + return wrap(XrSceneMeshBuffersMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSceneMeshBuffersMSFT} instance for the specified memory address. */ public static XrSceneMeshBuffersMSFT create(long address) { - return new XrSceneMeshBuffersMSFT(address, null); + return wrap(XrSceneMeshBuffersMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSceneMeshBuffersMSFT createSafe(long address) { - return address == NULL ? null : new XrSceneMeshBuffersMSFT(address, null); + return address == NULL ? null : wrap(XrSceneMeshBuffersMSFT.class, address); } /** @@ -158,7 +149,7 @@ public static XrSceneMeshBuffersMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSceneMeshBuffersMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -167,7 +158,7 @@ public static XrSceneMeshBuffersMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSceneMeshBuffersMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -177,7 +168,7 @@ public static XrSceneMeshBuffersMSFT.Buffer calloc(int capacity) { */ public static XrSceneMeshBuffersMSFT.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); } /** @@ -187,13 +178,13 @@ public static XrSceneMeshBuffersMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSceneMeshBuffersMSFT.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 XrSceneMeshBuffersMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -202,7 +193,7 @@ public static XrSceneMeshBuffersMSFT.Buffer createSafe(long address, int capacit * @param stack the stack from which to allocate */ public static XrSceneMeshBuffersMSFT malloc(MemoryStack stack) { - return new XrSceneMeshBuffersMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSceneMeshBuffersMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -211,7 +202,7 @@ public static XrSceneMeshBuffersMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSceneMeshBuffersMSFT calloc(MemoryStack stack) { - return new XrSceneMeshBuffersMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSceneMeshBuffersMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -221,7 +212,7 @@ public static XrSceneMeshBuffersMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneMeshBuffersMSFT.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); } /** @@ -231,22 +222,22 @@ public static XrSceneMeshBuffersMSFT.Buffer malloc(int capacity, MemoryStack sta * @param capacity the buffer capacity */ public static XrSceneMeshBuffersMSFT.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 + XrSceneMeshBuffersMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSceneMeshBuffersMSFT.NEXT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshBuffersMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneMeshBuffersMSFT.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshBuffersMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSceneMeshBuffersMSFT.NEXT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshBuffersMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneMeshBuffersMSFT.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrSceneMeshBuffersMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -256,9 +247,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrSceneMeshBuffersMSFT.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 XrSceneMeshBuffersMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneMeshBuffersMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -283,20 +274,20 @@ protected Buffer self() { protected XrSceneMeshBuffersMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneMeshBuffersMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneMeshBuffersMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneMeshBuffersMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSceneMeshBuffersMSFT.nnext(address()); } - - /** Sets the specified value to the {@link XrSceneMeshBuffersMSFT#type} field. */ - public XrSceneMeshBuffersMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshBuffersMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_BUFFERS_MSFT TYPE_SCENE_MESH_BUFFERS_MSFT} value to the {@link XrSceneMeshBuffersMSFT#type} field. */ - public XrSceneMeshBuffersMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_BUFFERS_MSFT); } - /** Sets the specified value to the {@link XrSceneMeshBuffersMSFT#next} field. */ - public XrSceneMeshBuffersMSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshBuffersMSFT.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSceneMeshBuffersMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneMeshBuffersMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneMeshBuffersMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSceneMeshBuffersMSFT.nnext(address()); } + + /** Sets the specified value to the {@link XrSceneMeshBuffersMSFT#type} field. */ + public XrSceneMeshBuffersMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshBuffersMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_BUFFERS_MSFT TYPE_SCENE_MESH_BUFFERS_MSFT} value to the {@link XrSceneMeshBuffersMSFT#type} field. */ + public XrSceneMeshBuffersMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_BUFFERS_MSFT); } + /** Sets the specified value to the {@link XrSceneMeshBuffersMSFT#next} field. */ + public XrSceneMeshBuffersMSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshBuffersMSFT.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshIndicesUint16MSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshIndicesUint16MSFT.java index 531ce5d6ad..97359e4f7b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshIndicesUint16MSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshIndicesUint16MSFT.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.*; + /** * Scene mesh 16-bit indices. * @@ -41,8 +41,8 @@ * uint32_t {@link #indexCountOutput}; * uint16_t * {@link #indices}; * } - */ -public class XrSceneMeshIndicesUint16MSFT extends Struct implements NativeResource { + */ +public class XrSceneMeshIndicesUint16MSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,38 +52,29 @@ public class XrSceneMeshIndicesUint16MSFT extends Structmust be returned in counter-clockwise order and three indices denote one triangle. */ - @Nullable - @NativeType("uint16_t *") - public ShortBuffer indices() { return nindices(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSceneMeshIndicesUint16MSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT TYPE_SCENE_MESH_INDICES_UINT16_MSFT} value to the {@link #type} field. */ - public XrSceneMeshIndicesUint16MSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSceneMeshIndicesUint16MSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #indexCapacityInput} field. */ - public XrSceneMeshIndicesUint16MSFT indexCapacityInput(@NativeType("uint32_t") int value) { nindexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #indexCountOutput} field. */ - public XrSceneMeshIndicesUint16MSFT indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link ShortBuffer} to the {@link #indices} field. */ - public XrSceneMeshIndicesUint16MSFT indices(@Nullable @NativeType("uint16_t *") ShortBuffer value) { nindices(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 *") + public long next() { return nnext(address()); } + /** the capacity of the array, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return nindexCapacityInput(address()); } + /** a pointer to the count of indices, or a pointer to the required capacity in the case that {@code indexCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int indexCountOutput() { return nindexCountOutput(address()); } + /** an array of triangle indices filled in by the runtime, specifying the indices of the scene mesh buffer in the vertices array. The triangle indices must be returned in counter-clockwise order and three indices denote one triangle. */ + @Nullable + @NativeType("uint16_t *") + public ShortBuffer indices() { return nindices(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSceneMeshIndicesUint16MSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT TYPE_SCENE_MESH_INDICES_UINT16_MSFT} value to the {@link #type} field. */ + public XrSceneMeshIndicesUint16MSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSceneMeshIndicesUint16MSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #indexCapacityInput} field. */ + public XrSceneMeshIndicesUint16MSFT indexCapacityInput(@NativeType("uint32_t") int value) { nindexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #indexCountOutput} field. */ + public XrSceneMeshIndicesUint16MSFT indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link ShortBuffer} to the {@link #indices} field. */ + public XrSceneMeshIndicesUint16MSFT indices(@Nullable @NativeType("uint16_t *") ShortBuffer value) { nindices(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneMeshIndicesUint16MSFT set( - int type, - long next, - int indexCapacityInput, - int indexCountOutput, + int type, + long next, + int indexCapacityInput, + int indexCountOutput, @Nullable ShortBuffer indices - ) { - type(type); - next(next); - indexCapacityInput(indexCapacityInput); - indexCountOutput(indexCountOutput); - indices(indices); + ) { + type(type); + next(next); + indexCapacityInput(indexCapacityInput); + indexCountOutput(indexCountOutput); + indices(indices); return this; } @@ -162,29 +153,29 @@ public XrSceneMeshIndicesUint16MSFT set(XrSceneMeshIndicesUint16MSFT src) { /** Returns a new {@code XrSceneMeshIndicesUint16MSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSceneMeshIndicesUint16MSFT malloc() { - return new XrSceneMeshIndicesUint16MSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSceneMeshIndicesUint16MSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSceneMeshIndicesUint16MSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSceneMeshIndicesUint16MSFT calloc() { - return new XrSceneMeshIndicesUint16MSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSceneMeshIndicesUint16MSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSceneMeshIndicesUint16MSFT} instance allocated with {@link BufferUtils}. */ public static XrSceneMeshIndicesUint16MSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSceneMeshIndicesUint16MSFT(memAddress(container), container); + return wrap(XrSceneMeshIndicesUint16MSFT.class, memAddress(container), container); } /** Returns a new {@code XrSceneMeshIndicesUint16MSFT} instance for the specified memory address. */ public static XrSceneMeshIndicesUint16MSFT create(long address) { - return new XrSceneMeshIndicesUint16MSFT(address, null); + return wrap(XrSceneMeshIndicesUint16MSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSceneMeshIndicesUint16MSFT createSafe(long address) { - return address == NULL ? null : new XrSceneMeshIndicesUint16MSFT(address, null); + return address == NULL ? null : wrap(XrSceneMeshIndicesUint16MSFT.class, address); } /** @@ -193,7 +184,7 @@ public static XrSceneMeshIndicesUint16MSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSceneMeshIndicesUint16MSFT.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 XrSceneMeshIndicesUint16MSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSceneMeshIndicesUint16MSFT.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 XrSceneMeshIndicesUint16MSFT.Buffer calloc(int capacity) { */ public static XrSceneMeshIndicesUint16MSFT.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 XrSceneMeshIndicesUint16MSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSceneMeshIndicesUint16MSFT.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 XrSceneMeshIndicesUint16MSFT.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 XrSceneMeshIndicesUint16MSFT.Buffer createSafe(long address, int c * @param stack the stack from which to allocate */ public static XrSceneMeshIndicesUint16MSFT malloc(MemoryStack stack) { - return new XrSceneMeshIndicesUint16MSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSceneMeshIndicesUint16MSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -246,7 +237,7 @@ public static XrSceneMeshIndicesUint16MSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSceneMeshIndicesUint16MSFT calloc(MemoryStack stack) { - return new XrSceneMeshIndicesUint16MSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSceneMeshIndicesUint16MSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -256,7 +247,7 @@ public static XrSceneMeshIndicesUint16MSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneMeshIndicesUint16MSFT.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 XrSceneMeshIndicesUint16MSFT.Buffer malloc(int capacity, MemorySta * @param capacity the buffer capacity */ public static XrSceneMeshIndicesUint16MSFT.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 + XrSceneMeshIndicesUint16MSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSceneMeshIndicesUint16MSFT.NEXT); } - /** Unsafe version of {@link #indexCapacityInput}. */ - public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint16MSFT.INDEXCAPACITYINPUT); } - /** Unsafe version of {@link #indexCountOutput}. */ - public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint16MSFT.INDEXCOUNTOUTPUT); } - /** Unsafe version of {@link #indices() indices}. */ - @Nullable public static ShortBuffer nindices(long struct) { return memShortBufferSafe(memGetAddress(struct + XrSceneMeshIndicesUint16MSFT.INDICES), nindexCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint16MSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneMeshIndicesUint16MSFT.NEXT, value); } - /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ - public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint16MSFT.INDEXCAPACITYINPUT, value); } - /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ - public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint16MSFT.INDEXCOUNTOUTPUT, value); } - /** Unsafe version of {@link #indices(ShortBuffer) indices}. */ - public static void nindices(long struct, @Nullable ShortBuffer value) { memPutAddress(struct + XrSceneMeshIndicesUint16MSFT.INDICES, memAddressSafe(value)); if (value != null) { nindexCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint16MSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSceneMeshIndicesUint16MSFT.NEXT); } + /** Unsafe version of {@link #indexCapacityInput}. */ + public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint16MSFT.INDEXCAPACITYINPUT); } + /** Unsafe version of {@link #indexCountOutput}. */ + public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint16MSFT.INDEXCOUNTOUTPUT); } + /** Unsafe version of {@link #indices() indices}. */ + @Nullable public static ShortBuffer nindices(long struct) { return memShortBufferSafe(memGetAddress(struct + XrSceneMeshIndicesUint16MSFT.INDICES), nindexCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint16MSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneMeshIndicesUint16MSFT.NEXT, value); } + /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ + public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint16MSFT.INDEXCAPACITYINPUT, value); } + /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ + public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint16MSFT.INDEXCOUNTOUTPUT, value); } + /** Unsafe version of {@link #indices(ShortBuffer) indices}. */ + public static void nindices(long struct, @Nullable ShortBuffer value) { memPutAddress(struct + XrSceneMeshIndicesUint16MSFT.INDICES, memAddressSafe(value)); if (value != null) { nindexCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrSceneMeshIndicesUint16MSFT} 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 XrSceneMeshIndicesUint16MSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneMeshIndicesUint16MSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -330,36 +321,36 @@ protected Buffer self() { protected XrSceneMeshIndicesUint16MSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneMeshIndicesUint16MSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneMeshIndicesUint16MSFT.ntype(address()); } - /** @return the value of the {@link XrSceneMeshIndicesUint16MSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSceneMeshIndicesUint16MSFT.nnext(address()); } - /** @return the value of the {@link XrSceneMeshIndicesUint16MSFT#indexCapacityInput} field. */ - @NativeType("uint32_t") - public int indexCapacityInput() { return XrSceneMeshIndicesUint16MSFT.nindexCapacityInput(address()); } - /** @return the value of the {@link XrSceneMeshIndicesUint16MSFT#indexCountOutput} field. */ - @NativeType("uint32_t") - public int indexCountOutput() { return XrSceneMeshIndicesUint16MSFT.nindexCountOutput(address()); } - /** @return a {@link ShortBuffer} view of the data pointed to by the {@link XrSceneMeshIndicesUint16MSFT#indices} field. */ - @Nullable - @NativeType("uint16_t *") - public ShortBuffer indices() { return XrSceneMeshIndicesUint16MSFT.nindices(address()); } - - /** Sets the specified value to the {@link XrSceneMeshIndicesUint16MSFT#type} field. */ - public XrSceneMeshIndicesUint16MSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshIndicesUint16MSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT TYPE_SCENE_MESH_INDICES_UINT16_MSFT} value to the {@link XrSceneMeshIndicesUint16MSFT#type} field. */ - public XrSceneMeshIndicesUint16MSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT); } - /** Sets the specified value to the {@link XrSceneMeshIndicesUint16MSFT#next} field. */ - public XrSceneMeshIndicesUint16MSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshIndicesUint16MSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneMeshIndicesUint16MSFT#indexCapacityInput} field. */ - public XrSceneMeshIndicesUint16MSFT.Buffer indexCapacityInput(@NativeType("uint32_t") int value) { XrSceneMeshIndicesUint16MSFT.nindexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneMeshIndicesUint16MSFT#indexCountOutput} field. */ - public XrSceneMeshIndicesUint16MSFT.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrSceneMeshIndicesUint16MSFT.nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link ShortBuffer} to the {@link XrSceneMeshIndicesUint16MSFT#indices} field. */ - public XrSceneMeshIndicesUint16MSFT.Buffer indices(@Nullable @NativeType("uint16_t *") ShortBuffer value) { XrSceneMeshIndicesUint16MSFT.nindices(address(), value); return this; } + + /** @return the value of the {@link XrSceneMeshIndicesUint16MSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneMeshIndicesUint16MSFT.ntype(address()); } + /** @return the value of the {@link XrSceneMeshIndicesUint16MSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSceneMeshIndicesUint16MSFT.nnext(address()); } + /** @return the value of the {@link XrSceneMeshIndicesUint16MSFT#indexCapacityInput} field. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return XrSceneMeshIndicesUint16MSFT.nindexCapacityInput(address()); } + /** @return the value of the {@link XrSceneMeshIndicesUint16MSFT#indexCountOutput} field. */ + @NativeType("uint32_t") + public int indexCountOutput() { return XrSceneMeshIndicesUint16MSFT.nindexCountOutput(address()); } + /** @return a {@link ShortBuffer} view of the data pointed to by the {@link XrSceneMeshIndicesUint16MSFT#indices} field. */ + @Nullable + @NativeType("uint16_t *") + public ShortBuffer indices() { return XrSceneMeshIndicesUint16MSFT.nindices(address()); } + + /** Sets the specified value to the {@link XrSceneMeshIndicesUint16MSFT#type} field. */ + public XrSceneMeshIndicesUint16MSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshIndicesUint16MSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT TYPE_SCENE_MESH_INDICES_UINT16_MSFT} value to the {@link XrSceneMeshIndicesUint16MSFT#type} field. */ + public XrSceneMeshIndicesUint16MSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT); } + /** Sets the specified value to the {@link XrSceneMeshIndicesUint16MSFT#next} field. */ + public XrSceneMeshIndicesUint16MSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshIndicesUint16MSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneMeshIndicesUint16MSFT#indexCapacityInput} field. */ + public XrSceneMeshIndicesUint16MSFT.Buffer indexCapacityInput(@NativeType("uint32_t") int value) { XrSceneMeshIndicesUint16MSFT.nindexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneMeshIndicesUint16MSFT#indexCountOutput} field. */ + public XrSceneMeshIndicesUint16MSFT.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrSceneMeshIndicesUint16MSFT.nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link ShortBuffer} to the {@link XrSceneMeshIndicesUint16MSFT#indices} field. */ + public XrSceneMeshIndicesUint16MSFT.Buffer indices(@Nullable @NativeType("uint16_t *") ShortBuffer value) { XrSceneMeshIndicesUint16MSFT.nindices(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshIndicesUint32MSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshIndicesUint32MSFT.java index c60405ed82..0117143ddd 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshIndicesUint32MSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshIndicesUint32MSFT.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.*; + /** * Scene mesh 32-bit indices. * @@ -41,8 +41,8 @@ * uint32_t {@link #indexCountOutput}; * uint32_t * {@link #indices}; * } - */ -public class XrSceneMeshIndicesUint32MSFT extends Struct implements NativeResource { + */ +public class XrSceneMeshIndicesUint32MSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,38 +52,29 @@ public class XrSceneMeshIndicesUint32MSFT extends Structmust be returned in counter-clockwise order and three indices denote one triangle. */ - @Nullable - @NativeType("uint32_t *") - public IntBuffer indices() { return nindices(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSceneMeshIndicesUint32MSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT TYPE_SCENE_MESH_INDICES_UINT32_MSFT} value to the {@link #type} field. */ - public XrSceneMeshIndicesUint32MSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSceneMeshIndicesUint32MSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #indexCapacityInput} field. */ - public XrSceneMeshIndicesUint32MSFT indexCapacityInput(@NativeType("uint32_t") int value) { nindexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #indexCountOutput} field. */ - public XrSceneMeshIndicesUint32MSFT indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link #indices} field. */ - public XrSceneMeshIndicesUint32MSFT indices(@Nullable @NativeType("uint32_t *") IntBuffer value) { nindices(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 *") + public long next() { return nnext(address()); } + /** the capacity of the array, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return nindexCapacityInput(address()); } + /** a pointer to the count of indices, or a pointer to the required capacity in the case that {@code indexCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int indexCountOutput() { return nindexCountOutput(address()); } + /** an array of triangle indices filled in by the runtime, specifying the indices of the scene mesh buffer in the vertices array. The triangle indices must be returned in counter-clockwise order and three indices denote one triangle. */ + @Nullable + @NativeType("uint32_t *") + public IntBuffer indices() { return nindices(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSceneMeshIndicesUint32MSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT TYPE_SCENE_MESH_INDICES_UINT32_MSFT} value to the {@link #type} field. */ + public XrSceneMeshIndicesUint32MSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSceneMeshIndicesUint32MSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #indexCapacityInput} field. */ + public XrSceneMeshIndicesUint32MSFT indexCapacityInput(@NativeType("uint32_t") int value) { nindexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #indexCountOutput} field. */ + public XrSceneMeshIndicesUint32MSFT indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link #indices} field. */ + public XrSceneMeshIndicesUint32MSFT indices(@Nullable @NativeType("uint32_t *") IntBuffer value) { nindices(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneMeshIndicesUint32MSFT set( - int type, - long next, - int indexCapacityInput, - int indexCountOutput, + int type, + long next, + int indexCapacityInput, + int indexCountOutput, @Nullable IntBuffer indices - ) { - type(type); - next(next); - indexCapacityInput(indexCapacityInput); - indexCountOutput(indexCountOutput); - indices(indices); + ) { + type(type); + next(next); + indexCapacityInput(indexCapacityInput); + indexCountOutput(indexCountOutput); + indices(indices); return this; } @@ -162,29 +153,29 @@ public XrSceneMeshIndicesUint32MSFT set(XrSceneMeshIndicesUint32MSFT src) { /** Returns a new {@code XrSceneMeshIndicesUint32MSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSceneMeshIndicesUint32MSFT malloc() { - return new XrSceneMeshIndicesUint32MSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSceneMeshIndicesUint32MSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSceneMeshIndicesUint32MSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSceneMeshIndicesUint32MSFT calloc() { - return new XrSceneMeshIndicesUint32MSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSceneMeshIndicesUint32MSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSceneMeshIndicesUint32MSFT} instance allocated with {@link BufferUtils}. */ public static XrSceneMeshIndicesUint32MSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSceneMeshIndicesUint32MSFT(memAddress(container), container); + return wrap(XrSceneMeshIndicesUint32MSFT.class, memAddress(container), container); } /** Returns a new {@code XrSceneMeshIndicesUint32MSFT} instance for the specified memory address. */ public static XrSceneMeshIndicesUint32MSFT create(long address) { - return new XrSceneMeshIndicesUint32MSFT(address, null); + return wrap(XrSceneMeshIndicesUint32MSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSceneMeshIndicesUint32MSFT createSafe(long address) { - return address == NULL ? null : new XrSceneMeshIndicesUint32MSFT(address, null); + return address == NULL ? null : wrap(XrSceneMeshIndicesUint32MSFT.class, address); } /** @@ -193,7 +184,7 @@ public static XrSceneMeshIndicesUint32MSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSceneMeshIndicesUint32MSFT.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 XrSceneMeshIndicesUint32MSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSceneMeshIndicesUint32MSFT.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 XrSceneMeshIndicesUint32MSFT.Buffer calloc(int capacity) { */ public static XrSceneMeshIndicesUint32MSFT.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 XrSceneMeshIndicesUint32MSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSceneMeshIndicesUint32MSFT.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 XrSceneMeshIndicesUint32MSFT.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 XrSceneMeshIndicesUint32MSFT.Buffer createSafe(long address, int c * @param stack the stack from which to allocate */ public static XrSceneMeshIndicesUint32MSFT malloc(MemoryStack stack) { - return new XrSceneMeshIndicesUint32MSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSceneMeshIndicesUint32MSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -246,7 +237,7 @@ public static XrSceneMeshIndicesUint32MSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSceneMeshIndicesUint32MSFT calloc(MemoryStack stack) { - return new XrSceneMeshIndicesUint32MSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSceneMeshIndicesUint32MSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -256,7 +247,7 @@ public static XrSceneMeshIndicesUint32MSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneMeshIndicesUint32MSFT.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 XrSceneMeshIndicesUint32MSFT.Buffer malloc(int capacity, MemorySta * @param capacity the buffer capacity */ public static XrSceneMeshIndicesUint32MSFT.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 + XrSceneMeshIndicesUint32MSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSceneMeshIndicesUint32MSFT.NEXT); } - /** Unsafe version of {@link #indexCapacityInput}. */ - public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint32MSFT.INDEXCAPACITYINPUT); } - /** Unsafe version of {@link #indexCountOutput}. */ - public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint32MSFT.INDEXCOUNTOUTPUT); } - /** Unsafe version of {@link #indices() indices}. */ - @Nullable public static IntBuffer nindices(long struct) { return memIntBufferSafe(memGetAddress(struct + XrSceneMeshIndicesUint32MSFT.INDICES), nindexCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint32MSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneMeshIndicesUint32MSFT.NEXT, value); } - /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ - public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint32MSFT.INDEXCAPACITYINPUT, value); } - /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ - public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint32MSFT.INDEXCOUNTOUTPUT, value); } - /** Unsafe version of {@link #indices(IntBuffer) indices}. */ - public static void nindices(long struct, @Nullable IntBuffer value) { memPutAddress(struct + XrSceneMeshIndicesUint32MSFT.INDICES, memAddressSafe(value)); if (value != null) { nindexCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint32MSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSceneMeshIndicesUint32MSFT.NEXT); } + /** Unsafe version of {@link #indexCapacityInput}. */ + public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint32MSFT.INDEXCAPACITYINPUT); } + /** Unsafe version of {@link #indexCountOutput}. */ + public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint32MSFT.INDEXCOUNTOUTPUT); } + /** Unsafe version of {@link #indices() indices}. */ + @Nullable public static IntBuffer nindices(long struct) { return memIntBufferSafe(memGetAddress(struct + XrSceneMeshIndicesUint32MSFT.INDICES), nindexCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint32MSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneMeshIndicesUint32MSFT.NEXT, value); } + /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ + public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint32MSFT.INDEXCAPACITYINPUT, value); } + /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ + public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint32MSFT.INDEXCOUNTOUTPUT, value); } + /** Unsafe version of {@link #indices(IntBuffer) indices}. */ + public static void nindices(long struct, @Nullable IntBuffer value) { memPutAddress(struct + XrSceneMeshIndicesUint32MSFT.INDICES, memAddressSafe(value)); if (value != null) { nindexCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrSceneMeshIndicesUint32MSFT} 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 XrSceneMeshIndicesUint32MSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneMeshIndicesUint32MSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -330,36 +321,36 @@ protected Buffer self() { protected XrSceneMeshIndicesUint32MSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneMeshIndicesUint32MSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneMeshIndicesUint32MSFT.ntype(address()); } - /** @return the value of the {@link XrSceneMeshIndicesUint32MSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSceneMeshIndicesUint32MSFT.nnext(address()); } - /** @return the value of the {@link XrSceneMeshIndicesUint32MSFT#indexCapacityInput} field. */ - @NativeType("uint32_t") - public int indexCapacityInput() { return XrSceneMeshIndicesUint32MSFT.nindexCapacityInput(address()); } - /** @return the value of the {@link XrSceneMeshIndicesUint32MSFT#indexCountOutput} field. */ - @NativeType("uint32_t") - public int indexCountOutput() { return XrSceneMeshIndicesUint32MSFT.nindexCountOutput(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrSceneMeshIndicesUint32MSFT#indices} field. */ - @Nullable - @NativeType("uint32_t *") - public IntBuffer indices() { return XrSceneMeshIndicesUint32MSFT.nindices(address()); } - - /** Sets the specified value to the {@link XrSceneMeshIndicesUint32MSFT#type} field. */ - public XrSceneMeshIndicesUint32MSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshIndicesUint32MSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT TYPE_SCENE_MESH_INDICES_UINT32_MSFT} value to the {@link XrSceneMeshIndicesUint32MSFT#type} field. */ - public XrSceneMeshIndicesUint32MSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT); } - /** Sets the specified value to the {@link XrSceneMeshIndicesUint32MSFT#next} field. */ - public XrSceneMeshIndicesUint32MSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshIndicesUint32MSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneMeshIndicesUint32MSFT#indexCapacityInput} field. */ - public XrSceneMeshIndicesUint32MSFT.Buffer indexCapacityInput(@NativeType("uint32_t") int value) { XrSceneMeshIndicesUint32MSFT.nindexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneMeshIndicesUint32MSFT#indexCountOutput} field. */ - public XrSceneMeshIndicesUint32MSFT.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrSceneMeshIndicesUint32MSFT.nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrSceneMeshIndicesUint32MSFT#indices} field. */ - public XrSceneMeshIndicesUint32MSFT.Buffer indices(@Nullable @NativeType("uint32_t *") IntBuffer value) { XrSceneMeshIndicesUint32MSFT.nindices(address(), value); return this; } + + /** @return the value of the {@link XrSceneMeshIndicesUint32MSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneMeshIndicesUint32MSFT.ntype(address()); } + /** @return the value of the {@link XrSceneMeshIndicesUint32MSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSceneMeshIndicesUint32MSFT.nnext(address()); } + /** @return the value of the {@link XrSceneMeshIndicesUint32MSFT#indexCapacityInput} field. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return XrSceneMeshIndicesUint32MSFT.nindexCapacityInput(address()); } + /** @return the value of the {@link XrSceneMeshIndicesUint32MSFT#indexCountOutput} field. */ + @NativeType("uint32_t") + public int indexCountOutput() { return XrSceneMeshIndicesUint32MSFT.nindexCountOutput(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrSceneMeshIndicesUint32MSFT#indices} field. */ + @Nullable + @NativeType("uint32_t *") + public IntBuffer indices() { return XrSceneMeshIndicesUint32MSFT.nindices(address()); } + + /** Sets the specified value to the {@link XrSceneMeshIndicesUint32MSFT#type} field. */ + public XrSceneMeshIndicesUint32MSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshIndicesUint32MSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT TYPE_SCENE_MESH_INDICES_UINT32_MSFT} value to the {@link XrSceneMeshIndicesUint32MSFT#type} field. */ + public XrSceneMeshIndicesUint32MSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT); } + /** Sets the specified value to the {@link XrSceneMeshIndicesUint32MSFT#next} field. */ + public XrSceneMeshIndicesUint32MSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshIndicesUint32MSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneMeshIndicesUint32MSFT#indexCapacityInput} field. */ + public XrSceneMeshIndicesUint32MSFT.Buffer indexCapacityInput(@NativeType("uint32_t") int value) { XrSceneMeshIndicesUint32MSFT.nindexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneMeshIndicesUint32MSFT#indexCountOutput} field. */ + public XrSceneMeshIndicesUint32MSFT.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrSceneMeshIndicesUint32MSFT.nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrSceneMeshIndicesUint32MSFT#indices} field. */ + public XrSceneMeshIndicesUint32MSFT.Buffer indices(@Nullable @NativeType("uint32_t *") IntBuffer value) { XrSceneMeshIndicesUint32MSFT.nindices(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshMSFT.java index bfa772c4eb..566cc03e8d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshMSFT.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.*; + /** * Scene mesh. * @@ -35,8 +35,8 @@ * uint64_t {@link #meshBufferId}; * XrBool32 {@link #supportsIndicesUint16}; * } - */ -public class XrSceneMeshMSFT extends Struct implements NativeResource { + */ +public class XrSceneMeshMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -46,29 +46,20 @@ public class XrSceneMeshMSFT extends Struct implements NativeRe /** The struct member offsets. */ public static final int - MESHBUFFERID, - SUPPORTSINDICESUINT16; + MESHBUFFERID, + SUPPORTSINDICESUINT16; static { - Layout layout = __struct( - __member(8), + Layout layout = __struct( + __member(8), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - MESHBUFFERID = layout.offsetof(0); - SUPPORTSINDICESUINT16 = layout.offsetof(1); - } - - protected XrSceneMeshMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSceneMeshMSFT create(long address, @Nullable ByteBuffer container) { - return new XrSceneMeshMSFT(address, container); + MESHBUFFERID = layout.offsetof(0); + SUPPORTSINDICESUINT16 = layout.offsetof(1); } /** @@ -83,26 +74,26 @@ public XrSceneMeshMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code uint64_t} identifier that specifies the scene mesh buffer. If {@code meshBufferId} is zero then this scene component does not have mesh data of corresponding {@code XrSceneComponentTypeMSFT} in {@link MSFTSceneUnderstanding#xrGetSceneComponentsMSFT GetSceneComponentsMSFT}{@code ::getInfo}. */ - @NativeType("uint64_t") - public long meshBufferId() { return nmeshBufferId(address()); } - /** {@link XR10#XR_TRUE TRUE} if the mesh supports reading 16-bit unsigned indices. */ - @NativeType("XrBool32") - public boolean supportsIndicesUint16() { return nsupportsIndicesUint16(address()) != 0; } - - /** Sets the specified value to the {@link #meshBufferId} field. */ - public XrSceneMeshMSFT meshBufferId(@NativeType("uint64_t") long value) { nmeshBufferId(address(), value); return this; } - /** Sets the specified value to the {@link #supportsIndicesUint16} field. */ - public XrSceneMeshMSFT supportsIndicesUint16(@NativeType("XrBool32") boolean value) { nsupportsIndicesUint16(address(), value ? 1 : 0); return this; } + + /** the {@code uint64_t} identifier that specifies the scene mesh buffer. If {@code meshBufferId} is zero then this scene component does not have mesh data of corresponding {@code XrSceneComponentTypeMSFT} in {@link MSFTSceneUnderstanding#xrGetSceneComponentsMSFT GetSceneComponentsMSFT}{@code ::getInfo}. */ + @NativeType("uint64_t") + public long meshBufferId() { return nmeshBufferId(address()); } + /** {@link XR10#XR_TRUE TRUE} if the mesh supports reading 16-bit unsigned indices. */ + @NativeType("XrBool32") + public boolean supportsIndicesUint16() { return nsupportsIndicesUint16(address()) != 0; } + + /** Sets the specified value to the {@link #meshBufferId} field. */ + public XrSceneMeshMSFT meshBufferId(@NativeType("uint64_t") long value) { nmeshBufferId(address(), value); return this; } + /** Sets the specified value to the {@link #supportsIndicesUint16} field. */ + public XrSceneMeshMSFT supportsIndicesUint16(@NativeType("XrBool32") boolean value) { nsupportsIndicesUint16(address(), value ? 1 : 0); return this; } /** Initializes this struct with the specified values. */ public XrSceneMeshMSFT set( - long meshBufferId, + long meshBufferId, boolean supportsIndicesUint16 - ) { - meshBufferId(meshBufferId); - supportsIndicesUint16(supportsIndicesUint16); + ) { + meshBufferId(meshBufferId); + supportsIndicesUint16(supportsIndicesUint16); return this; } @@ -123,29 +114,29 @@ public XrSceneMeshMSFT set(XrSceneMeshMSFT src) { /** Returns a new {@code XrSceneMeshMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSceneMeshMSFT malloc() { - return new XrSceneMeshMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSceneMeshMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSceneMeshMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSceneMeshMSFT calloc() { - return new XrSceneMeshMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSceneMeshMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSceneMeshMSFT} instance allocated with {@link BufferUtils}. */ public static XrSceneMeshMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSceneMeshMSFT(memAddress(container), container); + return wrap(XrSceneMeshMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSceneMeshMSFT} instance for the specified memory address. */ public static XrSceneMeshMSFT create(long address) { - return new XrSceneMeshMSFT(address, null); + return wrap(XrSceneMeshMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSceneMeshMSFT createSafe(long address) { - return address == NULL ? null : new XrSceneMeshMSFT(address, null); + return address == NULL ? null : wrap(XrSceneMeshMSFT.class, address); } /** @@ -154,7 +145,7 @@ public static XrSceneMeshMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSceneMeshMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -163,7 +154,7 @@ public static XrSceneMeshMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSceneMeshMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -173,7 +164,7 @@ public static XrSceneMeshMSFT.Buffer calloc(int capacity) { */ public static XrSceneMeshMSFT.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); } /** @@ -183,13 +174,13 @@ public static XrSceneMeshMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSceneMeshMSFT.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 XrSceneMeshMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -198,7 +189,7 @@ public static XrSceneMeshMSFT.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrSceneMeshMSFT malloc(MemoryStack stack) { - return new XrSceneMeshMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSceneMeshMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -207,7 +198,7 @@ public static XrSceneMeshMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSceneMeshMSFT calloc(MemoryStack stack) { - return new XrSceneMeshMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSceneMeshMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -217,7 +208,7 @@ public static XrSceneMeshMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneMeshMSFT.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); } /** @@ -227,22 +218,22 @@ public static XrSceneMeshMSFT.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneMeshMSFT.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 #meshBufferId}. */ - public static long nmeshBufferId(long struct) { return UNSAFE.getLong(null, struct + XrSceneMeshMSFT.MESHBUFFERID); } - /** Unsafe version of {@link #supportsIndicesUint16}. */ - public static int nsupportsIndicesUint16(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshMSFT.SUPPORTSINDICESUINT16); } - - /** Unsafe version of {@link #meshBufferId(long) meshBufferId}. */ - public static void nmeshBufferId(long struct, long value) { UNSAFE.putLong(null, struct + XrSceneMeshMSFT.MESHBUFFERID, value); } - /** Unsafe version of {@link #supportsIndicesUint16(boolean) supportsIndicesUint16}. */ - public static void nsupportsIndicesUint16(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshMSFT.SUPPORTSINDICESUINT16, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #meshBufferId}. */ + public static long nmeshBufferId(long struct) { return UNSAFE.getLong(null, struct + XrSceneMeshMSFT.MESHBUFFERID); } + /** Unsafe version of {@link #supportsIndicesUint16}. */ + public static int nsupportsIndicesUint16(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshMSFT.SUPPORTSINDICESUINT16); } + + /** Unsafe version of {@link #meshBufferId(long) meshBufferId}. */ + public static void nmeshBufferId(long struct, long value) { UNSAFE.putLong(null, struct + XrSceneMeshMSFT.MESHBUFFERID, value); } + /** Unsafe version of {@link #supportsIndicesUint16(boolean) supportsIndicesUint16}. */ + public static void nsupportsIndicesUint16(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshMSFT.SUPPORTSINDICESUINT16, value); } + + // ----------------------------------- /** An array of {@link XrSceneMeshMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -252,9 +243,9 @@ public static class Buffer extends StructBuffer impleme /** * Creates a new {@code XrSceneMeshMSFT.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 XrSceneMeshMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneMeshMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -279,18 +270,18 @@ protected Buffer self() { protected XrSceneMeshMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneMeshMSFT#meshBufferId} field. */ - @NativeType("uint64_t") - public long meshBufferId() { return XrSceneMeshMSFT.nmeshBufferId(address()); } - /** @return the value of the {@link XrSceneMeshMSFT#supportsIndicesUint16} field. */ - @NativeType("XrBool32") - public boolean supportsIndicesUint16() { return XrSceneMeshMSFT.nsupportsIndicesUint16(address()) != 0; } - - /** Sets the specified value to the {@link XrSceneMeshMSFT#meshBufferId} field. */ - public XrSceneMeshMSFT.Buffer meshBufferId(@NativeType("uint64_t") long value) { XrSceneMeshMSFT.nmeshBufferId(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneMeshMSFT#supportsIndicesUint16} field. */ - public XrSceneMeshMSFT.Buffer supportsIndicesUint16(@NativeType("XrBool32") boolean value) { XrSceneMeshMSFT.nsupportsIndicesUint16(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrSceneMeshMSFT#meshBufferId} field. */ + @NativeType("uint64_t") + public long meshBufferId() { return XrSceneMeshMSFT.nmeshBufferId(address()); } + /** @return the value of the {@link XrSceneMeshMSFT#supportsIndicesUint16} field. */ + @NativeType("XrBool32") + public boolean supportsIndicesUint16() { return XrSceneMeshMSFT.nsupportsIndicesUint16(address()) != 0; } + + /** Sets the specified value to the {@link XrSceneMeshMSFT#meshBufferId} field. */ + public XrSceneMeshMSFT.Buffer meshBufferId(@NativeType("uint64_t") long value) { XrSceneMeshMSFT.nmeshBufferId(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneMeshMSFT#supportsIndicesUint16} field. */ + public XrSceneMeshMSFT.Buffer supportsIndicesUint16(@NativeType("XrBool32") boolean value) { XrSceneMeshMSFT.nsupportsIndicesUint16(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshVertexBufferMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshVertexBufferMSFT.java index e50e69ae9c..0de6d8655d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshVertexBufferMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshVertexBufferMSFT.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.*; + /** * Scene mesh vertex buffer. * @@ -41,8 +41,8 @@ * uint32_t {@link #vertexCountOutput}; * {@link XrVector3f XrVector3f} * {@link #vertices}; * } - */ -public class XrSceneMeshVertexBufferMSFT extends Struct implements NativeResource { + */ +public class XrSceneMeshVertexBufferMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,38 +52,29 @@ public class XrSceneMeshVertexBufferMSFT extends Struct 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 XrSceneMeshVertexBufferMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneMeshVertexBufferMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -330,36 +321,36 @@ protected Buffer self() { protected XrSceneMeshVertexBufferMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneMeshVertexBufferMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneMeshVertexBufferMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneMeshVertexBufferMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSceneMeshVertexBufferMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneMeshVertexBufferMSFT#vertexCapacityInput} field. */ - @NativeType("uint32_t") - public int vertexCapacityInput() { return XrSceneMeshVertexBufferMSFT.nvertexCapacityInput(address()); } - /** @return the value of the {@link XrSceneMeshVertexBufferMSFT#vertexCountOutput} field. */ - @NativeType("uint32_t") - public int vertexCountOutput() { return XrSceneMeshVertexBufferMSFT.nvertexCountOutput(address()); } - /** @return a {@link XrVector3f.Buffer} view of the struct array pointed to by the {@link XrSceneMeshVertexBufferMSFT#vertices} field. */ - @Nullable - @NativeType("XrVector3f *") - public XrVector3f.Buffer vertices() { return XrSceneMeshVertexBufferMSFT.nvertices(address()); } - - /** Sets the specified value to the {@link XrSceneMeshVertexBufferMSFT#type} field. */ - public XrSceneMeshVertexBufferMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshVertexBufferMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_VERTEX_BUFFER_MSFT TYPE_SCENE_MESH_VERTEX_BUFFER_MSFT} value to the {@link XrSceneMeshVertexBufferMSFT#type} field. */ - public XrSceneMeshVertexBufferMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_VERTEX_BUFFER_MSFT); } - /** Sets the specified value to the {@link XrSceneMeshVertexBufferMSFT#next} field. */ - public XrSceneMeshVertexBufferMSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshVertexBufferMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneMeshVertexBufferMSFT#vertexCapacityInput} field. */ - public XrSceneMeshVertexBufferMSFT.Buffer vertexCapacityInput(@NativeType("uint32_t") int value) { XrSceneMeshVertexBufferMSFT.nvertexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneMeshVertexBufferMSFT#vertexCountOutput} field. */ - public XrSceneMeshVertexBufferMSFT.Buffer vertexCountOutput(@NativeType("uint32_t") int value) { XrSceneMeshVertexBufferMSFT.nvertexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link XrSceneMeshVertexBufferMSFT#vertices} field. */ - public XrSceneMeshVertexBufferMSFT.Buffer vertices(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { XrSceneMeshVertexBufferMSFT.nvertices(address(), value); return this; } + + /** @return the value of the {@link XrSceneMeshVertexBufferMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneMeshVertexBufferMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneMeshVertexBufferMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSceneMeshVertexBufferMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneMeshVertexBufferMSFT#vertexCapacityInput} field. */ + @NativeType("uint32_t") + public int vertexCapacityInput() { return XrSceneMeshVertexBufferMSFT.nvertexCapacityInput(address()); } + /** @return the value of the {@link XrSceneMeshVertexBufferMSFT#vertexCountOutput} field. */ + @NativeType("uint32_t") + public int vertexCountOutput() { return XrSceneMeshVertexBufferMSFT.nvertexCountOutput(address()); } + /** @return a {@link XrVector3f.Buffer} view of the struct array pointed to by the {@link XrSceneMeshVertexBufferMSFT#vertices} field. */ + @Nullable + @NativeType("XrVector3f *") + public XrVector3f.Buffer vertices() { return XrSceneMeshVertexBufferMSFT.nvertices(address()); } + + /** Sets the specified value to the {@link XrSceneMeshVertexBufferMSFT#type} field. */ + public XrSceneMeshVertexBufferMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshVertexBufferMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_VERTEX_BUFFER_MSFT TYPE_SCENE_MESH_VERTEX_BUFFER_MSFT} value to the {@link XrSceneMeshVertexBufferMSFT#type} field. */ + public XrSceneMeshVertexBufferMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_VERTEX_BUFFER_MSFT); } + /** Sets the specified value to the {@link XrSceneMeshVertexBufferMSFT#next} field. */ + public XrSceneMeshVertexBufferMSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshVertexBufferMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneMeshVertexBufferMSFT#vertexCapacityInput} field. */ + public XrSceneMeshVertexBufferMSFT.Buffer vertexCapacityInput(@NativeType("uint32_t") int value) { XrSceneMeshVertexBufferMSFT.nvertexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneMeshVertexBufferMSFT#vertexCountOutput} field. */ + public XrSceneMeshVertexBufferMSFT.Buffer vertexCountOutput(@NativeType("uint32_t") int value) { XrSceneMeshVertexBufferMSFT.nvertexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link XrSceneMeshVertexBufferMSFT#vertices} field. */ + public XrSceneMeshVertexBufferMSFT.Buffer vertices(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { XrSceneMeshVertexBufferMSFT.nvertices(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshesMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshesMSFT.java index 2856567f00..ab878fb4e2 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshesMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshesMSFT.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.*; + /** * Scene meshes. * @@ -40,8 +40,8 @@ * uint32_t {@link #sceneMeshCount}; * {@link XrSceneMeshMSFT XrSceneMeshMSFT} * {@link #sceneMeshes}; * } - */ -public class XrSceneMeshesMSFT extends Struct implements NativeResource { + */ +public class XrSceneMeshesMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,35 +51,26 @@ public class XrSceneMeshesMSFT extends Struct implements Nati /** The struct member offsets. */ public static final int - TYPE, - NEXT, - SCENEMESHCOUNT, - SCENEMESHES; + TYPE, + NEXT, + SCENEMESHCOUNT, + SCENEMESHES; 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); - SCENEMESHCOUNT = layout.offsetof(2); - SCENEMESHES = layout.offsetof(3); - } - - protected XrSceneMeshesMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSceneMeshesMSFT create(long address, @Nullable ByteBuffer container) { - return new XrSceneMeshesMSFT(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + SCENEMESHCOUNT = layout.offsetof(2); + SCENEMESHES = layout.offsetof(3); } /** @@ -94,43 +85,43 @@ public XrSceneMeshesMSFT(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 *") - public long next() { return nnext(address()); } - /** a {@code uint32_t} describing the count of elements in the {@code sceneMeshes} array. */ - @NativeType("uint32_t") - public int sceneMeshCount() { return nsceneMeshCount(address()); } - /** an array of {@link XrSceneMeshMSFT}. */ - @Nullable - @NativeType("XrSceneMeshMSFT *") - public XrSceneMeshMSFT.Buffer sceneMeshes() { return nsceneMeshes(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSceneMeshesMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESHES_MSFT TYPE_SCENE_MESHES_MSFT} value to the {@link #type} field. */ - public XrSceneMeshesMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESHES_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSceneMeshesMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #sceneMeshCount} field. */ - public XrSceneMeshesMSFT sceneMeshCount(@NativeType("uint32_t") int value) { nsceneMeshCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneMeshMSFT.Buffer} to the {@link #sceneMeshes} field. */ - public XrSceneMeshesMSFT sceneMeshes(@Nullable @NativeType("XrSceneMeshMSFT *") XrSceneMeshMSFT.Buffer value) { nsceneMeshes(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 *") + public long next() { return nnext(address()); } + /** a {@code uint32_t} describing the count of elements in the {@code sceneMeshes} array. */ + @NativeType("uint32_t") + public int sceneMeshCount() { return nsceneMeshCount(address()); } + /** an array of {@link XrSceneMeshMSFT}. */ + @Nullable + @NativeType("XrSceneMeshMSFT *") + public XrSceneMeshMSFT.Buffer sceneMeshes() { return nsceneMeshes(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSceneMeshesMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESHES_MSFT TYPE_SCENE_MESHES_MSFT} value to the {@link #type} field. */ + public XrSceneMeshesMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESHES_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSceneMeshesMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #sceneMeshCount} field. */ + public XrSceneMeshesMSFT sceneMeshCount(@NativeType("uint32_t") int value) { nsceneMeshCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneMeshMSFT.Buffer} to the {@link #sceneMeshes} field. */ + public XrSceneMeshesMSFT sceneMeshes(@Nullable @NativeType("XrSceneMeshMSFT *") XrSceneMeshMSFT.Buffer value) { nsceneMeshes(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneMeshesMSFT set( - int type, - long next, - int sceneMeshCount, + int type, + long next, + int sceneMeshCount, @Nullable XrSceneMeshMSFT.Buffer sceneMeshes - ) { - type(type); - next(next); - sceneMeshCount(sceneMeshCount); - sceneMeshes(sceneMeshes); + ) { + type(type); + next(next); + sceneMeshCount(sceneMeshCount); + sceneMeshes(sceneMeshes); return this; } @@ -151,29 +142,29 @@ public XrSceneMeshesMSFT set(XrSceneMeshesMSFT src) { /** Returns a new {@code XrSceneMeshesMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSceneMeshesMSFT malloc() { - return new XrSceneMeshesMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSceneMeshesMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSceneMeshesMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSceneMeshesMSFT calloc() { - return new XrSceneMeshesMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSceneMeshesMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSceneMeshesMSFT} instance allocated with {@link BufferUtils}. */ public static XrSceneMeshesMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSceneMeshesMSFT(memAddress(container), container); + return wrap(XrSceneMeshesMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSceneMeshesMSFT} instance for the specified memory address. */ public static XrSceneMeshesMSFT create(long address) { - return new XrSceneMeshesMSFT(address, null); + return wrap(XrSceneMeshesMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSceneMeshesMSFT createSafe(long address) { - return address == NULL ? null : new XrSceneMeshesMSFT(address, null); + return address == NULL ? null : wrap(XrSceneMeshesMSFT.class, address); } /** @@ -182,7 +173,7 @@ public static XrSceneMeshesMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSceneMeshesMSFT.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 XrSceneMeshesMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSceneMeshesMSFT.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 XrSceneMeshesMSFT.Buffer calloc(int capacity) { */ public static XrSceneMeshesMSFT.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 XrSceneMeshesMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSceneMeshesMSFT.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 XrSceneMeshesMSFT.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 XrSceneMeshesMSFT.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrSceneMeshesMSFT malloc(MemoryStack stack) { - return new XrSceneMeshesMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSceneMeshesMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -235,7 +226,7 @@ public static XrSceneMeshesMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSceneMeshesMSFT calloc(MemoryStack stack) { - return new XrSceneMeshesMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSceneMeshesMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -245,7 +236,7 @@ public static XrSceneMeshesMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneMeshesMSFT.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 XrSceneMeshesMSFT.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneMeshesMSFT.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 + XrSceneMeshesMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSceneMeshesMSFT.NEXT); } - /** Unsafe version of {@link #sceneMeshCount}. */ - public static int nsceneMeshCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshesMSFT.SCENEMESHCOUNT); } - /** Unsafe version of {@link #sceneMeshes}. */ - @Nullable public static XrSceneMeshMSFT.Buffer nsceneMeshes(long struct) { return XrSceneMeshMSFT.createSafe(memGetAddress(struct + XrSceneMeshesMSFT.SCENEMESHES), nsceneMeshCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshesMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneMeshesMSFT.NEXT, value); } - /** Sets the specified value to the {@code sceneMeshCount} field of the specified {@code struct}. */ - public static void nsceneMeshCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshesMSFT.SCENEMESHCOUNT, value); } - /** Unsafe version of {@link #sceneMeshes(XrSceneMeshMSFT.Buffer) sceneMeshes}. */ - public static void nsceneMeshes(long struct, @Nullable XrSceneMeshMSFT.Buffer value) { memPutAddress(struct + XrSceneMeshesMSFT.SCENEMESHES, memAddressSafe(value)); if (value != null) { nsceneMeshCount(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshesMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSceneMeshesMSFT.NEXT); } + /** Unsafe version of {@link #sceneMeshCount}. */ + public static int nsceneMeshCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshesMSFT.SCENEMESHCOUNT); } + /** Unsafe version of {@link #sceneMeshes}. */ + @Nullable public static XrSceneMeshMSFT.Buffer nsceneMeshes(long struct) { return XrSceneMeshMSFT.createSafe(memGetAddress(struct + XrSceneMeshesMSFT.SCENEMESHES), nsceneMeshCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshesMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneMeshesMSFT.NEXT, value); } + /** Sets the specified value to the {@code sceneMeshCount} field of the specified {@code struct}. */ + public static void nsceneMeshCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshesMSFT.SCENEMESHCOUNT, value); } + /** Unsafe version of {@link #sceneMeshes(XrSceneMeshMSFT.Buffer) sceneMeshes}. */ + public static void nsceneMeshes(long struct, @Nullable XrSceneMeshMSFT.Buffer value) { memPutAddress(struct + XrSceneMeshesMSFT.SCENEMESHES, memAddressSafe(value)); if (value != null) { nsceneMeshCount(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrSceneMeshesMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -288,9 +279,9 @@ public static class Buffer extends StructBuffer imple /** * Creates a new {@code XrSceneMeshesMSFT.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 XrSceneMeshesMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneMeshesMSFT#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 XrSceneMeshesMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneMeshesMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneMeshesMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneMeshesMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSceneMeshesMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneMeshesMSFT#sceneMeshCount} field. */ - @NativeType("uint32_t") - public int sceneMeshCount() { return XrSceneMeshesMSFT.nsceneMeshCount(address()); } - /** @return a {@link XrSceneMeshMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneMeshesMSFT#sceneMeshes} field. */ - @Nullable - @NativeType("XrSceneMeshMSFT *") - public XrSceneMeshMSFT.Buffer sceneMeshes() { return XrSceneMeshesMSFT.nsceneMeshes(address()); } - - /** Sets the specified value to the {@link XrSceneMeshesMSFT#type} field. */ - public XrSceneMeshesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshesMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESHES_MSFT TYPE_SCENE_MESHES_MSFT} value to the {@link XrSceneMeshesMSFT#type} field. */ - public XrSceneMeshesMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESHES_MSFT); } - /** Sets the specified value to the {@link XrSceneMeshesMSFT#next} field. */ - public XrSceneMeshesMSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshesMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneMeshesMSFT#sceneMeshCount} field. */ - public XrSceneMeshesMSFT.Buffer sceneMeshCount(@NativeType("uint32_t") int value) { XrSceneMeshesMSFT.nsceneMeshCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneMeshMSFT.Buffer} to the {@link XrSceneMeshesMSFT#sceneMeshes} field. */ - public XrSceneMeshesMSFT.Buffer sceneMeshes(@Nullable @NativeType("XrSceneMeshMSFT *") XrSceneMeshMSFT.Buffer value) { XrSceneMeshesMSFT.nsceneMeshes(address(), value); return this; } + + /** @return the value of the {@link XrSceneMeshesMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneMeshesMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneMeshesMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSceneMeshesMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneMeshesMSFT#sceneMeshCount} field. */ + @NativeType("uint32_t") + public int sceneMeshCount() { return XrSceneMeshesMSFT.nsceneMeshCount(address()); } + /** @return a {@link XrSceneMeshMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneMeshesMSFT#sceneMeshes} field. */ + @Nullable + @NativeType("XrSceneMeshMSFT *") + public XrSceneMeshMSFT.Buffer sceneMeshes() { return XrSceneMeshesMSFT.nsceneMeshes(address()); } + + /** Sets the specified value to the {@link XrSceneMeshesMSFT#type} field. */ + public XrSceneMeshesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshesMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESHES_MSFT TYPE_SCENE_MESHES_MSFT} value to the {@link XrSceneMeshesMSFT#type} field. */ + public XrSceneMeshesMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESHES_MSFT); } + /** Sets the specified value to the {@link XrSceneMeshesMSFT#next} field. */ + public XrSceneMeshesMSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshesMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneMeshesMSFT#sceneMeshCount} field. */ + public XrSceneMeshesMSFT.Buffer sceneMeshCount(@NativeType("uint32_t") int value) { XrSceneMeshesMSFT.nsceneMeshCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneMeshMSFT.Buffer} to the {@link XrSceneMeshesMSFT#sceneMeshes} field. */ + public XrSceneMeshesMSFT.Buffer sceneMeshes(@Nullable @NativeType("XrSceneMeshMSFT *") XrSceneMeshMSFT.Buffer value) { XrSceneMeshesMSFT.nsceneMeshes(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectMSFT.java index 3a0b99cdec..03a415953e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectMSFT.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.*; + /** * Scene object. * @@ -35,8 +35,8 @@ * struct XrSceneObjectMSFT { * XrSceneObjectTypeMSFT {@link #objectType}; * } - */ -public class XrSceneObjectMSFT extends Struct implements NativeResource { + */ +public class XrSceneObjectMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -46,26 +46,17 @@ public class XrSceneObjectMSFT extends Struct implements Nati /** The struct member offsets. */ public static final int - OBJECTTYPE; + OBJECTTYPE; static { - Layout layout = __struct( + Layout layout = __struct( __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - OBJECTTYPE = layout.offsetof(0); - } - - protected XrSceneObjectMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSceneObjectMSFT create(long address, @Nullable ByteBuffer container) { - return new XrSceneObjectMSFT(address, container); + OBJECTTYPE = layout.offsetof(0); } /** @@ -80,13 +71,13 @@ public XrSceneObjectMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the type of the object specified by {@code XrSceneObjectTypeMSFT}. */ - @NativeType("XrSceneObjectTypeMSFT") - public int objectType() { return nobjectType(address()); } - - /** Sets the specified value to the {@link #objectType} field. */ - public XrSceneObjectMSFT objectType(@NativeType("XrSceneObjectTypeMSFT") int value) { nobjectType(address(), value); return this; } + + /** the type of the object specified by {@code XrSceneObjectTypeMSFT}. */ + @NativeType("XrSceneObjectTypeMSFT") + public int objectType() { return nobjectType(address()); } + + /** Sets the specified value to the {@link #objectType} field. */ + public XrSceneObjectMSFT objectType(@NativeType("XrSceneObjectTypeMSFT") int value) { nobjectType(address(), value); return this; } /** * Copies the specified struct data to this struct. @@ -104,29 +95,29 @@ public XrSceneObjectMSFT set(XrSceneObjectMSFT src) { /** Returns a new {@code XrSceneObjectMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSceneObjectMSFT malloc() { - return new XrSceneObjectMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSceneObjectMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSceneObjectMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSceneObjectMSFT calloc() { - return new XrSceneObjectMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSceneObjectMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSceneObjectMSFT} instance allocated with {@link BufferUtils}. */ public static XrSceneObjectMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSceneObjectMSFT(memAddress(container), container); + return wrap(XrSceneObjectMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSceneObjectMSFT} instance for the specified memory address. */ public static XrSceneObjectMSFT create(long address) { - return new XrSceneObjectMSFT(address, null); + return wrap(XrSceneObjectMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSceneObjectMSFT createSafe(long address) { - return address == NULL ? null : new XrSceneObjectMSFT(address, null); + return address == NULL ? null : wrap(XrSceneObjectMSFT.class, address); } /** @@ -135,7 +126,7 @@ public static XrSceneObjectMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSceneObjectMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -144,7 +135,7 @@ public static XrSceneObjectMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSceneObjectMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -154,7 +145,7 @@ public static XrSceneObjectMSFT.Buffer calloc(int capacity) { */ public static XrSceneObjectMSFT.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); } /** @@ -164,13 +155,13 @@ public static XrSceneObjectMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSceneObjectMSFT.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 XrSceneObjectMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -179,7 +170,7 @@ public static XrSceneObjectMSFT.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrSceneObjectMSFT malloc(MemoryStack stack) { - return new XrSceneObjectMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSceneObjectMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -188,7 +179,7 @@ public static XrSceneObjectMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSceneObjectMSFT calloc(MemoryStack stack) { - return new XrSceneObjectMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSceneObjectMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -198,7 +189,7 @@ public static XrSceneObjectMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneObjectMSFT.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); } /** @@ -208,18 +199,18 @@ public static XrSceneObjectMSFT.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneObjectMSFT.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 #objectType}. */ - public static int nobjectType(long struct) { return UNSAFE.getInt(null, struct + XrSceneObjectMSFT.OBJECTTYPE); } - - /** Unsafe version of {@link #objectType(int) objectType}. */ - public static void nobjectType(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneObjectMSFT.OBJECTTYPE, value); } - // ----------------------------------- + /** Unsafe version of {@link #objectType}. */ + public static int nobjectType(long struct) { return UNSAFE.getInt(null, struct + XrSceneObjectMSFT.OBJECTTYPE); } + + /** Unsafe version of {@link #objectType(int) objectType}. */ + public static void nobjectType(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneObjectMSFT.OBJECTTYPE, value); } + + // ----------------------------------- /** An array of {@link XrSceneObjectMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -229,9 +220,9 @@ public static class Buffer extends StructBuffer imple /** * Creates a new {@code XrSceneObjectMSFT.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 XrSceneObjectMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneObjectMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -256,13 +247,13 @@ protected Buffer self() { protected XrSceneObjectMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneObjectMSFT#objectType} field. */ - @NativeType("XrSceneObjectTypeMSFT") - public int objectType() { return XrSceneObjectMSFT.nobjectType(address()); } - - /** Sets the specified value to the {@link XrSceneObjectMSFT#objectType} field. */ - public XrSceneObjectMSFT.Buffer objectType(@NativeType("XrSceneObjectTypeMSFT") int value) { XrSceneObjectMSFT.nobjectType(address(), value); return this; } + + /** @return the value of the {@link XrSceneObjectMSFT#objectType} field. */ + @NativeType("XrSceneObjectTypeMSFT") + public int objectType() { return XrSceneObjectMSFT.nobjectType(address()); } + + /** Sets the specified value to the {@link XrSceneObjectMSFT#objectType} field. */ + public XrSceneObjectMSFT.Buffer objectType(@NativeType("XrSceneObjectTypeMSFT") int value) { XrSceneObjectMSFT.nobjectType(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectTypesFilterInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectTypesFilterInfoMSFT.java index 8c9dbfe5a9..7e9b6173e7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectTypesFilterInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectTypesFilterInfoMSFT.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.*; + /** * Scene object types filter. * @@ -44,8 +44,8 @@ * uint32_t {@link #objectTypeCount}; * XrSceneObjectTypeMSFT const * {@link #objectTypes}; * } - */ -public class XrSceneObjectTypesFilterInfoMSFT extends Struct implements NativeResource { + */ +public class XrSceneObjectTypesFilterInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,35 +55,26 @@ public class XrSceneObjectTypesFilterInfoMSFT extends Struct implements NativeResource { @@ -292,9 +283,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 XrSceneObjectTypesFilterInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneObjectTypesFilterInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -319,31 +310,31 @@ protected Buffer self() { protected XrSceneObjectTypesFilterInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneObjectTypesFilterInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneObjectTypesFilterInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneObjectTypesFilterInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSceneObjectTypesFilterInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneObjectTypesFilterInfoMSFT#objectTypeCount} field. */ - @NativeType("uint32_t") - public int objectTypeCount() { return XrSceneObjectTypesFilterInfoMSFT.nobjectTypeCount(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrSceneObjectTypesFilterInfoMSFT#objectTypes} field. */ - @Nullable - @NativeType("XrSceneObjectTypeMSFT const *") - public IntBuffer objectTypes() { return XrSceneObjectTypesFilterInfoMSFT.nobjectTypes(address()); } - - /** Sets the specified value to the {@link XrSceneObjectTypesFilterInfoMSFT#type} field. */ - public XrSceneObjectTypesFilterInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneObjectTypesFilterInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_OBJECT_TYPES_FILTER_INFO_MSFT TYPE_SCENE_OBJECT_TYPES_FILTER_INFO_MSFT} value to the {@link XrSceneObjectTypesFilterInfoMSFT#type} field. */ - public XrSceneObjectTypesFilterInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_OBJECT_TYPES_FILTER_INFO_MSFT); } - /** Sets the specified value to the {@link XrSceneObjectTypesFilterInfoMSFT#next} field. */ - public XrSceneObjectTypesFilterInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneObjectTypesFilterInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneObjectTypesFilterInfoMSFT#objectTypeCount} field. */ - public XrSceneObjectTypesFilterInfoMSFT.Buffer objectTypeCount(@NativeType("uint32_t") int value) { XrSceneObjectTypesFilterInfoMSFT.nobjectTypeCount(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrSceneObjectTypesFilterInfoMSFT#objectTypes} field. */ - public XrSceneObjectTypesFilterInfoMSFT.Buffer objectTypes(@Nullable @NativeType("XrSceneObjectTypeMSFT const *") IntBuffer value) { XrSceneObjectTypesFilterInfoMSFT.nobjectTypes(address(), value); return this; } + + /** @return the value of the {@link XrSceneObjectTypesFilterInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneObjectTypesFilterInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneObjectTypesFilterInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSceneObjectTypesFilterInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneObjectTypesFilterInfoMSFT#objectTypeCount} field. */ + @NativeType("uint32_t") + public int objectTypeCount() { return XrSceneObjectTypesFilterInfoMSFT.nobjectTypeCount(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrSceneObjectTypesFilterInfoMSFT#objectTypes} field. */ + @Nullable + @NativeType("XrSceneObjectTypeMSFT const *") + public IntBuffer objectTypes() { return XrSceneObjectTypesFilterInfoMSFT.nobjectTypes(address()); } + + /** Sets the specified value to the {@link XrSceneObjectTypesFilterInfoMSFT#type} field. */ + public XrSceneObjectTypesFilterInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneObjectTypesFilterInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_OBJECT_TYPES_FILTER_INFO_MSFT TYPE_SCENE_OBJECT_TYPES_FILTER_INFO_MSFT} value to the {@link XrSceneObjectTypesFilterInfoMSFT#type} field. */ + public XrSceneObjectTypesFilterInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_OBJECT_TYPES_FILTER_INFO_MSFT); } + /** Sets the specified value to the {@link XrSceneObjectTypesFilterInfoMSFT#next} field. */ + public XrSceneObjectTypesFilterInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneObjectTypesFilterInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneObjectTypesFilterInfoMSFT#objectTypeCount} field. */ + public XrSceneObjectTypesFilterInfoMSFT.Buffer objectTypeCount(@NativeType("uint32_t") int value) { XrSceneObjectTypesFilterInfoMSFT.nobjectTypeCount(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrSceneObjectTypesFilterInfoMSFT#objectTypes} field. */ + public XrSceneObjectTypesFilterInfoMSFT.Buffer objectTypes(@Nullable @NativeType("XrSceneObjectTypeMSFT const *") IntBuffer value) { XrSceneObjectTypesFilterInfoMSFT.nobjectTypes(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectsMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectsMSFT.java index 4b7dd16c2c..6cc8ff9e0c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectsMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectsMSFT.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.*; + /** * Scene objects. * @@ -54,8 +54,8 @@ * uint32_t {@link #sceneObjectCount}; * {@link XrSceneObjectMSFT XrSceneObjectMSFT} * {@link #sceneObjects}; * } - */ -public class XrSceneObjectsMSFT extends Struct implements NativeResource { + */ +public class XrSceneObjectsMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -65,35 +65,26 @@ public class XrSceneObjectsMSFT extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT, - SCENEOBJECTCOUNT, - SCENEOBJECTS; + TYPE, + NEXT, + SCENEOBJECTCOUNT, + SCENEOBJECTS; 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); - SCENEOBJECTCOUNT = layout.offsetof(2); - SCENEOBJECTS = layout.offsetof(3); - } - - protected XrSceneObjectsMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSceneObjectsMSFT create(long address, @Nullable ByteBuffer container) { - return new XrSceneObjectsMSFT(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + SCENEOBJECTCOUNT = layout.offsetof(2); + SCENEOBJECTS = layout.offsetof(3); } /** @@ -108,43 +99,43 @@ public XrSceneObjectsMSFT(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 *") - public long next() { return nnext(address()); } - /** a {@code uint32_t} describing the count of elements in the {@code sceneObjects} array. */ - @NativeType("uint32_t") - public int sceneObjectCount() { return nsceneObjectCount(address()); } - /** an array of {@link XrSceneObjectMSFT}. */ - @Nullable - @NativeType("XrSceneObjectMSFT *") - public XrSceneObjectMSFT.Buffer sceneObjects() { return nsceneObjects(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSceneObjectsMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_OBJECTS_MSFT TYPE_SCENE_OBJECTS_MSFT} value to the {@link #type} field. */ - public XrSceneObjectsMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_OBJECTS_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSceneObjectsMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #sceneObjectCount} field. */ - public XrSceneObjectsMSFT sceneObjectCount(@NativeType("uint32_t") int value) { nsceneObjectCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneObjectMSFT.Buffer} to the {@link #sceneObjects} field. */ - public XrSceneObjectsMSFT sceneObjects(@Nullable @NativeType("XrSceneObjectMSFT *") XrSceneObjectMSFT.Buffer value) { nsceneObjects(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 *") + public long next() { return nnext(address()); } + /** a {@code uint32_t} describing the count of elements in the {@code sceneObjects} array. */ + @NativeType("uint32_t") + public int sceneObjectCount() { return nsceneObjectCount(address()); } + /** an array of {@link XrSceneObjectMSFT}. */ + @Nullable + @NativeType("XrSceneObjectMSFT *") + public XrSceneObjectMSFT.Buffer sceneObjects() { return nsceneObjects(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSceneObjectsMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_OBJECTS_MSFT TYPE_SCENE_OBJECTS_MSFT} value to the {@link #type} field. */ + public XrSceneObjectsMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_OBJECTS_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSceneObjectsMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #sceneObjectCount} field. */ + public XrSceneObjectsMSFT sceneObjectCount(@NativeType("uint32_t") int value) { nsceneObjectCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneObjectMSFT.Buffer} to the {@link #sceneObjects} field. */ + public XrSceneObjectsMSFT sceneObjects(@Nullable @NativeType("XrSceneObjectMSFT *") XrSceneObjectMSFT.Buffer value) { nsceneObjects(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneObjectsMSFT set( - int type, - long next, - int sceneObjectCount, + int type, + long next, + int sceneObjectCount, @Nullable XrSceneObjectMSFT.Buffer sceneObjects - ) { - type(type); - next(next); - sceneObjectCount(sceneObjectCount); - sceneObjects(sceneObjects); + ) { + type(type); + next(next); + sceneObjectCount(sceneObjectCount); + sceneObjects(sceneObjects); return this; } @@ -165,29 +156,29 @@ public XrSceneObjectsMSFT set(XrSceneObjectsMSFT src) { /** Returns a new {@code XrSceneObjectsMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSceneObjectsMSFT malloc() { - return new XrSceneObjectsMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSceneObjectsMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSceneObjectsMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSceneObjectsMSFT calloc() { - return new XrSceneObjectsMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSceneObjectsMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSceneObjectsMSFT} instance allocated with {@link BufferUtils}. */ public static XrSceneObjectsMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSceneObjectsMSFT(memAddress(container), container); + return wrap(XrSceneObjectsMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSceneObjectsMSFT} instance for the specified memory address. */ public static XrSceneObjectsMSFT create(long address) { - return new XrSceneObjectsMSFT(address, null); + return wrap(XrSceneObjectsMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSceneObjectsMSFT createSafe(long address) { - return address == NULL ? null : new XrSceneObjectsMSFT(address, null); + return address == NULL ? null : wrap(XrSceneObjectsMSFT.class, address); } /** @@ -196,7 +187,7 @@ public static XrSceneObjectsMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSceneObjectsMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -205,7 +196,7 @@ public static XrSceneObjectsMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSceneObjectsMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -215,7 +206,7 @@ public static XrSceneObjectsMSFT.Buffer calloc(int capacity) { */ public static XrSceneObjectsMSFT.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); } /** @@ -225,13 +216,13 @@ public static XrSceneObjectsMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSceneObjectsMSFT.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 XrSceneObjectsMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -240,7 +231,7 @@ public static XrSceneObjectsMSFT.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrSceneObjectsMSFT malloc(MemoryStack stack) { - return new XrSceneObjectsMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSceneObjectsMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -249,7 +240,7 @@ public static XrSceneObjectsMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSceneObjectsMSFT calloc(MemoryStack stack) { - return new XrSceneObjectsMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSceneObjectsMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -259,7 +250,7 @@ public static XrSceneObjectsMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneObjectsMSFT.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); } /** @@ -269,30 +260,30 @@ public static XrSceneObjectsMSFT.Buffer malloc(int capacity, MemoryStack stack) * @param capacity the buffer capacity */ public static XrSceneObjectsMSFT.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 + XrSceneObjectsMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSceneObjectsMSFT.NEXT); } - /** Unsafe version of {@link #sceneObjectCount}. */ - public static int nsceneObjectCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneObjectsMSFT.SCENEOBJECTCOUNT); } - /** Unsafe version of {@link #sceneObjects}. */ - @Nullable public static XrSceneObjectMSFT.Buffer nsceneObjects(long struct) { return XrSceneObjectMSFT.createSafe(memGetAddress(struct + XrSceneObjectsMSFT.SCENEOBJECTS), nsceneObjectCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneObjectsMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneObjectsMSFT.NEXT, value); } - /** Sets the specified value to the {@code sceneObjectCount} field of the specified {@code struct}. */ - public static void nsceneObjectCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneObjectsMSFT.SCENEOBJECTCOUNT, value); } - /** Unsafe version of {@link #sceneObjects(XrSceneObjectMSFT.Buffer) sceneObjects}. */ - public static void nsceneObjects(long struct, @Nullable XrSceneObjectMSFT.Buffer value) { memPutAddress(struct + XrSceneObjectsMSFT.SCENEOBJECTS, memAddressSafe(value)); if (value != null) { nsceneObjectCount(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneObjectsMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSceneObjectsMSFT.NEXT); } + /** Unsafe version of {@link #sceneObjectCount}. */ + public static int nsceneObjectCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneObjectsMSFT.SCENEOBJECTCOUNT); } + /** Unsafe version of {@link #sceneObjects}. */ + @Nullable public static XrSceneObjectMSFT.Buffer nsceneObjects(long struct) { return XrSceneObjectMSFT.createSafe(memGetAddress(struct + XrSceneObjectsMSFT.SCENEOBJECTS), nsceneObjectCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneObjectsMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneObjectsMSFT.NEXT, value); } + /** Sets the specified value to the {@code sceneObjectCount} field of the specified {@code struct}. */ + public static void nsceneObjectCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneObjectsMSFT.SCENEOBJECTCOUNT, value); } + /** Unsafe version of {@link #sceneObjects(XrSceneObjectMSFT.Buffer) sceneObjects}. */ + public static void nsceneObjects(long struct, @Nullable XrSceneObjectMSFT.Buffer value) { memPutAddress(struct + XrSceneObjectsMSFT.SCENEOBJECTS, memAddressSafe(value)); if (value != null) { nsceneObjectCount(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrSceneObjectsMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -302,9 +293,9 @@ public static class Buffer extends StructBuffer impl /** * Creates a new {@code XrSceneObjectsMSFT.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 XrSceneObjectsMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneObjectsMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -329,31 +320,31 @@ protected Buffer self() { protected XrSceneObjectsMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneObjectsMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneObjectsMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneObjectsMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSceneObjectsMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneObjectsMSFT#sceneObjectCount} field. */ - @NativeType("uint32_t") - public int sceneObjectCount() { return XrSceneObjectsMSFT.nsceneObjectCount(address()); } - /** @return a {@link XrSceneObjectMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneObjectsMSFT#sceneObjects} field. */ - @Nullable - @NativeType("XrSceneObjectMSFT *") - public XrSceneObjectMSFT.Buffer sceneObjects() { return XrSceneObjectsMSFT.nsceneObjects(address()); } - - /** Sets the specified value to the {@link XrSceneObjectsMSFT#type} field. */ - public XrSceneObjectsMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneObjectsMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_OBJECTS_MSFT TYPE_SCENE_OBJECTS_MSFT} value to the {@link XrSceneObjectsMSFT#type} field. */ - public XrSceneObjectsMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_OBJECTS_MSFT); } - /** Sets the specified value to the {@link XrSceneObjectsMSFT#next} field. */ - public XrSceneObjectsMSFT.Buffer next(@NativeType("void *") long value) { XrSceneObjectsMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneObjectsMSFT#sceneObjectCount} field. */ - public XrSceneObjectsMSFT.Buffer sceneObjectCount(@NativeType("uint32_t") int value) { XrSceneObjectsMSFT.nsceneObjectCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneObjectMSFT.Buffer} to the {@link XrSceneObjectsMSFT#sceneObjects} field. */ - public XrSceneObjectsMSFT.Buffer sceneObjects(@Nullable @NativeType("XrSceneObjectMSFT *") XrSceneObjectMSFT.Buffer value) { XrSceneObjectsMSFT.nsceneObjects(address(), value); return this; } + + /** @return the value of the {@link XrSceneObjectsMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneObjectsMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneObjectsMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSceneObjectsMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneObjectsMSFT#sceneObjectCount} field. */ + @NativeType("uint32_t") + public int sceneObjectCount() { return XrSceneObjectsMSFT.nsceneObjectCount(address()); } + /** @return a {@link XrSceneObjectMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneObjectsMSFT#sceneObjects} field. */ + @Nullable + @NativeType("XrSceneObjectMSFT *") + public XrSceneObjectMSFT.Buffer sceneObjects() { return XrSceneObjectsMSFT.nsceneObjects(address()); } + + /** Sets the specified value to the {@link XrSceneObjectsMSFT#type} field. */ + public XrSceneObjectsMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneObjectsMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_OBJECTS_MSFT TYPE_SCENE_OBJECTS_MSFT} value to the {@link XrSceneObjectsMSFT#type} field. */ + public XrSceneObjectsMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_OBJECTS_MSFT); } + /** Sets the specified value to the {@link XrSceneObjectsMSFT#next} field. */ + public XrSceneObjectsMSFT.Buffer next(@NativeType("void *") long value) { XrSceneObjectsMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneObjectsMSFT#sceneObjectCount} field. */ + public XrSceneObjectsMSFT.Buffer sceneObjectCount(@NativeType("uint32_t") int value) { XrSceneObjectsMSFT.nsceneObjectCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneObjectMSFT.Buffer} to the {@link XrSceneObjectsMSFT#sceneObjects} field. */ + public XrSceneObjectsMSFT.Buffer sceneObjects(@Nullable @NativeType("XrSceneObjectMSFT *") XrSceneObjectMSFT.Buffer value) { XrSceneObjectsMSFT.nsceneObjects(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObserverCreateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObserverCreateInfoMSFT.java index 17ca8c9c3b..f09c011e01 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObserverCreateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObserverCreateInfoMSFT.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 information to create a scene observer handle. * @@ -37,8 +37,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrSceneObserverCreateInfoMSFT extends Struct implements NativeResource { + */ +public class XrSceneObserverCreateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,29 +48,20 @@ public class XrSceneObserverCreateInfoMSFT extends Struct implements NativeResource { @@ -256,9 +247,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 XrSceneObserverCreateInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneObserverCreateInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -283,20 +274,20 @@ protected Buffer self() { protected XrSceneObserverCreateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneObserverCreateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneObserverCreateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneObserverCreateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSceneObserverCreateInfoMSFT.nnext(address()); } - - /** Sets the specified value to the {@link XrSceneObserverCreateInfoMSFT#type} field. */ - public XrSceneObserverCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneObserverCreateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_OBSERVER_CREATE_INFO_MSFT TYPE_SCENE_OBSERVER_CREATE_INFO_MSFT} value to the {@link XrSceneObserverCreateInfoMSFT#type} field. */ - public XrSceneObserverCreateInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_OBSERVER_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSceneObserverCreateInfoMSFT#next} field. */ - public XrSceneObserverCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneObserverCreateInfoMSFT.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSceneObserverCreateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneObserverCreateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneObserverCreateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSceneObserverCreateInfoMSFT.nnext(address()); } + + /** Sets the specified value to the {@link XrSceneObserverCreateInfoMSFT#type} field. */ + public XrSceneObserverCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneObserverCreateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_OBSERVER_CREATE_INFO_MSFT TYPE_SCENE_OBSERVER_CREATE_INFO_MSFT} value to the {@link XrSceneObserverCreateInfoMSFT#type} field. */ + public XrSceneObserverCreateInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_OBSERVER_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSceneObserverCreateInfoMSFT#next} field. */ + public XrSceneObserverCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneObserverCreateInfoMSFT.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObserverMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObserverMSFT.java index 3689457e9a..dd76add3bf 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObserverMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObserverMSFT.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrSceneObserverMSFT} handle. */ + +/** Wraps an {@code XrSceneObserverMSFT} handle. */ public class XrSceneObserverMSFT 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/XrSceneOrientedBoxBoundMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneOrientedBoxBoundMSFT.java index caa05455fb..6db728a728 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneOrientedBoxBoundMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneOrientedBoxBoundMSFT.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.*; + /** * Describe a scene oriented box bounds. * @@ -39,8 +39,8 @@ * {@link XrPosef XrPosef} {@link #pose}; * {@link XrVector3f XrVector3f} {@link #extents}; * } - */ -public class XrSceneOrientedBoxBoundMSFT extends Struct implements NativeResource { + */ +public class XrSceneOrientedBoxBoundMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,29 +50,20 @@ public class XrSceneOrientedBoxBoundMSFT extends Struct consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #extents} field. */ - public XrSceneOrientedBoxBoundMSFT extents(XrVector3f value) { nextents(address(), value); return this; } - /** Passes the {@link #extents} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneOrientedBoxBoundMSFT extents(java.util.function.Consumer consumer) { consumer.accept(extents()); return this; } + + /** an {@link XrPosef} defining the center position and orientation of the oriented bounding box bound within the reference frame of the corresponding {@link XrSceneBoundsMSFT}{@code ::space}. */ + public XrPosef pose() { return npose(address()); } + /** an {@link XrVector3f} defining the edge-to-edge length of the box along each dimension with {@code pose} as the center. */ + public XrVector3f extents() { return nextents(address()); } + + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrSceneOrientedBoxBoundMSFT pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneOrientedBoxBoundMSFT pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #extents} field. */ + public XrSceneOrientedBoxBoundMSFT extents(XrVector3f value) { nextents(address(), value); return this; } + /** Passes the {@link #extents} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneOrientedBoxBoundMSFT extents(java.util.function.Consumer consumer) { consumer.accept(extents()); return this; } /** Initializes this struct with the specified values. */ public XrSceneOrientedBoxBoundMSFT set( - XrPosef pose, + XrPosef pose, XrVector3f extents - ) { - pose(pose); - extents(extents); + ) { + pose(pose); + extents(extents); return this; } @@ -129,29 +120,29 @@ public XrSceneOrientedBoxBoundMSFT set(XrSceneOrientedBoxBoundMSFT src) { /** Returns a new {@code XrSceneOrientedBoxBoundMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSceneOrientedBoxBoundMSFT malloc() { - return new XrSceneOrientedBoxBoundMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSceneOrientedBoxBoundMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSceneOrientedBoxBoundMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSceneOrientedBoxBoundMSFT calloc() { - return new XrSceneOrientedBoxBoundMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSceneOrientedBoxBoundMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSceneOrientedBoxBoundMSFT} instance allocated with {@link BufferUtils}. */ public static XrSceneOrientedBoxBoundMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSceneOrientedBoxBoundMSFT(memAddress(container), container); + return wrap(XrSceneOrientedBoxBoundMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSceneOrientedBoxBoundMSFT} instance for the specified memory address. */ public static XrSceneOrientedBoxBoundMSFT create(long address) { - return new XrSceneOrientedBoxBoundMSFT(address, null); + return wrap(XrSceneOrientedBoxBoundMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSceneOrientedBoxBoundMSFT createSafe(long address) { - return address == NULL ? null : new XrSceneOrientedBoxBoundMSFT(address, null); + return address == NULL ? null : wrap(XrSceneOrientedBoxBoundMSFT.class, address); } /** @@ -160,7 +151,7 @@ public static XrSceneOrientedBoxBoundMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSceneOrientedBoxBoundMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -169,7 +160,7 @@ public static XrSceneOrientedBoxBoundMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSceneOrientedBoxBoundMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -179,7 +170,7 @@ public static XrSceneOrientedBoxBoundMSFT.Buffer calloc(int capacity) { */ public static XrSceneOrientedBoxBoundMSFT.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); } /** @@ -189,13 +180,13 @@ public static XrSceneOrientedBoxBoundMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSceneOrientedBoxBoundMSFT.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 XrSceneOrientedBoxBoundMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -204,7 +195,7 @@ public static XrSceneOrientedBoxBoundMSFT.Buffer createSafe(long address, int ca * @param stack the stack from which to allocate */ public static XrSceneOrientedBoxBoundMSFT malloc(MemoryStack stack) { - return new XrSceneOrientedBoxBoundMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSceneOrientedBoxBoundMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -213,7 +204,7 @@ public static XrSceneOrientedBoxBoundMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSceneOrientedBoxBoundMSFT calloc(MemoryStack stack) { - return new XrSceneOrientedBoxBoundMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSceneOrientedBoxBoundMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -223,7 +214,7 @@ public static XrSceneOrientedBoxBoundMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneOrientedBoxBoundMSFT.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); } /** @@ -233,22 +224,22 @@ public static XrSceneOrientedBoxBoundMSFT.Buffer malloc(int capacity, MemoryStac * @param capacity the buffer capacity */ public static XrSceneOrientedBoxBoundMSFT.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 #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSceneOrientedBoxBoundMSFT.POSE); } - /** Unsafe version of {@link #extents}. */ - public static XrVector3f nextents(long struct) { return XrVector3f.create(struct + XrSceneOrientedBoxBoundMSFT.EXTENTS); } - - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSceneOrientedBoxBoundMSFT.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #extents(XrVector3f) extents}. */ - public static void nextents(long struct, XrVector3f value) { memCopy(value.address(), struct + XrSceneOrientedBoxBoundMSFT.EXTENTS, XrVector3f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSceneOrientedBoxBoundMSFT.POSE); } + /** Unsafe version of {@link #extents}. */ + public static XrVector3f nextents(long struct) { return XrVector3f.create(struct + XrSceneOrientedBoxBoundMSFT.EXTENTS); } + + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSceneOrientedBoxBoundMSFT.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #extents(XrVector3f) extents}. */ + public static void nextents(long struct, XrVector3f value) { memCopy(value.address(), struct + XrSceneOrientedBoxBoundMSFT.EXTENTS, XrVector3f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSceneOrientedBoxBoundMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -258,9 +249,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 XrSceneOrientedBoxBoundMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneOrientedBoxBoundMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -285,20 +276,20 @@ protected Buffer self() { protected XrSceneOrientedBoxBoundMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link XrPosef} view of the {@link XrSceneOrientedBoxBoundMSFT#pose} field. */ - public XrPosef pose() { return XrSceneOrientedBoxBoundMSFT.npose(address()); } - /** @return a {@link XrVector3f} view of the {@link XrSceneOrientedBoxBoundMSFT#extents} field. */ - public XrVector3f extents() { return XrSceneOrientedBoxBoundMSFT.nextents(address()); } - - /** Copies the specified {@link XrPosef} to the {@link XrSceneOrientedBoxBoundMSFT#pose} field. */ - public XrSceneOrientedBoxBoundMSFT.Buffer pose(XrPosef value) { XrSceneOrientedBoxBoundMSFT.npose(address(), value); return this; } - /** Passes the {@link XrSceneOrientedBoxBoundMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneOrientedBoxBoundMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrSceneOrientedBoxBoundMSFT#extents} field. */ - public XrSceneOrientedBoxBoundMSFT.Buffer extents(XrVector3f value) { XrSceneOrientedBoxBoundMSFT.nextents(address(), value); return this; } - /** Passes the {@link XrSceneOrientedBoxBoundMSFT#extents} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneOrientedBoxBoundMSFT.Buffer extents(java.util.function.Consumer consumer) { consumer.accept(extents()); return this; } + + /** @return a {@link XrPosef} view of the {@link XrSceneOrientedBoxBoundMSFT#pose} field. */ + public XrPosef pose() { return XrSceneOrientedBoxBoundMSFT.npose(address()); } + /** @return a {@link XrVector3f} view of the {@link XrSceneOrientedBoxBoundMSFT#extents} field. */ + public XrVector3f extents() { return XrSceneOrientedBoxBoundMSFT.nextents(address()); } + + /** Copies the specified {@link XrPosef} to the {@link XrSceneOrientedBoxBoundMSFT#pose} field. */ + public XrSceneOrientedBoxBoundMSFT.Buffer pose(XrPosef value) { XrSceneOrientedBoxBoundMSFT.npose(address(), value); return this; } + /** Passes the {@link XrSceneOrientedBoxBoundMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneOrientedBoxBoundMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrSceneOrientedBoxBoundMSFT#extents} field. */ + public XrSceneOrientedBoxBoundMSFT.Buffer extents(XrVector3f value) { XrSceneOrientedBoxBoundMSFT.nextents(address(), value); return this; } + /** Passes the {@link XrSceneOrientedBoxBoundMSFT#extents} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneOrientedBoxBoundMSFT.Buffer extents(java.util.function.Consumer consumer) { consumer.accept(extents()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlaneAlignmentFilterInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlaneAlignmentFilterInfoMSFT.java index 673ad0149c..b87e3ac8d6 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlaneAlignmentFilterInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlaneAlignmentFilterInfoMSFT.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.*; + /** * Plane alignment filter. * @@ -44,8 +44,8 @@ * uint32_t {@link #alignmentCount}; * XrScenePlaneAlignmentTypeMSFT const * {@link #alignments}; * } - */ -public class XrScenePlaneAlignmentFilterInfoMSFT extends Struct implements NativeResource { + */ +public class XrScenePlaneAlignmentFilterInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,35 +55,26 @@ public class XrScenePlaneAlignmentFilterInfoMSFT extends Struct implements NativeResource { @@ -292,9 +283,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 XrScenePlaneAlignmentFilterInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrScenePlaneAlignmentFilterInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -319,31 +310,31 @@ protected Buffer self() { protected XrScenePlaneAlignmentFilterInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrScenePlaneAlignmentFilterInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrScenePlaneAlignmentFilterInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrScenePlaneAlignmentFilterInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrScenePlaneAlignmentFilterInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrScenePlaneAlignmentFilterInfoMSFT#alignmentCount} field. */ - @NativeType("uint32_t") - public int alignmentCount() { return XrScenePlaneAlignmentFilterInfoMSFT.nalignmentCount(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrScenePlaneAlignmentFilterInfoMSFT#alignments} field. */ - @Nullable - @NativeType("XrScenePlaneAlignmentTypeMSFT const *") - public IntBuffer alignments() { return XrScenePlaneAlignmentFilterInfoMSFT.nalignments(address()); } - - /** Sets the specified value to the {@link XrScenePlaneAlignmentFilterInfoMSFT#type} field. */ - public XrScenePlaneAlignmentFilterInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrScenePlaneAlignmentFilterInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT TYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT} value to the {@link XrScenePlaneAlignmentFilterInfoMSFT#type} field. */ - public XrScenePlaneAlignmentFilterInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT); } - /** Sets the specified value to the {@link XrScenePlaneAlignmentFilterInfoMSFT#next} field. */ - public XrScenePlaneAlignmentFilterInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrScenePlaneAlignmentFilterInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrScenePlaneAlignmentFilterInfoMSFT#alignmentCount} field. */ - public XrScenePlaneAlignmentFilterInfoMSFT.Buffer alignmentCount(@NativeType("uint32_t") int value) { XrScenePlaneAlignmentFilterInfoMSFT.nalignmentCount(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrScenePlaneAlignmentFilterInfoMSFT#alignments} field. */ - public XrScenePlaneAlignmentFilterInfoMSFT.Buffer alignments(@Nullable @NativeType("XrScenePlaneAlignmentTypeMSFT const *") IntBuffer value) { XrScenePlaneAlignmentFilterInfoMSFT.nalignments(address(), value); return this; } + + /** @return the value of the {@link XrScenePlaneAlignmentFilterInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrScenePlaneAlignmentFilterInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrScenePlaneAlignmentFilterInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrScenePlaneAlignmentFilterInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrScenePlaneAlignmentFilterInfoMSFT#alignmentCount} field. */ + @NativeType("uint32_t") + public int alignmentCount() { return XrScenePlaneAlignmentFilterInfoMSFT.nalignmentCount(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrScenePlaneAlignmentFilterInfoMSFT#alignments} field. */ + @Nullable + @NativeType("XrScenePlaneAlignmentTypeMSFT const *") + public IntBuffer alignments() { return XrScenePlaneAlignmentFilterInfoMSFT.nalignments(address()); } + + /** Sets the specified value to the {@link XrScenePlaneAlignmentFilterInfoMSFT#type} field. */ + public XrScenePlaneAlignmentFilterInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrScenePlaneAlignmentFilterInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT TYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT} value to the {@link XrScenePlaneAlignmentFilterInfoMSFT#type} field. */ + public XrScenePlaneAlignmentFilterInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT); } + /** Sets the specified value to the {@link XrScenePlaneAlignmentFilterInfoMSFT#next} field. */ + public XrScenePlaneAlignmentFilterInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrScenePlaneAlignmentFilterInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrScenePlaneAlignmentFilterInfoMSFT#alignmentCount} field. */ + public XrScenePlaneAlignmentFilterInfoMSFT.Buffer alignmentCount(@NativeType("uint32_t") int value) { XrScenePlaneAlignmentFilterInfoMSFT.nalignmentCount(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrScenePlaneAlignmentFilterInfoMSFT#alignments} field. */ + public XrScenePlaneAlignmentFilterInfoMSFT.Buffer alignments(@Nullable @NativeType("XrScenePlaneAlignmentTypeMSFT const *") IntBuffer value) { XrScenePlaneAlignmentFilterInfoMSFT.nalignments(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlaneMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlaneMSFT.java index fd0bd40fac..de2dc1c30f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlaneMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlaneMSFT.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.*; + /** * Scene plane. * @@ -47,8 +47,8 @@ * uint64_t {@link #meshBufferId}; * XrBool32 {@link #supportsIndicesUint16}; * } - */ -public class XrScenePlaneMSFT extends Struct implements NativeResource { + */ +public class XrScenePlaneMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -58,35 +58,26 @@ public class XrScenePlaneMSFT extends Struct implements Native /** The struct member offsets. */ public static final int - ALIGNMENT, - SIZE, - MESHBUFFERID, - SUPPORTSINDICESUINT16; + ALIGNMENT, + SIZE, + MESHBUFFERID, + SUPPORTSINDICESUINT16; static { - Layout layout = __struct( - __member(4), - __member(XrExtent2Df.SIZEOF, XrExtent2Df.ALIGNOF), - __member(8), + Layout layout = __struct( + __member(4), + __member(XrExtent2Df.SIZEOF, XrExtent2Df.ALIGNOF), + __member(8), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - ALIGNMENT = layout.offsetof(0); - SIZE = layout.offsetof(1); - MESHBUFFERID = layout.offsetof(2); - SUPPORTSINDICESUINT16 = layout.offsetof(3); - } - - protected XrScenePlaneMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrScenePlaneMSFT create(long address, @Nullable ByteBuffer container) { - return new XrScenePlaneMSFT(address, container); + ALIGNMENT = layout.offsetof(0); + SIZE = layout.offsetof(1); + MESHBUFFERID = layout.offsetof(2); + SUPPORTSINDICESUINT16 = layout.offsetof(3); } /** @@ -101,41 +92,41 @@ public XrScenePlaneMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the alignment type of the plane specified by {@code XrScenePlaneAlignmentTypeMSFT}. */ - @NativeType("XrScenePlaneAlignmentTypeMSFT") - public int alignment() { return nalignment(address()); } - /** the 2D size of the plane’s extent, where {@code size}{@code ::width} is the width of the plane along the X axis, and {@code size}{@code ::height} is the height of the plane along the Y axis. */ - public XrExtent2Df size() { return nsize(address()); } - /** the {@code uint64_t} identifier that specifies the scene mesh buffer of this plane’s triangle mesh. If {@code meshBufferId} is zero then this plane does not have a mesh. The triangles in a planar mesh are coplanar. */ - @NativeType("uint64_t") - public long meshBufferId() { return nmeshBufferId(address()); } - /** {@link XR10#XR_TRUE TRUE} if the mesh supports reading 16-bit unsigned indices. */ - @NativeType("XrBool32") - public boolean supportsIndicesUint16() { return nsupportsIndicesUint16(address()) != 0; } - - /** Sets the specified value to the {@link #alignment} field. */ - public XrScenePlaneMSFT alignment(@NativeType("XrScenePlaneAlignmentTypeMSFT") int value) { nalignment(address(), value); return this; } - /** Copies the specified {@link XrExtent2Df} to the {@link #size} field. */ - public XrScenePlaneMSFT size(XrExtent2Df value) { nsize(address(), value); return this; } - /** Passes the {@link #size} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrScenePlaneMSFT size(java.util.function.Consumer consumer) { consumer.accept(size()); return this; } - /** Sets the specified value to the {@link #meshBufferId} field. */ - public XrScenePlaneMSFT meshBufferId(@NativeType("uint64_t") long value) { nmeshBufferId(address(), value); return this; } - /** Sets the specified value to the {@link #supportsIndicesUint16} field. */ - public XrScenePlaneMSFT supportsIndicesUint16(@NativeType("XrBool32") boolean value) { nsupportsIndicesUint16(address(), value ? 1 : 0); return this; } + + /** the alignment type of the plane specified by {@code XrScenePlaneAlignmentTypeMSFT}. */ + @NativeType("XrScenePlaneAlignmentTypeMSFT") + public int alignment() { return nalignment(address()); } + /** the 2D size of the plane’s extent, where {@code size}{@code ::width} is the width of the plane along the X axis, and {@code size}{@code ::height} is the height of the plane along the Y axis. */ + public XrExtent2Df size() { return nsize(address()); } + /** the {@code uint64_t} identifier that specifies the scene mesh buffer of this plane’s triangle mesh. If {@code meshBufferId} is zero then this plane does not have a mesh. The triangles in a planar mesh are coplanar. */ + @NativeType("uint64_t") + public long meshBufferId() { return nmeshBufferId(address()); } + /** {@link XR10#XR_TRUE TRUE} if the mesh supports reading 16-bit unsigned indices. */ + @NativeType("XrBool32") + public boolean supportsIndicesUint16() { return nsupportsIndicesUint16(address()) != 0; } + + /** Sets the specified value to the {@link #alignment} field. */ + public XrScenePlaneMSFT alignment(@NativeType("XrScenePlaneAlignmentTypeMSFT") int value) { nalignment(address(), value); return this; } + /** Copies the specified {@link XrExtent2Df} to the {@link #size} field. */ + public XrScenePlaneMSFT size(XrExtent2Df value) { nsize(address(), value); return this; } + /** Passes the {@link #size} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrScenePlaneMSFT size(java.util.function.Consumer consumer) { consumer.accept(size()); return this; } + /** Sets the specified value to the {@link #meshBufferId} field. */ + public XrScenePlaneMSFT meshBufferId(@NativeType("uint64_t") long value) { nmeshBufferId(address(), value); return this; } + /** Sets the specified value to the {@link #supportsIndicesUint16} field. */ + public XrScenePlaneMSFT supportsIndicesUint16(@NativeType("XrBool32") boolean value) { nsupportsIndicesUint16(address(), value ? 1 : 0); return this; } /** Initializes this struct with the specified values. */ public XrScenePlaneMSFT set( - int alignment, - XrExtent2Df size, - long meshBufferId, + int alignment, + XrExtent2Df size, + long meshBufferId, boolean supportsIndicesUint16 - ) { - alignment(alignment); - size(size); - meshBufferId(meshBufferId); - supportsIndicesUint16(supportsIndicesUint16); + ) { + alignment(alignment); + size(size); + meshBufferId(meshBufferId); + supportsIndicesUint16(supportsIndicesUint16); return this; } @@ -156,29 +147,29 @@ public XrScenePlaneMSFT set(XrScenePlaneMSFT src) { /** Returns a new {@code XrScenePlaneMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrScenePlaneMSFT malloc() { - return new XrScenePlaneMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrScenePlaneMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrScenePlaneMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrScenePlaneMSFT calloc() { - return new XrScenePlaneMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrScenePlaneMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrScenePlaneMSFT} instance allocated with {@link BufferUtils}. */ public static XrScenePlaneMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrScenePlaneMSFT(memAddress(container), container); + return wrap(XrScenePlaneMSFT.class, memAddress(container), container); } /** Returns a new {@code XrScenePlaneMSFT} instance for the specified memory address. */ public static XrScenePlaneMSFT create(long address) { - return new XrScenePlaneMSFT(address, null); + return wrap(XrScenePlaneMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrScenePlaneMSFT createSafe(long address) { - return address == NULL ? null : new XrScenePlaneMSFT(address, null); + return address == NULL ? null : wrap(XrScenePlaneMSFT.class, address); } /** @@ -187,7 +178,7 @@ public static XrScenePlaneMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrScenePlaneMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -196,7 +187,7 @@ public static XrScenePlaneMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrScenePlaneMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -206,7 +197,7 @@ public static XrScenePlaneMSFT.Buffer calloc(int capacity) { */ public static XrScenePlaneMSFT.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); } /** @@ -216,13 +207,13 @@ public static XrScenePlaneMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrScenePlaneMSFT.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 XrScenePlaneMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -231,7 +222,7 @@ public static XrScenePlaneMSFT.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrScenePlaneMSFT malloc(MemoryStack stack) { - return new XrScenePlaneMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrScenePlaneMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -240,7 +231,7 @@ public static XrScenePlaneMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrScenePlaneMSFT calloc(MemoryStack stack) { - return new XrScenePlaneMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrScenePlaneMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -250,7 +241,7 @@ public static XrScenePlaneMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrScenePlaneMSFT.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); } /** @@ -260,30 +251,30 @@ public static XrScenePlaneMSFT.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrScenePlaneMSFT.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 #alignment}. */ - public static int nalignment(long struct) { return UNSAFE.getInt(null, struct + XrScenePlaneMSFT.ALIGNMENT); } - /** Unsafe version of {@link #size}. */ - public static XrExtent2Df nsize(long struct) { return XrExtent2Df.create(struct + XrScenePlaneMSFT.SIZE); } - /** Unsafe version of {@link #meshBufferId}. */ - public static long nmeshBufferId(long struct) { return UNSAFE.getLong(null, struct + XrScenePlaneMSFT.MESHBUFFERID); } - /** Unsafe version of {@link #supportsIndicesUint16}. */ - public static int nsupportsIndicesUint16(long struct) { return UNSAFE.getInt(null, struct + XrScenePlaneMSFT.SUPPORTSINDICESUINT16); } - - /** Unsafe version of {@link #alignment(int) alignment}. */ - public static void nalignment(long struct, int value) { UNSAFE.putInt(null, struct + XrScenePlaneMSFT.ALIGNMENT, value); } - /** Unsafe version of {@link #size(XrExtent2Df) size}. */ - public static void nsize(long struct, XrExtent2Df value) { memCopy(value.address(), struct + XrScenePlaneMSFT.SIZE, XrExtent2Df.SIZEOF); } - /** Unsafe version of {@link #meshBufferId(long) meshBufferId}. */ - public static void nmeshBufferId(long struct, long value) { UNSAFE.putLong(null, struct + XrScenePlaneMSFT.MESHBUFFERID, value); } - /** Unsafe version of {@link #supportsIndicesUint16(boolean) supportsIndicesUint16}. */ - public static void nsupportsIndicesUint16(long struct, int value) { UNSAFE.putInt(null, struct + XrScenePlaneMSFT.SUPPORTSINDICESUINT16, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #alignment}. */ + public static int nalignment(long struct) { return UNSAFE.getInt(null, struct + XrScenePlaneMSFT.ALIGNMENT); } + /** Unsafe version of {@link #size}. */ + public static XrExtent2Df nsize(long struct) { return XrExtent2Df.create(struct + XrScenePlaneMSFT.SIZE); } + /** Unsafe version of {@link #meshBufferId}. */ + public static long nmeshBufferId(long struct) { return UNSAFE.getLong(null, struct + XrScenePlaneMSFT.MESHBUFFERID); } + /** Unsafe version of {@link #supportsIndicesUint16}. */ + public static int nsupportsIndicesUint16(long struct) { return UNSAFE.getInt(null, struct + XrScenePlaneMSFT.SUPPORTSINDICESUINT16); } + + /** Unsafe version of {@link #alignment(int) alignment}. */ + public static void nalignment(long struct, int value) { UNSAFE.putInt(null, struct + XrScenePlaneMSFT.ALIGNMENT, value); } + /** Unsafe version of {@link #size(XrExtent2Df) size}. */ + public static void nsize(long struct, XrExtent2Df value) { memCopy(value.address(), struct + XrScenePlaneMSFT.SIZE, XrExtent2Df.SIZEOF); } + /** Unsafe version of {@link #meshBufferId(long) meshBufferId}. */ + public static void nmeshBufferId(long struct, long value) { UNSAFE.putLong(null, struct + XrScenePlaneMSFT.MESHBUFFERID, value); } + /** Unsafe version of {@link #supportsIndicesUint16(boolean) supportsIndicesUint16}. */ + public static void nsupportsIndicesUint16(long struct, int value) { UNSAFE.putInt(null, struct + XrScenePlaneMSFT.SUPPORTSINDICESUINT16, value); } + + // ----------------------------------- /** An array of {@link XrScenePlaneMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -293,9 +284,9 @@ public static class Buffer extends StructBuffer implem /** * Creates a new {@code XrScenePlaneMSFT.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 XrScenePlaneMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrScenePlaneMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -320,29 +311,29 @@ protected Buffer self() { protected XrScenePlaneMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrScenePlaneMSFT#alignment} field. */ - @NativeType("XrScenePlaneAlignmentTypeMSFT") - public int alignment() { return XrScenePlaneMSFT.nalignment(address()); } - /** @return a {@link XrExtent2Df} view of the {@link XrScenePlaneMSFT#size} field. */ - public XrExtent2Df size() { return XrScenePlaneMSFT.nsize(address()); } - /** @return the value of the {@link XrScenePlaneMSFT#meshBufferId} field. */ - @NativeType("uint64_t") - public long meshBufferId() { return XrScenePlaneMSFT.nmeshBufferId(address()); } - /** @return the value of the {@link XrScenePlaneMSFT#supportsIndicesUint16} field. */ - @NativeType("XrBool32") - public boolean supportsIndicesUint16() { return XrScenePlaneMSFT.nsupportsIndicesUint16(address()) != 0; } - - /** Sets the specified value to the {@link XrScenePlaneMSFT#alignment} field. */ - public XrScenePlaneMSFT.Buffer alignment(@NativeType("XrScenePlaneAlignmentTypeMSFT") int value) { XrScenePlaneMSFT.nalignment(address(), value); return this; } - /** Copies the specified {@link XrExtent2Df} to the {@link XrScenePlaneMSFT#size} field. */ - public XrScenePlaneMSFT.Buffer size(XrExtent2Df value) { XrScenePlaneMSFT.nsize(address(), value); return this; } - /** Passes the {@link XrScenePlaneMSFT#size} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrScenePlaneMSFT.Buffer size(java.util.function.Consumer consumer) { consumer.accept(size()); return this; } - /** Sets the specified value to the {@link XrScenePlaneMSFT#meshBufferId} field. */ - public XrScenePlaneMSFT.Buffer meshBufferId(@NativeType("uint64_t") long value) { XrScenePlaneMSFT.nmeshBufferId(address(), value); return this; } - /** Sets the specified value to the {@link XrScenePlaneMSFT#supportsIndicesUint16} field. */ - public XrScenePlaneMSFT.Buffer supportsIndicesUint16(@NativeType("XrBool32") boolean value) { XrScenePlaneMSFT.nsupportsIndicesUint16(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrScenePlaneMSFT#alignment} field. */ + @NativeType("XrScenePlaneAlignmentTypeMSFT") + public int alignment() { return XrScenePlaneMSFT.nalignment(address()); } + /** @return a {@link XrExtent2Df} view of the {@link XrScenePlaneMSFT#size} field. */ + public XrExtent2Df size() { return XrScenePlaneMSFT.nsize(address()); } + /** @return the value of the {@link XrScenePlaneMSFT#meshBufferId} field. */ + @NativeType("uint64_t") + public long meshBufferId() { return XrScenePlaneMSFT.nmeshBufferId(address()); } + /** @return the value of the {@link XrScenePlaneMSFT#supportsIndicesUint16} field. */ + @NativeType("XrBool32") + public boolean supportsIndicesUint16() { return XrScenePlaneMSFT.nsupportsIndicesUint16(address()) != 0; } + + /** Sets the specified value to the {@link XrScenePlaneMSFT#alignment} field. */ + public XrScenePlaneMSFT.Buffer alignment(@NativeType("XrScenePlaneAlignmentTypeMSFT") int value) { XrScenePlaneMSFT.nalignment(address(), value); return this; } + /** Copies the specified {@link XrExtent2Df} to the {@link XrScenePlaneMSFT#size} field. */ + public XrScenePlaneMSFT.Buffer size(XrExtent2Df value) { XrScenePlaneMSFT.nsize(address(), value); return this; } + /** Passes the {@link XrScenePlaneMSFT#size} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrScenePlaneMSFT.Buffer size(java.util.function.Consumer consumer) { consumer.accept(size()); return this; } + /** Sets the specified value to the {@link XrScenePlaneMSFT#meshBufferId} field. */ + public XrScenePlaneMSFT.Buffer meshBufferId(@NativeType("uint64_t") long value) { XrScenePlaneMSFT.nmeshBufferId(address(), value); return this; } + /** Sets the specified value to the {@link XrScenePlaneMSFT#supportsIndicesUint16} field. */ + public XrScenePlaneMSFT.Buffer supportsIndicesUint16(@NativeType("XrBool32") boolean value) { XrScenePlaneMSFT.nsupportsIndicesUint16(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlanesMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlanesMSFT.java index fe6b4163df..c74751307e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlanesMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlanesMSFT.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.*; + /** * Scene planes. * @@ -40,8 +40,8 @@ * uint32_t {@link #scenePlaneCount}; * {@link XrScenePlaneMSFT XrScenePlaneMSFT} * {@link #scenePlanes}; * } - */ -public class XrScenePlanesMSFT extends Struct implements NativeResource { + */ +public class XrScenePlanesMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,35 +51,26 @@ public class XrScenePlanesMSFT extends Struct implements Nati /** The struct member offsets. */ public static final int - TYPE, - NEXT, - SCENEPLANECOUNT, - SCENEPLANES; + TYPE, + NEXT, + SCENEPLANECOUNT, + SCENEPLANES; 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); - SCENEPLANECOUNT = layout.offsetof(2); - SCENEPLANES = layout.offsetof(3); - } - - protected XrScenePlanesMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrScenePlanesMSFT create(long address, @Nullable ByteBuffer container) { - return new XrScenePlanesMSFT(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + SCENEPLANECOUNT = layout.offsetof(2); + SCENEPLANES = layout.offsetof(3); } /** @@ -94,43 +85,43 @@ public XrScenePlanesMSFT(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 *") - public long next() { return nnext(address()); } - /** a {@code uint32_t} describing the count of elements in the {@link XrScenePlaneMSFT} array. */ - @NativeType("uint32_t") - public int scenePlaneCount() { return nscenePlaneCount(address()); } - /** an array of {@link XrScenePlaneMSFT}. */ - @Nullable - @NativeType("XrScenePlaneMSFT *") - public XrScenePlaneMSFT.Buffer scenePlanes() { return nscenePlanes(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrScenePlanesMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_PLANES_MSFT TYPE_SCENE_PLANES_MSFT} value to the {@link #type} field. */ - public XrScenePlanesMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_PLANES_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrScenePlanesMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #scenePlaneCount} field. */ - public XrScenePlanesMSFT scenePlaneCount(@NativeType("uint32_t") int value) { nscenePlaneCount(address(), value); return this; } - /** Sets the address of the specified {@link XrScenePlaneMSFT.Buffer} to the {@link #scenePlanes} field. */ - public XrScenePlanesMSFT scenePlanes(@Nullable @NativeType("XrScenePlaneMSFT *") XrScenePlaneMSFT.Buffer value) { nscenePlanes(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 *") + public long next() { return nnext(address()); } + /** a {@code uint32_t} describing the count of elements in the {@link XrScenePlaneMSFT} array. */ + @NativeType("uint32_t") + public int scenePlaneCount() { return nscenePlaneCount(address()); } + /** an array of {@link XrScenePlaneMSFT}. */ + @Nullable + @NativeType("XrScenePlaneMSFT *") + public XrScenePlaneMSFT.Buffer scenePlanes() { return nscenePlanes(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrScenePlanesMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_PLANES_MSFT TYPE_SCENE_PLANES_MSFT} value to the {@link #type} field. */ + public XrScenePlanesMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_PLANES_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrScenePlanesMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #scenePlaneCount} field. */ + public XrScenePlanesMSFT scenePlaneCount(@NativeType("uint32_t") int value) { nscenePlaneCount(address(), value); return this; } + /** Sets the address of the specified {@link XrScenePlaneMSFT.Buffer} to the {@link #scenePlanes} field. */ + public XrScenePlanesMSFT scenePlanes(@Nullable @NativeType("XrScenePlaneMSFT *") XrScenePlaneMSFT.Buffer value) { nscenePlanes(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrScenePlanesMSFT set( - int type, - long next, - int scenePlaneCount, + int type, + long next, + int scenePlaneCount, @Nullable XrScenePlaneMSFT.Buffer scenePlanes - ) { - type(type); - next(next); - scenePlaneCount(scenePlaneCount); - scenePlanes(scenePlanes); + ) { + type(type); + next(next); + scenePlaneCount(scenePlaneCount); + scenePlanes(scenePlanes); return this; } @@ -151,29 +142,29 @@ public XrScenePlanesMSFT set(XrScenePlanesMSFT src) { /** Returns a new {@code XrScenePlanesMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrScenePlanesMSFT malloc() { - return new XrScenePlanesMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrScenePlanesMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrScenePlanesMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrScenePlanesMSFT calloc() { - return new XrScenePlanesMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrScenePlanesMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrScenePlanesMSFT} instance allocated with {@link BufferUtils}. */ public static XrScenePlanesMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrScenePlanesMSFT(memAddress(container), container); + return wrap(XrScenePlanesMSFT.class, memAddress(container), container); } /** Returns a new {@code XrScenePlanesMSFT} instance for the specified memory address. */ public static XrScenePlanesMSFT create(long address) { - return new XrScenePlanesMSFT(address, null); + return wrap(XrScenePlanesMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrScenePlanesMSFT createSafe(long address) { - return address == NULL ? null : new XrScenePlanesMSFT(address, null); + return address == NULL ? null : wrap(XrScenePlanesMSFT.class, address); } /** @@ -182,7 +173,7 @@ public static XrScenePlanesMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrScenePlanesMSFT.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 XrScenePlanesMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrScenePlanesMSFT.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 XrScenePlanesMSFT.Buffer calloc(int capacity) { */ public static XrScenePlanesMSFT.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 XrScenePlanesMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrScenePlanesMSFT.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 XrScenePlanesMSFT.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 XrScenePlanesMSFT.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrScenePlanesMSFT malloc(MemoryStack stack) { - return new XrScenePlanesMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrScenePlanesMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -235,7 +226,7 @@ public static XrScenePlanesMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrScenePlanesMSFT calloc(MemoryStack stack) { - return new XrScenePlanesMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrScenePlanesMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -245,7 +236,7 @@ public static XrScenePlanesMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrScenePlanesMSFT.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 XrScenePlanesMSFT.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrScenePlanesMSFT.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 + XrScenePlanesMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrScenePlanesMSFT.NEXT); } - /** Unsafe version of {@link #scenePlaneCount}. */ - public static int nscenePlaneCount(long struct) { return UNSAFE.getInt(null, struct + XrScenePlanesMSFT.SCENEPLANECOUNT); } - /** Unsafe version of {@link #scenePlanes}. */ - @Nullable public static XrScenePlaneMSFT.Buffer nscenePlanes(long struct) { return XrScenePlaneMSFT.createSafe(memGetAddress(struct + XrScenePlanesMSFT.SCENEPLANES), nscenePlaneCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrScenePlanesMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrScenePlanesMSFT.NEXT, value); } - /** Sets the specified value to the {@code scenePlaneCount} field of the specified {@code struct}. */ - public static void nscenePlaneCount(long struct, int value) { UNSAFE.putInt(null, struct + XrScenePlanesMSFT.SCENEPLANECOUNT, value); } - /** Unsafe version of {@link #scenePlanes(XrScenePlaneMSFT.Buffer) scenePlanes}. */ - public static void nscenePlanes(long struct, @Nullable XrScenePlaneMSFT.Buffer value) { memPutAddress(struct + XrScenePlanesMSFT.SCENEPLANES, memAddressSafe(value)); if (value != null) { nscenePlaneCount(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrScenePlanesMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrScenePlanesMSFT.NEXT); } + /** Unsafe version of {@link #scenePlaneCount}. */ + public static int nscenePlaneCount(long struct) { return UNSAFE.getInt(null, struct + XrScenePlanesMSFT.SCENEPLANECOUNT); } + /** Unsafe version of {@link #scenePlanes}. */ + @Nullable public static XrScenePlaneMSFT.Buffer nscenePlanes(long struct) { return XrScenePlaneMSFT.createSafe(memGetAddress(struct + XrScenePlanesMSFT.SCENEPLANES), nscenePlaneCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrScenePlanesMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrScenePlanesMSFT.NEXT, value); } + /** Sets the specified value to the {@code scenePlaneCount} field of the specified {@code struct}. */ + public static void nscenePlaneCount(long struct, int value) { UNSAFE.putInt(null, struct + XrScenePlanesMSFT.SCENEPLANECOUNT, value); } + /** Unsafe version of {@link #scenePlanes(XrScenePlaneMSFT.Buffer) scenePlanes}. */ + public static void nscenePlanes(long struct, @Nullable XrScenePlaneMSFT.Buffer value) { memPutAddress(struct + XrScenePlanesMSFT.SCENEPLANES, memAddressSafe(value)); if (value != null) { nscenePlaneCount(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrScenePlanesMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -288,9 +279,9 @@ public static class Buffer extends StructBuffer imple /** * Creates a new {@code XrScenePlanesMSFT.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 XrScenePlanesMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrScenePlanesMSFT#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 XrScenePlanesMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrScenePlanesMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrScenePlanesMSFT.ntype(address()); } - /** @return the value of the {@link XrScenePlanesMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrScenePlanesMSFT.nnext(address()); } - /** @return the value of the {@link XrScenePlanesMSFT#scenePlaneCount} field. */ - @NativeType("uint32_t") - public int scenePlaneCount() { return XrScenePlanesMSFT.nscenePlaneCount(address()); } - /** @return a {@link XrScenePlaneMSFT.Buffer} view of the struct array pointed to by the {@link XrScenePlanesMSFT#scenePlanes} field. */ - @Nullable - @NativeType("XrScenePlaneMSFT *") - public XrScenePlaneMSFT.Buffer scenePlanes() { return XrScenePlanesMSFT.nscenePlanes(address()); } - - /** Sets the specified value to the {@link XrScenePlanesMSFT#type} field. */ - public XrScenePlanesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrScenePlanesMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_PLANES_MSFT TYPE_SCENE_PLANES_MSFT} value to the {@link XrScenePlanesMSFT#type} field. */ - public XrScenePlanesMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_PLANES_MSFT); } - /** Sets the specified value to the {@link XrScenePlanesMSFT#next} field. */ - public XrScenePlanesMSFT.Buffer next(@NativeType("void *") long value) { XrScenePlanesMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrScenePlanesMSFT#scenePlaneCount} field. */ - public XrScenePlanesMSFT.Buffer scenePlaneCount(@NativeType("uint32_t") int value) { XrScenePlanesMSFT.nscenePlaneCount(address(), value); return this; } - /** Sets the address of the specified {@link XrScenePlaneMSFT.Buffer} to the {@link XrScenePlanesMSFT#scenePlanes} field. */ - public XrScenePlanesMSFT.Buffer scenePlanes(@Nullable @NativeType("XrScenePlaneMSFT *") XrScenePlaneMSFT.Buffer value) { XrScenePlanesMSFT.nscenePlanes(address(), value); return this; } + + /** @return the value of the {@link XrScenePlanesMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrScenePlanesMSFT.ntype(address()); } + /** @return the value of the {@link XrScenePlanesMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrScenePlanesMSFT.nnext(address()); } + /** @return the value of the {@link XrScenePlanesMSFT#scenePlaneCount} field. */ + @NativeType("uint32_t") + public int scenePlaneCount() { return XrScenePlanesMSFT.nscenePlaneCount(address()); } + /** @return a {@link XrScenePlaneMSFT.Buffer} view of the struct array pointed to by the {@link XrScenePlanesMSFT#scenePlanes} field. */ + @Nullable + @NativeType("XrScenePlaneMSFT *") + public XrScenePlaneMSFT.Buffer scenePlanes() { return XrScenePlanesMSFT.nscenePlanes(address()); } + + /** Sets the specified value to the {@link XrScenePlanesMSFT#type} field. */ + public XrScenePlanesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrScenePlanesMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_PLANES_MSFT TYPE_SCENE_PLANES_MSFT} value to the {@link XrScenePlanesMSFT#type} field. */ + public XrScenePlanesMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_PLANES_MSFT); } + /** Sets the specified value to the {@link XrScenePlanesMSFT#next} field. */ + public XrScenePlanesMSFT.Buffer next(@NativeType("void *") long value) { XrScenePlanesMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrScenePlanesMSFT#scenePlaneCount} field. */ + public XrScenePlanesMSFT.Buffer scenePlaneCount(@NativeType("uint32_t") int value) { XrScenePlanesMSFT.nscenePlaneCount(address(), value); return this; } + /** Sets the address of the specified {@link XrScenePlaneMSFT.Buffer} to the {@link XrScenePlanesMSFT#scenePlanes} field. */ + public XrScenePlanesMSFT.Buffer scenePlanes(@Nullable @NativeType("XrScenePlaneMSFT *") XrScenePlaneMSFT.Buffer value) { XrScenePlanesMSFT.nscenePlanes(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneSphereBoundMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneSphereBoundMSFT.java index 1868a6f96c..5f2bf715c1 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneSphereBoundMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneSphereBoundMSFT.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.*; + /** * Describe a scene sphere bounds. * @@ -39,8 +39,8 @@ * {@link XrVector3f XrVector3f} {@link #center}; * float {@link #radius}; * } - */ -public class XrSceneSphereBoundMSFT extends Struct implements NativeResource { + */ +public class XrSceneSphereBoundMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,29 +50,20 @@ public class XrSceneSphereBoundMSFT extends Struct imple /** The struct member offsets. */ public static final int - CENTER, - RADIUS; + CENTER, + RADIUS; static { - Layout layout = __struct( - __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF), + Layout layout = __struct( + __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - CENTER = layout.offsetof(0); - RADIUS = layout.offsetof(1); - } - - protected XrSceneSphereBoundMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSceneSphereBoundMSFT create(long address, @Nullable ByteBuffer container) { - return new XrSceneSphereBoundMSFT(address, container); + CENTER = layout.offsetof(0); + RADIUS = layout.offsetof(1); } /** @@ -87,26 +78,26 @@ public XrSceneSphereBoundMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** an {@link XrVector3f} representing the center of the sphere bound within the reference frame of the corresponding {@link XrSceneBoundsMSFT}{@code ::space}. */ - public XrVector3f center() { return ncenter(address()); } - /** the finite positive radius of the sphere bound. */ - public float radius() { return nradius(address()); } - - /** Copies the specified {@link XrVector3f} to the {@link #center} field. */ - public XrSceneSphereBoundMSFT center(XrVector3f value) { ncenter(address(), value); return this; } - /** Passes the {@link #center} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneSphereBoundMSFT center(java.util.function.Consumer consumer) { consumer.accept(center()); return this; } - /** Sets the specified value to the {@link #radius} field. */ - public XrSceneSphereBoundMSFT radius(float value) { nradius(address(), value); return this; } + + /** an {@link XrVector3f} representing the center of the sphere bound within the reference frame of the corresponding {@link XrSceneBoundsMSFT}{@code ::space}. */ + public XrVector3f center() { return ncenter(address()); } + /** the finite positive radius of the sphere bound. */ + public float radius() { return nradius(address()); } + + /** Copies the specified {@link XrVector3f} to the {@link #center} field. */ + public XrSceneSphereBoundMSFT center(XrVector3f value) { ncenter(address(), value); return this; } + /** Passes the {@link #center} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneSphereBoundMSFT center(java.util.function.Consumer consumer) { consumer.accept(center()); return this; } + /** Sets the specified value to the {@link #radius} field. */ + public XrSceneSphereBoundMSFT radius(float value) { nradius(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneSphereBoundMSFT set( - XrVector3f center, + XrVector3f center, float radius - ) { - center(center); - radius(radius); + ) { + center(center); + radius(radius); return this; } @@ -127,29 +118,29 @@ public XrSceneSphereBoundMSFT set(XrSceneSphereBoundMSFT src) { /** Returns a new {@code XrSceneSphereBoundMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSceneSphereBoundMSFT malloc() { - return new XrSceneSphereBoundMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSceneSphereBoundMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSceneSphereBoundMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSceneSphereBoundMSFT calloc() { - return new XrSceneSphereBoundMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSceneSphereBoundMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSceneSphereBoundMSFT} instance allocated with {@link BufferUtils}. */ public static XrSceneSphereBoundMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSceneSphereBoundMSFT(memAddress(container), container); + return wrap(XrSceneSphereBoundMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSceneSphereBoundMSFT} instance for the specified memory address. */ public static XrSceneSphereBoundMSFT create(long address) { - return new XrSceneSphereBoundMSFT(address, null); + return wrap(XrSceneSphereBoundMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSceneSphereBoundMSFT createSafe(long address) { - return address == NULL ? null : new XrSceneSphereBoundMSFT(address, null); + return address == NULL ? null : wrap(XrSceneSphereBoundMSFT.class, address); } /** @@ -158,7 +149,7 @@ public static XrSceneSphereBoundMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSceneSphereBoundMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -167,7 +158,7 @@ public static XrSceneSphereBoundMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSceneSphereBoundMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -177,7 +168,7 @@ public static XrSceneSphereBoundMSFT.Buffer calloc(int capacity) { */ public static XrSceneSphereBoundMSFT.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); } /** @@ -187,13 +178,13 @@ public static XrSceneSphereBoundMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSceneSphereBoundMSFT.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 XrSceneSphereBoundMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -202,7 +193,7 @@ public static XrSceneSphereBoundMSFT.Buffer createSafe(long address, int capacit * @param stack the stack from which to allocate */ public static XrSceneSphereBoundMSFT malloc(MemoryStack stack) { - return new XrSceneSphereBoundMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSceneSphereBoundMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -211,7 +202,7 @@ public static XrSceneSphereBoundMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSceneSphereBoundMSFT calloc(MemoryStack stack) { - return new XrSceneSphereBoundMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSceneSphereBoundMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -221,7 +212,7 @@ public static XrSceneSphereBoundMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSceneSphereBoundMSFT.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); } /** @@ -231,22 +222,22 @@ public static XrSceneSphereBoundMSFT.Buffer malloc(int capacity, MemoryStack sta * @param capacity the buffer capacity */ public static XrSceneSphereBoundMSFT.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 #center}. */ - public static XrVector3f ncenter(long struct) { return XrVector3f.create(struct + XrSceneSphereBoundMSFT.CENTER); } - /** Unsafe version of {@link #radius}. */ - public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrSceneSphereBoundMSFT.RADIUS); } - - /** Unsafe version of {@link #center(XrVector3f) center}. */ - public static void ncenter(long struct, XrVector3f value) { memCopy(value.address(), struct + XrSceneSphereBoundMSFT.CENTER, XrVector3f.SIZEOF); } - /** Unsafe version of {@link #radius(float) radius}. */ - public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrSceneSphereBoundMSFT.RADIUS, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #center}. */ + public static XrVector3f ncenter(long struct) { return XrVector3f.create(struct + XrSceneSphereBoundMSFT.CENTER); } + /** Unsafe version of {@link #radius}. */ + public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrSceneSphereBoundMSFT.RADIUS); } + + /** Unsafe version of {@link #center(XrVector3f) center}. */ + public static void ncenter(long struct, XrVector3f value) { memCopy(value.address(), struct + XrSceneSphereBoundMSFT.CENTER, XrVector3f.SIZEOF); } + /** Unsafe version of {@link #radius(float) radius}. */ + public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrSceneSphereBoundMSFT.RADIUS, value); } + + // ----------------------------------- /** An array of {@link XrSceneSphereBoundMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -256,9 +247,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrSceneSphereBoundMSFT.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 XrSceneSphereBoundMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSceneSphereBoundMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -283,18 +274,18 @@ protected Buffer self() { protected XrSceneSphereBoundMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link XrVector3f} view of the {@link XrSceneSphereBoundMSFT#center} field. */ - public XrVector3f center() { return XrSceneSphereBoundMSFT.ncenter(address()); } - /** @return the value of the {@link XrSceneSphereBoundMSFT#radius} field. */ - public float radius() { return XrSceneSphereBoundMSFT.nradius(address()); } - - /** Copies the specified {@link XrVector3f} to the {@link XrSceneSphereBoundMSFT#center} field. */ - public XrSceneSphereBoundMSFT.Buffer center(XrVector3f value) { XrSceneSphereBoundMSFT.ncenter(address(), value); return this; } - /** Passes the {@link XrSceneSphereBoundMSFT#center} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneSphereBoundMSFT.Buffer center(java.util.function.Consumer consumer) { consumer.accept(center()); return this; } - /** Sets the specified value to the {@link XrSceneSphereBoundMSFT#radius} field. */ - public XrSceneSphereBoundMSFT.Buffer radius(float value) { XrSceneSphereBoundMSFT.nradius(address(), value); return this; } + + /** @return a {@link XrVector3f} view of the {@link XrSceneSphereBoundMSFT#center} field. */ + public XrVector3f center() { return XrSceneSphereBoundMSFT.ncenter(address()); } + /** @return the value of the {@link XrSceneSphereBoundMSFT#radius} field. */ + public float radius() { return XrSceneSphereBoundMSFT.nradius(address()); } + + /** Copies the specified {@link XrVector3f} to the {@link XrSceneSphereBoundMSFT#center} field. */ + public XrSceneSphereBoundMSFT.Buffer center(XrVector3f value) { XrSceneSphereBoundMSFT.ncenter(address(), value); return this; } + /** Passes the {@link XrSceneSphereBoundMSFT#center} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneSphereBoundMSFT.Buffer center(java.util.function.Consumer consumer) { consumer.accept(center()); return this; } + /** Sets the specified value to the {@link XrSceneSphereBoundMSFT#radius} field. */ + public XrSceneSphereBoundMSFT.Buffer radius(float value) { XrSceneSphereBoundMSFT.nradius(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationFrameEndInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationFrameEndInfoMSFT.java index bc0ea3d50c..f8b43929bc 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationFrameEndInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationFrameEndInfoMSFT.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.*; + /** * Submit an array of {@link XrSecondaryViewConfigurationLayerInfoMSFT}, one for each secondary view configuration. * @@ -50,8 +50,8 @@ * uint32_t {@link #viewConfigurationCount}; * {@link XrSecondaryViewConfigurationLayerInfoMSFT XrSecondaryViewConfigurationLayerInfoMSFT} const * {@link #viewConfigurationLayersInfo}; * } - */ -public class XrSecondaryViewConfigurationFrameEndInfoMSFT extends Struct implements NativeResource { + */ +public class XrSecondaryViewConfigurationFrameEndInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -61,35 +61,26 @@ public class XrSecondaryViewConfigurationFrameEndInfoMSFT extends Struct implements NativeResource { @@ -305,9 +296,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 XrSecondaryViewConfigurationFrameEndInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -332,28 +323,28 @@ protected Buffer self() { protected XrSecondaryViewConfigurationFrameEndInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSecondaryViewConfigurationFrameEndInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSecondaryViewConfigurationFrameEndInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#viewConfigurationCount} field. */ - @NativeType("uint32_t") - public int viewConfigurationCount() { return XrSecondaryViewConfigurationFrameEndInfoMSFT.nviewConfigurationCount(address()); } - /** @return a {@link XrSecondaryViewConfigurationLayerInfoMSFT.Buffer} view of the struct array pointed to by the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#viewConfigurationLayersInfo} field. */ - @NativeType("XrSecondaryViewConfigurationLayerInfoMSFT const *") - public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer viewConfigurationLayersInfo() { return XrSecondaryViewConfigurationFrameEndInfoMSFT.nviewConfigurationLayersInfo(address()); } - - /** Sets the specified value to the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#type} field. */ - public XrSecondaryViewConfigurationFrameEndInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationFrameEndInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT} value to the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#type} field. */ - public XrSecondaryViewConfigurationFrameEndInfoMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT); } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#next} field. */ - public XrSecondaryViewConfigurationFrameEndInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSecondaryViewConfigurationFrameEndInfoMSFT.nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrSecondaryViewConfigurationLayerInfoMSFT.Buffer} to the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#viewConfigurationLayersInfo} field. */ - public XrSecondaryViewConfigurationFrameEndInfoMSFT.Buffer viewConfigurationLayersInfo(@NativeType("XrSecondaryViewConfigurationLayerInfoMSFT const *") XrSecondaryViewConfigurationLayerInfoMSFT.Buffer value) { XrSecondaryViewConfigurationFrameEndInfoMSFT.nviewConfigurationLayersInfo(address(), value); return this; } + + /** @return the value of the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSecondaryViewConfigurationFrameEndInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSecondaryViewConfigurationFrameEndInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#viewConfigurationCount} field. */ + @NativeType("uint32_t") + public int viewConfigurationCount() { return XrSecondaryViewConfigurationFrameEndInfoMSFT.nviewConfigurationCount(address()); } + /** @return a {@link XrSecondaryViewConfigurationLayerInfoMSFT.Buffer} view of the struct array pointed to by the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#viewConfigurationLayersInfo} field. */ + @NativeType("XrSecondaryViewConfigurationLayerInfoMSFT const *") + public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer viewConfigurationLayersInfo() { return XrSecondaryViewConfigurationFrameEndInfoMSFT.nviewConfigurationLayersInfo(address()); } + + /** Sets the specified value to the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#type} field. */ + public XrSecondaryViewConfigurationFrameEndInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationFrameEndInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT} value to the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#type} field. */ + public XrSecondaryViewConfigurationFrameEndInfoMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT); } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#next} field. */ + public XrSecondaryViewConfigurationFrameEndInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSecondaryViewConfigurationFrameEndInfoMSFT.nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrSecondaryViewConfigurationLayerInfoMSFT.Buffer} to the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#viewConfigurationLayersInfo} field. */ + public XrSecondaryViewConfigurationFrameEndInfoMSFT.Buffer viewConfigurationLayersInfo(@NativeType("XrSecondaryViewConfigurationLayerInfoMSFT const *") XrSecondaryViewConfigurationLayerInfoMSFT.Buffer value) { XrSecondaryViewConfigurationFrameEndInfoMSFT.nviewConfigurationLayersInfo(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationFrameStateMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationFrameStateMSFT.java index abe11164bc..ee224ce960 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationFrameStateMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationFrameStateMSFT.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.*; + /** * Extension structure to xrWaitFrame to return a list of secondary view configuration states. * @@ -46,8 +46,8 @@ * uint32_t {@link #viewConfigurationCount}; * {@link XrSecondaryViewConfigurationStateMSFT XrSecondaryViewConfigurationStateMSFT} * {@link #viewConfigurationStates}; * } - */ -public class XrSecondaryViewConfigurationFrameStateMSFT extends Struct implements NativeResource { + */ +public class XrSecondaryViewConfigurationFrameStateMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,35 +57,26 @@ public class XrSecondaryViewConfigurationFrameStateMSFT extends Struct implements NativeResource { @@ -298,9 +289,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 XrSecondaryViewConfigurationFrameStateMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSecondaryViewConfigurationFrameStateMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -325,28 +316,28 @@ protected Buffer self() { protected XrSecondaryViewConfigurationFrameStateMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSecondaryViewConfigurationFrameStateMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSecondaryViewConfigurationFrameStateMSFT.ntype(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationFrameStateMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSecondaryViewConfigurationFrameStateMSFT.nnext(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationFrameStateMSFT#viewConfigurationCount} field. */ - @NativeType("uint32_t") - public int viewConfigurationCount() { return XrSecondaryViewConfigurationFrameStateMSFT.nviewConfigurationCount(address()); } - /** @return a {@link XrSecondaryViewConfigurationStateMSFT.Buffer} view of the struct array pointed to by the {@link XrSecondaryViewConfigurationFrameStateMSFT#viewConfigurationStates} field. */ - @NativeType("XrSecondaryViewConfigurationStateMSFT *") - public XrSecondaryViewConfigurationStateMSFT.Buffer viewConfigurationStates() { return XrSecondaryViewConfigurationFrameStateMSFT.nviewConfigurationStates(address()); } - - /** Sets the specified value to the {@link XrSecondaryViewConfigurationFrameStateMSFT#type} field. */ - public XrSecondaryViewConfigurationFrameStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationFrameStateMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT} value to the {@link XrSecondaryViewConfigurationFrameStateMSFT#type} field. */ - public XrSecondaryViewConfigurationFrameStateMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT); } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationFrameStateMSFT#next} field. */ - public XrSecondaryViewConfigurationFrameStateMSFT.Buffer next(@NativeType("void *") long value) { XrSecondaryViewConfigurationFrameStateMSFT.nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrSecondaryViewConfigurationStateMSFT.Buffer} to the {@link XrSecondaryViewConfigurationFrameStateMSFT#viewConfigurationStates} field. */ - public XrSecondaryViewConfigurationFrameStateMSFT.Buffer viewConfigurationStates(@NativeType("XrSecondaryViewConfigurationStateMSFT *") XrSecondaryViewConfigurationStateMSFT.Buffer value) { XrSecondaryViewConfigurationFrameStateMSFT.nviewConfigurationStates(address(), value); return this; } + + /** @return the value of the {@link XrSecondaryViewConfigurationFrameStateMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSecondaryViewConfigurationFrameStateMSFT.ntype(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationFrameStateMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSecondaryViewConfigurationFrameStateMSFT.nnext(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationFrameStateMSFT#viewConfigurationCount} field. */ + @NativeType("uint32_t") + public int viewConfigurationCount() { return XrSecondaryViewConfigurationFrameStateMSFT.nviewConfigurationCount(address()); } + /** @return a {@link XrSecondaryViewConfigurationStateMSFT.Buffer} view of the struct array pointed to by the {@link XrSecondaryViewConfigurationFrameStateMSFT#viewConfigurationStates} field. */ + @NativeType("XrSecondaryViewConfigurationStateMSFT *") + public XrSecondaryViewConfigurationStateMSFT.Buffer viewConfigurationStates() { return XrSecondaryViewConfigurationFrameStateMSFT.nviewConfigurationStates(address()); } + + /** Sets the specified value to the {@link XrSecondaryViewConfigurationFrameStateMSFT#type} field. */ + public XrSecondaryViewConfigurationFrameStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationFrameStateMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT} value to the {@link XrSecondaryViewConfigurationFrameStateMSFT#type} field. */ + public XrSecondaryViewConfigurationFrameStateMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT); } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationFrameStateMSFT#next} field. */ + public XrSecondaryViewConfigurationFrameStateMSFT.Buffer next(@NativeType("void *") long value) { XrSecondaryViewConfigurationFrameStateMSFT.nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrSecondaryViewConfigurationStateMSFT.Buffer} to the {@link XrSecondaryViewConfigurationFrameStateMSFT#viewConfigurationStates} field. */ + public XrSecondaryViewConfigurationFrameStateMSFT.Buffer viewConfigurationStates(@NativeType("XrSecondaryViewConfigurationStateMSFT *") XrSecondaryViewConfigurationStateMSFT.Buffer value) { XrSecondaryViewConfigurationFrameStateMSFT.nviewConfigurationStates(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationLayerInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationLayerInfoMSFT.java index 5aab0a6415..c6ef5dfb0f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationLayerInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationLayerInfoMSFT.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.*; + /** * Describe an array of composition layers to be submitted to given {@code XrViewConfigurationType}. * @@ -56,8 +56,8 @@ * uint32_t {@link #layerCount}; * {@link XrCompositionLayerBaseHeader XrCompositionLayerBaseHeader} const * const * {@link #layers}; * } - */ -public class XrSecondaryViewConfigurationLayerInfoMSFT extends Struct implements NativeResource { + */ +public class XrSecondaryViewConfigurationLayerInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -67,41 +67,32 @@ public class XrSecondaryViewConfigurationLayerInfoMSFT extends Structenvironment blend mode for this view configuration. */ - @NativeType("XrEnvironmentBlendMode") - public int environmentBlendMode() { return nenvironmentBlendMode(address()); } - /** the number of composition layers in this frame for the secondary view configuration type. The maximum supported layer count is identified by {@link XrSystemGraphicsProperties}::maxLayerCount. If layerCount is greater than the maximum supported layer count then {@link XR10#XR_ERROR_LAYER_LIMIT_EXCEEDED ERROR_LAYER_LIMIT_EXCEEDED} is returned. */ - @NativeType("uint32_t") - public int layerCount() { return nlayerCount(address()); } - /** a pointer to an array of {@link XrCompositionLayerBaseHeader} pointers. */ - @NativeType("XrCompositionLayerBaseHeader const * const *") - public PointerBuffer layers() { return nlayers(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT} value to the {@link #type} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #viewConfigurationType} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { nviewConfigurationType(address(), value); return this; } - /** Sets the specified value to the {@link #environmentBlendMode} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT environmentBlendMode(@NativeType("XrEnvironmentBlendMode") int value) { nenvironmentBlendMode(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link #layers} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT layers(@NativeType("XrCompositionLayerBaseHeader const * const *") PointerBuffer value) { nlayers(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()); } + /** {@code XrViewConfigurationType} to which the composition layers will be displayed. */ + @NativeType("XrViewConfigurationType") + public int viewConfigurationType() { return nviewConfigurationType(address()); } + /** the {@code XrEnvironmentBlendMode} value representing the desired environment blend mode for this view configuration. */ + @NativeType("XrEnvironmentBlendMode") + public int environmentBlendMode() { return nenvironmentBlendMode(address()); } + /** the number of composition layers in this frame for the secondary view configuration type. The maximum supported layer count is identified by {@link XrSystemGraphicsProperties}::maxLayerCount. If layerCount is greater than the maximum supported layer count then {@link XR10#XR_ERROR_LAYER_LIMIT_EXCEEDED ERROR_LAYER_LIMIT_EXCEEDED} is returned. */ + @NativeType("uint32_t") + public int layerCount() { return nlayerCount(address()); } + /** a pointer to an array of {@link XrCompositionLayerBaseHeader} pointers. */ + @NativeType("XrCompositionLayerBaseHeader const * const *") + public PointerBuffer layers() { return nlayers(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT} value to the {@link #type} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #viewConfigurationType} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { nviewConfigurationType(address(), value); return this; } + /** Sets the specified value to the {@link #environmentBlendMode} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT environmentBlendMode(@NativeType("XrEnvironmentBlendMode") int value) { nenvironmentBlendMode(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link #layers} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT layers(@NativeType("XrCompositionLayerBaseHeader const * const *") PointerBuffer value) { nlayers(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSecondaryViewConfigurationLayerInfoMSFT set( - int type, - long next, - int viewConfigurationType, - int environmentBlendMode, + int type, + long next, + int viewConfigurationType, + int environmentBlendMode, PointerBuffer layers - ) { - type(type); - next(next); - viewConfigurationType(viewConfigurationType); - environmentBlendMode(environmentBlendMode); - layers(layers); + ) { + type(type); + next(next); + viewConfigurationType(viewConfigurationType); + environmentBlendMode(environmentBlendMode); + layers(layers); return this; } @@ -182,29 +173,29 @@ public XrSecondaryViewConfigurationLayerInfoMSFT set(XrSecondaryViewConfiguratio /** Returns a new {@code XrSecondaryViewConfigurationLayerInfoMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSecondaryViewConfigurationLayerInfoMSFT malloc() { - return new XrSecondaryViewConfigurationLayerInfoMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSecondaryViewConfigurationLayerInfoMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSecondaryViewConfigurationLayerInfoMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSecondaryViewConfigurationLayerInfoMSFT calloc() { - return new XrSecondaryViewConfigurationLayerInfoMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSecondaryViewConfigurationLayerInfoMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSecondaryViewConfigurationLayerInfoMSFT} instance allocated with {@link BufferUtils}. */ public static XrSecondaryViewConfigurationLayerInfoMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSecondaryViewConfigurationLayerInfoMSFT(memAddress(container), container); + return wrap(XrSecondaryViewConfigurationLayerInfoMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSecondaryViewConfigurationLayerInfoMSFT} instance for the specified memory address. */ public static XrSecondaryViewConfigurationLayerInfoMSFT create(long address) { - return new XrSecondaryViewConfigurationLayerInfoMSFT(address, null); + return wrap(XrSecondaryViewConfigurationLayerInfoMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSecondaryViewConfigurationLayerInfoMSFT createSafe(long address) { - return address == NULL ? null : new XrSecondaryViewConfigurationLayerInfoMSFT(address, null); + return address == NULL ? null : wrap(XrSecondaryViewConfigurationLayerInfoMSFT.class, address); } /** @@ -213,7 +204,7 @@ public static XrSecondaryViewConfigurationLayerInfoMSFT createSafe(long address) * @param capacity the buffer capacity */ public static XrSecondaryViewConfigurationLayerInfoMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -222,7 +213,7 @@ public static XrSecondaryViewConfigurationLayerInfoMSFT.Buffer malloc(int capaci * @param capacity the buffer capacity */ public static XrSecondaryViewConfigurationLayerInfoMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -232,7 +223,7 @@ public static XrSecondaryViewConfigurationLayerInfoMSFT.Buffer calloc(int capaci */ public static XrSecondaryViewConfigurationLayerInfoMSFT.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); } /** @@ -242,13 +233,13 @@ public static XrSecondaryViewConfigurationLayerInfoMSFT.Buffer create(int capaci * @param capacity the buffer capacity */ public static XrSecondaryViewConfigurationLayerInfoMSFT.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 XrSecondaryViewConfigurationLayerInfoMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -257,7 +248,7 @@ public static XrSecondaryViewConfigurationLayerInfoMSFT.Buffer createSafe(long a * @param stack the stack from which to allocate */ public static XrSecondaryViewConfigurationLayerInfoMSFT malloc(MemoryStack stack) { - return new XrSecondaryViewConfigurationLayerInfoMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSecondaryViewConfigurationLayerInfoMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -266,7 +257,7 @@ public static XrSecondaryViewConfigurationLayerInfoMSFT malloc(MemoryStack stack * @param stack the stack from which to allocate */ public static XrSecondaryViewConfigurationLayerInfoMSFT calloc(MemoryStack stack) { - return new XrSecondaryViewConfigurationLayerInfoMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSecondaryViewConfigurationLayerInfoMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -276,7 +267,7 @@ public static XrSecondaryViewConfigurationLayerInfoMSFT calloc(MemoryStack stack * @param capacity the buffer capacity */ public static XrSecondaryViewConfigurationLayerInfoMSFT.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); } /** @@ -286,36 +277,36 @@ public static XrSecondaryViewConfigurationLayerInfoMSFT.Buffer malloc(int capaci * @param capacity the buffer capacity */ public static XrSecondaryViewConfigurationLayerInfoMSFT.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 + XrSecondaryViewConfigurationLayerInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSecondaryViewConfigurationLayerInfoMSFT.NEXT); } - /** Unsafe version of {@link #viewConfigurationType}. */ - public static int nviewConfigurationType(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.VIEWCONFIGURATIONTYPE); } - /** Unsafe version of {@link #environmentBlendMode}. */ - public static int nenvironmentBlendMode(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.ENVIRONMENTBLENDMODE); } - /** Unsafe version of {@link #layerCount}. */ - public static int nlayerCount(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.LAYERCOUNT); } - /** Unsafe version of {@link #layers() layers}. */ - public static PointerBuffer nlayers(long struct) { return memPointerBuffer(memGetAddress(struct + XrSecondaryViewConfigurationLayerInfoMSFT.LAYERS), nlayerCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSecondaryViewConfigurationLayerInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #viewConfigurationType(int) viewConfigurationType}. */ - public static void nviewConfigurationType(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.VIEWCONFIGURATIONTYPE, value); } - /** Unsafe version of {@link #environmentBlendMode(int) environmentBlendMode}. */ - public static void nenvironmentBlendMode(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.ENVIRONMENTBLENDMODE, value); } - /** Sets the specified value to the {@code layerCount} field of the specified {@code struct}. */ - public static void nlayerCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.LAYERCOUNT, value); } - /** Unsafe version of {@link #layers(PointerBuffer) layers}. */ - public static void nlayers(long struct, PointerBuffer value) { memPutAddress(struct + XrSecondaryViewConfigurationLayerInfoMSFT.LAYERS, memAddress(value)); nlayerCount(struct, value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSecondaryViewConfigurationLayerInfoMSFT.NEXT); } + /** Unsafe version of {@link #viewConfigurationType}. */ + public static int nviewConfigurationType(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.VIEWCONFIGURATIONTYPE); } + /** Unsafe version of {@link #environmentBlendMode}. */ + public static int nenvironmentBlendMode(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.ENVIRONMENTBLENDMODE); } + /** Unsafe version of {@link #layerCount}. */ + public static int nlayerCount(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.LAYERCOUNT); } + /** Unsafe version of {@link #layers() layers}. */ + public static PointerBuffer nlayers(long struct) { return memPointerBuffer(memGetAddress(struct + XrSecondaryViewConfigurationLayerInfoMSFT.LAYERS), nlayerCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSecondaryViewConfigurationLayerInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #viewConfigurationType(int) viewConfigurationType}. */ + public static void nviewConfigurationType(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.VIEWCONFIGURATIONTYPE, value); } + /** Unsafe version of {@link #environmentBlendMode(int) environmentBlendMode}. */ + public static void nenvironmentBlendMode(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.ENVIRONMENTBLENDMODE, value); } + /** Sets the specified value to the {@code layerCount} field of the specified {@code struct}. */ + public static void nlayerCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.LAYERCOUNT, value); } + /** Unsafe version of {@link #layers(PointerBuffer) layers}. */ + public static void nlayers(long struct, PointerBuffer value) { memPutAddress(struct + XrSecondaryViewConfigurationLayerInfoMSFT.LAYERS, memAddress(value)); nlayerCount(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -324,9 +315,9 @@ public static XrSecondaryViewConfigurationLayerInfoMSFT.Buffer calloc(int capaci */ public static void validate(long struct) { check(memGetAddress(struct + XrSecondaryViewConfigurationLayerInfoMSFT.LAYERS)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSecondaryViewConfigurationLayerInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -336,9 +327,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 XrSecondaryViewConfigurationLayerInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSecondaryViewConfigurationLayerInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -363,38 +354,38 @@ protected Buffer self() { protected XrSecondaryViewConfigurationLayerInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSecondaryViewConfigurationLayerInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSecondaryViewConfigurationLayerInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#viewConfigurationType} field. */ - @NativeType("XrViewConfigurationType") - public int viewConfigurationType() { return XrSecondaryViewConfigurationLayerInfoMSFT.nviewConfigurationType(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#environmentBlendMode} field. */ - @NativeType("XrEnvironmentBlendMode") - public int environmentBlendMode() { return XrSecondaryViewConfigurationLayerInfoMSFT.nenvironmentBlendMode(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#layerCount} field. */ - @NativeType("uint32_t") - public int layerCount() { return XrSecondaryViewConfigurationLayerInfoMSFT.nlayerCount(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrSecondaryViewConfigurationLayerInfoMSFT#layers} field. */ - @NativeType("XrCompositionLayerBaseHeader const * const *") - public PointerBuffer layers() { return XrSecondaryViewConfigurationLayerInfoMSFT.nlayers(address()); } - - /** Sets the specified value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#type} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationLayerInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT} value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#type} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT); } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#next} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSecondaryViewConfigurationLayerInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#viewConfigurationType} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrSecondaryViewConfigurationLayerInfoMSFT.nviewConfigurationType(address(), value); return this; } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#environmentBlendMode} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer environmentBlendMode(@NativeType("XrEnvironmentBlendMode") int value) { XrSecondaryViewConfigurationLayerInfoMSFT.nenvironmentBlendMode(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#layers} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer layers(@NativeType("XrCompositionLayerBaseHeader const * const *") PointerBuffer value) { XrSecondaryViewConfigurationLayerInfoMSFT.nlayers(address(), value); return this; } + + /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSecondaryViewConfigurationLayerInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSecondaryViewConfigurationLayerInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#viewConfigurationType} field. */ + @NativeType("XrViewConfigurationType") + public int viewConfigurationType() { return XrSecondaryViewConfigurationLayerInfoMSFT.nviewConfigurationType(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#environmentBlendMode} field. */ + @NativeType("XrEnvironmentBlendMode") + public int environmentBlendMode() { return XrSecondaryViewConfigurationLayerInfoMSFT.nenvironmentBlendMode(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#layerCount} field. */ + @NativeType("uint32_t") + public int layerCount() { return XrSecondaryViewConfigurationLayerInfoMSFT.nlayerCount(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrSecondaryViewConfigurationLayerInfoMSFT#layers} field. */ + @NativeType("XrCompositionLayerBaseHeader const * const *") + public PointerBuffer layers() { return XrSecondaryViewConfigurationLayerInfoMSFT.nlayers(address()); } + + /** Sets the specified value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#type} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationLayerInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT} value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#type} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT); } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#next} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSecondaryViewConfigurationLayerInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#viewConfigurationType} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrSecondaryViewConfigurationLayerInfoMSFT.nviewConfigurationType(address(), value); return this; } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#environmentBlendMode} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer environmentBlendMode(@NativeType("XrEnvironmentBlendMode") int value) { XrSecondaryViewConfigurationLayerInfoMSFT.nenvironmentBlendMode(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#layers} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer layers(@NativeType("XrCompositionLayerBaseHeader const * const *") PointerBuffer value) { XrSecondaryViewConfigurationLayerInfoMSFT.nlayers(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationSessionBeginInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationSessionBeginInfoMSFT.java index 737d0d4cde..10afa01fd7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationSessionBeginInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationSessionBeginInfoMSFT.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 extension structure to {@link XR10#xrBeginSession BeginSession} indicating supported view configuration types. * @@ -50,8 +50,8 @@ * uint32_t {@link #viewConfigurationCount}; * XrViewConfigurationType const * {@link #enabledViewConfigurationTypes}; * } - */ -public class XrSecondaryViewConfigurationSessionBeginInfoMSFT extends Struct implements NativeResource { + */ +public class XrSecondaryViewConfigurationSessionBeginInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -61,35 +61,26 @@ public class XrSecondaryViewConfigurationSessionBeginInfoMSFT extends Struct implements NativeResource { @@ -302,9 +293,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 XrSecondaryViewConfigurationSessionBeginInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -329,28 +320,28 @@ protected Buffer self() { protected XrSecondaryViewConfigurationSessionBeginInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSecondaryViewConfigurationSessionBeginInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSecondaryViewConfigurationSessionBeginInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#viewConfigurationCount} field. */ - @NativeType("uint32_t") - public int viewConfigurationCount() { return XrSecondaryViewConfigurationSessionBeginInfoMSFT.nviewConfigurationCount(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#enabledViewConfigurationTypes} field. */ - @NativeType("XrViewConfigurationType const *") - public IntBuffer enabledViewConfigurationTypes() { return XrSecondaryViewConfigurationSessionBeginInfoMSFT.nenabledViewConfigurationTypes(address()); } - - /** Sets the specified value to the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#type} field. */ - public XrSecondaryViewConfigurationSessionBeginInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationSessionBeginInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT} value to the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#type} field. */ - public XrSecondaryViewConfigurationSessionBeginInfoMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT); } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#next} field. */ - public XrSecondaryViewConfigurationSessionBeginInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSecondaryViewConfigurationSessionBeginInfoMSFT.nnext(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#enabledViewConfigurationTypes} field. */ - public XrSecondaryViewConfigurationSessionBeginInfoMSFT.Buffer enabledViewConfigurationTypes(@NativeType("XrViewConfigurationType const *") IntBuffer value) { XrSecondaryViewConfigurationSessionBeginInfoMSFT.nenabledViewConfigurationTypes(address(), value); return this; } + + /** @return the value of the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSecondaryViewConfigurationSessionBeginInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSecondaryViewConfigurationSessionBeginInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#viewConfigurationCount} field. */ + @NativeType("uint32_t") + public int viewConfigurationCount() { return XrSecondaryViewConfigurationSessionBeginInfoMSFT.nviewConfigurationCount(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#enabledViewConfigurationTypes} field. */ + @NativeType("XrViewConfigurationType const *") + public IntBuffer enabledViewConfigurationTypes() { return XrSecondaryViewConfigurationSessionBeginInfoMSFT.nenabledViewConfigurationTypes(address()); } + + /** Sets the specified value to the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#type} field. */ + public XrSecondaryViewConfigurationSessionBeginInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationSessionBeginInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT} value to the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#type} field. */ + public XrSecondaryViewConfigurationSessionBeginInfoMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT); } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#next} field. */ + public XrSecondaryViewConfigurationSessionBeginInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSecondaryViewConfigurationSessionBeginInfoMSFT.nnext(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#enabledViewConfigurationTypes} field. */ + public XrSecondaryViewConfigurationSessionBeginInfoMSFT.Buffer enabledViewConfigurationTypes(@NativeType("XrViewConfigurationType const *") IntBuffer value) { XrSecondaryViewConfigurationSessionBeginInfoMSFT.nenabledViewConfigurationTypes(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationStateMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationStateMSFT.java index 0fd9ad2046..3cee0f924a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationStateMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationStateMSFT.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.*; + /** * Returns the state of an enabled secondary view configuration. * @@ -48,8 +48,8 @@ * XrViewConfigurationType {@link #viewConfigurationType}; * XrBool32 {@link #active}; * } - */ -public class XrSecondaryViewConfigurationStateMSFT extends Struct implements NativeResource { + */ +public class XrSecondaryViewConfigurationStateMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -59,35 +59,26 @@ public class XrSecondaryViewConfigurationStateMSFT extends Struct implements NativeResource { @@ -295,9 +286,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 XrSecondaryViewConfigurationStateMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSecondaryViewConfigurationStateMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -322,30 +313,30 @@ protected Buffer self() { protected XrSecondaryViewConfigurationStateMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSecondaryViewConfigurationStateMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSecondaryViewConfigurationStateMSFT.ntype(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationStateMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSecondaryViewConfigurationStateMSFT.nnext(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationStateMSFT#viewConfigurationType} field. */ - @NativeType("XrViewConfigurationType") - public int viewConfigurationType() { return XrSecondaryViewConfigurationStateMSFT.nviewConfigurationType(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationStateMSFT#active} field. */ - @NativeType("XrBool32") - public boolean active() { return XrSecondaryViewConfigurationStateMSFT.nactive(address()) != 0; } - - /** Sets the specified value to the {@link XrSecondaryViewConfigurationStateMSFT#type} field. */ - public XrSecondaryViewConfigurationStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationStateMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_STATE_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_STATE_MSFT} value to the {@link XrSecondaryViewConfigurationStateMSFT#type} field. */ - public XrSecondaryViewConfigurationStateMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_STATE_MSFT); } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationStateMSFT#next} field. */ - public XrSecondaryViewConfigurationStateMSFT.Buffer next(@NativeType("void *") long value) { XrSecondaryViewConfigurationStateMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationStateMSFT#viewConfigurationType} field. */ - public XrSecondaryViewConfigurationStateMSFT.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrSecondaryViewConfigurationStateMSFT.nviewConfigurationType(address(), value); return this; } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationStateMSFT#active} field. */ - public XrSecondaryViewConfigurationStateMSFT.Buffer active(@NativeType("XrBool32") boolean value) { XrSecondaryViewConfigurationStateMSFT.nactive(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrSecondaryViewConfigurationStateMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSecondaryViewConfigurationStateMSFT.ntype(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationStateMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSecondaryViewConfigurationStateMSFT.nnext(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationStateMSFT#viewConfigurationType} field. */ + @NativeType("XrViewConfigurationType") + public int viewConfigurationType() { return XrSecondaryViewConfigurationStateMSFT.nviewConfigurationType(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationStateMSFT#active} field. */ + @NativeType("XrBool32") + public boolean active() { return XrSecondaryViewConfigurationStateMSFT.nactive(address()) != 0; } + + /** Sets the specified value to the {@link XrSecondaryViewConfigurationStateMSFT#type} field. */ + public XrSecondaryViewConfigurationStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationStateMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_STATE_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_STATE_MSFT} value to the {@link XrSecondaryViewConfigurationStateMSFT#type} field. */ + public XrSecondaryViewConfigurationStateMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_STATE_MSFT); } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationStateMSFT#next} field. */ + public XrSecondaryViewConfigurationStateMSFT.Buffer next(@NativeType("void *") long value) { XrSecondaryViewConfigurationStateMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationStateMSFT#viewConfigurationType} field. */ + public XrSecondaryViewConfigurationStateMSFT.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrSecondaryViewConfigurationStateMSFT.nviewConfigurationType(address(), value); return this; } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationStateMSFT#active} field. */ + public XrSecondaryViewConfigurationStateMSFT.Buffer active(@NativeType("XrBool32") boolean value) { XrSecondaryViewConfigurationStateMSFT.nactive(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.java index aeb9a436df..3532581548 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.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.*; + /** * Hint to runtime that the created swapchain image will be used for given secondary view configuration. * @@ -45,8 +45,8 @@ * void const * {@link #next}; * XrViewConfigurationType {@link #viewConfigurationType}; * } - */ -public class XrSecondaryViewConfigurationSwapchainCreateInfoMSFT extends Struct implements NativeResource { + */ +public class XrSecondaryViewConfigurationSwapchainCreateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,32 +56,23 @@ public class XrSecondaryViewConfigurationSwapchainCreateInfoMSFT extends Struct< /** The struct member offsets. */ public static final int - TYPE, - NEXT, - VIEWCONFIGURATIONTYPE; + TYPE, + NEXT, + VIEWCONFIGURATIONTYPE; 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); - VIEWCONFIGURATIONTYPE = layout.offsetof(2); - } - - protected XrSecondaryViewConfigurationSwapchainCreateInfoMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSecondaryViewConfigurationSwapchainCreateInfoMSFT create(long address, @Nullable ByteBuffer container) { - return new XrSecondaryViewConfigurationSwapchainCreateInfoMSFT(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + VIEWCONFIGURATIONTYPE = layout.offsetof(2); } /** @@ -96,35 +87,35 @@ public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT(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()); } - /** the secondary view configuration type the application is intending to use this swapchain for. */ - @NativeType("XrViewConfigurationType") - public int viewConfigurationType() { return nviewConfigurationType(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT} value to the {@link #type} field. */ - public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #viewConfigurationType} field. */ - public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { nviewConfigurationType(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()); } + /** the secondary view configuration type the application is intending to use this swapchain for. */ + @NativeType("XrViewConfigurationType") + public int viewConfigurationType() { return nviewConfigurationType(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT} value to the {@link #type} field. */ + public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #viewConfigurationType} field. */ + public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { nviewConfigurationType(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT set( - int type, - long next, + int type, + long next, int viewConfigurationType - ) { - type(type); - next(next); - viewConfigurationType(viewConfigurationType); + ) { + type(type); + next(next); + viewConfigurationType(viewConfigurationType); return this; } @@ -145,29 +136,29 @@ public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT set(XrSecondaryViewCo /** Returns a new {@code XrSecondaryViewConfigurationSwapchainCreateInfoMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT malloc() { - return new XrSecondaryViewConfigurationSwapchainCreateInfoMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSecondaryViewConfigurationSwapchainCreateInfoMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT calloc() { - return new XrSecondaryViewConfigurationSwapchainCreateInfoMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSecondaryViewConfigurationSwapchainCreateInfoMSFT} instance allocated with {@link BufferUtils}. */ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSecondaryViewConfigurationSwapchainCreateInfoMSFT(memAddress(container), container); + return wrap(XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSecondaryViewConfigurationSwapchainCreateInfoMSFT} instance for the specified memory address. */ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT create(long address) { - return new XrSecondaryViewConfigurationSwapchainCreateInfoMSFT(address, null); + return wrap(XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT createSafe(long address) { - return address == NULL ? null : new XrSecondaryViewConfigurationSwapchainCreateInfoMSFT(address, null); + return address == NULL ? null : wrap(XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.class, address); } /** @@ -176,7 +167,7 @@ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT createSafe(lon * @param capacity the buffer capacity */ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -185,7 +176,7 @@ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer malloc( * @param capacity the buffer capacity */ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -195,7 +186,7 @@ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer calloc( */ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.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); } /** @@ -205,13 +196,13 @@ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer create( * @param capacity the buffer capacity */ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.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 XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -220,7 +211,7 @@ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer createS * @param stack the stack from which to allocate */ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT malloc(MemoryStack stack) { - return new XrSecondaryViewConfigurationSwapchainCreateInfoMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -229,7 +220,7 @@ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT malloc(MemoryS * @param stack the stack from which to allocate */ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT calloc(MemoryStack stack) { - return new XrSecondaryViewConfigurationSwapchainCreateInfoMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -239,7 +230,7 @@ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT calloc(MemoryS * @param capacity the buffer capacity */ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.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); } /** @@ -249,26 +240,26 @@ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer malloc( * @param capacity the buffer capacity */ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.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 + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.NEXT); } - /** Unsafe version of {@link #viewConfigurationType}. */ - public static int nviewConfigurationType(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.VIEWCONFIGURATIONTYPE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #viewConfigurationType(int) viewConfigurationType}. */ - public static void nviewConfigurationType(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.VIEWCONFIGURATIONTYPE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.NEXT); } + /** Unsafe version of {@link #viewConfigurationType}. */ + public static int nviewConfigurationType(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.VIEWCONFIGURATIONTYPE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #viewConfigurationType(int) viewConfigurationType}. */ + public static void nviewConfigurationType(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.VIEWCONFIGURATIONTYPE, value); } + + // ----------------------------------- /** An array of {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -278,9 +269,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 XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -305,25 +296,25 @@ protected Buffer self() { protected XrSecondaryViewConfigurationSwapchainCreateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#viewConfigurationType} field. */ - @NativeType("XrViewConfigurationType") - public int viewConfigurationType() { return XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.nviewConfigurationType(address()); } - - /** Sets the specified value to the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#type} field. */ - public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT} value to the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#type} field. */ - public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#next} field. */ - public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#viewConfigurationType} field. */ - public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.nviewConfigurationType(address(), value); return this; } + + /** @return the value of the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#viewConfigurationType} field. */ + @NativeType("XrViewConfigurationType") + public int viewConfigurationType() { return XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.nviewConfigurationType(address()); } + + /** Sets the specified value to the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#type} field. */ + public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT} value to the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#type} field. */ + public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#next} field. */ + public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#viewConfigurationType} field. */ + public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.nviewConfigurationType(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSerializedSceneFragmentDataGetInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSerializedSceneFragmentDataGetInfoMSFT.java index 9aae25ae72..7978ad3a7b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSerializedSceneFragmentDataGetInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSerializedSceneFragmentDataGetInfoMSFT.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 information to get the serialized scene fragment data. * @@ -38,8 +38,8 @@ * void const * {@link #next}; * {@link XrUuidMSFT XrUuidMSFT} {@link #sceneFragmentId}; * } - */ -public class XrSerializedSceneFragmentDataGetInfoMSFT extends Struct implements NativeResource { + */ +public class XrSerializedSceneFragmentDataGetInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,32 +49,23 @@ public class XrSerializedSceneFragmentDataGetInfoMSFT extends Struct consumer) { consumer.accept(sceneFragmentId()); 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()); } + /** the {@link XrUuidMSFT} of the serialized scene fragment that was previously read from {@link MSFTSceneUnderstanding#xrGetSceneComponentsMSFT GetSceneComponentsMSFT} with {@link MSFTSceneUnderstandingSerialization#XR_SCENE_COMPONENT_TYPE_SERIALIZED_SCENE_FRAGMENT_MSFT SCENE_COMPONENT_TYPE_SERIALIZED_SCENE_FRAGMENT_MSFT}. */ + public XrUuidMSFT sceneFragmentId() { return nsceneFragmentId(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSerializedSceneFragmentDataGetInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstandingSerialization#XR_TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT} value to the {@link #type} field. */ + public XrSerializedSceneFragmentDataGetInfoMSFT type$Default() { return type(MSFTSceneUnderstandingSerialization.XR_TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSerializedSceneFragmentDataGetInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrUuidMSFT} to the {@link #sceneFragmentId} field. */ + public XrSerializedSceneFragmentDataGetInfoMSFT sceneFragmentId(XrUuidMSFT value) { nsceneFragmentId(address(), value); return this; } + /** Passes the {@link #sceneFragmentId} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSerializedSceneFragmentDataGetInfoMSFT sceneFragmentId(java.util.function.Consumer consumer) { consumer.accept(sceneFragmentId()); return this; } /** Initializes this struct with the specified values. */ public XrSerializedSceneFragmentDataGetInfoMSFT set( - int type, - long next, + int type, + long next, XrUuidMSFT sceneFragmentId - ) { - type(type); - next(next); - sceneFragmentId(sceneFragmentId); + ) { + type(type); + next(next); + sceneFragmentId(sceneFragmentId); return this; } @@ -139,29 +130,29 @@ public XrSerializedSceneFragmentDataGetInfoMSFT set(XrSerializedSceneFragmentDat /** Returns a new {@code XrSerializedSceneFragmentDataGetInfoMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSerializedSceneFragmentDataGetInfoMSFT malloc() { - return new XrSerializedSceneFragmentDataGetInfoMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSerializedSceneFragmentDataGetInfoMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSerializedSceneFragmentDataGetInfoMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSerializedSceneFragmentDataGetInfoMSFT calloc() { - return new XrSerializedSceneFragmentDataGetInfoMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSerializedSceneFragmentDataGetInfoMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSerializedSceneFragmentDataGetInfoMSFT} instance allocated with {@link BufferUtils}. */ public static XrSerializedSceneFragmentDataGetInfoMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSerializedSceneFragmentDataGetInfoMSFT(memAddress(container), container); + return wrap(XrSerializedSceneFragmentDataGetInfoMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSerializedSceneFragmentDataGetInfoMSFT} instance for the specified memory address. */ public static XrSerializedSceneFragmentDataGetInfoMSFT create(long address) { - return new XrSerializedSceneFragmentDataGetInfoMSFT(address, null); + return wrap(XrSerializedSceneFragmentDataGetInfoMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSerializedSceneFragmentDataGetInfoMSFT createSafe(long address) { - return address == NULL ? null : new XrSerializedSceneFragmentDataGetInfoMSFT(address, null); + return address == NULL ? null : wrap(XrSerializedSceneFragmentDataGetInfoMSFT.class, address); } /** @@ -170,7 +161,7 @@ public static XrSerializedSceneFragmentDataGetInfoMSFT createSafe(long address) * @param capacity the buffer capacity */ public static XrSerializedSceneFragmentDataGetInfoMSFT.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 XrSerializedSceneFragmentDataGetInfoMSFT.Buffer malloc(int capacit * @param capacity the buffer capacity */ public static XrSerializedSceneFragmentDataGetInfoMSFT.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 XrSerializedSceneFragmentDataGetInfoMSFT.Buffer calloc(int capacit */ public static XrSerializedSceneFragmentDataGetInfoMSFT.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 XrSerializedSceneFragmentDataGetInfoMSFT.Buffer create(int capacit * @param capacity the buffer capacity */ public static XrSerializedSceneFragmentDataGetInfoMSFT.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 XrSerializedSceneFragmentDataGetInfoMSFT.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 XrSerializedSceneFragmentDataGetInfoMSFT.Buffer createSafe(long ad * @param stack the stack from which to allocate */ public static XrSerializedSceneFragmentDataGetInfoMSFT malloc(MemoryStack stack) { - return new XrSerializedSceneFragmentDataGetInfoMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSerializedSceneFragmentDataGetInfoMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -223,7 +214,7 @@ public static XrSerializedSceneFragmentDataGetInfoMSFT malloc(MemoryStack stack) * @param stack the stack from which to allocate */ public static XrSerializedSceneFragmentDataGetInfoMSFT calloc(MemoryStack stack) { - return new XrSerializedSceneFragmentDataGetInfoMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSerializedSceneFragmentDataGetInfoMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -233,7 +224,7 @@ public static XrSerializedSceneFragmentDataGetInfoMSFT calloc(MemoryStack stack) * @param capacity the buffer capacity */ public static XrSerializedSceneFragmentDataGetInfoMSFT.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 XrSerializedSceneFragmentDataGetInfoMSFT.Buffer malloc(int capacit * @param capacity the buffer capacity */ public static XrSerializedSceneFragmentDataGetInfoMSFT.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 + XrSerializedSceneFragmentDataGetInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSerializedSceneFragmentDataGetInfoMSFT.NEXT); } - /** Unsafe version of {@link #sceneFragmentId}. */ - public static XrUuidMSFT nsceneFragmentId(long struct) { return XrUuidMSFT.create(struct + XrSerializedSceneFragmentDataGetInfoMSFT.SCENEFRAGMENTID); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSerializedSceneFragmentDataGetInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSerializedSceneFragmentDataGetInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #sceneFragmentId(XrUuidMSFT) sceneFragmentId}. */ - public static void nsceneFragmentId(long struct, XrUuidMSFT value) { memCopy(value.address(), struct + XrSerializedSceneFragmentDataGetInfoMSFT.SCENEFRAGMENTID, XrUuidMSFT.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSerializedSceneFragmentDataGetInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSerializedSceneFragmentDataGetInfoMSFT.NEXT); } + /** Unsafe version of {@link #sceneFragmentId}. */ + public static XrUuidMSFT nsceneFragmentId(long struct) { return XrUuidMSFT.create(struct + XrSerializedSceneFragmentDataGetInfoMSFT.SCENEFRAGMENTID); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSerializedSceneFragmentDataGetInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSerializedSceneFragmentDataGetInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #sceneFragmentId(XrUuidMSFT) sceneFragmentId}. */ + public static void nsceneFragmentId(long struct, XrUuidMSFT value) { memCopy(value.address(), struct + XrSerializedSceneFragmentDataGetInfoMSFT.SCENEFRAGMENTID, XrUuidMSFT.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSerializedSceneFragmentDataGetInfoMSFT} 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 XrSerializedSceneFragmentDataGetInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSerializedSceneFragmentDataGetInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -299,26 +290,26 @@ protected Buffer self() { protected XrSerializedSceneFragmentDataGetInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSerializedSceneFragmentDataGetInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSerializedSceneFragmentDataGetInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSerializedSceneFragmentDataGetInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSerializedSceneFragmentDataGetInfoMSFT.nnext(address()); } - /** @return a {@link XrUuidMSFT} view of the {@link XrSerializedSceneFragmentDataGetInfoMSFT#sceneFragmentId} field. */ - public XrUuidMSFT sceneFragmentId() { return XrSerializedSceneFragmentDataGetInfoMSFT.nsceneFragmentId(address()); } - - /** Sets the specified value to the {@link XrSerializedSceneFragmentDataGetInfoMSFT#type} field. */ - public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSerializedSceneFragmentDataGetInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstandingSerialization#XR_TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT} value to the {@link XrSerializedSceneFragmentDataGetInfoMSFT#type} field. */ - public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstandingSerialization.XR_TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT); } - /** Sets the specified value to the {@link XrSerializedSceneFragmentDataGetInfoMSFT#next} field. */ - public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSerializedSceneFragmentDataGetInfoMSFT.nnext(address(), value); return this; } - /** Copies the specified {@link XrUuidMSFT} to the {@link XrSerializedSceneFragmentDataGetInfoMSFT#sceneFragmentId} field. */ - public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer sceneFragmentId(XrUuidMSFT value) { XrSerializedSceneFragmentDataGetInfoMSFT.nsceneFragmentId(address(), value); return this; } - /** Passes the {@link XrSerializedSceneFragmentDataGetInfoMSFT#sceneFragmentId} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer sceneFragmentId(java.util.function.Consumer consumer) { consumer.accept(sceneFragmentId()); return this; } + + /** @return the value of the {@link XrSerializedSceneFragmentDataGetInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSerializedSceneFragmentDataGetInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSerializedSceneFragmentDataGetInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSerializedSceneFragmentDataGetInfoMSFT.nnext(address()); } + /** @return a {@link XrUuidMSFT} view of the {@link XrSerializedSceneFragmentDataGetInfoMSFT#sceneFragmentId} field. */ + public XrUuidMSFT sceneFragmentId() { return XrSerializedSceneFragmentDataGetInfoMSFT.nsceneFragmentId(address()); } + + /** Sets the specified value to the {@link XrSerializedSceneFragmentDataGetInfoMSFT#type} field. */ + public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSerializedSceneFragmentDataGetInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstandingSerialization#XR_TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT} value to the {@link XrSerializedSceneFragmentDataGetInfoMSFT#type} field. */ + public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstandingSerialization.XR_TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT); } + /** Sets the specified value to the {@link XrSerializedSceneFragmentDataGetInfoMSFT#next} field. */ + public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSerializedSceneFragmentDataGetInfoMSFT.nnext(address(), value); return this; } + /** Copies the specified {@link XrUuidMSFT} to the {@link XrSerializedSceneFragmentDataGetInfoMSFT#sceneFragmentId} field. */ + public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer sceneFragmentId(XrUuidMSFT value) { XrSerializedSceneFragmentDataGetInfoMSFT.nsceneFragmentId(address(), value); return this; } + /** Passes the {@link XrSerializedSceneFragmentDataGetInfoMSFT#sceneFragmentId} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer sceneFragmentId(java.util.function.Consumer consumer) { consumer.accept(sceneFragmentId()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSession.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSession.java index ab35368840..5b32697e53 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSession.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSession.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrSession} handle. */ + +/** Wraps an {@code XrSession} handle. */ public class XrSession 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/XrSessionActionSetsAttachInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionActionSetsAttachInfo.java index b91714aa14..59c3b48fa0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionActionSetsAttachInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionActionSetsAttachInfo.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 attach action sets to a session. * @@ -41,8 +41,8 @@ * uint32_t {@link #countActionSets}; * XrActionSet const * {@link #actionSets}; * } - */ -public class XrSessionActionSetsAttachInfo extends Struct implements NativeResource { + */ +public class XrSessionActionSetsAttachInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,35 +52,26 @@ public class XrSessionActionSetsAttachInfo extends Struct implements NativeResource { @@ -293,9 +284,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 XrSessionActionSetsAttachInfo#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSessionActionSetsAttachInfo#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -320,28 +311,28 @@ protected Buffer self() { protected XrSessionActionSetsAttachInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSessionActionSetsAttachInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSessionActionSetsAttachInfo.ntype(address()); } - /** @return the value of the {@link XrSessionActionSetsAttachInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrSessionActionSetsAttachInfo.nnext(address()); } - /** @return the value of the {@link XrSessionActionSetsAttachInfo#countActionSets} field. */ - @NativeType("uint32_t") - public int countActionSets() { return XrSessionActionSetsAttachInfo.ncountActionSets(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrSessionActionSetsAttachInfo#actionSets} field. */ - @NativeType("XrActionSet const *") - public PointerBuffer actionSets() { return XrSessionActionSetsAttachInfo.nactionSets(address()); } - - /** Sets the specified value to the {@link XrSessionActionSetsAttachInfo#type} field. */ - public XrSessionActionSetsAttachInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSessionActionSetsAttachInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SESSION_ACTION_SETS_ATTACH_INFO TYPE_SESSION_ACTION_SETS_ATTACH_INFO} value to the {@link XrSessionActionSetsAttachInfo#type} field. */ - public XrSessionActionSetsAttachInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SESSION_ACTION_SETS_ATTACH_INFO); } - /** Sets the specified value to the {@link XrSessionActionSetsAttachInfo#next} field. */ - public XrSessionActionSetsAttachInfo.Buffer next(@NativeType("void const *") long value) { XrSessionActionSetsAttachInfo.nnext(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link XrSessionActionSetsAttachInfo#actionSets} field. */ - public XrSessionActionSetsAttachInfo.Buffer actionSets(@NativeType("XrActionSet const *") PointerBuffer value) { XrSessionActionSetsAttachInfo.nactionSets(address(), value); return this; } + + /** @return the value of the {@link XrSessionActionSetsAttachInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSessionActionSetsAttachInfo.ntype(address()); } + /** @return the value of the {@link XrSessionActionSetsAttachInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrSessionActionSetsAttachInfo.nnext(address()); } + /** @return the value of the {@link XrSessionActionSetsAttachInfo#countActionSets} field. */ + @NativeType("uint32_t") + public int countActionSets() { return XrSessionActionSetsAttachInfo.ncountActionSets(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrSessionActionSetsAttachInfo#actionSets} field. */ + @NativeType("XrActionSet const *") + public PointerBuffer actionSets() { return XrSessionActionSetsAttachInfo.nactionSets(address()); } + + /** Sets the specified value to the {@link XrSessionActionSetsAttachInfo#type} field. */ + public XrSessionActionSetsAttachInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSessionActionSetsAttachInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SESSION_ACTION_SETS_ATTACH_INFO TYPE_SESSION_ACTION_SETS_ATTACH_INFO} value to the {@link XrSessionActionSetsAttachInfo#type} field. */ + public XrSessionActionSetsAttachInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SESSION_ACTION_SETS_ATTACH_INFO); } + /** Sets the specified value to the {@link XrSessionActionSetsAttachInfo#next} field. */ + public XrSessionActionSetsAttachInfo.Buffer next(@NativeType("void const *") long value) { XrSessionActionSetsAttachInfo.nnext(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link XrSessionActionSetsAttachInfo#actionSets} field. */ + public XrSessionActionSetsAttachInfo.Buffer actionSets(@NativeType("XrActionSet const *") PointerBuffer value) { XrSessionActionSetsAttachInfo.nactionSets(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionBeginInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionBeginInfo.java index 54d7c3f962..9b41ac72d0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionBeginInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionBeginInfo.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.*; + /** * Struct containing session begin info. * @@ -38,8 +38,8 @@ * void const * {@link #next}; * XrViewConfigurationType {@link #primaryViewConfigurationType}; * } - */ -public class XrSessionBeginInfo extends Struct implements NativeResource { + */ +public class XrSessionBeginInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,32 +49,23 @@ public class XrSessionBeginInfo extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT, - PRIMARYVIEWCONFIGURATIONTYPE; + TYPE, + NEXT, + PRIMARYVIEWCONFIGURATIONTYPE; 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); - PRIMARYVIEWCONFIGURATIONTYPE = layout.offsetof(2); - } - - protected XrSessionBeginInfo(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSessionBeginInfo create(long address, @Nullable ByteBuffer container) { - return new XrSessionBeginInfo(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + PRIMARYVIEWCONFIGURATIONTYPE = layout.offsetof(2); } /** @@ -89,37 +80,37 @@ public XrSessionBeginInfo(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 XrViewConfigurationType} to use during this session to provide images for the form factor’s primary displays. */ - @NativeType("XrViewConfigurationType") - public int primaryViewConfigurationType() { return nprimaryViewConfigurationType(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSessionBeginInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SESSION_BEGIN_INFO TYPE_SESSION_BEGIN_INFO} value to the {@link #type} field. */ - public XrSessionBeginInfo type$Default() { return type(XR10.XR_TYPE_SESSION_BEGIN_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrSessionBeginInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT} value to the {@code next} chain. */ - public XrSessionBeginInfo next(XrSecondaryViewConfigurationSessionBeginInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #primaryViewConfigurationType} field. */ - public XrSessionBeginInfo primaryViewConfigurationType(@NativeType("XrViewConfigurationType") int value) { nprimaryViewConfigurationType(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 XrViewConfigurationType} to use during this session to provide images for the form factor’s primary displays. */ + @NativeType("XrViewConfigurationType") + public int primaryViewConfigurationType() { return nprimaryViewConfigurationType(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSessionBeginInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SESSION_BEGIN_INFO TYPE_SESSION_BEGIN_INFO} value to the {@link #type} field. */ + public XrSessionBeginInfo type$Default() { return type(XR10.XR_TYPE_SESSION_BEGIN_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrSessionBeginInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT} value to the {@code next} chain. */ + public XrSessionBeginInfo next(XrSecondaryViewConfigurationSessionBeginInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #primaryViewConfigurationType} field. */ + public XrSessionBeginInfo primaryViewConfigurationType(@NativeType("XrViewConfigurationType") int value) { nprimaryViewConfigurationType(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSessionBeginInfo set( - int type, - long next, + int type, + long next, int primaryViewConfigurationType - ) { - type(type); - next(next); - primaryViewConfigurationType(primaryViewConfigurationType); + ) { + type(type); + next(next); + primaryViewConfigurationType(primaryViewConfigurationType); return this; } @@ -140,29 +131,29 @@ public XrSessionBeginInfo set(XrSessionBeginInfo src) { /** Returns a new {@code XrSessionBeginInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSessionBeginInfo malloc() { - return new XrSessionBeginInfo(nmemAllocChecked(SIZEOF), null); + return wrap(XrSessionBeginInfo.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSessionBeginInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSessionBeginInfo calloc() { - return new XrSessionBeginInfo(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSessionBeginInfo.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSessionBeginInfo} instance allocated with {@link BufferUtils}. */ public static XrSessionBeginInfo create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSessionBeginInfo(memAddress(container), container); + return wrap(XrSessionBeginInfo.class, memAddress(container), container); } /** Returns a new {@code XrSessionBeginInfo} instance for the specified memory address. */ public static XrSessionBeginInfo create(long address) { - return new XrSessionBeginInfo(address, null); + return wrap(XrSessionBeginInfo.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSessionBeginInfo createSafe(long address) { - return address == NULL ? null : new XrSessionBeginInfo(address, null); + return address == NULL ? null : wrap(XrSessionBeginInfo.class, address); } /** @@ -171,7 +162,7 @@ public static XrSessionBeginInfo createSafe(long address) { * @param capacity the buffer capacity */ public static XrSessionBeginInfo.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -180,7 +171,7 @@ public static XrSessionBeginInfo.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSessionBeginInfo.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -190,7 +181,7 @@ public static XrSessionBeginInfo.Buffer calloc(int capacity) { */ public static XrSessionBeginInfo.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); } /** @@ -200,13 +191,13 @@ public static XrSessionBeginInfo.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSessionBeginInfo.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 XrSessionBeginInfo.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -215,7 +206,7 @@ public static XrSessionBeginInfo.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrSessionBeginInfo malloc(MemoryStack stack) { - return new XrSessionBeginInfo(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSessionBeginInfo.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -224,7 +215,7 @@ public static XrSessionBeginInfo malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSessionBeginInfo calloc(MemoryStack stack) { - return new XrSessionBeginInfo(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSessionBeginInfo.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -234,7 +225,7 @@ public static XrSessionBeginInfo calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSessionBeginInfo.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); } /** @@ -244,26 +235,26 @@ public static XrSessionBeginInfo.Buffer malloc(int capacity, MemoryStack stack) * @param capacity the buffer capacity */ public static XrSessionBeginInfo.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 + XrSessionBeginInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSessionBeginInfo.NEXT); } - /** Unsafe version of {@link #primaryViewConfigurationType}. */ - public static int nprimaryViewConfigurationType(long struct) { return UNSAFE.getInt(null, struct + XrSessionBeginInfo.PRIMARYVIEWCONFIGURATIONTYPE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSessionBeginInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSessionBeginInfo.NEXT, value); } - /** Unsafe version of {@link #primaryViewConfigurationType(int) primaryViewConfigurationType}. */ - public static void nprimaryViewConfigurationType(long struct, int value) { UNSAFE.putInt(null, struct + XrSessionBeginInfo.PRIMARYVIEWCONFIGURATIONTYPE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSessionBeginInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSessionBeginInfo.NEXT); } + /** Unsafe version of {@link #primaryViewConfigurationType}. */ + public static int nprimaryViewConfigurationType(long struct) { return UNSAFE.getInt(null, struct + XrSessionBeginInfo.PRIMARYVIEWCONFIGURATIONTYPE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSessionBeginInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSessionBeginInfo.NEXT, value); } + /** Unsafe version of {@link #primaryViewConfigurationType(int) primaryViewConfigurationType}. */ + public static void nprimaryViewConfigurationType(long struct, int value) { UNSAFE.putInt(null, struct + XrSessionBeginInfo.PRIMARYVIEWCONFIGURATIONTYPE, value); } + + // ----------------------------------- /** An array of {@link XrSessionBeginInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -273,9 +264,9 @@ public static class Buffer extends StructBuffer impl /** * Creates a new {@code XrSessionBeginInfo.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 XrSessionBeginInfo#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSessionBeginInfo#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -300,27 +291,27 @@ protected Buffer self() { protected XrSessionBeginInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSessionBeginInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSessionBeginInfo.ntype(address()); } - /** @return the value of the {@link XrSessionBeginInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrSessionBeginInfo.nnext(address()); } - /** @return the value of the {@link XrSessionBeginInfo#primaryViewConfigurationType} field. */ - @NativeType("XrViewConfigurationType") - public int primaryViewConfigurationType() { return XrSessionBeginInfo.nprimaryViewConfigurationType(address()); } - - /** Sets the specified value to the {@link XrSessionBeginInfo#type} field. */ - public XrSessionBeginInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSessionBeginInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SESSION_BEGIN_INFO TYPE_SESSION_BEGIN_INFO} value to the {@link XrSessionBeginInfo#type} field. */ - public XrSessionBeginInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SESSION_BEGIN_INFO); } - /** Sets the specified value to the {@link XrSessionBeginInfo#next} field. */ - public XrSessionBeginInfo.Buffer next(@NativeType("void const *") long value) { XrSessionBeginInfo.nnext(address(), value); return this; } - /** Prepends the specified {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT} value to the {@code next} chain. */ - public XrSessionBeginInfo.Buffer next(XrSecondaryViewConfigurationSessionBeginInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrSessionBeginInfo#primaryViewConfigurationType} field. */ - public XrSessionBeginInfo.Buffer primaryViewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrSessionBeginInfo.nprimaryViewConfigurationType(address(), value); return this; } + + /** @return the value of the {@link XrSessionBeginInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSessionBeginInfo.ntype(address()); } + /** @return the value of the {@link XrSessionBeginInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrSessionBeginInfo.nnext(address()); } + /** @return the value of the {@link XrSessionBeginInfo#primaryViewConfigurationType} field. */ + @NativeType("XrViewConfigurationType") + public int primaryViewConfigurationType() { return XrSessionBeginInfo.nprimaryViewConfigurationType(address()); } + + /** Sets the specified value to the {@link XrSessionBeginInfo#type} field. */ + public XrSessionBeginInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSessionBeginInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SESSION_BEGIN_INFO TYPE_SESSION_BEGIN_INFO} value to the {@link XrSessionBeginInfo#type} field. */ + public XrSessionBeginInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SESSION_BEGIN_INFO); } + /** Sets the specified value to the {@link XrSessionBeginInfo#next} field. */ + public XrSessionBeginInfo.Buffer next(@NativeType("void const *") long value) { XrSessionBeginInfo.nnext(address(), value); return this; } + /** Prepends the specified {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT} value to the {@code next} chain. */ + public XrSessionBeginInfo.Buffer next(XrSecondaryViewConfigurationSessionBeginInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrSessionBeginInfo#primaryViewConfigurationType} field. */ + public XrSessionBeginInfo.Buffer primaryViewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrSessionBeginInfo.nprimaryViewConfigurationType(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionCreateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionCreateInfo.java index 8af106753d..db2e479b36 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionCreateInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionCreateInfo.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.*; + /** * Creates a session. * @@ -46,8 +46,8 @@ * XrSessionCreateFlags {@link #createFlags}; * XrSystemId {@link #systemId}; * } - */ -public class XrSessionCreateInfo extends Struct implements NativeResource { + */ +public class XrSessionCreateInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,35 +57,26 @@ public class XrSessionCreateInfo extends Struct implements /** The struct member offsets. */ public static final int - TYPE, - NEXT, - CREATEFLAGS, - SYSTEMID; + TYPE, + NEXT, + CREATEFLAGS, + SYSTEMID; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - CREATEFLAGS = layout.offsetof(2); - SYSTEMID = layout.offsetof(3); - } - - protected XrSessionCreateInfo(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSessionCreateInfo create(long address, @Nullable ByteBuffer container) { - return new XrSessionCreateInfo(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + CREATEFLAGS = layout.offsetof(2); + SYSTEMID = layout.offsetof(3); } /** @@ -100,62 +91,62 @@ public XrSessionCreateInfo(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. Note that in most cases one graphics API extension specific struct needs to be in this next chain. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** identifies {@code XrSessionCreateFlags} that apply to the creation. */ - @NativeType("XrSessionCreateFlags") - public long createFlags() { return ncreateFlags(address()); } - /** the {@code XrSystemId} representing the system of devices to be used by this session. */ - @NativeType("XrSystemId") - public long systemId() { return nsystemId(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSessionCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SESSION_CREATE_INFO TYPE_SESSION_CREATE_INFO} value to the {@link #type} field. */ - public XrSessionCreateInfo type$Default() { return type(XR10.XR_TYPE_SESSION_CREATE_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrSessionCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrGraphicsBindingEGLMNDX} value to the {@code next} chain. */ - public XrSessionCreateInfo next(XrGraphicsBindingEGLMNDX value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingOpenGLESAndroidKHR} value to the {@code next} chain. */ - public XrSessionCreateInfo next(XrGraphicsBindingOpenGLESAndroidKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingOpenGLWaylandKHR} value to the {@code next} chain. */ - public XrSessionCreateInfo next(XrGraphicsBindingOpenGLWaylandKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingOpenGLWin32KHR} value to the {@code next} chain. */ - public XrSessionCreateInfo next(XrGraphicsBindingOpenGLWin32KHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingOpenGLXcbKHR} value to the {@code next} chain. */ - public XrSessionCreateInfo next(XrGraphicsBindingOpenGLXcbKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingOpenGLXlibKHR} value to the {@code next} chain. */ - public XrSessionCreateInfo next(XrGraphicsBindingOpenGLXlibKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingVulkan2KHR} value to the {@code next} chain. */ - public XrSessionCreateInfo next(XrGraphicsBindingVulkan2KHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingVulkanKHR} value to the {@code next} chain. */ - public XrSessionCreateInfo next(XrGraphicsBindingVulkanKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrHolographicWindowAttachmentMSFT} value to the {@code next} chain. */ - public XrSessionCreateInfo next(XrHolographicWindowAttachmentMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSessionCreateInfoOverlayEXTX} value to the {@code next} chain. */ - public XrSessionCreateInfo next(XrSessionCreateInfoOverlayEXTX value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #createFlags} field. */ - public XrSessionCreateInfo createFlags(@NativeType("XrSessionCreateFlags") long value) { ncreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link #systemId} field. */ - public XrSessionCreateInfo systemId(@NativeType("XrSystemId") long value) { nsystemId(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. Note that in most cases one graphics API extension specific struct needs to be in this next chain. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** identifies {@code XrSessionCreateFlags} that apply to the creation. */ + @NativeType("XrSessionCreateFlags") + public long createFlags() { return ncreateFlags(address()); } + /** the {@code XrSystemId} representing the system of devices to be used by this session. */ + @NativeType("XrSystemId") + public long systemId() { return nsystemId(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSessionCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SESSION_CREATE_INFO TYPE_SESSION_CREATE_INFO} value to the {@link #type} field. */ + public XrSessionCreateInfo type$Default() { return type(XR10.XR_TYPE_SESSION_CREATE_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrSessionCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrGraphicsBindingEGLMNDX} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrGraphicsBindingEGLMNDX value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLESAndroidKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrGraphicsBindingOpenGLESAndroidKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLWaylandKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrGraphicsBindingOpenGLWaylandKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLWin32KHR} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrGraphicsBindingOpenGLWin32KHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLXcbKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrGraphicsBindingOpenGLXcbKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLXlibKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrGraphicsBindingOpenGLXlibKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingVulkan2KHR} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrGraphicsBindingVulkan2KHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingVulkanKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrGraphicsBindingVulkanKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrHolographicWindowAttachmentMSFT} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrHolographicWindowAttachmentMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSessionCreateInfoOverlayEXTX} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrSessionCreateInfoOverlayEXTX value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #createFlags} field. */ + public XrSessionCreateInfo createFlags(@NativeType("XrSessionCreateFlags") long value) { ncreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link #systemId} field. */ + public XrSessionCreateInfo systemId(@NativeType("XrSystemId") long value) { nsystemId(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSessionCreateInfo set( - int type, - long next, - long createFlags, + int type, + long next, + long createFlags, long systemId - ) { - type(type); - next(next); - createFlags(createFlags); - systemId(systemId); + ) { + type(type); + next(next); + createFlags(createFlags); + systemId(systemId); return this; } @@ -176,29 +167,29 @@ public XrSessionCreateInfo set(XrSessionCreateInfo src) { /** Returns a new {@code XrSessionCreateInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSessionCreateInfo malloc() { - return new XrSessionCreateInfo(nmemAllocChecked(SIZEOF), null); + return wrap(XrSessionCreateInfo.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSessionCreateInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSessionCreateInfo calloc() { - return new XrSessionCreateInfo(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSessionCreateInfo.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSessionCreateInfo} instance allocated with {@link BufferUtils}. */ public static XrSessionCreateInfo create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSessionCreateInfo(memAddress(container), container); + return wrap(XrSessionCreateInfo.class, memAddress(container), container); } /** Returns a new {@code XrSessionCreateInfo} instance for the specified memory address. */ public static XrSessionCreateInfo create(long address) { - return new XrSessionCreateInfo(address, null); + return wrap(XrSessionCreateInfo.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSessionCreateInfo createSafe(long address) { - return address == NULL ? null : new XrSessionCreateInfo(address, null); + return address == NULL ? null : wrap(XrSessionCreateInfo.class, address); } /** @@ -207,7 +198,7 @@ public static XrSessionCreateInfo createSafe(long address) { * @param capacity the buffer capacity */ public static XrSessionCreateInfo.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -216,7 +207,7 @@ public static XrSessionCreateInfo.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSessionCreateInfo.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -226,7 +217,7 @@ public static XrSessionCreateInfo.Buffer calloc(int capacity) { */ public static XrSessionCreateInfo.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); } /** @@ -236,13 +227,13 @@ public static XrSessionCreateInfo.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSessionCreateInfo.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 XrSessionCreateInfo.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -251,7 +242,7 @@ public static XrSessionCreateInfo.Buffer createSafe(long address, int capacity) * @param stack the stack from which to allocate */ public static XrSessionCreateInfo malloc(MemoryStack stack) { - return new XrSessionCreateInfo(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSessionCreateInfo.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -260,7 +251,7 @@ public static XrSessionCreateInfo malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSessionCreateInfo calloc(MemoryStack stack) { - return new XrSessionCreateInfo(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSessionCreateInfo.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -270,7 +261,7 @@ public static XrSessionCreateInfo calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSessionCreateInfo.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); } /** @@ -280,30 +271,30 @@ public static XrSessionCreateInfo.Buffer malloc(int capacity, MemoryStack stack) * @param capacity the buffer capacity */ public static XrSessionCreateInfo.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 + XrSessionCreateInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSessionCreateInfo.NEXT); } - /** Unsafe version of {@link #createFlags}. */ - public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrSessionCreateInfo.CREATEFLAGS); } - /** Unsafe version of {@link #systemId}. */ - public static long nsystemId(long struct) { return UNSAFE.getLong(null, struct + XrSessionCreateInfo.SYSTEMID); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSessionCreateInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSessionCreateInfo.NEXT, value); } - /** Unsafe version of {@link #createFlags(long) createFlags}. */ - public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSessionCreateInfo.CREATEFLAGS, value); } - /** Unsafe version of {@link #systemId(long) systemId}. */ - public static void nsystemId(long struct, long value) { UNSAFE.putLong(null, struct + XrSessionCreateInfo.SYSTEMID, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSessionCreateInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSessionCreateInfo.NEXT); } + /** Unsafe version of {@link #createFlags}. */ + public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrSessionCreateInfo.CREATEFLAGS); } + /** Unsafe version of {@link #systemId}. */ + public static long nsystemId(long struct) { return UNSAFE.getLong(null, struct + XrSessionCreateInfo.SYSTEMID); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSessionCreateInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSessionCreateInfo.NEXT, value); } + /** Unsafe version of {@link #createFlags(long) createFlags}. */ + public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSessionCreateInfo.CREATEFLAGS, value); } + /** Unsafe version of {@link #systemId(long) systemId}. */ + public static void nsystemId(long struct, long value) { UNSAFE.putLong(null, struct + XrSessionCreateInfo.SYSTEMID, value); } + + // ----------------------------------- /** An array of {@link XrSessionCreateInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -313,9 +304,9 @@ public static class Buffer extends StructBuffer imp /** * Creates a new {@code XrSessionCreateInfo.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 XrSessionCreateInfo#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSessionCreateInfo#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -340,50 +331,50 @@ protected Buffer self() { protected XrSessionCreateInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSessionCreateInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSessionCreateInfo.ntype(address()); } - /** @return the value of the {@link XrSessionCreateInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrSessionCreateInfo.nnext(address()); } - /** @return the value of the {@link XrSessionCreateInfo#createFlags} field. */ - @NativeType("XrSessionCreateFlags") - public long createFlags() { return XrSessionCreateInfo.ncreateFlags(address()); } - /** @return the value of the {@link XrSessionCreateInfo#systemId} field. */ - @NativeType("XrSystemId") - public long systemId() { return XrSessionCreateInfo.nsystemId(address()); } - - /** Sets the specified value to the {@link XrSessionCreateInfo#type} field. */ - public XrSessionCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSessionCreateInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SESSION_CREATE_INFO TYPE_SESSION_CREATE_INFO} value to the {@link XrSessionCreateInfo#type} field. */ - public XrSessionCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SESSION_CREATE_INFO); } - /** Sets the specified value to the {@link XrSessionCreateInfo#next} field. */ - public XrSessionCreateInfo.Buffer next(@NativeType("void const *") long value) { XrSessionCreateInfo.nnext(address(), value); return this; } - /** Prepends the specified {@link XrGraphicsBindingEGLMNDX} value to the {@code next} chain. */ - public XrSessionCreateInfo.Buffer next(XrGraphicsBindingEGLMNDX value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingOpenGLESAndroidKHR} value to the {@code next} chain. */ - public XrSessionCreateInfo.Buffer next(XrGraphicsBindingOpenGLESAndroidKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingOpenGLWaylandKHR} value to the {@code next} chain. */ - public XrSessionCreateInfo.Buffer next(XrGraphicsBindingOpenGLWaylandKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingOpenGLWin32KHR} value to the {@code next} chain. */ - public XrSessionCreateInfo.Buffer next(XrGraphicsBindingOpenGLWin32KHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingOpenGLXcbKHR} value to the {@code next} chain. */ - public XrSessionCreateInfo.Buffer next(XrGraphicsBindingOpenGLXcbKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingOpenGLXlibKHR} value to the {@code next} chain. */ - public XrSessionCreateInfo.Buffer next(XrGraphicsBindingOpenGLXlibKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingVulkan2KHR} value to the {@code next} chain. */ - public XrSessionCreateInfo.Buffer next(XrGraphicsBindingVulkan2KHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingVulkanKHR} value to the {@code next} chain. */ - public XrSessionCreateInfo.Buffer next(XrGraphicsBindingVulkanKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrHolographicWindowAttachmentMSFT} value to the {@code next} chain. */ - public XrSessionCreateInfo.Buffer next(XrHolographicWindowAttachmentMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSessionCreateInfoOverlayEXTX} value to the {@code next} chain. */ - public XrSessionCreateInfo.Buffer next(XrSessionCreateInfoOverlayEXTX value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrSessionCreateInfo#createFlags} field. */ - public XrSessionCreateInfo.Buffer createFlags(@NativeType("XrSessionCreateFlags") long value) { XrSessionCreateInfo.ncreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrSessionCreateInfo#systemId} field. */ - public XrSessionCreateInfo.Buffer systemId(@NativeType("XrSystemId") long value) { XrSessionCreateInfo.nsystemId(address(), value); return this; } + + /** @return the value of the {@link XrSessionCreateInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSessionCreateInfo.ntype(address()); } + /** @return the value of the {@link XrSessionCreateInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrSessionCreateInfo.nnext(address()); } + /** @return the value of the {@link XrSessionCreateInfo#createFlags} field. */ + @NativeType("XrSessionCreateFlags") + public long createFlags() { return XrSessionCreateInfo.ncreateFlags(address()); } + /** @return the value of the {@link XrSessionCreateInfo#systemId} field. */ + @NativeType("XrSystemId") + public long systemId() { return XrSessionCreateInfo.nsystemId(address()); } + + /** Sets the specified value to the {@link XrSessionCreateInfo#type} field. */ + public XrSessionCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSessionCreateInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SESSION_CREATE_INFO TYPE_SESSION_CREATE_INFO} value to the {@link XrSessionCreateInfo#type} field. */ + public XrSessionCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SESSION_CREATE_INFO); } + /** Sets the specified value to the {@link XrSessionCreateInfo#next} field. */ + public XrSessionCreateInfo.Buffer next(@NativeType("void const *") long value) { XrSessionCreateInfo.nnext(address(), value); return this; } + /** Prepends the specified {@link XrGraphicsBindingEGLMNDX} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrGraphicsBindingEGLMNDX value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLESAndroidKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrGraphicsBindingOpenGLESAndroidKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLWaylandKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrGraphicsBindingOpenGLWaylandKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLWin32KHR} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrGraphicsBindingOpenGLWin32KHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLXcbKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrGraphicsBindingOpenGLXcbKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLXlibKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrGraphicsBindingOpenGLXlibKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingVulkan2KHR} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrGraphicsBindingVulkan2KHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingVulkanKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrGraphicsBindingVulkanKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrHolographicWindowAttachmentMSFT} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrHolographicWindowAttachmentMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSessionCreateInfoOverlayEXTX} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrSessionCreateInfoOverlayEXTX value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrSessionCreateInfo#createFlags} field. */ + public XrSessionCreateInfo.Buffer createFlags(@NativeType("XrSessionCreateFlags") long value) { XrSessionCreateInfo.ncreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrSessionCreateInfo#systemId} field. */ + public XrSessionCreateInfo.Buffer systemId(@NativeType("XrSystemId") long value) { XrSessionCreateInfo.nsystemId(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionCreateInfoOverlayEXTX.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionCreateInfoOverlayEXTX.java index d41db0e459..21c7658526 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionCreateInfoOverlayEXTX.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionCreateInfoOverlayEXTX.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.*; + /** * Session creation extension struct providing overlay session parameters. * @@ -36,8 +36,8 @@ * XrOverlaySessionCreateFlagsEXTX {@link #createFlags}; * uint32_t {@link #sessionLayersPlacement}; * } - */ -public class XrSessionCreateInfoOverlayEXTX extends Struct implements NativeResource { + */ +public class XrSessionCreateInfoOverlayEXTX extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -47,35 +47,26 @@ public class XrSessionCreateInfoOverlayEXTX extends Struct implements NativeResource { @@ -283,9 +274,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 XrSessionCreateInfoOverlayEXTX#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSessionCreateInfoOverlayEXTX#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -310,30 +301,30 @@ protected Buffer self() { protected XrSessionCreateInfoOverlayEXTX getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSessionCreateInfoOverlayEXTX#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSessionCreateInfoOverlayEXTX.ntype(address()); } - /** @return the value of the {@link XrSessionCreateInfoOverlayEXTX#next} field. */ - @NativeType("void const *") - public long next() { return XrSessionCreateInfoOverlayEXTX.nnext(address()); } - /** @return the value of the {@link XrSessionCreateInfoOverlayEXTX#createFlags} field. */ - @NativeType("XrOverlaySessionCreateFlagsEXTX") - public long createFlags() { return XrSessionCreateInfoOverlayEXTX.ncreateFlags(address()); } - /** @return the value of the {@link XrSessionCreateInfoOverlayEXTX#sessionLayersPlacement} field. */ - @NativeType("uint32_t") - public int sessionLayersPlacement() { return XrSessionCreateInfoOverlayEXTX.nsessionLayersPlacement(address()); } - - /** Sets the specified value to the {@link XrSessionCreateInfoOverlayEXTX#type} field. */ - public XrSessionCreateInfoOverlayEXTX.Buffer type(@NativeType("XrStructureType") int value) { XrSessionCreateInfoOverlayEXTX.ntype(address(), value); return this; } - /** Sets the {@link EXTXOverlay#XR_TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX} value to the {@link XrSessionCreateInfoOverlayEXTX#type} field. */ - public XrSessionCreateInfoOverlayEXTX.Buffer type$Default() { return type(EXTXOverlay.XR_TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX); } - /** Sets the specified value to the {@link XrSessionCreateInfoOverlayEXTX#next} field. */ - public XrSessionCreateInfoOverlayEXTX.Buffer next(@NativeType("void const *") long value) { XrSessionCreateInfoOverlayEXTX.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSessionCreateInfoOverlayEXTX#createFlags} field. */ - public XrSessionCreateInfoOverlayEXTX.Buffer createFlags(@NativeType("XrOverlaySessionCreateFlagsEXTX") long value) { XrSessionCreateInfoOverlayEXTX.ncreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrSessionCreateInfoOverlayEXTX#sessionLayersPlacement} field. */ - public XrSessionCreateInfoOverlayEXTX.Buffer sessionLayersPlacement(@NativeType("uint32_t") int value) { XrSessionCreateInfoOverlayEXTX.nsessionLayersPlacement(address(), value); return this; } + + /** @return the value of the {@link XrSessionCreateInfoOverlayEXTX#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSessionCreateInfoOverlayEXTX.ntype(address()); } + /** @return the value of the {@link XrSessionCreateInfoOverlayEXTX#next} field. */ + @NativeType("void const *") + public long next() { return XrSessionCreateInfoOverlayEXTX.nnext(address()); } + /** @return the value of the {@link XrSessionCreateInfoOverlayEXTX#createFlags} field. */ + @NativeType("XrOverlaySessionCreateFlagsEXTX") + public long createFlags() { return XrSessionCreateInfoOverlayEXTX.ncreateFlags(address()); } + /** @return the value of the {@link XrSessionCreateInfoOverlayEXTX#sessionLayersPlacement} field. */ + @NativeType("uint32_t") + public int sessionLayersPlacement() { return XrSessionCreateInfoOverlayEXTX.nsessionLayersPlacement(address()); } + + /** Sets the specified value to the {@link XrSessionCreateInfoOverlayEXTX#type} field. */ + public XrSessionCreateInfoOverlayEXTX.Buffer type(@NativeType("XrStructureType") int value) { XrSessionCreateInfoOverlayEXTX.ntype(address(), value); return this; } + /** Sets the {@link EXTXOverlay#XR_TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX} value to the {@link XrSessionCreateInfoOverlayEXTX#type} field. */ + public XrSessionCreateInfoOverlayEXTX.Buffer type$Default() { return type(EXTXOverlay.XR_TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX); } + /** Sets the specified value to the {@link XrSessionCreateInfoOverlayEXTX#next} field. */ + public XrSessionCreateInfoOverlayEXTX.Buffer next(@NativeType("void const *") long value) { XrSessionCreateInfoOverlayEXTX.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSessionCreateInfoOverlayEXTX#createFlags} field. */ + public XrSessionCreateInfoOverlayEXTX.Buffer createFlags(@NativeType("XrOverlaySessionCreateFlagsEXTX") long value) { XrSessionCreateInfoOverlayEXTX.ncreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrSessionCreateInfoOverlayEXTX#sessionLayersPlacement} field. */ + public XrSessionCreateInfoOverlayEXTX.Buffer sessionLayersPlacement(@NativeType("uint32_t") int value) { XrSessionCreateInfoOverlayEXTX.nsessionLayersPlacement(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpace.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpace.java index 6e736b9644..28b8cebafb 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpace.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpace.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrSpace} handle. */ + +/** Wraps an {@code XrSpace} handle. */ public class XrSpace 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/XrSpaceComponentFilterInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentFilterInfoFB.java index cd9c45de7b..0c3e2a47df 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentFilterInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentFilterInfoFB.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.*; + /** * Filters for entities with specific components enabled. * @@ -43,8 +43,8 @@ * void const * {@link #next}; * XrSpaceComponentTypeFB {@link #componentType}; * } - */ -public class XrSpaceComponentFilterInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceComponentFilterInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,32 +54,23 @@ public class XrSpaceComponentFilterInfoFB extends Struct implements NativeResource { @@ -286,9 +277,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 XrSpaceComponentFilterInfoFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpaceComponentFilterInfoFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -313,25 +304,25 @@ protected Buffer self() { protected XrSpaceComponentFilterInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceComponentFilterInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceComponentFilterInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceComponentFilterInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceComponentFilterInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpaceComponentFilterInfoFB#componentType} field. */ - @NativeType("XrSpaceComponentTypeFB") - public int componentType() { return XrSpaceComponentFilterInfoFB.ncomponentType(address()); } - - /** Sets the specified value to the {@link XrSpaceComponentFilterInfoFB#type} field. */ - public XrSpaceComponentFilterInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceComponentFilterInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_COMPONENT_FILTER_INFO_FB TYPE_SPACE_COMPONENT_FILTER_INFO_FB} value to the {@link XrSpaceComponentFilterInfoFB#type} field. */ - public XrSpaceComponentFilterInfoFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_COMPONENT_FILTER_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceComponentFilterInfoFB#next} field. */ - public XrSpaceComponentFilterInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceComponentFilterInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceComponentFilterInfoFB#componentType} field. */ - public XrSpaceComponentFilterInfoFB.Buffer componentType(@NativeType("XrSpaceComponentTypeFB") int value) { XrSpaceComponentFilterInfoFB.ncomponentType(address(), value); return this; } + + /** @return the value of the {@link XrSpaceComponentFilterInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceComponentFilterInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceComponentFilterInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceComponentFilterInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpaceComponentFilterInfoFB#componentType} field. */ + @NativeType("XrSpaceComponentTypeFB") + public int componentType() { return XrSpaceComponentFilterInfoFB.ncomponentType(address()); } + + /** Sets the specified value to the {@link XrSpaceComponentFilterInfoFB#type} field. */ + public XrSpaceComponentFilterInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceComponentFilterInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_COMPONENT_FILTER_INFO_FB TYPE_SPACE_COMPONENT_FILTER_INFO_FB} value to the {@link XrSpaceComponentFilterInfoFB#type} field. */ + public XrSpaceComponentFilterInfoFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_COMPONENT_FILTER_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceComponentFilterInfoFB#next} field. */ + public XrSpaceComponentFilterInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceComponentFilterInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceComponentFilterInfoFB#componentType} field. */ + public XrSpaceComponentFilterInfoFB.Buffer componentType(@NativeType("XrSpaceComponentTypeFB") int value) { XrSpaceComponentFilterInfoFB.ncomponentType(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentStatusFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentStatusFB.java index 18bdaf26d7..3c71a9f281 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentStatusFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentStatusFB.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.*; + /** * Current status of an entity. * @@ -43,8 +43,8 @@ * XrBool32 {@link #enabled}; * XrBool32 {@link #changePending}; * } - */ -public class XrSpaceComponentStatusFB extends Struct implements NativeResource { + */ +public class XrSpaceComponentStatusFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,35 +54,26 @@ public class XrSpaceComponentStatusFB extends Struct i /** The struct member offsets. */ public static final int - TYPE, - NEXT, - ENABLED, - CHANGEPENDING; + TYPE, + NEXT, + ENABLED, + CHANGEPENDING; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - ENABLED = layout.offsetof(2); - CHANGEPENDING = layout.offsetof(3); - } - - protected XrSpaceComponentStatusFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSpaceComponentStatusFB create(long address, @Nullable ByteBuffer container) { - return new XrSpaceComponentStatusFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + ENABLED = layout.offsetof(2); + CHANGEPENDING = layout.offsetof(3); } /** @@ -97,34 +88,34 @@ public XrSpaceComponentStatusFB(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()); } - /** a boolean value that determines if a component is currently enabled or disabled. */ - @NativeType("XrBool32") - public boolean enabled() { return nenabled(address()) != 0; } - /** a boolean value that determines if the component’s enabled state is about to change. */ - @NativeType("XrBool32") - public boolean changePending() { return nchangePending(address()) != 0; } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceComponentStatusFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntity#XR_TYPE_SPACE_COMPONENT_STATUS_FB TYPE_SPACE_COMPONENT_STATUS_FB} value to the {@link #type} field. */ - public XrSpaceComponentStatusFB type$Default() { return type(FBSpatialEntity.XR_TYPE_SPACE_COMPONENT_STATUS_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceComponentStatusFB 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 or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a boolean value that determines if a component is currently enabled or disabled. */ + @NativeType("XrBool32") + public boolean enabled() { return nenabled(address()) != 0; } + /** a boolean value that determines if the component’s enabled state is about to change. */ + @NativeType("XrBool32") + public boolean changePending() { return nchangePending(address()) != 0; } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceComponentStatusFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntity#XR_TYPE_SPACE_COMPONENT_STATUS_FB TYPE_SPACE_COMPONENT_STATUS_FB} value to the {@link #type} field. */ + public XrSpaceComponentStatusFB type$Default() { return type(FBSpatialEntity.XR_TYPE_SPACE_COMPONENT_STATUS_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceComponentStatusFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceComponentStatusFB set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -145,29 +136,29 @@ public XrSpaceComponentStatusFB set(XrSpaceComponentStatusFB src) { /** Returns a new {@code XrSpaceComponentStatusFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpaceComponentStatusFB malloc() { - return new XrSpaceComponentStatusFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpaceComponentStatusFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpaceComponentStatusFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpaceComponentStatusFB calloc() { - return new XrSpaceComponentStatusFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpaceComponentStatusFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpaceComponentStatusFB} instance allocated with {@link BufferUtils}. */ public static XrSpaceComponentStatusFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpaceComponentStatusFB(memAddress(container), container); + return wrap(XrSpaceComponentStatusFB.class, memAddress(container), container); } /** Returns a new {@code XrSpaceComponentStatusFB} instance for the specified memory address. */ public static XrSpaceComponentStatusFB create(long address) { - return new XrSpaceComponentStatusFB(address, null); + return wrap(XrSpaceComponentStatusFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpaceComponentStatusFB createSafe(long address) { - return address == NULL ? null : new XrSpaceComponentStatusFB(address, null); + return address == NULL ? null : wrap(XrSpaceComponentStatusFB.class, address); } /** @@ -176,7 +167,7 @@ public static XrSpaceComponentStatusFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrSpaceComponentStatusFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -185,7 +176,7 @@ public static XrSpaceComponentStatusFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceComponentStatusFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -195,7 +186,7 @@ public static XrSpaceComponentStatusFB.Buffer calloc(int capacity) { */ public static XrSpaceComponentStatusFB.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); } /** @@ -205,13 +196,13 @@ public static XrSpaceComponentStatusFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceComponentStatusFB.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 XrSpaceComponentStatusFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -220,7 +211,7 @@ public static XrSpaceComponentStatusFB.Buffer createSafe(long address, int capac * @param stack the stack from which to allocate */ public static XrSpaceComponentStatusFB malloc(MemoryStack stack) { - return new XrSpaceComponentStatusFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpaceComponentStatusFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -229,7 +220,7 @@ public static XrSpaceComponentStatusFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSpaceComponentStatusFB calloc(MemoryStack stack) { - return new XrSpaceComponentStatusFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpaceComponentStatusFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -239,7 +230,7 @@ public static XrSpaceComponentStatusFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpaceComponentStatusFB.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); } /** @@ -249,26 +240,26 @@ public static XrSpaceComponentStatusFB.Buffer malloc(int capacity, MemoryStack s * @param capacity the buffer capacity */ public static XrSpaceComponentStatusFB.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 + XrSpaceComponentStatusFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceComponentStatusFB.NEXT); } - /** Unsafe version of {@link #enabled}. */ - public static int nenabled(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusFB.ENABLED); } - /** Unsafe version of {@link #changePending}. */ - public static int nchangePending(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusFB.CHANGEPENDING); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceComponentStatusFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceComponentStatusFB.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceComponentStatusFB.NEXT); } + /** Unsafe version of {@link #enabled}. */ + public static int nenabled(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusFB.ENABLED); } + /** Unsafe version of {@link #changePending}. */ + public static int nchangePending(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusFB.CHANGEPENDING); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceComponentStatusFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceComponentStatusFB.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrSpaceComponentStatusFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -278,9 +269,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 XrSpaceComponentStatusFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpaceComponentStatusFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -305,26 +296,26 @@ protected Buffer self() { protected XrSpaceComponentStatusFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceComponentStatusFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceComponentStatusFB.ntype(address()); } - /** @return the value of the {@link XrSpaceComponentStatusFB#next} field. */ - @NativeType("void *") - public long next() { return XrSpaceComponentStatusFB.nnext(address()); } - /** @return the value of the {@link XrSpaceComponentStatusFB#enabled} field. */ - @NativeType("XrBool32") - public boolean enabled() { return XrSpaceComponentStatusFB.nenabled(address()) != 0; } - /** @return the value of the {@link XrSpaceComponentStatusFB#changePending} field. */ - @NativeType("XrBool32") - public boolean changePending() { return XrSpaceComponentStatusFB.nchangePending(address()) != 0; } - - /** Sets the specified value to the {@link XrSpaceComponentStatusFB#type} field. */ - public XrSpaceComponentStatusFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceComponentStatusFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntity#XR_TYPE_SPACE_COMPONENT_STATUS_FB TYPE_SPACE_COMPONENT_STATUS_FB} value to the {@link XrSpaceComponentStatusFB#type} field. */ - public XrSpaceComponentStatusFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_SPACE_COMPONENT_STATUS_FB); } - /** Sets the specified value to the {@link XrSpaceComponentStatusFB#next} field. */ - public XrSpaceComponentStatusFB.Buffer next(@NativeType("void *") long value) { XrSpaceComponentStatusFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSpaceComponentStatusFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceComponentStatusFB.ntype(address()); } + /** @return the value of the {@link XrSpaceComponentStatusFB#next} field. */ + @NativeType("void *") + public long next() { return XrSpaceComponentStatusFB.nnext(address()); } + /** @return the value of the {@link XrSpaceComponentStatusFB#enabled} field. */ + @NativeType("XrBool32") + public boolean enabled() { return XrSpaceComponentStatusFB.nenabled(address()) != 0; } + /** @return the value of the {@link XrSpaceComponentStatusFB#changePending} field. */ + @NativeType("XrBool32") + public boolean changePending() { return XrSpaceComponentStatusFB.nchangePending(address()) != 0; } + + /** Sets the specified value to the {@link XrSpaceComponentStatusFB#type} field. */ + public XrSpaceComponentStatusFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceComponentStatusFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntity#XR_TYPE_SPACE_COMPONENT_STATUS_FB TYPE_SPACE_COMPONENT_STATUS_FB} value to the {@link XrSpaceComponentStatusFB#type} field. */ + public XrSpaceComponentStatusFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_SPACE_COMPONENT_STATUS_FB); } + /** Sets the specified value to the {@link XrSpaceComponentStatusFB#next} field. */ + public XrSpaceComponentStatusFB.Buffer next(@NativeType("void *") long value) { XrSpaceComponentStatusFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentStatusSetInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentStatusSetInfoFB.java index 59e7fb504a..4b5ee29eaf 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentStatusSetInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentStatusSetInfoFB.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.*; + /** * Request info to enable or disable an entity. * @@ -45,8 +45,8 @@ * XrBool32 {@link #enabled}; * XrDuration {@link #timeout}; * } - */ -public class XrSpaceComponentStatusSetInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceComponentStatusSetInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,38 +56,29 @@ public class XrSpaceComponentStatusSetInfoFB extends Structduration for more details. */ - @NativeType("XrDuration") - public long timeout() { return ntimeout(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceComponentStatusSetInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntity#XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB} value to the {@link #type} field. */ - public XrSpaceComponentStatusSetInfoFB type$Default() { return type(FBSpatialEntity.XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceComponentStatusSetInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #componentType} field. */ - public XrSpaceComponentStatusSetInfoFB componentType(@NativeType("XrSpaceComponentTypeFB") int value) { ncomponentType(address(), value); return this; } - /** Sets the specified value to the {@link #enabled} field. */ - public XrSpaceComponentStatusSetInfoFB enabled(@NativeType("XrBool32") boolean value) { nenabled(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link #timeout} field. */ - public XrSpaceComponentStatusSetInfoFB timeout(@NativeType("XrDuration") long value) { ntimeout(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()); } + /** the component whose status is to be set. */ + @NativeType("XrSpaceComponentTypeFB") + public int componentType() { return ncomponentType(address()); } + /** the value to set the component to. */ + @NativeType("XrBool32") + public boolean enabled() { return nenabled(address()) != 0; } + /** the number of nanoseconds before the operation should be cancelled. A value of {@link XR10#XR_INFINITE_DURATION INFINITE_DURATION} indicates to never time out. See duration for more details. */ + @NativeType("XrDuration") + public long timeout() { return ntimeout(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceComponentStatusSetInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntity#XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB} value to the {@link #type} field. */ + public XrSpaceComponentStatusSetInfoFB type$Default() { return type(FBSpatialEntity.XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceComponentStatusSetInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #componentType} field. */ + public XrSpaceComponentStatusSetInfoFB componentType(@NativeType("XrSpaceComponentTypeFB") int value) { ncomponentType(address(), value); return this; } + /** Sets the specified value to the {@link #enabled} field. */ + public XrSpaceComponentStatusSetInfoFB enabled(@NativeType("XrBool32") boolean value) { nenabled(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link #timeout} field. */ + public XrSpaceComponentStatusSetInfoFB timeout(@NativeType("XrDuration") long value) { ntimeout(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceComponentStatusSetInfoFB set( - int type, - long next, - int componentType, - boolean enabled, + int type, + long next, + int componentType, + boolean enabled, long timeout - ) { - type(type); - next(next); - componentType(componentType); - enabled(enabled); - timeout(timeout); + ) { + type(type); + next(next); + componentType(componentType); + enabled(enabled); + timeout(timeout); return this; } @@ -165,29 +156,29 @@ public XrSpaceComponentStatusSetInfoFB set(XrSpaceComponentStatusSetInfoFB src) /** Returns a new {@code XrSpaceComponentStatusSetInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpaceComponentStatusSetInfoFB malloc() { - return new XrSpaceComponentStatusSetInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpaceComponentStatusSetInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpaceComponentStatusSetInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpaceComponentStatusSetInfoFB calloc() { - return new XrSpaceComponentStatusSetInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpaceComponentStatusSetInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpaceComponentStatusSetInfoFB} instance allocated with {@link BufferUtils}. */ public static XrSpaceComponentStatusSetInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpaceComponentStatusSetInfoFB(memAddress(container), container); + return wrap(XrSpaceComponentStatusSetInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrSpaceComponentStatusSetInfoFB} instance for the specified memory address. */ public static XrSpaceComponentStatusSetInfoFB create(long address) { - return new XrSpaceComponentStatusSetInfoFB(address, null); + return wrap(XrSpaceComponentStatusSetInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpaceComponentStatusSetInfoFB createSafe(long address) { - return address == NULL ? null : new XrSpaceComponentStatusSetInfoFB(address, null); + return address == NULL ? null : wrap(XrSpaceComponentStatusSetInfoFB.class, address); } /** @@ -196,7 +187,7 @@ public static XrSpaceComponentStatusSetInfoFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrSpaceComponentStatusSetInfoFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -205,7 +196,7 @@ public static XrSpaceComponentStatusSetInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceComponentStatusSetInfoFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -215,7 +206,7 @@ public static XrSpaceComponentStatusSetInfoFB.Buffer calloc(int capacity) { */ public static XrSpaceComponentStatusSetInfoFB.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); } /** @@ -225,13 +216,13 @@ public static XrSpaceComponentStatusSetInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceComponentStatusSetInfoFB.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 XrSpaceComponentStatusSetInfoFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -240,7 +231,7 @@ public static XrSpaceComponentStatusSetInfoFB.Buffer createSafe(long address, in * @param stack the stack from which to allocate */ public static XrSpaceComponentStatusSetInfoFB malloc(MemoryStack stack) { - return new XrSpaceComponentStatusSetInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpaceComponentStatusSetInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -249,7 +240,7 @@ public static XrSpaceComponentStatusSetInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSpaceComponentStatusSetInfoFB calloc(MemoryStack stack) { - return new XrSpaceComponentStatusSetInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpaceComponentStatusSetInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -259,7 +250,7 @@ public static XrSpaceComponentStatusSetInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpaceComponentStatusSetInfoFB.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); } /** @@ -269,34 +260,34 @@ public static XrSpaceComponentStatusSetInfoFB.Buffer malloc(int capacity, Memory * @param capacity the buffer capacity */ public static XrSpaceComponentStatusSetInfoFB.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 + XrSpaceComponentStatusSetInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceComponentStatusSetInfoFB.NEXT); } - /** Unsafe version of {@link #componentType}. */ - public static int ncomponentType(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusSetInfoFB.COMPONENTTYPE); } - /** Unsafe version of {@link #enabled}. */ - public static int nenabled(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusSetInfoFB.ENABLED); } - /** Unsafe version of {@link #timeout}. */ - public static long ntimeout(long struct) { return UNSAFE.getLong(null, struct + XrSpaceComponentStatusSetInfoFB.TIMEOUT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceComponentStatusSetInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceComponentStatusSetInfoFB.NEXT, value); } - /** Unsafe version of {@link #componentType(int) componentType}. */ - public static void ncomponentType(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceComponentStatusSetInfoFB.COMPONENTTYPE, value); } - /** Unsafe version of {@link #enabled(boolean) enabled}. */ - public static void nenabled(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceComponentStatusSetInfoFB.ENABLED, value); } - /** Unsafe version of {@link #timeout(long) timeout}. */ - public static void ntimeout(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceComponentStatusSetInfoFB.TIMEOUT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusSetInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceComponentStatusSetInfoFB.NEXT); } + /** Unsafe version of {@link #componentType}. */ + public static int ncomponentType(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusSetInfoFB.COMPONENTTYPE); } + /** Unsafe version of {@link #enabled}. */ + public static int nenabled(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusSetInfoFB.ENABLED); } + /** Unsafe version of {@link #timeout}. */ + public static long ntimeout(long struct) { return UNSAFE.getLong(null, struct + XrSpaceComponentStatusSetInfoFB.TIMEOUT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceComponentStatusSetInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceComponentStatusSetInfoFB.NEXT, value); } + /** Unsafe version of {@link #componentType(int) componentType}. */ + public static void ncomponentType(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceComponentStatusSetInfoFB.COMPONENTTYPE, value); } + /** Unsafe version of {@link #enabled(boolean) enabled}. */ + public static void nenabled(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceComponentStatusSetInfoFB.ENABLED, value); } + /** Unsafe version of {@link #timeout(long) timeout}. */ + public static void ntimeout(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceComponentStatusSetInfoFB.TIMEOUT, value); } + + // ----------------------------------- /** An array of {@link XrSpaceComponentStatusSetInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -306,9 +297,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 XrSpaceComponentStatusSetInfoFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpaceComponentStatusSetInfoFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -333,35 +324,35 @@ protected Buffer self() { protected XrSpaceComponentStatusSetInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceComponentStatusSetInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceComponentStatusSetInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#componentType} field. */ - @NativeType("XrSpaceComponentTypeFB") - public int componentType() { return XrSpaceComponentStatusSetInfoFB.ncomponentType(address()); } - /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#enabled} field. */ - @NativeType("XrBool32") - public boolean enabled() { return XrSpaceComponentStatusSetInfoFB.nenabled(address()) != 0; } - /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#timeout} field. */ - @NativeType("XrDuration") - public long timeout() { return XrSpaceComponentStatusSetInfoFB.ntimeout(address()); } - - /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#type} field. */ - public XrSpaceComponentStatusSetInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceComponentStatusSetInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntity#XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB} value to the {@link XrSpaceComponentStatusSetInfoFB#type} field. */ - public XrSpaceComponentStatusSetInfoFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#next} field. */ - public XrSpaceComponentStatusSetInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceComponentStatusSetInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#componentType} field. */ - public XrSpaceComponentStatusSetInfoFB.Buffer componentType(@NativeType("XrSpaceComponentTypeFB") int value) { XrSpaceComponentStatusSetInfoFB.ncomponentType(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#enabled} field. */ - public XrSpaceComponentStatusSetInfoFB.Buffer enabled(@NativeType("XrBool32") boolean value) { XrSpaceComponentStatusSetInfoFB.nenabled(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#timeout} field. */ - public XrSpaceComponentStatusSetInfoFB.Buffer timeout(@NativeType("XrDuration") long value) { XrSpaceComponentStatusSetInfoFB.ntimeout(address(), value); return this; } + + /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceComponentStatusSetInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceComponentStatusSetInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#componentType} field. */ + @NativeType("XrSpaceComponentTypeFB") + public int componentType() { return XrSpaceComponentStatusSetInfoFB.ncomponentType(address()); } + /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#enabled} field. */ + @NativeType("XrBool32") + public boolean enabled() { return XrSpaceComponentStatusSetInfoFB.nenabled(address()) != 0; } + /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#timeout} field. */ + @NativeType("XrDuration") + public long timeout() { return XrSpaceComponentStatusSetInfoFB.ntimeout(address()); } + + /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#type} field. */ + public XrSpaceComponentStatusSetInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceComponentStatusSetInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntity#XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB} value to the {@link XrSpaceComponentStatusSetInfoFB#type} field. */ + public XrSpaceComponentStatusSetInfoFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#next} field. */ + public XrSpaceComponentStatusSetInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceComponentStatusSetInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#componentType} field. */ + public XrSpaceComponentStatusSetInfoFB.Buffer componentType(@NativeType("XrSpaceComponentTypeFB") int value) { XrSpaceComponentStatusSetInfoFB.ncomponentType(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#enabled} field. */ + public XrSpaceComponentStatusSetInfoFB.Buffer enabled(@NativeType("XrBool32") boolean value) { XrSpaceComponentStatusSetInfoFB.nenabled(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#timeout} field. */ + public XrSpaceComponentStatusSetInfoFB.Buffer timeout(@NativeType("XrDuration") long value) { XrSpaceComponentStatusSetInfoFB.ntimeout(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceContainerFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceContainerFB.java index 56e401bb2c..df1b23ca40 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceContainerFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceContainerFB.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.*; + /** * Represents a collection of other spaces, represented by UUIDs, contained by this space. * @@ -45,8 +45,8 @@ * uint32_t {@link #uuidCountOutput}; * {@link XrUuidEXT XrUuidEXT} * {@link #uuids}; * } - */ -public class XrSpaceContainerFB extends Struct implements NativeResource { + */ +public class XrSpaceContainerFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,38 +56,29 @@ public class XrSpaceContainerFB extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT, - UUIDCAPACITYINPUT, - UUIDCOUNTOUTPUT, - UUIDS; + TYPE, + NEXT, + UUIDCAPACITYINPUT, + UUIDCOUNTOUTPUT, + UUIDS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - UUIDCAPACITYINPUT = layout.offsetof(2); - UUIDCOUNTOUTPUT = layout.offsetof(3); - UUIDS = layout.offsetof(4); - } - - protected XrSpaceContainerFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSpaceContainerFB create(long address, @Nullable ByteBuffer container) { - return new XrSpaceContainerFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + UUIDCAPACITYINPUT = layout.offsetof(2); + UUIDCOUNTOUTPUT = layout.offsetof(3); + UUIDS = layout.offsetof(4); } /** @@ -102,50 +93,50 @@ public XrSpaceContainerFB(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 input parameter for the application to specify a capacity for the output list */ - @NativeType("uint32_t") - public int uuidCapacityInput() { return nuuidCapacityInput(address()); } - /** an output parameter which will hold the number of UUIDs included in the output list, or the required capacity in the case that {@code uuidCapacityInput} is insufficient */ - @NativeType("uint32_t") - public int uuidCountOutput() { return nuuidCountOutput(address()); } - /** an output parameter which will hold a list of space UUIDs contained by the space to which the component is attached. */ - @Nullable - @NativeType("XrUuidEXT *") - public XrUuidEXT.Buffer uuids() { return nuuids(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceContainerFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityContainer#XR_TYPE_SPACE_CONTAINER_FB TYPE_SPACE_CONTAINER_FB} value to the {@link #type} field. */ - public XrSpaceContainerFB type$Default() { return type(FBSpatialEntityContainer.XR_TYPE_SPACE_CONTAINER_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceContainerFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #uuidCapacityInput} field. */ - public XrSpaceContainerFB uuidCapacityInput(@NativeType("uint32_t") int value) { nuuidCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #uuidCountOutput} field. */ - public XrSpaceContainerFB uuidCountOutput(@NativeType("uint32_t") int value) { nuuidCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link #uuids} field. */ - public XrSpaceContainerFB uuids(@Nullable @NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { nuuids(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 input parameter for the application to specify a capacity for the output list */ + @NativeType("uint32_t") + public int uuidCapacityInput() { return nuuidCapacityInput(address()); } + /** an output parameter which will hold the number of UUIDs included in the output list, or the required capacity in the case that {@code uuidCapacityInput} is insufficient */ + @NativeType("uint32_t") + public int uuidCountOutput() { return nuuidCountOutput(address()); } + /** an output parameter which will hold a list of space UUIDs contained by the space to which the component is attached. */ + @Nullable + @NativeType("XrUuidEXT *") + public XrUuidEXT.Buffer uuids() { return nuuids(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceContainerFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityContainer#XR_TYPE_SPACE_CONTAINER_FB TYPE_SPACE_CONTAINER_FB} value to the {@link #type} field. */ + public XrSpaceContainerFB type$Default() { return type(FBSpatialEntityContainer.XR_TYPE_SPACE_CONTAINER_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceContainerFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #uuidCapacityInput} field. */ + public XrSpaceContainerFB uuidCapacityInput(@NativeType("uint32_t") int value) { nuuidCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #uuidCountOutput} field. */ + public XrSpaceContainerFB uuidCountOutput(@NativeType("uint32_t") int value) { nuuidCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link #uuids} field. */ + public XrSpaceContainerFB uuids(@Nullable @NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { nuuids(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceContainerFB set( - int type, - long next, - int uuidCapacityInput, - int uuidCountOutput, + int type, + long next, + int uuidCapacityInput, + int uuidCountOutput, @Nullable XrUuidEXT.Buffer uuids - ) { - type(type); - next(next); - uuidCapacityInput(uuidCapacityInput); - uuidCountOutput(uuidCountOutput); - uuids(uuids); + ) { + type(type); + next(next); + uuidCapacityInput(uuidCapacityInput); + uuidCountOutput(uuidCountOutput); + uuids(uuids); return this; } @@ -166,29 +157,29 @@ public XrSpaceContainerFB set(XrSpaceContainerFB src) { /** Returns a new {@code XrSpaceContainerFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpaceContainerFB malloc() { - return new XrSpaceContainerFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpaceContainerFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpaceContainerFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpaceContainerFB calloc() { - return new XrSpaceContainerFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpaceContainerFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpaceContainerFB} instance allocated with {@link BufferUtils}. */ public static XrSpaceContainerFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpaceContainerFB(memAddress(container), container); + return wrap(XrSpaceContainerFB.class, memAddress(container), container); } /** Returns a new {@code XrSpaceContainerFB} instance for the specified memory address. */ public static XrSpaceContainerFB create(long address) { - return new XrSpaceContainerFB(address, null); + return wrap(XrSpaceContainerFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpaceContainerFB createSafe(long address) { - return address == NULL ? null : new XrSpaceContainerFB(address, null); + return address == NULL ? null : wrap(XrSpaceContainerFB.class, address); } /** @@ -197,7 +188,7 @@ public static XrSpaceContainerFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrSpaceContainerFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -206,7 +197,7 @@ public static XrSpaceContainerFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceContainerFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -216,7 +207,7 @@ public static XrSpaceContainerFB.Buffer calloc(int capacity) { */ public static XrSpaceContainerFB.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); } /** @@ -226,13 +217,13 @@ public static XrSpaceContainerFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceContainerFB.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 XrSpaceContainerFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -241,7 +232,7 @@ public static XrSpaceContainerFB.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrSpaceContainerFB malloc(MemoryStack stack) { - return new XrSpaceContainerFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpaceContainerFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -250,7 +241,7 @@ public static XrSpaceContainerFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSpaceContainerFB calloc(MemoryStack stack) { - return new XrSpaceContainerFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpaceContainerFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -260,7 +251,7 @@ public static XrSpaceContainerFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpaceContainerFB.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); } /** @@ -270,34 +261,34 @@ public static XrSpaceContainerFB.Buffer malloc(int capacity, MemoryStack stack) * @param capacity the buffer capacity */ public static XrSpaceContainerFB.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 + XrSpaceContainerFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceContainerFB.NEXT); } - /** Unsafe version of {@link #uuidCapacityInput}. */ - public static int nuuidCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSpaceContainerFB.UUIDCAPACITYINPUT); } - /** Unsafe version of {@link #uuidCountOutput}. */ - public static int nuuidCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSpaceContainerFB.UUIDCOUNTOUTPUT); } - /** Unsafe version of {@link #uuids}. */ - @Nullable public static XrUuidEXT.Buffer nuuids(long struct) { return XrUuidEXT.createSafe(memGetAddress(struct + XrSpaceContainerFB.UUIDS), nuuidCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceContainerFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceContainerFB.NEXT, value); } - /** Sets the specified value to the {@code uuidCapacityInput} field of the specified {@code struct}. */ - public static void nuuidCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceContainerFB.UUIDCAPACITYINPUT, value); } - /** Unsafe version of {@link #uuidCountOutput(int) uuidCountOutput}. */ - public static void nuuidCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceContainerFB.UUIDCOUNTOUTPUT, value); } - /** Unsafe version of {@link #uuids(XrUuidEXT.Buffer) uuids}. */ - public static void nuuids(long struct, @Nullable XrUuidEXT.Buffer value) { memPutAddress(struct + XrSpaceContainerFB.UUIDS, memAddressSafe(value)); if (value != null) { nuuidCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceContainerFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceContainerFB.NEXT); } + /** Unsafe version of {@link #uuidCapacityInput}. */ + public static int nuuidCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSpaceContainerFB.UUIDCAPACITYINPUT); } + /** Unsafe version of {@link #uuidCountOutput}. */ + public static int nuuidCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSpaceContainerFB.UUIDCOUNTOUTPUT); } + /** Unsafe version of {@link #uuids}. */ + @Nullable public static XrUuidEXT.Buffer nuuids(long struct) { return XrUuidEXT.createSafe(memGetAddress(struct + XrSpaceContainerFB.UUIDS), nuuidCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceContainerFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceContainerFB.NEXT, value); } + /** Sets the specified value to the {@code uuidCapacityInput} field of the specified {@code struct}. */ + public static void nuuidCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceContainerFB.UUIDCAPACITYINPUT, value); } + /** Unsafe version of {@link #uuidCountOutput(int) uuidCountOutput}. */ + public static void nuuidCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceContainerFB.UUIDCOUNTOUTPUT, value); } + /** Unsafe version of {@link #uuids(XrUuidEXT.Buffer) uuids}. */ + public static void nuuids(long struct, @Nullable XrUuidEXT.Buffer value) { memPutAddress(struct + XrSpaceContainerFB.UUIDS, memAddressSafe(value)); if (value != null) { nuuidCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrSpaceContainerFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -307,9 +298,9 @@ public static class Buffer extends StructBuffer impl /** * Creates a new {@code XrSpaceContainerFB.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 XrSpaceContainerFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpaceContainerFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -334,36 +325,36 @@ protected Buffer self() { protected XrSpaceContainerFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceContainerFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceContainerFB.ntype(address()); } - /** @return the value of the {@link XrSpaceContainerFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceContainerFB.nnext(address()); } - /** @return the value of the {@link XrSpaceContainerFB#uuidCapacityInput} field. */ - @NativeType("uint32_t") - public int uuidCapacityInput() { return XrSpaceContainerFB.nuuidCapacityInput(address()); } - /** @return the value of the {@link XrSpaceContainerFB#uuidCountOutput} field. */ - @NativeType("uint32_t") - public int uuidCountOutput() { return XrSpaceContainerFB.nuuidCountOutput(address()); } - /** @return a {@link XrUuidEXT.Buffer} view of the struct array pointed to by the {@link XrSpaceContainerFB#uuids} field. */ - @Nullable - @NativeType("XrUuidEXT *") - public XrUuidEXT.Buffer uuids() { return XrSpaceContainerFB.nuuids(address()); } - - /** Sets the specified value to the {@link XrSpaceContainerFB#type} field. */ - public XrSpaceContainerFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceContainerFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityContainer#XR_TYPE_SPACE_CONTAINER_FB TYPE_SPACE_CONTAINER_FB} value to the {@link XrSpaceContainerFB#type} field. */ - public XrSpaceContainerFB.Buffer type$Default() { return type(FBSpatialEntityContainer.XR_TYPE_SPACE_CONTAINER_FB); } - /** Sets the specified value to the {@link XrSpaceContainerFB#next} field. */ - public XrSpaceContainerFB.Buffer next(@NativeType("void const *") long value) { XrSpaceContainerFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceContainerFB#uuidCapacityInput} field. */ - public XrSpaceContainerFB.Buffer uuidCapacityInput(@NativeType("uint32_t") int value) { XrSpaceContainerFB.nuuidCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceContainerFB#uuidCountOutput} field. */ - public XrSpaceContainerFB.Buffer uuidCountOutput(@NativeType("uint32_t") int value) { XrSpaceContainerFB.nuuidCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link XrSpaceContainerFB#uuids} field. */ - public XrSpaceContainerFB.Buffer uuids(@Nullable @NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { XrSpaceContainerFB.nuuids(address(), value); return this; } + + /** @return the value of the {@link XrSpaceContainerFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceContainerFB.ntype(address()); } + /** @return the value of the {@link XrSpaceContainerFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceContainerFB.nnext(address()); } + /** @return the value of the {@link XrSpaceContainerFB#uuidCapacityInput} field. */ + @NativeType("uint32_t") + public int uuidCapacityInput() { return XrSpaceContainerFB.nuuidCapacityInput(address()); } + /** @return the value of the {@link XrSpaceContainerFB#uuidCountOutput} field. */ + @NativeType("uint32_t") + public int uuidCountOutput() { return XrSpaceContainerFB.nuuidCountOutput(address()); } + /** @return a {@link XrUuidEXT.Buffer} view of the struct array pointed to by the {@link XrSpaceContainerFB#uuids} field. */ + @Nullable + @NativeType("XrUuidEXT *") + public XrUuidEXT.Buffer uuids() { return XrSpaceContainerFB.nuuids(address()); } + + /** Sets the specified value to the {@link XrSpaceContainerFB#type} field. */ + public XrSpaceContainerFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceContainerFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityContainer#XR_TYPE_SPACE_CONTAINER_FB TYPE_SPACE_CONTAINER_FB} value to the {@link XrSpaceContainerFB#type} field. */ + public XrSpaceContainerFB.Buffer type$Default() { return type(FBSpatialEntityContainer.XR_TYPE_SPACE_CONTAINER_FB); } + /** Sets the specified value to the {@link XrSpaceContainerFB#next} field. */ + public XrSpaceContainerFB.Buffer next(@NativeType("void const *") long value) { XrSpaceContainerFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceContainerFB#uuidCapacityInput} field. */ + public XrSpaceContainerFB.Buffer uuidCapacityInput(@NativeType("uint32_t") int value) { XrSpaceContainerFB.nuuidCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceContainerFB#uuidCountOutput} field. */ + public XrSpaceContainerFB.Buffer uuidCountOutput(@NativeType("uint32_t") int value) { XrSpaceContainerFB.nuuidCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link XrSpaceContainerFB#uuids} field. */ + public XrSpaceContainerFB.Buffer uuids(@Nullable @NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { XrSpaceContainerFB.nuuids(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceEraseInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceEraseInfoFB.java index de8bf640a4..2fb9fdf8ed 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceEraseInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceEraseInfoFB.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.*; + /** * Parameters for an erase operation. * @@ -46,8 +46,8 @@ * XrSpace {@link #space}; * XrSpaceStorageLocationFB {@link #location}; * } - */ -public class XrSpaceEraseInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceEraseInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,35 +57,26 @@ public class XrSpaceEraseInfoFB extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT, - SPACE, - LOCATION; + TYPE, + NEXT, + SPACE, + LOCATION; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(POINTER_SIZE), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - SPACE = layout.offsetof(2); - LOCATION = layout.offsetof(3); - } - - protected XrSpaceEraseInfoFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSpaceEraseInfoFB create(long address, @Nullable ByteBuffer container) { - return new XrSpaceEraseInfoFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + SPACE = layout.offsetof(2); + LOCATION = layout.offsetof(3); } /** @@ -100,42 +91,42 @@ public XrSpaceEraseInfoFB(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()); } - /** the {@code XrSpace} handle to the reference space that defines the entity to be erased. */ - @NativeType("XrSpace") - public long space() { return nspace(address()); } - /** the storage location. */ - @NativeType("XrSpaceStorageLocationFB") - public int location() { return nlocation(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceEraseInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_SPACE_ERASE_INFO_FB TYPE_SPACE_ERASE_INFO_FB} value to the {@link #type} field. */ - public XrSpaceEraseInfoFB type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_SPACE_ERASE_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceEraseInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #space} field. */ - public XrSpaceEraseInfoFB space(XrSpace value) { nspace(address(), value); return this; } - /** Sets the specified value to the {@link #location} field. */ - public XrSpaceEraseInfoFB location(@NativeType("XrSpaceStorageLocationFB") int value) { nlocation(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()); } + /** the {@code XrSpace} handle to the reference space that defines the entity to be erased. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the storage location. */ + @NativeType("XrSpaceStorageLocationFB") + public int location() { return nlocation(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceEraseInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_SPACE_ERASE_INFO_FB TYPE_SPACE_ERASE_INFO_FB} value to the {@link #type} field. */ + public XrSpaceEraseInfoFB type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_SPACE_ERASE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceEraseInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrSpaceEraseInfoFB space(XrSpace value) { nspace(address(), value); return this; } + /** Sets the specified value to the {@link #location} field. */ + public XrSpaceEraseInfoFB location(@NativeType("XrSpaceStorageLocationFB") int value) { nlocation(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceEraseInfoFB set( - int type, - long next, - XrSpace space, + int type, + long next, + XrSpace space, int location - ) { - type(type); - next(next); - space(space); - location(location); + ) { + type(type); + next(next); + space(space); + location(location); return this; } @@ -156,29 +147,29 @@ public XrSpaceEraseInfoFB set(XrSpaceEraseInfoFB src) { /** Returns a new {@code XrSpaceEraseInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpaceEraseInfoFB malloc() { - return new XrSpaceEraseInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpaceEraseInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpaceEraseInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpaceEraseInfoFB calloc() { - return new XrSpaceEraseInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpaceEraseInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpaceEraseInfoFB} instance allocated with {@link BufferUtils}. */ public static XrSpaceEraseInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpaceEraseInfoFB(memAddress(container), container); + return wrap(XrSpaceEraseInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrSpaceEraseInfoFB} instance for the specified memory address. */ public static XrSpaceEraseInfoFB create(long address) { - return new XrSpaceEraseInfoFB(address, null); + return wrap(XrSpaceEraseInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpaceEraseInfoFB createSafe(long address) { - return address == NULL ? null : new XrSpaceEraseInfoFB(address, null); + return address == NULL ? null : wrap(XrSpaceEraseInfoFB.class, address); } /** @@ -187,7 +178,7 @@ public static XrSpaceEraseInfoFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrSpaceEraseInfoFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -196,7 +187,7 @@ public static XrSpaceEraseInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceEraseInfoFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -206,7 +197,7 @@ public static XrSpaceEraseInfoFB.Buffer calloc(int capacity) { */ public static XrSpaceEraseInfoFB.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); } /** @@ -216,13 +207,13 @@ public static XrSpaceEraseInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceEraseInfoFB.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 XrSpaceEraseInfoFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -231,7 +222,7 @@ public static XrSpaceEraseInfoFB.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrSpaceEraseInfoFB malloc(MemoryStack stack) { - return new XrSpaceEraseInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpaceEraseInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -240,7 +231,7 @@ public static XrSpaceEraseInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSpaceEraseInfoFB calloc(MemoryStack stack) { - return new XrSpaceEraseInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpaceEraseInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -250,7 +241,7 @@ public static XrSpaceEraseInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpaceEraseInfoFB.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); } /** @@ -260,28 +251,28 @@ public static XrSpaceEraseInfoFB.Buffer malloc(int capacity, MemoryStack stack) * @param capacity the buffer capacity */ public static XrSpaceEraseInfoFB.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 + XrSpaceEraseInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceEraseInfoFB.NEXT); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrSpaceEraseInfoFB.SPACE); } - /** Unsafe version of {@link #location}. */ - public static int nlocation(long struct) { return UNSAFE.getInt(null, struct + XrSpaceEraseInfoFB.LOCATION); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceEraseInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceEraseInfoFB.NEXT, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpaceEraseInfoFB.SPACE, value.address()); } - /** Unsafe version of {@link #location(int) location}. */ - public static void nlocation(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceEraseInfoFB.LOCATION, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceEraseInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceEraseInfoFB.NEXT); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrSpaceEraseInfoFB.SPACE); } + /** Unsafe version of {@link #location}. */ + public static int nlocation(long struct) { return UNSAFE.getInt(null, struct + XrSpaceEraseInfoFB.LOCATION); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceEraseInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceEraseInfoFB.NEXT, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpaceEraseInfoFB.SPACE, value.address()); } + /** Unsafe version of {@link #location(int) location}. */ + public static void nlocation(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceEraseInfoFB.LOCATION, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -290,9 +281,9 @@ public static XrSpaceEraseInfoFB.Buffer calloc(int capacity, MemoryStack stack) */ public static void validate(long struct) { check(memGetAddress(struct + XrSpaceEraseInfoFB.SPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpaceEraseInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -302,9 +293,9 @@ public static class Buffer extends StructBuffer impl /** * Creates a new {@code XrSpaceEraseInfoFB.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 XrSpaceEraseInfoFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpaceEraseInfoFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -329,30 +320,30 @@ protected Buffer self() { protected XrSpaceEraseInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceEraseInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceEraseInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceEraseInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceEraseInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpaceEraseInfoFB#space} field. */ - @NativeType("XrSpace") - public long space() { return XrSpaceEraseInfoFB.nspace(address()); } - /** @return the value of the {@link XrSpaceEraseInfoFB#location} field. */ - @NativeType("XrSpaceStorageLocationFB") - public int location() { return XrSpaceEraseInfoFB.nlocation(address()); } - - /** Sets the specified value to the {@link XrSpaceEraseInfoFB#type} field. */ - public XrSpaceEraseInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceEraseInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_SPACE_ERASE_INFO_FB TYPE_SPACE_ERASE_INFO_FB} value to the {@link XrSpaceEraseInfoFB#type} field. */ - public XrSpaceEraseInfoFB.Buffer type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_SPACE_ERASE_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceEraseInfoFB#next} field. */ - public XrSpaceEraseInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceEraseInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceEraseInfoFB#space} field. */ - public XrSpaceEraseInfoFB.Buffer space(XrSpace value) { XrSpaceEraseInfoFB.nspace(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceEraseInfoFB#location} field. */ - public XrSpaceEraseInfoFB.Buffer location(@NativeType("XrSpaceStorageLocationFB") int value) { XrSpaceEraseInfoFB.nlocation(address(), value); return this; } + + /** @return the value of the {@link XrSpaceEraseInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceEraseInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceEraseInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceEraseInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpaceEraseInfoFB#space} field. */ + @NativeType("XrSpace") + public long space() { return XrSpaceEraseInfoFB.nspace(address()); } + /** @return the value of the {@link XrSpaceEraseInfoFB#location} field. */ + @NativeType("XrSpaceStorageLocationFB") + public int location() { return XrSpaceEraseInfoFB.nlocation(address()); } + + /** Sets the specified value to the {@link XrSpaceEraseInfoFB#type} field. */ + public XrSpaceEraseInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceEraseInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_SPACE_ERASE_INFO_FB TYPE_SPACE_ERASE_INFO_FB} value to the {@link XrSpaceEraseInfoFB#type} field. */ + public XrSpaceEraseInfoFB.Buffer type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_SPACE_ERASE_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceEraseInfoFB#next} field. */ + public XrSpaceEraseInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceEraseInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceEraseInfoFB#space} field. */ + public XrSpaceEraseInfoFB.Buffer space(XrSpace value) { XrSpaceEraseInfoFB.nspace(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceEraseInfoFB#location} field. */ + public XrSpaceEraseInfoFB.Buffer location(@NativeType("XrSpaceStorageLocationFB") int value) { XrSpaceEraseInfoFB.nlocation(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceFilterInfoBaseHeaderFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceFilterInfoBaseHeaderFB.java index 801d7a0b9d..886eadee61 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceFilterInfoBaseHeaderFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceFilterInfoBaseHeaderFB.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 structure for all query filter structures. * @@ -41,8 +41,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrSpaceFilterInfoBaseHeaderFB extends Struct implements NativeResource { + */ +public class XrSpaceFilterInfoBaseHeaderFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,29 +52,20 @@ public class XrSpaceFilterInfoBaseHeaderFB extends Struct implements NativeResource { @@ -280,9 +271,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 XrSpaceFilterInfoBaseHeaderFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpaceFilterInfoBaseHeaderFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -307,20 +298,20 @@ protected Buffer self() { protected XrSpaceFilterInfoBaseHeaderFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceFilterInfoBaseHeaderFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceFilterInfoBaseHeaderFB.ntype(address()); } - /** @return the value of the {@link XrSpaceFilterInfoBaseHeaderFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceFilterInfoBaseHeaderFB.nnext(address()); } - - /** Sets the specified value to the {@link XrSpaceFilterInfoBaseHeaderFB#type} field. */ - public XrSpaceFilterInfoBaseHeaderFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceFilterInfoBaseHeaderFB.ntype(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceFilterInfoBaseHeaderFB#next} field. */ - public XrSpaceFilterInfoBaseHeaderFB.Buffer next(@NativeType("void const *") long value) { XrSpaceFilterInfoBaseHeaderFB.nnext(address(), value); return this; } - /** Prepends the specified {@link XrSpaceStorageLocationFilterInfoFB} value to the {@code next} chain. */ - public XrSpaceFilterInfoBaseHeaderFB.Buffer next(XrSpaceStorageLocationFilterInfoFB value) { return this.next(value.next(this.next()).address()); } + + /** @return the value of the {@link XrSpaceFilterInfoBaseHeaderFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceFilterInfoBaseHeaderFB.ntype(address()); } + /** @return the value of the {@link XrSpaceFilterInfoBaseHeaderFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceFilterInfoBaseHeaderFB.nnext(address()); } + + /** Sets the specified value to the {@link XrSpaceFilterInfoBaseHeaderFB#type} field. */ + public XrSpaceFilterInfoBaseHeaderFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceFilterInfoBaseHeaderFB.ntype(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceFilterInfoBaseHeaderFB#next} field. */ + public XrSpaceFilterInfoBaseHeaderFB.Buffer next(@NativeType("void const *") long value) { XrSpaceFilterInfoBaseHeaderFB.nnext(address(), value); return this; } + /** Prepends the specified {@link XrSpaceStorageLocationFilterInfoFB} value to the {@code next} chain. */ + public XrSpaceFilterInfoBaseHeaderFB.Buffer next(XrSpaceStorageLocationFilterInfoFB value) { return this.next(value.next(this.next()).address()); } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceListSaveInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceListSaveInfoFB.java index 1186a9a09b..3385d5cf3a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceListSaveInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceListSaveInfoFB.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.*; + /** * Parameters for a list save operation. * @@ -48,8 +48,8 @@ * XrSpace * {@link #spaces}; * XrSpaceStorageLocationFB {@link #location}; * } - */ -public class XrSpaceListSaveInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceListSaveInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -59,38 +59,29 @@ public class XrSpaceListSaveInfoFB extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - SPACECOUNT, - SPACES, - LOCATION; + TYPE, + NEXT, + SPACECOUNT, + SPACES, + LOCATION; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(POINTER_SIZE), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - SPACECOUNT = layout.offsetof(2); - SPACES = layout.offsetof(3); - LOCATION = layout.offsetof(4); - } - - protected XrSpaceListSaveInfoFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSpaceListSaveInfoFB create(long address, @Nullable ByteBuffer container) { - return new XrSpaceListSaveInfoFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + SPACECOUNT = layout.offsetof(2); + SPACES = layout.offsetof(3); + LOCATION = layout.offsetof(4); } /** @@ -105,45 +96,45 @@ public XrSpaceListSaveInfoFB(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()); } - /** the number of spatial entities to save. */ - @NativeType("uint32_t") - public int spaceCount() { return nspaceCount(address()); } - /** a list of {@code XrSpace} handles for the entities to be saved. */ - @NativeType("XrSpace *") - public PointerBuffer spaces() { return nspaces(address()); } - /** the storage location. */ - @NativeType("XrSpaceStorageLocationFB") - public int location() { return nlocation(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceListSaveInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityStorageBatch#XR_TYPE_SPACE_LIST_SAVE_INFO_FB TYPE_SPACE_LIST_SAVE_INFO_FB} value to the {@link #type} field. */ - public XrSpaceListSaveInfoFB type$Default() { return type(FBSpatialEntityStorageBatch.XR_TYPE_SPACE_LIST_SAVE_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceListSaveInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link #spaces} field. */ - public XrSpaceListSaveInfoFB spaces(@NativeType("XrSpace *") PointerBuffer value) { nspaces(address(), value); return this; } - /** Sets the specified value to the {@link #location} field. */ - public XrSpaceListSaveInfoFB location(@NativeType("XrSpaceStorageLocationFB") int value) { nlocation(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()); } + /** the number of spatial entities to save. */ + @NativeType("uint32_t") + public int spaceCount() { return nspaceCount(address()); } + /** a list of {@code XrSpace} handles for the entities to be saved. */ + @NativeType("XrSpace *") + public PointerBuffer spaces() { return nspaces(address()); } + /** the storage location. */ + @NativeType("XrSpaceStorageLocationFB") + public int location() { return nlocation(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceListSaveInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityStorageBatch#XR_TYPE_SPACE_LIST_SAVE_INFO_FB TYPE_SPACE_LIST_SAVE_INFO_FB} value to the {@link #type} field. */ + public XrSpaceListSaveInfoFB type$Default() { return type(FBSpatialEntityStorageBatch.XR_TYPE_SPACE_LIST_SAVE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceListSaveInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link #spaces} field. */ + public XrSpaceListSaveInfoFB spaces(@NativeType("XrSpace *") PointerBuffer value) { nspaces(address(), value); return this; } + /** Sets the specified value to the {@link #location} field. */ + public XrSpaceListSaveInfoFB location(@NativeType("XrSpaceStorageLocationFB") int value) { nlocation(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceListSaveInfoFB set( - int type, - long next, - PointerBuffer spaces, + int type, + long next, + PointerBuffer spaces, int location - ) { - type(type); - next(next); - spaces(spaces); - location(location); + ) { + type(type); + next(next); + spaces(spaces); + location(location); return this; } @@ -164,29 +155,29 @@ public XrSpaceListSaveInfoFB set(XrSpaceListSaveInfoFB src) { /** Returns a new {@code XrSpaceListSaveInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpaceListSaveInfoFB malloc() { - return new XrSpaceListSaveInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpaceListSaveInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpaceListSaveInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpaceListSaveInfoFB calloc() { - return new XrSpaceListSaveInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpaceListSaveInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpaceListSaveInfoFB} instance allocated with {@link BufferUtils}. */ public static XrSpaceListSaveInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpaceListSaveInfoFB(memAddress(container), container); + return wrap(XrSpaceListSaveInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrSpaceListSaveInfoFB} instance for the specified memory address. */ public static XrSpaceListSaveInfoFB create(long address) { - return new XrSpaceListSaveInfoFB(address, null); + return wrap(XrSpaceListSaveInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpaceListSaveInfoFB createSafe(long address) { - return address == NULL ? null : new XrSpaceListSaveInfoFB(address, null); + return address == NULL ? null : wrap(XrSpaceListSaveInfoFB.class, address); } /** @@ -195,7 +186,7 @@ public static XrSpaceListSaveInfoFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrSpaceListSaveInfoFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -204,7 +195,7 @@ public static XrSpaceListSaveInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceListSaveInfoFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -214,7 +205,7 @@ public static XrSpaceListSaveInfoFB.Buffer calloc(int capacity) { */ public static XrSpaceListSaveInfoFB.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); } /** @@ -224,13 +215,13 @@ public static XrSpaceListSaveInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceListSaveInfoFB.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 XrSpaceListSaveInfoFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -239,7 +230,7 @@ public static XrSpaceListSaveInfoFB.Buffer createSafe(long address, int capacity * @param stack the stack from which to allocate */ public static XrSpaceListSaveInfoFB malloc(MemoryStack stack) { - return new XrSpaceListSaveInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpaceListSaveInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -248,7 +239,7 @@ public static XrSpaceListSaveInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSpaceListSaveInfoFB calloc(MemoryStack stack) { - return new XrSpaceListSaveInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpaceListSaveInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -258,7 +249,7 @@ public static XrSpaceListSaveInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpaceListSaveInfoFB.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); } /** @@ -268,32 +259,32 @@ public static XrSpaceListSaveInfoFB.Buffer malloc(int capacity, MemoryStack stac * @param capacity the buffer capacity */ public static XrSpaceListSaveInfoFB.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 + XrSpaceListSaveInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceListSaveInfoFB.NEXT); } - /** Unsafe version of {@link #spaceCount}. */ - public static int nspaceCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceListSaveInfoFB.SPACECOUNT); } - /** Unsafe version of {@link #spaces() spaces}. */ - public static PointerBuffer nspaces(long struct) { return memPointerBuffer(memGetAddress(struct + XrSpaceListSaveInfoFB.SPACES), nspaceCount(struct)); } - /** Unsafe version of {@link #location}. */ - public static int nlocation(long struct) { return UNSAFE.getInt(null, struct + XrSpaceListSaveInfoFB.LOCATION); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceListSaveInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceListSaveInfoFB.NEXT, value); } - /** Sets the specified value to the {@code spaceCount} field of the specified {@code struct}. */ - public static void nspaceCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceListSaveInfoFB.SPACECOUNT, value); } - /** Unsafe version of {@link #spaces(PointerBuffer) spaces}. */ - public static void nspaces(long struct, PointerBuffer value) { memPutAddress(struct + XrSpaceListSaveInfoFB.SPACES, memAddress(value)); nspaceCount(struct, value.remaining()); } - /** Unsafe version of {@link #location(int) location}. */ - public static void nlocation(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceListSaveInfoFB.LOCATION, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceListSaveInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceListSaveInfoFB.NEXT); } + /** Unsafe version of {@link #spaceCount}. */ + public static int nspaceCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceListSaveInfoFB.SPACECOUNT); } + /** Unsafe version of {@link #spaces() spaces}. */ + public static PointerBuffer nspaces(long struct) { return memPointerBuffer(memGetAddress(struct + XrSpaceListSaveInfoFB.SPACES), nspaceCount(struct)); } + /** Unsafe version of {@link #location}. */ + public static int nlocation(long struct) { return UNSAFE.getInt(null, struct + XrSpaceListSaveInfoFB.LOCATION); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceListSaveInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceListSaveInfoFB.NEXT, value); } + /** Sets the specified value to the {@code spaceCount} field of the specified {@code struct}. */ + public static void nspaceCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceListSaveInfoFB.SPACECOUNT, value); } + /** Unsafe version of {@link #spaces(PointerBuffer) spaces}. */ + public static void nspaces(long struct, PointerBuffer value) { memPutAddress(struct + XrSpaceListSaveInfoFB.SPACES, memAddress(value)); nspaceCount(struct, value.remaining()); } + /** Unsafe version of {@link #location(int) location}. */ + public static void nlocation(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceListSaveInfoFB.LOCATION, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -302,9 +293,9 @@ public static XrSpaceListSaveInfoFB.Buffer calloc(int capacity, MemoryStack stac */ public static void validate(long struct) { check(memGetAddress(struct + XrSpaceListSaveInfoFB.SPACES)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpaceListSaveInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -314,9 +305,9 @@ public static class Buffer extends StructBuffer i /** * Creates a new {@code XrSpaceListSaveInfoFB.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 XrSpaceListSaveInfoFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpaceListSaveInfoFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -341,33 +332,33 @@ protected Buffer self() { protected XrSpaceListSaveInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceListSaveInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceListSaveInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceListSaveInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceListSaveInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpaceListSaveInfoFB#spaceCount} field. */ - @NativeType("uint32_t") - public int spaceCount() { return XrSpaceListSaveInfoFB.nspaceCount(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrSpaceListSaveInfoFB#spaces} field. */ - @NativeType("XrSpace *") - public PointerBuffer spaces() { return XrSpaceListSaveInfoFB.nspaces(address()); } - /** @return the value of the {@link XrSpaceListSaveInfoFB#location} field. */ - @NativeType("XrSpaceStorageLocationFB") - public int location() { return XrSpaceListSaveInfoFB.nlocation(address()); } - - /** Sets the specified value to the {@link XrSpaceListSaveInfoFB#type} field. */ - public XrSpaceListSaveInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceListSaveInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityStorageBatch#XR_TYPE_SPACE_LIST_SAVE_INFO_FB TYPE_SPACE_LIST_SAVE_INFO_FB} value to the {@link XrSpaceListSaveInfoFB#type} field. */ - public XrSpaceListSaveInfoFB.Buffer type$Default() { return type(FBSpatialEntityStorageBatch.XR_TYPE_SPACE_LIST_SAVE_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceListSaveInfoFB#next} field. */ - public XrSpaceListSaveInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceListSaveInfoFB.nnext(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link XrSpaceListSaveInfoFB#spaces} field. */ - public XrSpaceListSaveInfoFB.Buffer spaces(@NativeType("XrSpace *") PointerBuffer value) { XrSpaceListSaveInfoFB.nspaces(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceListSaveInfoFB#location} field. */ - public XrSpaceListSaveInfoFB.Buffer location(@NativeType("XrSpaceStorageLocationFB") int value) { XrSpaceListSaveInfoFB.nlocation(address(), value); return this; } + + /** @return the value of the {@link XrSpaceListSaveInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceListSaveInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceListSaveInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceListSaveInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpaceListSaveInfoFB#spaceCount} field. */ + @NativeType("uint32_t") + public int spaceCount() { return XrSpaceListSaveInfoFB.nspaceCount(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrSpaceListSaveInfoFB#spaces} field. */ + @NativeType("XrSpace *") + public PointerBuffer spaces() { return XrSpaceListSaveInfoFB.nspaces(address()); } + /** @return the value of the {@link XrSpaceListSaveInfoFB#location} field. */ + @NativeType("XrSpaceStorageLocationFB") + public int location() { return XrSpaceListSaveInfoFB.nlocation(address()); } + + /** Sets the specified value to the {@link XrSpaceListSaveInfoFB#type} field. */ + public XrSpaceListSaveInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceListSaveInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityStorageBatch#XR_TYPE_SPACE_LIST_SAVE_INFO_FB TYPE_SPACE_LIST_SAVE_INFO_FB} value to the {@link XrSpaceListSaveInfoFB#type} field. */ + public XrSpaceListSaveInfoFB.Buffer type$Default() { return type(FBSpatialEntityStorageBatch.XR_TYPE_SPACE_LIST_SAVE_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceListSaveInfoFB#next} field. */ + public XrSpaceListSaveInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceListSaveInfoFB.nnext(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link XrSpaceListSaveInfoFB#spaces} field. */ + public XrSpaceListSaveInfoFB.Buffer spaces(@NativeType("XrSpace *") PointerBuffer value) { XrSpaceListSaveInfoFB.nspaces(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceListSaveInfoFB#location} field. */ + public XrSpaceListSaveInfoFB.Buffer location(@NativeType("XrSpaceStorageLocationFB") int value) { XrSpaceListSaveInfoFB.nlocation(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceLocation.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceLocation.java index 412bd5c2ad..ab8b3ff9b2 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceLocation.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceLocation.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.*; + /** * Contains info about a space. * @@ -39,8 +39,8 @@ * XrSpaceLocationFlags {@link #locationFlags}; * {@link XrPosef XrPosef} {@link #pose}; * } - */ -public class XrSpaceLocation extends Struct implements NativeResource { + */ +public class XrSpaceLocation extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,35 +50,26 @@ public class XrSpaceLocation extends Struct implements NativeRe /** The struct member offsets. */ public static final int - TYPE, - NEXT, - LOCATIONFLAGS, - POSE; + TYPE, + NEXT, + LOCATIONFLAGS, + POSE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), __member(XrPosef.SIZEOF, XrPosef.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - LOCATIONFLAGS = layout.offsetof(2); - POSE = layout.offsetof(3); - } - - protected XrSpaceLocation(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSpaceLocation create(long address, @Nullable ByteBuffer container) { - return new XrSpaceLocation(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + LOCATIONFLAGS = layout.offsetof(2); + POSE = layout.offsetof(3); } /** @@ -93,47 +84,47 @@ public XrSpaceLocation(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, such as {@link XrSpaceVelocity}. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** 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 {@link XR10#xrLocateSpace LocateSpace}{@code ::space} within the reference frame of {@link XR10#xrLocateSpace LocateSpace}{@code ::baseSpace}. */ - public XrPosef pose() { return npose(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceLocation type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SPACE_LOCATION TYPE_SPACE_LOCATION} value to the {@link #type} field. */ - public XrSpaceLocation type$Default() { return type(XR10.XR_TYPE_SPACE_LOCATION); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceLocation next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrEyeGazeSampleTimeEXT} value to the {@code next} chain. */ - public XrSpaceLocation next(XrEyeGazeSampleTimeEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSpaceVelocity} value to the {@code next} chain. */ - public XrSpaceLocation next(XrSpaceVelocity value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #locationFlags} field. */ - public XrSpaceLocation locationFlags(@NativeType("XrSpaceLocationFlags") long value) { nlocationFlags(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrSpaceLocation pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpaceLocation pose(java.util.function.Consumer consumer) { consumer.accept(pose()); 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, such as {@link XrSpaceVelocity}. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** 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 {@link XR10#xrLocateSpace LocateSpace}{@code ::space} within the reference frame of {@link XR10#xrLocateSpace LocateSpace}{@code ::baseSpace}. */ + public XrPosef pose() { return npose(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceLocation type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SPACE_LOCATION TYPE_SPACE_LOCATION} value to the {@link #type} field. */ + public XrSpaceLocation type$Default() { return type(XR10.XR_TYPE_SPACE_LOCATION); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceLocation next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrEyeGazeSampleTimeEXT} value to the {@code next} chain. */ + public XrSpaceLocation next(XrEyeGazeSampleTimeEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSpaceVelocity} value to the {@code next} chain. */ + public XrSpaceLocation next(XrSpaceVelocity value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #locationFlags} field. */ + public XrSpaceLocation locationFlags(@NativeType("XrSpaceLocationFlags") long value) { nlocationFlags(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrSpaceLocation pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpaceLocation pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } /** Initializes this struct with the specified values. */ public XrSpaceLocation set( - int type, - long next, - long locationFlags, + int type, + long next, + long locationFlags, XrPosef pose - ) { - type(type); - next(next); - locationFlags(locationFlags); - pose(pose); + ) { + type(type); + next(next); + locationFlags(locationFlags); + pose(pose); return this; } @@ -154,29 +145,29 @@ public XrSpaceLocation set(XrSpaceLocation src) { /** Returns a new {@code XrSpaceLocation} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpaceLocation malloc() { - return new XrSpaceLocation(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpaceLocation.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpaceLocation} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpaceLocation calloc() { - return new XrSpaceLocation(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpaceLocation.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpaceLocation} instance allocated with {@link BufferUtils}. */ public static XrSpaceLocation create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpaceLocation(memAddress(container), container); + return wrap(XrSpaceLocation.class, memAddress(container), container); } /** Returns a new {@code XrSpaceLocation} instance for the specified memory address. */ public static XrSpaceLocation create(long address) { - return new XrSpaceLocation(address, null); + return wrap(XrSpaceLocation.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpaceLocation createSafe(long address) { - return address == NULL ? null : new XrSpaceLocation(address, null); + return address == NULL ? null : wrap(XrSpaceLocation.class, address); } /** @@ -185,7 +176,7 @@ public static XrSpaceLocation createSafe(long address) { * @param capacity the buffer capacity */ public static XrSpaceLocation.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 XrSpaceLocation.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceLocation.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 XrSpaceLocation.Buffer calloc(int capacity) { */ public static XrSpaceLocation.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 XrSpaceLocation.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceLocation.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 XrSpaceLocation.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 XrSpaceLocation.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrSpaceLocation malloc(MemoryStack stack) { - return new XrSpaceLocation(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpaceLocation.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -238,7 +229,7 @@ public static XrSpaceLocation malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSpaceLocation calloc(MemoryStack stack) { - return new XrSpaceLocation(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpaceLocation.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -248,7 +239,7 @@ public static XrSpaceLocation calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpaceLocation.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,30 +249,30 @@ public static XrSpaceLocation.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpaceLocation.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 + XrSpaceLocation.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceLocation.NEXT); } - /** Unsafe version of {@link #locationFlags}. */ - public static long nlocationFlags(long struct) { return UNSAFE.getLong(null, struct + XrSpaceLocation.LOCATIONFLAGS); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSpaceLocation.POSE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceLocation.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceLocation.NEXT, value); } - /** Unsafe version of {@link #locationFlags(long) locationFlags}. */ - public static void nlocationFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceLocation.LOCATIONFLAGS, value); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpaceLocation.POSE, XrPosef.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceLocation.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceLocation.NEXT); } + /** Unsafe version of {@link #locationFlags}. */ + public static long nlocationFlags(long struct) { return UNSAFE.getLong(null, struct + XrSpaceLocation.LOCATIONFLAGS); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSpaceLocation.POSE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceLocation.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceLocation.NEXT, value); } + /** Unsafe version of {@link #locationFlags(long) locationFlags}. */ + public static void nlocationFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceLocation.LOCATIONFLAGS, value); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpaceLocation.POSE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSpaceLocation} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -291,9 +282,9 @@ public static class Buffer extends StructBuffer impleme /** * Creates a new {@code XrSpaceLocation.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 XrSpaceLocation#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpaceLocation#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -318,35 +309,35 @@ protected Buffer self() { protected XrSpaceLocation getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceLocation#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceLocation.ntype(address()); } - /** @return the value of the {@link XrSpaceLocation#next} field. */ - @NativeType("void *") - public long next() { return XrSpaceLocation.nnext(address()); } - /** @return the value of the {@link XrSpaceLocation#locationFlags} field. */ - @NativeType("XrSpaceLocationFlags") - public long locationFlags() { return XrSpaceLocation.nlocationFlags(address()); } - /** @return a {@link XrPosef} view of the {@link XrSpaceLocation#pose} field. */ - public XrPosef pose() { return XrSpaceLocation.npose(address()); } - - /** Sets the specified value to the {@link XrSpaceLocation#type} field. */ - public XrSpaceLocation.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceLocation.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SPACE_LOCATION TYPE_SPACE_LOCATION} value to the {@link XrSpaceLocation#type} field. */ - public XrSpaceLocation.Buffer type$Default() { return type(XR10.XR_TYPE_SPACE_LOCATION); } - /** Sets the specified value to the {@link XrSpaceLocation#next} field. */ - public XrSpaceLocation.Buffer next(@NativeType("void *") long value) { XrSpaceLocation.nnext(address(), value); return this; } - /** Prepends the specified {@link XrEyeGazeSampleTimeEXT} value to the {@code next} chain. */ - public XrSpaceLocation.Buffer next(XrEyeGazeSampleTimeEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSpaceVelocity} value to the {@code next} chain. */ - public XrSpaceLocation.Buffer next(XrSpaceVelocity value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrSpaceLocation#locationFlags} field. */ - public XrSpaceLocation.Buffer locationFlags(@NativeType("XrSpaceLocationFlags") long value) { XrSpaceLocation.nlocationFlags(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrSpaceLocation#pose} field. */ - public XrSpaceLocation.Buffer pose(XrPosef value) { XrSpaceLocation.npose(address(), value); return this; } - /** Passes the {@link XrSpaceLocation#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpaceLocation.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + + /** @return the value of the {@link XrSpaceLocation#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceLocation.ntype(address()); } + /** @return the value of the {@link XrSpaceLocation#next} field. */ + @NativeType("void *") + public long next() { return XrSpaceLocation.nnext(address()); } + /** @return the value of the {@link XrSpaceLocation#locationFlags} field. */ + @NativeType("XrSpaceLocationFlags") + public long locationFlags() { return XrSpaceLocation.nlocationFlags(address()); } + /** @return a {@link XrPosef} view of the {@link XrSpaceLocation#pose} field. */ + public XrPosef pose() { return XrSpaceLocation.npose(address()); } + + /** Sets the specified value to the {@link XrSpaceLocation#type} field. */ + public XrSpaceLocation.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceLocation.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SPACE_LOCATION TYPE_SPACE_LOCATION} value to the {@link XrSpaceLocation#type} field. */ + public XrSpaceLocation.Buffer type$Default() { return type(XR10.XR_TYPE_SPACE_LOCATION); } + /** Sets the specified value to the {@link XrSpaceLocation#next} field. */ + public XrSpaceLocation.Buffer next(@NativeType("void *") long value) { XrSpaceLocation.nnext(address(), value); return this; } + /** Prepends the specified {@link XrEyeGazeSampleTimeEXT} value to the {@code next} chain. */ + public XrSpaceLocation.Buffer next(XrEyeGazeSampleTimeEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSpaceVelocity} value to the {@code next} chain. */ + public XrSpaceLocation.Buffer next(XrSpaceVelocity value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrSpaceLocation#locationFlags} field. */ + public XrSpaceLocation.Buffer locationFlags(@NativeType("XrSpaceLocationFlags") long value) { XrSpaceLocation.nlocationFlags(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrSpaceLocation#pose} field. */ + public XrSpaceLocation.Buffer pose(XrPosef value) { XrSpaceLocation.npose(address(), value); return this; } + /** Passes the {@link XrSpaceLocation#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpaceLocation.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryInfoBaseHeaderFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryInfoBaseHeaderFB.java index 37623e6b49..64ef008c86 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryInfoBaseHeaderFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryInfoBaseHeaderFB.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 structure for all query info structures. * @@ -37,8 +37,8 @@ * XrStructureType type; * void const * next; * } - */ -public class XrSpaceQueryInfoBaseHeaderFB extends Struct implements NativeResource { + */ +public class XrSpaceQueryInfoBaseHeaderFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,29 +48,20 @@ public class XrSpaceQueryInfoBaseHeaderFB extends Struct implements NativeResource { @@ -264,9 +255,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 XrSpaceQueryInfoBaseHeaderFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpaceQueryInfoBaseHeaderFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -291,18 +282,18 @@ protected Buffer self() { protected XrSpaceQueryInfoBaseHeaderFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceQueryInfoBaseHeaderFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceQueryInfoBaseHeaderFB.nnext(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrSpaceQueryInfoBaseHeaderFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceQueryInfoBaseHeaderFB.ntype(address(), value); return this; } - /** Sets the specified value to the {@code next} field. */ - public XrSpaceQueryInfoBaseHeaderFB.Buffer next(@NativeType("void const *") long value) { XrSpaceQueryInfoBaseHeaderFB.nnext(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceQueryInfoBaseHeaderFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceQueryInfoBaseHeaderFB.nnext(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrSpaceQueryInfoBaseHeaderFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceQueryInfoBaseHeaderFB.ntype(address(), value); return this; } + /** Sets the specified value to the {@code next} field. */ + public XrSpaceQueryInfoBaseHeaderFB.Buffer next(@NativeType("void const *") long value) { XrSpaceQueryInfoBaseHeaderFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryInfoFB.java index 0e843ac3e8..4fbf3db436 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryInfoFB.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.*; + /** * Query for entities and perform an action on any results. * @@ -49,8 +49,8 @@ * {@link XrSpaceFilterInfoBaseHeaderFB XrSpaceFilterInfoBaseHeaderFB} const * {@link #filter}; * {@link XrSpaceFilterInfoBaseHeaderFB XrSpaceFilterInfoBaseHeaderFB} const * {@link #excludeFilter}; * } - */ -public class XrSpaceQueryInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceQueryInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -60,44 +60,35 @@ public class XrSpaceQueryInfoFB extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT, - QUERYACTION, - MAXRESULTCOUNT, - TIMEOUT, - FILTER, - EXCLUDEFILTER; + TYPE, + NEXT, + QUERYACTION, + MAXRESULTCOUNT, + TIMEOUT, + FILTER, + EXCLUDEFILTER; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(8), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), + __member(8), + __member(POINTER_SIZE), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - QUERYACTION = layout.offsetof(2); - MAXRESULTCOUNT = layout.offsetof(3); - TIMEOUT = layout.offsetof(4); - FILTER = layout.offsetof(5); - EXCLUDEFILTER = layout.offsetof(6); - } - - protected XrSpaceQueryInfoFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSpaceQueryInfoFB create(long address, @Nullable ByteBuffer container) { - return new XrSpaceQueryInfoFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + QUERYACTION = layout.offsetof(2); + MAXRESULTCOUNT = layout.offsetof(3); + TIMEOUT = layout.offsetof(4); + FILTER = layout.offsetof(5); + EXCLUDEFILTER = layout.offsetof(6); } /** @@ -112,65 +103,65 @@ public XrSpaceQueryInfoFB(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()); } - /** the type of query to perform. */ - @NativeType("XrSpaceQueryActionFB") - public int queryAction() { return nqueryAction(address()); } - /** the maximum number of entities to be found. */ - @NativeType("uint32_t") - public int maxResultCount() { return nmaxResultCount(address()); } - /** the number of nanoseconds before the operation should time out. A value of {@link XR10#XR_INFINITE_DURATION INFINITE_DURATION} indicates no timeout. */ - @NativeType("XrDuration") - public long timeout() { return ntimeout(address()); } - /** NULL or a pointer to a valid structure based on {@link XrSpaceFilterInfoBaseHeaderFB}. */ - @Nullable - @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") - public XrSpaceFilterInfoBaseHeaderFB filter() { return nfilter(address()); } - /** NULL or a pointer to a valid structure based on {@link XrSpaceFilterInfoBaseHeaderFB}. */ - @Nullable - @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") - public XrSpaceFilterInfoBaseHeaderFB excludeFilter() { return nexcludeFilter(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceQueryInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_QUERY_INFO_FB TYPE_SPACE_QUERY_INFO_FB} value to the {@link #type} field. */ - public XrSpaceQueryInfoFB type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_QUERY_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceQueryInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #queryAction} field. */ - public XrSpaceQueryInfoFB queryAction(@NativeType("XrSpaceQueryActionFB") int value) { nqueryAction(address(), value); return this; } - /** Sets the specified value to the {@link #maxResultCount} field. */ - public XrSpaceQueryInfoFB maxResultCount(@NativeType("uint32_t") int value) { nmaxResultCount(address(), value); return this; } - /** Sets the specified value to the {@link #timeout} field. */ - public XrSpaceQueryInfoFB timeout(@NativeType("XrDuration") long value) { ntimeout(address(), value); return this; } - /** Sets the address of the specified {@link XrSpaceFilterInfoBaseHeaderFB} to the {@link #filter} field. */ - public XrSpaceQueryInfoFB filter(@Nullable @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") XrSpaceFilterInfoBaseHeaderFB value) { nfilter(address(), value); return this; } - /** Sets the address of the specified {@link XrSpaceFilterInfoBaseHeaderFB} to the {@link #excludeFilter} field. */ - public XrSpaceQueryInfoFB excludeFilter(@Nullable @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") XrSpaceFilterInfoBaseHeaderFB value) { nexcludeFilter(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()); } + /** the type of query to perform. */ + @NativeType("XrSpaceQueryActionFB") + public int queryAction() { return nqueryAction(address()); } + /** the maximum number of entities to be found. */ + @NativeType("uint32_t") + public int maxResultCount() { return nmaxResultCount(address()); } + /** the number of nanoseconds before the operation should time out. A value of {@link XR10#XR_INFINITE_DURATION INFINITE_DURATION} indicates no timeout. */ + @NativeType("XrDuration") + public long timeout() { return ntimeout(address()); } + /** NULL or a pointer to a valid structure based on {@link XrSpaceFilterInfoBaseHeaderFB}. */ + @Nullable + @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") + public XrSpaceFilterInfoBaseHeaderFB filter() { return nfilter(address()); } + /** NULL or a pointer to a valid structure based on {@link XrSpaceFilterInfoBaseHeaderFB}. */ + @Nullable + @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") + public XrSpaceFilterInfoBaseHeaderFB excludeFilter() { return nexcludeFilter(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceQueryInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_QUERY_INFO_FB TYPE_SPACE_QUERY_INFO_FB} value to the {@link #type} field. */ + public XrSpaceQueryInfoFB type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_QUERY_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceQueryInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #queryAction} field. */ + public XrSpaceQueryInfoFB queryAction(@NativeType("XrSpaceQueryActionFB") int value) { nqueryAction(address(), value); return this; } + /** Sets the specified value to the {@link #maxResultCount} field. */ + public XrSpaceQueryInfoFB maxResultCount(@NativeType("uint32_t") int value) { nmaxResultCount(address(), value); return this; } + /** Sets the specified value to the {@link #timeout} field. */ + public XrSpaceQueryInfoFB timeout(@NativeType("XrDuration") long value) { ntimeout(address(), value); return this; } + /** Sets the address of the specified {@link XrSpaceFilterInfoBaseHeaderFB} to the {@link #filter} field. */ + public XrSpaceQueryInfoFB filter(@Nullable @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") XrSpaceFilterInfoBaseHeaderFB value) { nfilter(address(), value); return this; } + /** Sets the address of the specified {@link XrSpaceFilterInfoBaseHeaderFB} to the {@link #excludeFilter} field. */ + public XrSpaceQueryInfoFB excludeFilter(@Nullable @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") XrSpaceFilterInfoBaseHeaderFB value) { nexcludeFilter(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceQueryInfoFB set( - int type, - long next, - int queryAction, - int maxResultCount, - long timeout, - @Nullable XrSpaceFilterInfoBaseHeaderFB filter, + int type, + long next, + int queryAction, + int maxResultCount, + long timeout, + @Nullable XrSpaceFilterInfoBaseHeaderFB filter, @Nullable XrSpaceFilterInfoBaseHeaderFB excludeFilter - ) { - type(type); - next(next); - queryAction(queryAction); - maxResultCount(maxResultCount); - timeout(timeout); - filter(filter); - excludeFilter(excludeFilter); + ) { + type(type); + next(next); + queryAction(queryAction); + maxResultCount(maxResultCount); + timeout(timeout); + filter(filter); + excludeFilter(excludeFilter); return this; } @@ -191,34 +182,34 @@ public XrSpaceQueryInfoFB set(XrSpaceQueryInfoFB src) { /** Returns a new {@code XrSpaceQueryInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpaceQueryInfoFB malloc() { - return new XrSpaceQueryInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpaceQueryInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpaceQueryInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpaceQueryInfoFB calloc() { - return new XrSpaceQueryInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpaceQueryInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpaceQueryInfoFB} instance allocated with {@link BufferUtils}. */ public static XrSpaceQueryInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpaceQueryInfoFB(memAddress(container), container); + return wrap(XrSpaceQueryInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrSpaceQueryInfoFB} instance for the specified memory address. */ public static XrSpaceQueryInfoFB create(long address) { - return new XrSpaceQueryInfoFB(address, null); + return wrap(XrSpaceQueryInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpaceQueryInfoFB createSafe(long address) { - return address == NULL ? null : new XrSpaceQueryInfoFB(address, null); + return address == NULL ? null : wrap(XrSpaceQueryInfoFB.class, address); } /** Downcasts the specified {@code XrSpaceQueryInfoBaseHeaderFB} instance to {@code XrSpaceQueryInfoFB}. */ public static XrSpaceQueryInfoFB create(XrSpaceQueryInfoBaseHeaderFB value) { - return new XrSpaceQueryInfoFB(value.address(), __getContainer(value)); + return wrap(XrSpaceQueryInfoFB.class, value); } /** @@ -227,7 +218,7 @@ public static XrSpaceQueryInfoFB create(XrSpaceQueryInfoBaseHeaderFB value) { * @param capacity the buffer capacity */ public static XrSpaceQueryInfoFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -236,7 +227,7 @@ public static XrSpaceQueryInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceQueryInfoFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -246,7 +237,7 @@ public static XrSpaceQueryInfoFB.Buffer calloc(int capacity) { */ public static XrSpaceQueryInfoFB.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); } /** @@ -256,18 +247,18 @@ public static XrSpaceQueryInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceQueryInfoFB.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 XrSpaceQueryInfoFB.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 XrSpaceQueryInfoBaseHeaderFB.Buffer} instance to {@code XrSpaceQueryInfoFB.Buffer}. */ public static XrSpaceQueryInfoFB.Buffer create(XrSpaceQueryInfoBaseHeaderFB.Buffer value) { - return new XrSpaceQueryInfoFB.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** @@ -276,7 +267,7 @@ public static XrSpaceQueryInfoFB.Buffer create(XrSpaceQueryInfoBaseHeaderFB.Buff * @param stack the stack from which to allocate */ public static XrSpaceQueryInfoFB malloc(MemoryStack stack) { - return new XrSpaceQueryInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpaceQueryInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -285,7 +276,7 @@ public static XrSpaceQueryInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSpaceQueryInfoFB calloc(MemoryStack stack) { - return new XrSpaceQueryInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpaceQueryInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -295,7 +286,7 @@ public static XrSpaceQueryInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpaceQueryInfoFB.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); } /** @@ -305,42 +296,42 @@ public static XrSpaceQueryInfoFB.Buffer malloc(int capacity, MemoryStack stack) * @param capacity the buffer capacity */ public static XrSpaceQueryInfoFB.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 + XrSpaceQueryInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceQueryInfoFB.NEXT); } - /** Unsafe version of {@link #queryAction}. */ - public static int nqueryAction(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryInfoFB.QUERYACTION); } - /** Unsafe version of {@link #maxResultCount}. */ - public static int nmaxResultCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryInfoFB.MAXRESULTCOUNT); } - /** Unsafe version of {@link #timeout}. */ - public static long ntimeout(long struct) { return UNSAFE.getLong(null, struct + XrSpaceQueryInfoFB.TIMEOUT); } - /** Unsafe version of {@link #filter}. */ - @Nullable public static XrSpaceFilterInfoBaseHeaderFB nfilter(long struct) { return XrSpaceFilterInfoBaseHeaderFB.createSafe(memGetAddress(struct + XrSpaceQueryInfoFB.FILTER)); } - /** Unsafe version of {@link #excludeFilter}. */ - @Nullable public static XrSpaceFilterInfoBaseHeaderFB nexcludeFilter(long struct) { return XrSpaceFilterInfoBaseHeaderFB.createSafe(memGetAddress(struct + XrSpaceQueryInfoFB.EXCLUDEFILTER)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceQueryInfoFB.NEXT, value); } - /** Unsafe version of {@link #queryAction(int) queryAction}. */ - public static void nqueryAction(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryInfoFB.QUERYACTION, value); } - /** Unsafe version of {@link #maxResultCount(int) maxResultCount}. */ - public static void nmaxResultCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryInfoFB.MAXRESULTCOUNT, value); } - /** Unsafe version of {@link #timeout(long) timeout}. */ - public static void ntimeout(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceQueryInfoFB.TIMEOUT, value); } - /** Unsafe version of {@link #filter(XrSpaceFilterInfoBaseHeaderFB) filter}. */ - public static void nfilter(long struct, @Nullable XrSpaceFilterInfoBaseHeaderFB value) { memPutAddress(struct + XrSpaceQueryInfoFB.FILTER, memAddressSafe(value)); } - /** Unsafe version of {@link #excludeFilter(XrSpaceFilterInfoBaseHeaderFB) excludeFilter}. */ - public static void nexcludeFilter(long struct, @Nullable XrSpaceFilterInfoBaseHeaderFB value) { memPutAddress(struct + XrSpaceQueryInfoFB.EXCLUDEFILTER, memAddressSafe(value)); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceQueryInfoFB.NEXT); } + /** Unsafe version of {@link #queryAction}. */ + public static int nqueryAction(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryInfoFB.QUERYACTION); } + /** Unsafe version of {@link #maxResultCount}. */ + public static int nmaxResultCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryInfoFB.MAXRESULTCOUNT); } + /** Unsafe version of {@link #timeout}. */ + public static long ntimeout(long struct) { return UNSAFE.getLong(null, struct + XrSpaceQueryInfoFB.TIMEOUT); } + /** Unsafe version of {@link #filter}. */ + @Nullable public static XrSpaceFilterInfoBaseHeaderFB nfilter(long struct) { return XrSpaceFilterInfoBaseHeaderFB.createSafe(memGetAddress(struct + XrSpaceQueryInfoFB.FILTER)); } + /** Unsafe version of {@link #excludeFilter}. */ + @Nullable public static XrSpaceFilterInfoBaseHeaderFB nexcludeFilter(long struct) { return XrSpaceFilterInfoBaseHeaderFB.createSafe(memGetAddress(struct + XrSpaceQueryInfoFB.EXCLUDEFILTER)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceQueryInfoFB.NEXT, value); } + /** Unsafe version of {@link #queryAction(int) queryAction}. */ + public static void nqueryAction(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryInfoFB.QUERYACTION, value); } + /** Unsafe version of {@link #maxResultCount(int) maxResultCount}. */ + public static void nmaxResultCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryInfoFB.MAXRESULTCOUNT, value); } + /** Unsafe version of {@link #timeout(long) timeout}. */ + public static void ntimeout(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceQueryInfoFB.TIMEOUT, value); } + /** Unsafe version of {@link #filter(XrSpaceFilterInfoBaseHeaderFB) filter}. */ + public static void nfilter(long struct, @Nullable XrSpaceFilterInfoBaseHeaderFB value) { memPutAddress(struct + XrSpaceQueryInfoFB.FILTER, memAddressSafe(value)); } + /** Unsafe version of {@link #excludeFilter(XrSpaceFilterInfoBaseHeaderFB) excludeFilter}. */ + public static void nexcludeFilter(long struct, @Nullable XrSpaceFilterInfoBaseHeaderFB value) { memPutAddress(struct + XrSpaceQueryInfoFB.EXCLUDEFILTER, memAddressSafe(value)); } + + // ----------------------------------- /** An array of {@link XrSpaceQueryInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -350,9 +341,9 @@ public static class Buffer extends StructBuffer impl /** * Creates a new {@code XrSpaceQueryInfoFB.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 XrSpaceQueryInfoFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpaceQueryInfoFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -377,47 +368,47 @@ protected Buffer self() { protected XrSpaceQueryInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceQueryInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceQueryInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceQueryInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceQueryInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpaceQueryInfoFB#queryAction} field. */ - @NativeType("XrSpaceQueryActionFB") - public int queryAction() { return XrSpaceQueryInfoFB.nqueryAction(address()); } - /** @return the value of the {@link XrSpaceQueryInfoFB#maxResultCount} field. */ - @NativeType("uint32_t") - public int maxResultCount() { return XrSpaceQueryInfoFB.nmaxResultCount(address()); } - /** @return the value of the {@link XrSpaceQueryInfoFB#timeout} field. */ - @NativeType("XrDuration") - public long timeout() { return XrSpaceQueryInfoFB.ntimeout(address()); } - /** @return a {@link XrSpaceFilterInfoBaseHeaderFB} view of the struct pointed to by the {@link XrSpaceQueryInfoFB#filter} field. */ - @Nullable - @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") - public XrSpaceFilterInfoBaseHeaderFB filter() { return XrSpaceQueryInfoFB.nfilter(address()); } - /** @return a {@link XrSpaceFilterInfoBaseHeaderFB} view of the struct pointed to by the {@link XrSpaceQueryInfoFB#excludeFilter} field. */ - @Nullable - @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") - public XrSpaceFilterInfoBaseHeaderFB excludeFilter() { return XrSpaceQueryInfoFB.nexcludeFilter(address()); } - - /** Sets the specified value to the {@link XrSpaceQueryInfoFB#type} field. */ - public XrSpaceQueryInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceQueryInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_QUERY_INFO_FB TYPE_SPACE_QUERY_INFO_FB} value to the {@link XrSpaceQueryInfoFB#type} field. */ - public XrSpaceQueryInfoFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_QUERY_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceQueryInfoFB#next} field. */ - public XrSpaceQueryInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceQueryInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceQueryInfoFB#queryAction} field. */ - public XrSpaceQueryInfoFB.Buffer queryAction(@NativeType("XrSpaceQueryActionFB") int value) { XrSpaceQueryInfoFB.nqueryAction(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceQueryInfoFB#maxResultCount} field. */ - public XrSpaceQueryInfoFB.Buffer maxResultCount(@NativeType("uint32_t") int value) { XrSpaceQueryInfoFB.nmaxResultCount(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceQueryInfoFB#timeout} field. */ - public XrSpaceQueryInfoFB.Buffer timeout(@NativeType("XrDuration") long value) { XrSpaceQueryInfoFB.ntimeout(address(), value); return this; } - /** Sets the address of the specified {@link XrSpaceFilterInfoBaseHeaderFB} to the {@link XrSpaceQueryInfoFB#filter} field. */ - public XrSpaceQueryInfoFB.Buffer filter(@Nullable @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") XrSpaceFilterInfoBaseHeaderFB value) { XrSpaceQueryInfoFB.nfilter(address(), value); return this; } - /** Sets the address of the specified {@link XrSpaceFilterInfoBaseHeaderFB} to the {@link XrSpaceQueryInfoFB#excludeFilter} field. */ - public XrSpaceQueryInfoFB.Buffer excludeFilter(@Nullable @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") XrSpaceFilterInfoBaseHeaderFB value) { XrSpaceQueryInfoFB.nexcludeFilter(address(), value); return this; } + + /** @return the value of the {@link XrSpaceQueryInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceQueryInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceQueryInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceQueryInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpaceQueryInfoFB#queryAction} field. */ + @NativeType("XrSpaceQueryActionFB") + public int queryAction() { return XrSpaceQueryInfoFB.nqueryAction(address()); } + /** @return the value of the {@link XrSpaceQueryInfoFB#maxResultCount} field. */ + @NativeType("uint32_t") + public int maxResultCount() { return XrSpaceQueryInfoFB.nmaxResultCount(address()); } + /** @return the value of the {@link XrSpaceQueryInfoFB#timeout} field. */ + @NativeType("XrDuration") + public long timeout() { return XrSpaceQueryInfoFB.ntimeout(address()); } + /** @return a {@link XrSpaceFilterInfoBaseHeaderFB} view of the struct pointed to by the {@link XrSpaceQueryInfoFB#filter} field. */ + @Nullable + @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") + public XrSpaceFilterInfoBaseHeaderFB filter() { return XrSpaceQueryInfoFB.nfilter(address()); } + /** @return a {@link XrSpaceFilterInfoBaseHeaderFB} view of the struct pointed to by the {@link XrSpaceQueryInfoFB#excludeFilter} field. */ + @Nullable + @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") + public XrSpaceFilterInfoBaseHeaderFB excludeFilter() { return XrSpaceQueryInfoFB.nexcludeFilter(address()); } + + /** Sets the specified value to the {@link XrSpaceQueryInfoFB#type} field. */ + public XrSpaceQueryInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceQueryInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_QUERY_INFO_FB TYPE_SPACE_QUERY_INFO_FB} value to the {@link XrSpaceQueryInfoFB#type} field. */ + public XrSpaceQueryInfoFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_QUERY_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceQueryInfoFB#next} field. */ + public XrSpaceQueryInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceQueryInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceQueryInfoFB#queryAction} field. */ + public XrSpaceQueryInfoFB.Buffer queryAction(@NativeType("XrSpaceQueryActionFB") int value) { XrSpaceQueryInfoFB.nqueryAction(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceQueryInfoFB#maxResultCount} field. */ + public XrSpaceQueryInfoFB.Buffer maxResultCount(@NativeType("uint32_t") int value) { XrSpaceQueryInfoFB.nmaxResultCount(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceQueryInfoFB#timeout} field. */ + public XrSpaceQueryInfoFB.Buffer timeout(@NativeType("XrDuration") long value) { XrSpaceQueryInfoFB.ntimeout(address(), value); return this; } + /** Sets the address of the specified {@link XrSpaceFilterInfoBaseHeaderFB} to the {@link XrSpaceQueryInfoFB#filter} field. */ + public XrSpaceQueryInfoFB.Buffer filter(@Nullable @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") XrSpaceFilterInfoBaseHeaderFB value) { XrSpaceQueryInfoFB.nfilter(address(), value); return this; } + /** Sets the address of the specified {@link XrSpaceFilterInfoBaseHeaderFB} to the {@link XrSpaceQueryInfoFB#excludeFilter} field. */ + public XrSpaceQueryInfoFB.Buffer excludeFilter(@Nullable @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") XrSpaceFilterInfoBaseHeaderFB value) { XrSpaceQueryInfoFB.nexcludeFilter(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryResultFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryResultFB.java index 7d938922e5..79ea7fe127 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryResultFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryResultFB.java @@ -4,15 +4,15 @@ * 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.MemoryUtil.*; - + +import static org.lwjgl.system.MemoryUtil.*; + /** * Query result. * @@ -37,8 +37,8 @@ * XrSpace {@link #space}; * {@link XrUuidEXT XrUuidEXT} {@link #uuid}; * } - */ -public class XrSpaceQueryResultFB extends Struct { + */ +public class XrSpaceQueryResultFB extends Struct { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,29 +48,20 @@ public class XrSpaceQueryResultFB extends Struct { /** The struct member offsets. */ public static final int - SPACE, - UUID; + SPACE, + UUID; static { - Layout layout = __struct( - __member(POINTER_SIZE), + Layout layout = __struct( + __member(POINTER_SIZE), __member(XrUuidEXT.SIZEOF, XrUuidEXT.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - SPACE = layout.offsetof(0); - UUID = layout.offsetof(1); - } - - protected XrSpaceQueryResultFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSpaceQueryResultFB create(long address, @Nullable ByteBuffer container) { - return new XrSpaceQueryResultFB(address, container); + SPACE = layout.offsetof(0); + UUID = layout.offsetof(1); } /** @@ -85,24 +76,24 @@ public XrSpaceQueryResultFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrSpace} handle to the spatial entity found by the query. */ - @NativeType("XrSpace") - public long space() { return nspace(address()); } - /** the UUID that identifies the entity. */ - public XrUuidEXT uuid() { return nuuid(address()); } + + /** the {@code XrSpace} handle to the spatial entity found by the query. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the UUID that identifies the entity. */ + public XrUuidEXT uuid() { return nuuid(address()); } // ----------------------------------- /** Returns a new {@code XrSpaceQueryResultFB} instance for the specified memory address. */ public static XrSpaceQueryResultFB create(long address) { - return new XrSpaceQueryResultFB(address, null); + return wrap(XrSpaceQueryResultFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpaceQueryResultFB createSafe(long address) { - return address == NULL ? null : new XrSpaceQueryResultFB(address, null); + return address == NULL ? null : wrap(XrSpaceQueryResultFB.class, address); } /** @@ -112,23 +103,23 @@ public static XrSpaceQueryResultFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrSpaceQueryResultFB.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 XrSpaceQueryResultFB.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 #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrSpaceQueryResultFB.SPACE); } - /** Unsafe version of {@link #uuid}. */ - public static XrUuidEXT nuuid(long struct) { return XrUuidEXT.create(struct + XrSpaceQueryResultFB.UUID); } - // ----------------------------------- + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrSpaceQueryResultFB.SPACE); } + /** Unsafe version of {@link #uuid}. */ + public static XrUuidEXT nuuid(long struct) { return XrUuidEXT.create(struct + XrSpaceQueryResultFB.UUID); } + + // ----------------------------------- /** An array of {@link XrSpaceQueryResultFB} structs. */ public static class Buffer extends StructBuffer { @@ -138,9 +129,9 @@ public static class Buffer extends StructBuffer { /** * Creates a new {@code XrSpaceQueryResultFB.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 XrSpaceQueryResultFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpaceQueryResultFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -165,12 +156,12 @@ protected Buffer self() { protected XrSpaceQueryResultFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceQueryResultFB#space} field. */ - @NativeType("XrSpace") - public long space() { return XrSpaceQueryResultFB.nspace(address()); } - /** @return a {@link XrUuidEXT} view of the {@link XrSpaceQueryResultFB#uuid} field. */ - public XrUuidEXT uuid() { return XrSpaceQueryResultFB.nuuid(address()); } + + /** @return the value of the {@link XrSpaceQueryResultFB#space} field. */ + @NativeType("XrSpace") + public long space() { return XrSpaceQueryResultFB.nspace(address()); } + /** @return a {@link XrUuidEXT} view of the {@link XrSpaceQueryResultFB#uuid} field. */ + public XrUuidEXT uuid() { return XrSpaceQueryResultFB.nuuid(address()); } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryResultsFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryResultsFB.java index e61122a0b0..dfe93d554b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryResultsFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryResultsFB.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.*; + /** * Used to retrieve query results. * @@ -45,8 +45,8 @@ * uint32_t {@link #resultCountOutput}; * {@link XrSpaceQueryResultFB XrSpaceQueryResultFB} * {@link #results}; * } - */ -public class XrSpaceQueryResultsFB extends Struct implements NativeResource { + */ +public class XrSpaceQueryResultsFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,38 +56,29 @@ public class XrSpaceQueryResultsFB extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - RESULTCAPACITYINPUT, - RESULTCOUNTOUTPUT, - RESULTS; + TYPE, + NEXT, + RESULTCAPACITYINPUT, + RESULTCOUNTOUTPUT, + RESULTS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - RESULTCAPACITYINPUT = layout.offsetof(2); - RESULTCOUNTOUTPUT = layout.offsetof(3); - RESULTS = layout.offsetof(4); - } - - protected XrSpaceQueryResultsFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSpaceQueryResultsFB create(long address, @Nullable ByteBuffer container) { - return new XrSpaceQueryResultsFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + RESULTCAPACITYINPUT = layout.offsetof(2); + RESULTCOUNTOUTPUT = layout.offsetof(3); + RESULTS = layout.offsetof(4); } /** @@ -102,50 +93,50 @@ public XrSpaceQueryResultsFB(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()); } - /** the capacity of the {@code results} array, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int resultCapacityInput() { return nresultCapacityInput(address()); } - /** an output parameter containing the count of results retrieved, or returns the required capacity in the case that {@code resultCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int resultCountOutput() { return nresultCountOutput(address()); } - /** a pointer to an array of results, but can be {@code NULL} if {@code resultCapacityInput} is 0. */ - @Nullable - @NativeType("XrSpaceQueryResultFB *") - public XrSpaceQueryResultFB.Buffer results() { return nresults(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceQueryResultsFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_QUERY_RESULTS_FB TYPE_SPACE_QUERY_RESULTS_FB} value to the {@link #type} field. */ - public XrSpaceQueryResultsFB type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_QUERY_RESULTS_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceQueryResultsFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #resultCapacityInput} field. */ - public XrSpaceQueryResultsFB resultCapacityInput(@NativeType("uint32_t") int value) { nresultCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #resultCountOutput} field. */ - public XrSpaceQueryResultsFB resultCountOutput(@NativeType("uint32_t") int value) { nresultCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrSpaceQueryResultFB.Buffer} to the {@link #results} field. */ - public XrSpaceQueryResultsFB results(@Nullable @NativeType("XrSpaceQueryResultFB *") XrSpaceQueryResultFB.Buffer value) { nresults(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()); } + /** the capacity of the {@code results} array, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int resultCapacityInput() { return nresultCapacityInput(address()); } + /** an output parameter containing the count of results retrieved, or returns the required capacity in the case that {@code resultCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int resultCountOutput() { return nresultCountOutput(address()); } + /** a pointer to an array of results, but can be {@code NULL} if {@code resultCapacityInput} is 0. */ + @Nullable + @NativeType("XrSpaceQueryResultFB *") + public XrSpaceQueryResultFB.Buffer results() { return nresults(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceQueryResultsFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_QUERY_RESULTS_FB TYPE_SPACE_QUERY_RESULTS_FB} value to the {@link #type} field. */ + public XrSpaceQueryResultsFB type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_QUERY_RESULTS_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceQueryResultsFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #resultCapacityInput} field. */ + public XrSpaceQueryResultsFB resultCapacityInput(@NativeType("uint32_t") int value) { nresultCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #resultCountOutput} field. */ + public XrSpaceQueryResultsFB resultCountOutput(@NativeType("uint32_t") int value) { nresultCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrSpaceQueryResultFB.Buffer} to the {@link #results} field. */ + public XrSpaceQueryResultsFB results(@Nullable @NativeType("XrSpaceQueryResultFB *") XrSpaceQueryResultFB.Buffer value) { nresults(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceQueryResultsFB set( - int type, - long next, - int resultCapacityInput, - int resultCountOutput, + int type, + long next, + int resultCapacityInput, + int resultCountOutput, @Nullable XrSpaceQueryResultFB.Buffer results - ) { - type(type); - next(next); - resultCapacityInput(resultCapacityInput); - resultCountOutput(resultCountOutput); - results(results); + ) { + type(type); + next(next); + resultCapacityInput(resultCapacityInput); + resultCountOutput(resultCountOutput); + results(results); return this; } @@ -166,29 +157,29 @@ public XrSpaceQueryResultsFB set(XrSpaceQueryResultsFB src) { /** Returns a new {@code XrSpaceQueryResultsFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpaceQueryResultsFB malloc() { - return new XrSpaceQueryResultsFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpaceQueryResultsFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpaceQueryResultsFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpaceQueryResultsFB calloc() { - return new XrSpaceQueryResultsFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpaceQueryResultsFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpaceQueryResultsFB} instance allocated with {@link BufferUtils}. */ public static XrSpaceQueryResultsFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpaceQueryResultsFB(memAddress(container), container); + return wrap(XrSpaceQueryResultsFB.class, memAddress(container), container); } /** Returns a new {@code XrSpaceQueryResultsFB} instance for the specified memory address. */ public static XrSpaceQueryResultsFB create(long address) { - return new XrSpaceQueryResultsFB(address, null); + return wrap(XrSpaceQueryResultsFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpaceQueryResultsFB createSafe(long address) { - return address == NULL ? null : new XrSpaceQueryResultsFB(address, null); + return address == NULL ? null : wrap(XrSpaceQueryResultsFB.class, address); } /** @@ -197,7 +188,7 @@ public static XrSpaceQueryResultsFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrSpaceQueryResultsFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -206,7 +197,7 @@ public static XrSpaceQueryResultsFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceQueryResultsFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -216,7 +207,7 @@ public static XrSpaceQueryResultsFB.Buffer calloc(int capacity) { */ public static XrSpaceQueryResultsFB.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); } /** @@ -226,13 +217,13 @@ public static XrSpaceQueryResultsFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceQueryResultsFB.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 XrSpaceQueryResultsFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -241,7 +232,7 @@ public static XrSpaceQueryResultsFB.Buffer createSafe(long address, int capacity * @param stack the stack from which to allocate */ public static XrSpaceQueryResultsFB malloc(MemoryStack stack) { - return new XrSpaceQueryResultsFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpaceQueryResultsFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -250,7 +241,7 @@ public static XrSpaceQueryResultsFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSpaceQueryResultsFB calloc(MemoryStack stack) { - return new XrSpaceQueryResultsFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpaceQueryResultsFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -260,7 +251,7 @@ public static XrSpaceQueryResultsFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpaceQueryResultsFB.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); } /** @@ -270,34 +261,34 @@ public static XrSpaceQueryResultsFB.Buffer malloc(int capacity, MemoryStack stac * @param capacity the buffer capacity */ public static XrSpaceQueryResultsFB.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 + XrSpaceQueryResultsFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceQueryResultsFB.NEXT); } - /** Unsafe version of {@link #resultCapacityInput}. */ - public static int nresultCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryResultsFB.RESULTCAPACITYINPUT); } - /** Unsafe version of {@link #resultCountOutput}. */ - public static int nresultCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryResultsFB.RESULTCOUNTOUTPUT); } - /** Unsafe version of {@link #results}. */ - @Nullable public static XrSpaceQueryResultFB.Buffer nresults(long struct) { return XrSpaceQueryResultFB.createSafe(memGetAddress(struct + XrSpaceQueryResultsFB.RESULTS), nresultCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryResultsFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceQueryResultsFB.NEXT, value); } - /** Sets the specified value to the {@code resultCapacityInput} field of the specified {@code struct}. */ - public static void nresultCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryResultsFB.RESULTCAPACITYINPUT, value); } - /** Unsafe version of {@link #resultCountOutput(int) resultCountOutput}. */ - public static void nresultCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryResultsFB.RESULTCOUNTOUTPUT, value); } - /** Unsafe version of {@link #results(XrSpaceQueryResultFB.Buffer) results}. */ - public static void nresults(long struct, @Nullable XrSpaceQueryResultFB.Buffer value) { memPutAddress(struct + XrSpaceQueryResultsFB.RESULTS, memAddressSafe(value)); if (value != null) { nresultCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryResultsFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceQueryResultsFB.NEXT); } + /** Unsafe version of {@link #resultCapacityInput}. */ + public static int nresultCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryResultsFB.RESULTCAPACITYINPUT); } + /** Unsafe version of {@link #resultCountOutput}. */ + public static int nresultCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryResultsFB.RESULTCOUNTOUTPUT); } + /** Unsafe version of {@link #results}. */ + @Nullable public static XrSpaceQueryResultFB.Buffer nresults(long struct) { return XrSpaceQueryResultFB.createSafe(memGetAddress(struct + XrSpaceQueryResultsFB.RESULTS), nresultCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryResultsFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceQueryResultsFB.NEXT, value); } + /** Sets the specified value to the {@code resultCapacityInput} field of the specified {@code struct}. */ + public static void nresultCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryResultsFB.RESULTCAPACITYINPUT, value); } + /** Unsafe version of {@link #resultCountOutput(int) resultCountOutput}. */ + public static void nresultCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryResultsFB.RESULTCOUNTOUTPUT, value); } + /** Unsafe version of {@link #results(XrSpaceQueryResultFB.Buffer) results}. */ + public static void nresults(long struct, @Nullable XrSpaceQueryResultFB.Buffer value) { memPutAddress(struct + XrSpaceQueryResultsFB.RESULTS, memAddressSafe(value)); if (value != null) { nresultCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrSpaceQueryResultsFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -307,9 +298,9 @@ public static class Buffer extends StructBuffer i /** * Creates a new {@code XrSpaceQueryResultsFB.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 XrSpaceQueryResultsFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpaceQueryResultsFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -334,36 +325,36 @@ protected Buffer self() { protected XrSpaceQueryResultsFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceQueryResultsFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceQueryResultsFB.ntype(address()); } - /** @return the value of the {@link XrSpaceQueryResultsFB#next} field. */ - @NativeType("void *") - public long next() { return XrSpaceQueryResultsFB.nnext(address()); } - /** @return the value of the {@link XrSpaceQueryResultsFB#resultCapacityInput} field. */ - @NativeType("uint32_t") - public int resultCapacityInput() { return XrSpaceQueryResultsFB.nresultCapacityInput(address()); } - /** @return the value of the {@link XrSpaceQueryResultsFB#resultCountOutput} field. */ - @NativeType("uint32_t") - public int resultCountOutput() { return XrSpaceQueryResultsFB.nresultCountOutput(address()); } - /** @return a {@link XrSpaceQueryResultFB.Buffer} view of the struct array pointed to by the {@link XrSpaceQueryResultsFB#results} field. */ - @Nullable - @NativeType("XrSpaceQueryResultFB *") - public XrSpaceQueryResultFB.Buffer results() { return XrSpaceQueryResultsFB.nresults(address()); } - - /** Sets the specified value to the {@link XrSpaceQueryResultsFB#type} field. */ - public XrSpaceQueryResultsFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceQueryResultsFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_QUERY_RESULTS_FB TYPE_SPACE_QUERY_RESULTS_FB} value to the {@link XrSpaceQueryResultsFB#type} field. */ - public XrSpaceQueryResultsFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_QUERY_RESULTS_FB); } - /** Sets the specified value to the {@link XrSpaceQueryResultsFB#next} field. */ - public XrSpaceQueryResultsFB.Buffer next(@NativeType("void *") long value) { XrSpaceQueryResultsFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceQueryResultsFB#resultCapacityInput} field. */ - public XrSpaceQueryResultsFB.Buffer resultCapacityInput(@NativeType("uint32_t") int value) { XrSpaceQueryResultsFB.nresultCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceQueryResultsFB#resultCountOutput} field. */ - public XrSpaceQueryResultsFB.Buffer resultCountOutput(@NativeType("uint32_t") int value) { XrSpaceQueryResultsFB.nresultCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrSpaceQueryResultFB.Buffer} to the {@link XrSpaceQueryResultsFB#results} field. */ - public XrSpaceQueryResultsFB.Buffer results(@Nullable @NativeType("XrSpaceQueryResultFB *") XrSpaceQueryResultFB.Buffer value) { XrSpaceQueryResultsFB.nresults(address(), value); return this; } + + /** @return the value of the {@link XrSpaceQueryResultsFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceQueryResultsFB.ntype(address()); } + /** @return the value of the {@link XrSpaceQueryResultsFB#next} field. */ + @NativeType("void *") + public long next() { return XrSpaceQueryResultsFB.nnext(address()); } + /** @return the value of the {@link XrSpaceQueryResultsFB#resultCapacityInput} field. */ + @NativeType("uint32_t") + public int resultCapacityInput() { return XrSpaceQueryResultsFB.nresultCapacityInput(address()); } + /** @return the value of the {@link XrSpaceQueryResultsFB#resultCountOutput} field. */ + @NativeType("uint32_t") + public int resultCountOutput() { return XrSpaceQueryResultsFB.nresultCountOutput(address()); } + /** @return a {@link XrSpaceQueryResultFB.Buffer} view of the struct array pointed to by the {@link XrSpaceQueryResultsFB#results} field. */ + @Nullable + @NativeType("XrSpaceQueryResultFB *") + public XrSpaceQueryResultFB.Buffer results() { return XrSpaceQueryResultsFB.nresults(address()); } + + /** Sets the specified value to the {@link XrSpaceQueryResultsFB#type} field. */ + public XrSpaceQueryResultsFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceQueryResultsFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_QUERY_RESULTS_FB TYPE_SPACE_QUERY_RESULTS_FB} value to the {@link XrSpaceQueryResultsFB#type} field. */ + public XrSpaceQueryResultsFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_QUERY_RESULTS_FB); } + /** Sets the specified value to the {@link XrSpaceQueryResultsFB#next} field. */ + public XrSpaceQueryResultsFB.Buffer next(@NativeType("void *") long value) { XrSpaceQueryResultsFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceQueryResultsFB#resultCapacityInput} field. */ + public XrSpaceQueryResultsFB.Buffer resultCapacityInput(@NativeType("uint32_t") int value) { XrSpaceQueryResultsFB.nresultCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceQueryResultsFB#resultCountOutput} field. */ + public XrSpaceQueryResultsFB.Buffer resultCountOutput(@NativeType("uint32_t") int value) { XrSpaceQueryResultsFB.nresultCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrSpaceQueryResultFB.Buffer} to the {@link XrSpaceQueryResultsFB#results} field. */ + public XrSpaceQueryResultsFB.Buffer results(@Nullable @NativeType("XrSpaceQueryResultFB *") XrSpaceQueryResultFB.Buffer value) { XrSpaceQueryResultsFB.nresults(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceSaveInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceSaveInfoFB.java index 185ebdea28..b5aa35d6a4 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceSaveInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceSaveInfoFB.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.*; + /** * Parameters for a save operation. * @@ -48,8 +48,8 @@ * XrSpaceStorageLocationFB {@link #location}; * XrSpacePersistenceModeFB {@link #persistenceMode}; * } - */ -public class XrSpaceSaveInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceSaveInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -59,38 +59,29 @@ public class XrSpaceSaveInfoFB extends Struct implements Nati /** The struct member offsets. */ public static final int - TYPE, - NEXT, - SPACE, - LOCATION, - PERSISTENCEMODE; + TYPE, + NEXT, + SPACE, + LOCATION, + PERSISTENCEMODE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - SPACE = layout.offsetof(2); - LOCATION = layout.offsetof(3); - PERSISTENCEMODE = layout.offsetof(4); - } - - protected XrSpaceSaveInfoFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSpaceSaveInfoFB create(long address, @Nullable ByteBuffer container) { - return new XrSpaceSaveInfoFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + SPACE = layout.offsetof(2); + LOCATION = layout.offsetof(3); + PERSISTENCEMODE = layout.offsetof(4); } /** @@ -105,49 +96,49 @@ public XrSpaceSaveInfoFB(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()); } - /** the {@code XrSpace} handle to the reference space that defines the {@code poseInSpace} of the entity to be saved. */ - @NativeType("XrSpace") - public long space() { return nspace(address()); } - /** the storage location. */ - @NativeType("XrSpaceStorageLocationFB") - public int location() { return nlocation(address()); } - /** the persistence mode. */ - @NativeType("XrSpacePersistenceModeFB") - public int persistenceMode() { return npersistenceMode(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceSaveInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_SPACE_SAVE_INFO_FB TYPE_SPACE_SAVE_INFO_FB} value to the {@link #type} field. */ - public XrSpaceSaveInfoFB type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_SPACE_SAVE_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceSaveInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #space} field. */ - public XrSpaceSaveInfoFB space(XrSpace value) { nspace(address(), value); return this; } - /** Sets the specified value to the {@link #location} field. */ - public XrSpaceSaveInfoFB location(@NativeType("XrSpaceStorageLocationFB") int value) { nlocation(address(), value); return this; } - /** Sets the specified value to the {@link #persistenceMode} field. */ - public XrSpaceSaveInfoFB persistenceMode(@NativeType("XrSpacePersistenceModeFB") int value) { npersistenceMode(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()); } + /** the {@code XrSpace} handle to the reference space that defines the {@code poseInSpace} of the entity to be saved. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the storage location. */ + @NativeType("XrSpaceStorageLocationFB") + public int location() { return nlocation(address()); } + /** the persistence mode. */ + @NativeType("XrSpacePersistenceModeFB") + public int persistenceMode() { return npersistenceMode(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceSaveInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_SPACE_SAVE_INFO_FB TYPE_SPACE_SAVE_INFO_FB} value to the {@link #type} field. */ + public XrSpaceSaveInfoFB type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_SPACE_SAVE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceSaveInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrSpaceSaveInfoFB space(XrSpace value) { nspace(address(), value); return this; } + /** Sets the specified value to the {@link #location} field. */ + public XrSpaceSaveInfoFB location(@NativeType("XrSpaceStorageLocationFB") int value) { nlocation(address(), value); return this; } + /** Sets the specified value to the {@link #persistenceMode} field. */ + public XrSpaceSaveInfoFB persistenceMode(@NativeType("XrSpacePersistenceModeFB") int value) { npersistenceMode(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceSaveInfoFB set( - int type, - long next, - XrSpace space, - int location, + int type, + long next, + XrSpace space, + int location, int persistenceMode - ) { - type(type); - next(next); - space(space); - location(location); - persistenceMode(persistenceMode); + ) { + type(type); + next(next); + space(space); + location(location); + persistenceMode(persistenceMode); return this; } @@ -168,29 +159,29 @@ public XrSpaceSaveInfoFB set(XrSpaceSaveInfoFB src) { /** Returns a new {@code XrSpaceSaveInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpaceSaveInfoFB malloc() { - return new XrSpaceSaveInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpaceSaveInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpaceSaveInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpaceSaveInfoFB calloc() { - return new XrSpaceSaveInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpaceSaveInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpaceSaveInfoFB} instance allocated with {@link BufferUtils}. */ public static XrSpaceSaveInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpaceSaveInfoFB(memAddress(container), container); + return wrap(XrSpaceSaveInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrSpaceSaveInfoFB} instance for the specified memory address. */ public static XrSpaceSaveInfoFB create(long address) { - return new XrSpaceSaveInfoFB(address, null); + return wrap(XrSpaceSaveInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpaceSaveInfoFB createSafe(long address) { - return address == NULL ? null : new XrSpaceSaveInfoFB(address, null); + return address == NULL ? null : wrap(XrSpaceSaveInfoFB.class, address); } /** @@ -199,7 +190,7 @@ public static XrSpaceSaveInfoFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrSpaceSaveInfoFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -208,7 +199,7 @@ public static XrSpaceSaveInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceSaveInfoFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -218,7 +209,7 @@ public static XrSpaceSaveInfoFB.Buffer calloc(int capacity) { */ public static XrSpaceSaveInfoFB.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); } /** @@ -228,13 +219,13 @@ public static XrSpaceSaveInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceSaveInfoFB.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 XrSpaceSaveInfoFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -243,7 +234,7 @@ public static XrSpaceSaveInfoFB.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrSpaceSaveInfoFB malloc(MemoryStack stack) { - return new XrSpaceSaveInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpaceSaveInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -252,7 +243,7 @@ public static XrSpaceSaveInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSpaceSaveInfoFB calloc(MemoryStack stack) { - return new XrSpaceSaveInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpaceSaveInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -262,7 +253,7 @@ public static XrSpaceSaveInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpaceSaveInfoFB.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); } /** @@ -272,32 +263,32 @@ public static XrSpaceSaveInfoFB.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpaceSaveInfoFB.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 + XrSpaceSaveInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceSaveInfoFB.NEXT); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrSpaceSaveInfoFB.SPACE); } - /** Unsafe version of {@link #location}. */ - public static int nlocation(long struct) { return UNSAFE.getInt(null, struct + XrSpaceSaveInfoFB.LOCATION); } - /** Unsafe version of {@link #persistenceMode}. */ - public static int npersistenceMode(long struct) { return UNSAFE.getInt(null, struct + XrSpaceSaveInfoFB.PERSISTENCEMODE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceSaveInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceSaveInfoFB.NEXT, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpaceSaveInfoFB.SPACE, value.address()); } - /** Unsafe version of {@link #location(int) location}. */ - public static void nlocation(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceSaveInfoFB.LOCATION, value); } - /** Unsafe version of {@link #persistenceMode(int) persistenceMode}. */ - public static void npersistenceMode(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceSaveInfoFB.PERSISTENCEMODE, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceSaveInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceSaveInfoFB.NEXT); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrSpaceSaveInfoFB.SPACE); } + /** Unsafe version of {@link #location}. */ + public static int nlocation(long struct) { return UNSAFE.getInt(null, struct + XrSpaceSaveInfoFB.LOCATION); } + /** Unsafe version of {@link #persistenceMode}. */ + public static int npersistenceMode(long struct) { return UNSAFE.getInt(null, struct + XrSpaceSaveInfoFB.PERSISTENCEMODE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceSaveInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceSaveInfoFB.NEXT, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpaceSaveInfoFB.SPACE, value.address()); } + /** Unsafe version of {@link #location(int) location}. */ + public static void nlocation(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceSaveInfoFB.LOCATION, value); } + /** Unsafe version of {@link #persistenceMode(int) persistenceMode}. */ + public static void npersistenceMode(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceSaveInfoFB.PERSISTENCEMODE, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -306,9 +297,9 @@ public static XrSpaceSaveInfoFB.Buffer calloc(int capacity, MemoryStack stack) { */ public static void validate(long struct) { check(memGetAddress(struct + XrSpaceSaveInfoFB.SPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpaceSaveInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -318,9 +309,9 @@ public static class Buffer extends StructBuffer imple /** * Creates a new {@code XrSpaceSaveInfoFB.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 XrSpaceSaveInfoFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpaceSaveInfoFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -345,35 +336,35 @@ protected Buffer self() { protected XrSpaceSaveInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceSaveInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceSaveInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceSaveInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceSaveInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpaceSaveInfoFB#space} field. */ - @NativeType("XrSpace") - public long space() { return XrSpaceSaveInfoFB.nspace(address()); } - /** @return the value of the {@link XrSpaceSaveInfoFB#location} field. */ - @NativeType("XrSpaceStorageLocationFB") - public int location() { return XrSpaceSaveInfoFB.nlocation(address()); } - /** @return the value of the {@link XrSpaceSaveInfoFB#persistenceMode} field. */ - @NativeType("XrSpacePersistenceModeFB") - public int persistenceMode() { return XrSpaceSaveInfoFB.npersistenceMode(address()); } - - /** Sets the specified value to the {@link XrSpaceSaveInfoFB#type} field. */ - public XrSpaceSaveInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceSaveInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_SPACE_SAVE_INFO_FB TYPE_SPACE_SAVE_INFO_FB} value to the {@link XrSpaceSaveInfoFB#type} field. */ - public XrSpaceSaveInfoFB.Buffer type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_SPACE_SAVE_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceSaveInfoFB#next} field. */ - public XrSpaceSaveInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceSaveInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceSaveInfoFB#space} field. */ - public XrSpaceSaveInfoFB.Buffer space(XrSpace value) { XrSpaceSaveInfoFB.nspace(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceSaveInfoFB#location} field. */ - public XrSpaceSaveInfoFB.Buffer location(@NativeType("XrSpaceStorageLocationFB") int value) { XrSpaceSaveInfoFB.nlocation(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceSaveInfoFB#persistenceMode} field. */ - public XrSpaceSaveInfoFB.Buffer persistenceMode(@NativeType("XrSpacePersistenceModeFB") int value) { XrSpaceSaveInfoFB.npersistenceMode(address(), value); return this; } + + /** @return the value of the {@link XrSpaceSaveInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceSaveInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceSaveInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceSaveInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpaceSaveInfoFB#space} field. */ + @NativeType("XrSpace") + public long space() { return XrSpaceSaveInfoFB.nspace(address()); } + /** @return the value of the {@link XrSpaceSaveInfoFB#location} field. */ + @NativeType("XrSpaceStorageLocationFB") + public int location() { return XrSpaceSaveInfoFB.nlocation(address()); } + /** @return the value of the {@link XrSpaceSaveInfoFB#persistenceMode} field. */ + @NativeType("XrSpacePersistenceModeFB") + public int persistenceMode() { return XrSpaceSaveInfoFB.npersistenceMode(address()); } + + /** Sets the specified value to the {@link XrSpaceSaveInfoFB#type} field. */ + public XrSpaceSaveInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceSaveInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_SPACE_SAVE_INFO_FB TYPE_SPACE_SAVE_INFO_FB} value to the {@link XrSpaceSaveInfoFB#type} field. */ + public XrSpaceSaveInfoFB.Buffer type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_SPACE_SAVE_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceSaveInfoFB#next} field. */ + public XrSpaceSaveInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceSaveInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceSaveInfoFB#space} field. */ + public XrSpaceSaveInfoFB.Buffer space(XrSpace value) { XrSpaceSaveInfoFB.nspace(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceSaveInfoFB#location} field. */ + public XrSpaceSaveInfoFB.Buffer location(@NativeType("XrSpaceStorageLocationFB") int value) { XrSpaceSaveInfoFB.nlocation(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceSaveInfoFB#persistenceMode} field. */ + public XrSpaceSaveInfoFB.Buffer persistenceMode(@NativeType("XrSpacePersistenceModeFB") int value) { XrSpaceSaveInfoFB.npersistenceMode(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceShareInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceShareInfoFB.java index 488c98a574..197b500527 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceShareInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceShareInfoFB.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 a request to share some number of spatial entities. * @@ -50,8 +50,8 @@ * uint32_t userCount; * XrSpaceUserFB * users; * } - */ -public class XrSpaceShareInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceShareInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -61,41 +61,32 @@ public class XrSpaceShareInfoFB extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT, - SPACECOUNT, - SPACES, - USERCOUNT, - USERS; + TYPE, + NEXT, + SPACECOUNT, + SPACES, + USERCOUNT, + USERS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(POINTER_SIZE), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - SPACECOUNT = layout.offsetof(2); - SPACES = layout.offsetof(3); - USERCOUNT = layout.offsetof(4); - USERS = layout.offsetof(5); - } - - protected XrSpaceShareInfoFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSpaceShareInfoFB create(long address, @Nullable ByteBuffer container) { - return new XrSpaceShareInfoFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + SPACECOUNT = layout.offsetof(2); + SPACES = layout.offsetof(3); + USERCOUNT = layout.offsetof(4); + USERS = layout.offsetof(5); } /** @@ -110,48 +101,48 @@ public XrSpaceShareInfoFB(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. {@code spaceCount} is the number of elements in the {@code spaces} list. {@code spaces} is a list containing all spatial entities to be shared. {@code userCount} is the number of elements in the {@code users} list. {@code users} is a list of the users with which the {@code spaces} will: be shared. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** @return the value of the {@code spaceCount} field. */ - @NativeType("uint32_t") - public int spaceCount() { return nspaceCount(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@code spaces} field. */ - @NativeType("XrSpace *") - public PointerBuffer spaces() { return nspaces(address()); } - /** @return the value of the {@code userCount} field. */ - @NativeType("uint32_t") - public int userCount() { return nuserCount(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@code users} field. */ - @NativeType("XrSpaceUserFB *") - public PointerBuffer users() { return nusers(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceShareInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntitySharing#XR_TYPE_SPACE_SHARE_INFO_FB TYPE_SPACE_SHARE_INFO_FB} value to the {@link #type} field. */ - public XrSpaceShareInfoFB type$Default() { return type(FBSpatialEntitySharing.XR_TYPE_SPACE_SHARE_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceShareInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@code spaces} field. */ - public XrSpaceShareInfoFB spaces(@NativeType("XrSpace *") PointerBuffer value) { nspaces(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@code users} field. */ - public XrSpaceShareInfoFB users(@NativeType("XrSpaceUserFB *") PointerBuffer value) { nusers(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. {@code spaceCount} is the number of elements in the {@code spaces} list. {@code spaces} is a list containing all spatial entities to be shared. {@code userCount} is the number of elements in the {@code users} list. {@code users} is a list of the users with which the {@code spaces} will: be shared. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** @return the value of the {@code spaceCount} field. */ + @NativeType("uint32_t") + public int spaceCount() { return nspaceCount(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@code spaces} field. */ + @NativeType("XrSpace *") + public PointerBuffer spaces() { return nspaces(address()); } + /** @return the value of the {@code userCount} field. */ + @NativeType("uint32_t") + public int userCount() { return nuserCount(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@code users} field. */ + @NativeType("XrSpaceUserFB *") + public PointerBuffer users() { return nusers(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceShareInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntitySharing#XR_TYPE_SPACE_SHARE_INFO_FB TYPE_SPACE_SHARE_INFO_FB} value to the {@link #type} field. */ + public XrSpaceShareInfoFB type$Default() { return type(FBSpatialEntitySharing.XR_TYPE_SPACE_SHARE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceShareInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@code spaces} field. */ + public XrSpaceShareInfoFB spaces(@NativeType("XrSpace *") PointerBuffer value) { nspaces(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@code users} field. */ + public XrSpaceShareInfoFB users(@NativeType("XrSpaceUserFB *") PointerBuffer value) { nusers(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceShareInfoFB set( - int type, - long next, - PointerBuffer spaces, + int type, + long next, + PointerBuffer spaces, PointerBuffer users - ) { - type(type); - next(next); - spaces(spaces); - users(users); + ) { + type(type); + next(next); + spaces(spaces); + users(users); return this; } @@ -172,29 +163,29 @@ public XrSpaceShareInfoFB set(XrSpaceShareInfoFB src) { /** Returns a new {@code XrSpaceShareInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpaceShareInfoFB malloc() { - return new XrSpaceShareInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpaceShareInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpaceShareInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpaceShareInfoFB calloc() { - return new XrSpaceShareInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpaceShareInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpaceShareInfoFB} instance allocated with {@link BufferUtils}. */ public static XrSpaceShareInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpaceShareInfoFB(memAddress(container), container); + return wrap(XrSpaceShareInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrSpaceShareInfoFB} instance for the specified memory address. */ public static XrSpaceShareInfoFB create(long address) { - return new XrSpaceShareInfoFB(address, null); + return wrap(XrSpaceShareInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpaceShareInfoFB createSafe(long address) { - return address == NULL ? null : new XrSpaceShareInfoFB(address, null); + return address == NULL ? null : wrap(XrSpaceShareInfoFB.class, address); } /** @@ -203,7 +194,7 @@ public static XrSpaceShareInfoFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrSpaceShareInfoFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -212,7 +203,7 @@ public static XrSpaceShareInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceShareInfoFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -222,7 +213,7 @@ public static XrSpaceShareInfoFB.Buffer calloc(int capacity) { */ public static XrSpaceShareInfoFB.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); } /** @@ -232,13 +223,13 @@ public static XrSpaceShareInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceShareInfoFB.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 XrSpaceShareInfoFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -247,7 +238,7 @@ public static XrSpaceShareInfoFB.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrSpaceShareInfoFB malloc(MemoryStack stack) { - return new XrSpaceShareInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpaceShareInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -256,7 +247,7 @@ public static XrSpaceShareInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSpaceShareInfoFB calloc(MemoryStack stack) { - return new XrSpaceShareInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpaceShareInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -266,7 +257,7 @@ public static XrSpaceShareInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpaceShareInfoFB.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); } /** @@ -276,36 +267,36 @@ public static XrSpaceShareInfoFB.Buffer malloc(int capacity, MemoryStack stack) * @param capacity the buffer capacity */ public static XrSpaceShareInfoFB.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 + XrSpaceShareInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceShareInfoFB.NEXT); } - /** Unsafe version of {@link #spaceCount}. */ - public static int nspaceCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceShareInfoFB.SPACECOUNT); } - /** Unsafe version of {@link #spaces() spaces}. */ - public static PointerBuffer nspaces(long struct) { return memPointerBuffer(memGetAddress(struct + XrSpaceShareInfoFB.SPACES), nspaceCount(struct)); } - /** Unsafe version of {@link #userCount}. */ - public static int nuserCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceShareInfoFB.USERCOUNT); } - /** Unsafe version of {@link #users() users}. */ - public static PointerBuffer nusers(long struct) { return memPointerBuffer(memGetAddress(struct + XrSpaceShareInfoFB.USERS), nuserCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceShareInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceShareInfoFB.NEXT, value); } - /** Sets the specified value to the {@code spaceCount} field of the specified {@code struct}. */ - public static void nspaceCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceShareInfoFB.SPACECOUNT, value); } - /** Unsafe version of {@link #spaces(PointerBuffer) spaces}. */ - public static void nspaces(long struct, PointerBuffer value) { memPutAddress(struct + XrSpaceShareInfoFB.SPACES, memAddress(value)); nspaceCount(struct, value.remaining()); } - /** Sets the specified value to the {@code userCount} field of the specified {@code struct}. */ - public static void nuserCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceShareInfoFB.USERCOUNT, value); } - /** Unsafe version of {@link #users(PointerBuffer) users}. */ - public static void nusers(long struct, PointerBuffer value) { memPutAddress(struct + XrSpaceShareInfoFB.USERS, memAddress(value)); nuserCount(struct, value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceShareInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceShareInfoFB.NEXT); } + /** Unsafe version of {@link #spaceCount}. */ + public static int nspaceCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceShareInfoFB.SPACECOUNT); } + /** Unsafe version of {@link #spaces() spaces}. */ + public static PointerBuffer nspaces(long struct) { return memPointerBuffer(memGetAddress(struct + XrSpaceShareInfoFB.SPACES), nspaceCount(struct)); } + /** Unsafe version of {@link #userCount}. */ + public static int nuserCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceShareInfoFB.USERCOUNT); } + /** Unsafe version of {@link #users() users}. */ + public static PointerBuffer nusers(long struct) { return memPointerBuffer(memGetAddress(struct + XrSpaceShareInfoFB.USERS), nuserCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceShareInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceShareInfoFB.NEXT, value); } + /** Sets the specified value to the {@code spaceCount} field of the specified {@code struct}. */ + public static void nspaceCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceShareInfoFB.SPACECOUNT, value); } + /** Unsafe version of {@link #spaces(PointerBuffer) spaces}. */ + public static void nspaces(long struct, PointerBuffer value) { memPutAddress(struct + XrSpaceShareInfoFB.SPACES, memAddress(value)); nspaceCount(struct, value.remaining()); } + /** Sets the specified value to the {@code userCount} field of the specified {@code struct}. */ + public static void nuserCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceShareInfoFB.USERCOUNT, value); } + /** Unsafe version of {@link #users(PointerBuffer) users}. */ + public static void nusers(long struct, PointerBuffer value) { memPutAddress(struct + XrSpaceShareInfoFB.USERS, memAddress(value)); nuserCount(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -315,9 +306,9 @@ public static XrSpaceShareInfoFB.Buffer calloc(int capacity, MemoryStack stack) public static void validate(long struct) { check(memGetAddress(struct + XrSpaceShareInfoFB.SPACES)); check(memGetAddress(struct + XrSpaceShareInfoFB.USERS)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpaceShareInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -327,9 +318,9 @@ public static class Buffer extends StructBuffer impl /** * Creates a new {@code XrSpaceShareInfoFB.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 XrSpaceShareInfoFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpaceShareInfoFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -354,36 +345,36 @@ protected Buffer self() { protected XrSpaceShareInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceShareInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceShareInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceShareInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceShareInfoFB.nnext(address()); } - /** @return the value of the {@code spaceCount} field. */ - @NativeType("uint32_t") - public int spaceCount() { return XrSpaceShareInfoFB.nspaceCount(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@code spaces} field. */ - @NativeType("XrSpace *") - public PointerBuffer spaces() { return XrSpaceShareInfoFB.nspaces(address()); } - /** @return the value of the {@code userCount} field. */ - @NativeType("uint32_t") - public int userCount() { return XrSpaceShareInfoFB.nuserCount(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@code users} field. */ - @NativeType("XrSpaceUserFB *") - public PointerBuffer users() { return XrSpaceShareInfoFB.nusers(address()); } - - /** Sets the specified value to the {@link XrSpaceShareInfoFB#type} field. */ - public XrSpaceShareInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceShareInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntitySharing#XR_TYPE_SPACE_SHARE_INFO_FB TYPE_SPACE_SHARE_INFO_FB} value to the {@link XrSpaceShareInfoFB#type} field. */ - public XrSpaceShareInfoFB.Buffer type$Default() { return type(FBSpatialEntitySharing.XR_TYPE_SPACE_SHARE_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceShareInfoFB#next} field. */ - public XrSpaceShareInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceShareInfoFB.nnext(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@code spaces} field. */ - public XrSpaceShareInfoFB.Buffer spaces(@NativeType("XrSpace *") PointerBuffer value) { XrSpaceShareInfoFB.nspaces(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@code users} field. */ - public XrSpaceShareInfoFB.Buffer users(@NativeType("XrSpaceUserFB *") PointerBuffer value) { XrSpaceShareInfoFB.nusers(address(), value); return this; } + + /** @return the value of the {@link XrSpaceShareInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceShareInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceShareInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceShareInfoFB.nnext(address()); } + /** @return the value of the {@code spaceCount} field. */ + @NativeType("uint32_t") + public int spaceCount() { return XrSpaceShareInfoFB.nspaceCount(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@code spaces} field. */ + @NativeType("XrSpace *") + public PointerBuffer spaces() { return XrSpaceShareInfoFB.nspaces(address()); } + /** @return the value of the {@code userCount} field. */ + @NativeType("uint32_t") + public int userCount() { return XrSpaceShareInfoFB.nuserCount(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@code users} field. */ + @NativeType("XrSpaceUserFB *") + public PointerBuffer users() { return XrSpaceShareInfoFB.nusers(address()); } + + /** Sets the specified value to the {@link XrSpaceShareInfoFB#type} field. */ + public XrSpaceShareInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceShareInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntitySharing#XR_TYPE_SPACE_SHARE_INFO_FB TYPE_SPACE_SHARE_INFO_FB} value to the {@link XrSpaceShareInfoFB#type} field. */ + public XrSpaceShareInfoFB.Buffer type$Default() { return type(FBSpatialEntitySharing.XR_TYPE_SPACE_SHARE_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceShareInfoFB#next} field. */ + public XrSpaceShareInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceShareInfoFB.nnext(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@code spaces} field. */ + public XrSpaceShareInfoFB.Buffer spaces(@NativeType("XrSpace *") PointerBuffer value) { XrSpaceShareInfoFB.nspaces(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@code users} field. */ + public XrSpaceShareInfoFB.Buffer users(@NativeType("XrSpaceUserFB *") PointerBuffer value) { XrSpaceShareInfoFB.nusers(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceStorageLocationFilterInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceStorageLocationFilterInfoFB.java index 5fc4934c27..caef792346 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceStorageLocationFilterInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceStorageLocationFilterInfoFB.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 where a spatial entity is stored. * @@ -39,8 +39,8 @@ * void const * {@link #next}; * XrSpaceStorageLocationFB {@link #location}; * } - */ -public class XrSpaceStorageLocationFilterInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceStorageLocationFilterInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,32 +50,23 @@ public class XrSpaceStorageLocationFilterInfoFB extends Struct 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 XrSpaceStorageLocationFilterInfoFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpaceStorageLocationFilterInfoFB#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 XrSpaceStorageLocationFilterInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceStorageLocationFilterInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceStorageLocationFilterInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceStorageLocationFilterInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceStorageLocationFilterInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpaceStorageLocationFilterInfoFB#location} field. */ - @NativeType("XrSpaceStorageLocationFB") - public int location() { return XrSpaceStorageLocationFilterInfoFB.nlocation(address()); } - - /** Sets the specified value to the {@link XrSpaceStorageLocationFilterInfoFB#type} field. */ - public XrSpaceStorageLocationFilterInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceStorageLocationFilterInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FB TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FB} value to the {@link XrSpaceStorageLocationFilterInfoFB#type} field. */ - public XrSpaceStorageLocationFilterInfoFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceStorageLocationFilterInfoFB#next} field. */ - public XrSpaceStorageLocationFilterInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceStorageLocationFilterInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceStorageLocationFilterInfoFB#location} field. */ - public XrSpaceStorageLocationFilterInfoFB.Buffer location(@NativeType("XrSpaceStorageLocationFB") int value) { XrSpaceStorageLocationFilterInfoFB.nlocation(address(), value); return this; } + + /** @return the value of the {@link XrSpaceStorageLocationFilterInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceStorageLocationFilterInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceStorageLocationFilterInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceStorageLocationFilterInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpaceStorageLocationFilterInfoFB#location} field. */ + @NativeType("XrSpaceStorageLocationFB") + public int location() { return XrSpaceStorageLocationFilterInfoFB.nlocation(address()); } + + /** Sets the specified value to the {@link XrSpaceStorageLocationFilterInfoFB#type} field. */ + public XrSpaceStorageLocationFilterInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceStorageLocationFilterInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FB TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FB} value to the {@link XrSpaceStorageLocationFilterInfoFB#type} field. */ + public XrSpaceStorageLocationFilterInfoFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceStorageLocationFilterInfoFB#next} field. */ + public XrSpaceStorageLocationFilterInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceStorageLocationFilterInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceStorageLocationFilterInfoFB#location} field. */ + public XrSpaceStorageLocationFilterInfoFB.Buffer location(@NativeType("XrSpaceStorageLocationFB") int value) { XrSpaceStorageLocationFilterInfoFB.nlocation(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUserCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUserCreateInfoFB.java index df01a99c40..d1378d56cf 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUserCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUserCreateInfoFB.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 a user. * @@ -42,8 +42,8 @@ * void const * {@link #next}; * XrSpaceUserIdFB {@link #userId}; * } - */ -public class XrSpaceUserCreateInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceUserCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,32 +53,23 @@ public class XrSpaceUserCreateInfoFB extends Struct imp /** The struct member offsets. */ public static final int - TYPE, - NEXT, - USERID; + TYPE, + NEXT, + USERID; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - USERID = layout.offsetof(2); - } - - protected XrSpaceUserCreateInfoFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSpaceUserCreateInfoFB create(long address, @Nullable ByteBuffer container) { - return new XrSpaceUserCreateInfoFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + USERID = layout.offsetof(2); } /** @@ -93,35 +84,35 @@ public XrSpaceUserCreateInfoFB(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()); } - /** the user ID with which the application can reference. */ - @NativeType("XrSpaceUserIdFB") - public long userId() { return nuserId(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceUserCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityUser#XR_TYPE_SPACE_USER_CREATE_INFO_FB TYPE_SPACE_USER_CREATE_INFO_FB} value to the {@link #type} field. */ - public XrSpaceUserCreateInfoFB type$Default() { return type(FBSpatialEntityUser.XR_TYPE_SPACE_USER_CREATE_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceUserCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #userId} field. */ - public XrSpaceUserCreateInfoFB userId(@NativeType("XrSpaceUserIdFB") long value) { nuserId(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()); } + /** the user ID with which the application can reference. */ + @NativeType("XrSpaceUserIdFB") + public long userId() { return nuserId(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceUserCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityUser#XR_TYPE_SPACE_USER_CREATE_INFO_FB TYPE_SPACE_USER_CREATE_INFO_FB} value to the {@link #type} field. */ + public XrSpaceUserCreateInfoFB type$Default() { return type(FBSpatialEntityUser.XR_TYPE_SPACE_USER_CREATE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceUserCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #userId} field. */ + public XrSpaceUserCreateInfoFB userId(@NativeType("XrSpaceUserIdFB") long value) { nuserId(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceUserCreateInfoFB set( - int type, - long next, + int type, + long next, long userId - ) { - type(type); - next(next); - userId(userId); + ) { + type(type); + next(next); + userId(userId); return this; } @@ -142,29 +133,29 @@ public XrSpaceUserCreateInfoFB set(XrSpaceUserCreateInfoFB src) { /** Returns a new {@code XrSpaceUserCreateInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpaceUserCreateInfoFB malloc() { - return new XrSpaceUserCreateInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpaceUserCreateInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpaceUserCreateInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpaceUserCreateInfoFB calloc() { - return new XrSpaceUserCreateInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpaceUserCreateInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpaceUserCreateInfoFB} instance allocated with {@link BufferUtils}. */ public static XrSpaceUserCreateInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpaceUserCreateInfoFB(memAddress(container), container); + return wrap(XrSpaceUserCreateInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrSpaceUserCreateInfoFB} instance for the specified memory address. */ public static XrSpaceUserCreateInfoFB create(long address) { - return new XrSpaceUserCreateInfoFB(address, null); + return wrap(XrSpaceUserCreateInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpaceUserCreateInfoFB createSafe(long address) { - return address == NULL ? null : new XrSpaceUserCreateInfoFB(address, null); + return address == NULL ? null : wrap(XrSpaceUserCreateInfoFB.class, address); } /** @@ -173,7 +164,7 @@ public static XrSpaceUserCreateInfoFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrSpaceUserCreateInfoFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -182,7 +173,7 @@ public static XrSpaceUserCreateInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceUserCreateInfoFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -192,7 +183,7 @@ public static XrSpaceUserCreateInfoFB.Buffer calloc(int capacity) { */ public static XrSpaceUserCreateInfoFB.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); } /** @@ -202,13 +193,13 @@ public static XrSpaceUserCreateInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceUserCreateInfoFB.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 XrSpaceUserCreateInfoFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -217,7 +208,7 @@ public static XrSpaceUserCreateInfoFB.Buffer createSafe(long address, int capaci * @param stack the stack from which to allocate */ public static XrSpaceUserCreateInfoFB malloc(MemoryStack stack) { - return new XrSpaceUserCreateInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpaceUserCreateInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -226,7 +217,7 @@ public static XrSpaceUserCreateInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSpaceUserCreateInfoFB calloc(MemoryStack stack) { - return new XrSpaceUserCreateInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpaceUserCreateInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -236,7 +227,7 @@ public static XrSpaceUserCreateInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpaceUserCreateInfoFB.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); } /** @@ -246,26 +237,26 @@ public static XrSpaceUserCreateInfoFB.Buffer malloc(int capacity, MemoryStack st * @param capacity the buffer capacity */ public static XrSpaceUserCreateInfoFB.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 + XrSpaceUserCreateInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceUserCreateInfoFB.NEXT); } - /** Unsafe version of {@link #userId}. */ - public static long nuserId(long struct) { return UNSAFE.getLong(null, struct + XrSpaceUserCreateInfoFB.USERID); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceUserCreateInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceUserCreateInfoFB.NEXT, value); } - /** Unsafe version of {@link #userId(long) userId}. */ - public static void nuserId(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceUserCreateInfoFB.USERID, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceUserCreateInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceUserCreateInfoFB.NEXT); } + /** Unsafe version of {@link #userId}. */ + public static long nuserId(long struct) { return UNSAFE.getLong(null, struct + XrSpaceUserCreateInfoFB.USERID); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceUserCreateInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceUserCreateInfoFB.NEXT, value); } + /** Unsafe version of {@link #userId(long) userId}. */ + public static void nuserId(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceUserCreateInfoFB.USERID, value); } + + // ----------------------------------- /** An array of {@link XrSpaceUserCreateInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -275,9 +266,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrSpaceUserCreateInfoFB.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 XrSpaceUserCreateInfoFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpaceUserCreateInfoFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -302,25 +293,25 @@ protected Buffer self() { protected XrSpaceUserCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceUserCreateInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceUserCreateInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceUserCreateInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceUserCreateInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpaceUserCreateInfoFB#userId} field. */ - @NativeType("XrSpaceUserIdFB") - public long userId() { return XrSpaceUserCreateInfoFB.nuserId(address()); } - - /** Sets the specified value to the {@link XrSpaceUserCreateInfoFB#type} field. */ - public XrSpaceUserCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceUserCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityUser#XR_TYPE_SPACE_USER_CREATE_INFO_FB TYPE_SPACE_USER_CREATE_INFO_FB} value to the {@link XrSpaceUserCreateInfoFB#type} field. */ - public XrSpaceUserCreateInfoFB.Buffer type$Default() { return type(FBSpatialEntityUser.XR_TYPE_SPACE_USER_CREATE_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceUserCreateInfoFB#next} field. */ - public XrSpaceUserCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceUserCreateInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceUserCreateInfoFB#userId} field. */ - public XrSpaceUserCreateInfoFB.Buffer userId(@NativeType("XrSpaceUserIdFB") long value) { XrSpaceUserCreateInfoFB.nuserId(address(), value); return this; } + + /** @return the value of the {@link XrSpaceUserCreateInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceUserCreateInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceUserCreateInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceUserCreateInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpaceUserCreateInfoFB#userId} field. */ + @NativeType("XrSpaceUserIdFB") + public long userId() { return XrSpaceUserCreateInfoFB.nuserId(address()); } + + /** Sets the specified value to the {@link XrSpaceUserCreateInfoFB#type} field. */ + public XrSpaceUserCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceUserCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityUser#XR_TYPE_SPACE_USER_CREATE_INFO_FB TYPE_SPACE_USER_CREATE_INFO_FB} value to the {@link XrSpaceUserCreateInfoFB#type} field. */ + public XrSpaceUserCreateInfoFB.Buffer type$Default() { return type(FBSpatialEntityUser.XR_TYPE_SPACE_USER_CREATE_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceUserCreateInfoFB#next} field. */ + public XrSpaceUserCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceUserCreateInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceUserCreateInfoFB#userId} field. */ + public XrSpaceUserCreateInfoFB.Buffer userId(@NativeType("XrSpaceUserIdFB") long value) { XrSpaceUserCreateInfoFB.nuserId(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUserFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUserFB.java index bedced3241..0aba9b22b9 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUserFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUserFB.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrSpaceUserFB} handle. */ + +/** Wraps an {@code XrSpaceUserFB} handle. */ public class XrSpaceUserFB 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/XrSpaceUuidFilterInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUuidFilterInfoFB.java index e87679a629..84d41c2cbd 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUuidFilterInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUuidFilterInfoFB.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.*; + /** * Filters for entities with specific unique identifiers. * @@ -46,8 +46,8 @@ * uint32_t {@link #uuidCount}; * {@link XrUuidEXT XrUuidEXT} * {@link #uuids}; * } - */ -public class XrSpaceUuidFilterInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceUuidFilterInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,35 +57,26 @@ public class XrSpaceUuidFilterInfoFB extends Struct imp /** The struct member offsets. */ public static final int - TYPE, - NEXT, - UUIDCOUNT, - UUIDS; + TYPE, + NEXT, + UUIDCOUNT, + UUIDS; 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); - UUIDCOUNT = layout.offsetof(2); - UUIDS = layout.offsetof(3); - } - - protected XrSpaceUuidFilterInfoFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSpaceUuidFilterInfoFB create(long address, @Nullable ByteBuffer container) { - return new XrSpaceUuidFilterInfoFB(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + UUIDCOUNT = layout.offsetof(2); + UUIDS = layout.offsetof(3); } /** @@ -100,38 +91,38 @@ public XrSpaceUuidFilterInfoFB(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()); } - /** the number of UUIDs to be matched. */ - @NativeType("uint32_t") - public int uuidCount() { return nuuidCount(address()); } - /** an array of {@link XrUuidEXT} that contains the UUIDs to be matched. */ - @NativeType("XrUuidEXT *") - public XrUuidEXT.Buffer uuids() { return nuuids(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceUuidFilterInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_UUID_FILTER_INFO_FB TYPE_SPACE_UUID_FILTER_INFO_FB} value to the {@link #type} field. */ - public XrSpaceUuidFilterInfoFB type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_UUID_FILTER_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceUuidFilterInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link #uuids} field. */ - public XrSpaceUuidFilterInfoFB uuids(@NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { nuuids(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()); } + /** the number of UUIDs to be matched. */ + @NativeType("uint32_t") + public int uuidCount() { return nuuidCount(address()); } + /** an array of {@link XrUuidEXT} that contains the UUIDs to be matched. */ + @NativeType("XrUuidEXT *") + public XrUuidEXT.Buffer uuids() { return nuuids(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceUuidFilterInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_UUID_FILTER_INFO_FB TYPE_SPACE_UUID_FILTER_INFO_FB} value to the {@link #type} field. */ + public XrSpaceUuidFilterInfoFB type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_UUID_FILTER_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceUuidFilterInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link #uuids} field. */ + public XrSpaceUuidFilterInfoFB uuids(@NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { nuuids(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceUuidFilterInfoFB set( - int type, - long next, + int type, + long next, XrUuidEXT.Buffer uuids - ) { - type(type); - next(next); - uuids(uuids); + ) { + type(type); + next(next); + uuids(uuids); return this; } @@ -152,34 +143,34 @@ public XrSpaceUuidFilterInfoFB set(XrSpaceUuidFilterInfoFB src) { /** Returns a new {@code XrSpaceUuidFilterInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpaceUuidFilterInfoFB malloc() { - return new XrSpaceUuidFilterInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpaceUuidFilterInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpaceUuidFilterInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpaceUuidFilterInfoFB calloc() { - return new XrSpaceUuidFilterInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpaceUuidFilterInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpaceUuidFilterInfoFB} instance allocated with {@link BufferUtils}. */ public static XrSpaceUuidFilterInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpaceUuidFilterInfoFB(memAddress(container), container); + return wrap(XrSpaceUuidFilterInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrSpaceUuidFilterInfoFB} instance for the specified memory address. */ public static XrSpaceUuidFilterInfoFB create(long address) { - return new XrSpaceUuidFilterInfoFB(address, null); + return wrap(XrSpaceUuidFilterInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpaceUuidFilterInfoFB createSafe(long address) { - return address == NULL ? null : new XrSpaceUuidFilterInfoFB(address, null); + return address == NULL ? null : wrap(XrSpaceUuidFilterInfoFB.class, address); } /** Downcasts the specified {@code XrSpaceFilterInfoBaseHeaderFB} instance to {@code XrSpaceUuidFilterInfoFB}. */ public static XrSpaceUuidFilterInfoFB create(XrSpaceFilterInfoBaseHeaderFB value) { - return new XrSpaceUuidFilterInfoFB(value.address(), __getContainer(value)); + return wrap(XrSpaceUuidFilterInfoFB.class, value); } /** @@ -188,7 +179,7 @@ public static XrSpaceUuidFilterInfoFB create(XrSpaceFilterInfoBaseHeaderFB value * @param capacity the buffer capacity */ public static XrSpaceUuidFilterInfoFB.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 XrSpaceUuidFilterInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceUuidFilterInfoFB.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 XrSpaceUuidFilterInfoFB.Buffer calloc(int capacity) { */ public static XrSpaceUuidFilterInfoFB.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,18 +208,18 @@ public static XrSpaceUuidFilterInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceUuidFilterInfoFB.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 XrSpaceUuidFilterInfoFB.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 XrSpaceFilterInfoBaseHeaderFB.Buffer} instance to {@code XrSpaceUuidFilterInfoFB.Buffer}. */ public static XrSpaceUuidFilterInfoFB.Buffer create(XrSpaceFilterInfoBaseHeaderFB.Buffer value) { - return new XrSpaceUuidFilterInfoFB.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** @@ -237,7 +228,7 @@ public static XrSpaceUuidFilterInfoFB.Buffer create(XrSpaceFilterInfoBaseHeaderF * @param stack the stack from which to allocate */ public static XrSpaceUuidFilterInfoFB malloc(MemoryStack stack) { - return new XrSpaceUuidFilterInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpaceUuidFilterInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -246,7 +237,7 @@ public static XrSpaceUuidFilterInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSpaceUuidFilterInfoFB calloc(MemoryStack stack) { - return new XrSpaceUuidFilterInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpaceUuidFilterInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -256,7 +247,7 @@ public static XrSpaceUuidFilterInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpaceUuidFilterInfoFB.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,28 +257,28 @@ public static XrSpaceUuidFilterInfoFB.Buffer malloc(int capacity, MemoryStack st * @param capacity the buffer capacity */ public static XrSpaceUuidFilterInfoFB.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 + XrSpaceUuidFilterInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceUuidFilterInfoFB.NEXT); } - /** Unsafe version of {@link #uuidCount}. */ - public static int nuuidCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceUuidFilterInfoFB.UUIDCOUNT); } - /** Unsafe version of {@link #uuids}. */ - public static XrUuidEXT.Buffer nuuids(long struct) { return XrUuidEXT.create(memGetAddress(struct + XrSpaceUuidFilterInfoFB.UUIDS), nuuidCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceUuidFilterInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceUuidFilterInfoFB.NEXT, value); } - /** Sets the specified value to the {@code uuidCount} field of the specified {@code struct}. */ - public static void nuuidCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceUuidFilterInfoFB.UUIDCOUNT, value); } - /** Unsafe version of {@link #uuids(XrUuidEXT.Buffer) uuids}. */ - public static void nuuids(long struct, XrUuidEXT.Buffer value) { memPutAddress(struct + XrSpaceUuidFilterInfoFB.UUIDS, value.address()); nuuidCount(struct, value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceUuidFilterInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceUuidFilterInfoFB.NEXT); } + /** Unsafe version of {@link #uuidCount}. */ + public static int nuuidCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceUuidFilterInfoFB.UUIDCOUNT); } + /** Unsafe version of {@link #uuids}. */ + public static XrUuidEXT.Buffer nuuids(long struct) { return XrUuidEXT.create(memGetAddress(struct + XrSpaceUuidFilterInfoFB.UUIDS), nuuidCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceUuidFilterInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceUuidFilterInfoFB.NEXT, value); } + /** Sets the specified value to the {@code uuidCount} field of the specified {@code struct}. */ + public static void nuuidCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceUuidFilterInfoFB.UUIDCOUNT, value); } + /** Unsafe version of {@link #uuids(XrUuidEXT.Buffer) uuids}. */ + public static void nuuids(long struct, XrUuidEXT.Buffer value) { memPutAddress(struct + XrSpaceUuidFilterInfoFB.UUIDS, value.address()); nuuidCount(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -296,9 +287,9 @@ public static XrSpaceUuidFilterInfoFB.Buffer calloc(int capacity, MemoryStack st */ public static void validate(long struct) { check(memGetAddress(struct + XrSpaceUuidFilterInfoFB.UUIDS)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpaceUuidFilterInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -308,9 +299,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrSpaceUuidFilterInfoFB.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 XrSpaceUuidFilterInfoFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpaceUuidFilterInfoFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -335,28 +326,28 @@ protected Buffer self() { protected XrSpaceUuidFilterInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceUuidFilterInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceUuidFilterInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceUuidFilterInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceUuidFilterInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpaceUuidFilterInfoFB#uuidCount} field. */ - @NativeType("uint32_t") - public int uuidCount() { return XrSpaceUuidFilterInfoFB.nuuidCount(address()); } - /** @return a {@link XrUuidEXT.Buffer} view of the struct array pointed to by the {@link XrSpaceUuidFilterInfoFB#uuids} field. */ - @NativeType("XrUuidEXT *") - public XrUuidEXT.Buffer uuids() { return XrSpaceUuidFilterInfoFB.nuuids(address()); } - - /** Sets the specified value to the {@link XrSpaceUuidFilterInfoFB#type} field. */ - public XrSpaceUuidFilterInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceUuidFilterInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_UUID_FILTER_INFO_FB TYPE_SPACE_UUID_FILTER_INFO_FB} value to the {@link XrSpaceUuidFilterInfoFB#type} field. */ - public XrSpaceUuidFilterInfoFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_UUID_FILTER_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceUuidFilterInfoFB#next} field. */ - public XrSpaceUuidFilterInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceUuidFilterInfoFB.nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link XrSpaceUuidFilterInfoFB#uuids} field. */ - public XrSpaceUuidFilterInfoFB.Buffer uuids(@NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { XrSpaceUuidFilterInfoFB.nuuids(address(), value); return this; } + + /** @return the value of the {@link XrSpaceUuidFilterInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceUuidFilterInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceUuidFilterInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceUuidFilterInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpaceUuidFilterInfoFB#uuidCount} field. */ + @NativeType("uint32_t") + public int uuidCount() { return XrSpaceUuidFilterInfoFB.nuuidCount(address()); } + /** @return a {@link XrUuidEXT.Buffer} view of the struct array pointed to by the {@link XrSpaceUuidFilterInfoFB#uuids} field. */ + @NativeType("XrUuidEXT *") + public XrUuidEXT.Buffer uuids() { return XrSpaceUuidFilterInfoFB.nuuids(address()); } + + /** Sets the specified value to the {@link XrSpaceUuidFilterInfoFB#type} field. */ + public XrSpaceUuidFilterInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceUuidFilterInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_UUID_FILTER_INFO_FB TYPE_SPACE_UUID_FILTER_INFO_FB} value to the {@link XrSpaceUuidFilterInfoFB#type} field. */ + public XrSpaceUuidFilterInfoFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_UUID_FILTER_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceUuidFilterInfoFB#next} field. */ + public XrSpaceUuidFilterInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceUuidFilterInfoFB.nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link XrSpaceUuidFilterInfoFB#uuids} field. */ + public XrSpaceUuidFilterInfoFB.Buffer uuids(@NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { XrSpaceUuidFilterInfoFB.nuuids(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceVelocity.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceVelocity.java index 65f92bf12e..c36a9333a8 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceVelocity.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceVelocity.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.*; + /** * Contains info about a space. * @@ -40,8 +40,8 @@ * {@link XrVector3f XrVector3f} {@link #linearVelocity}; * {@link XrVector3f XrVector3f} {@link #angularVelocity}; * } - */ -public class XrSpaceVelocity extends Struct implements NativeResource { + */ +public class XrSpaceVelocity extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,38 +51,29 @@ public class XrSpaceVelocity extends Struct implements NativeRe /** The struct member offsets. */ public static final int - TYPE, - NEXT, - VELOCITYFLAGS, - LINEARVELOCITY, - ANGULARVELOCITY; + TYPE, + NEXT, + VELOCITYFLAGS, + LINEARVELOCITY, + ANGULARVELOCITY; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF), __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - VELOCITYFLAGS = layout.offsetof(2); - LINEARVELOCITY = layout.offsetof(3); - ANGULARVELOCITY = layout.offsetof(4); - } - - protected XrSpaceVelocity(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSpaceVelocity create(long address, @Nullable ByteBuffer container) { - return new XrSpaceVelocity(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + VELOCITYFLAGS = layout.offsetof(2); + LINEARVELOCITY = layout.offsetof(3); + ANGULARVELOCITY = layout.offsetof(4); } /** @@ -97,51 +88,51 @@ public XrSpaceVelocity(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 bitfield, with bit masks defined in {@code XrSpaceVelocityFlagBits}, 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("XrSpaceVelocityFlags") - public long velocityFlags() { return nvelocityFlags(address()); } - /** the relative linear velocity of the origin of {@link XR10#xrLocateSpace LocateSpace}{@code ::space} with respect to and expressed in the reference frame of {@link XR10#xrLocateSpace LocateSpace}{@code ::baseSpace}, in units of meters per second. */ - public XrVector3f linearVelocity() { return nlinearVelocity(address()); } - /** the relative angular velocity of {@link XR10#xrLocateSpace LocateSpace}{@code ::space} with respect to {@link XR10#xrLocateSpace LocateSpace}{@code ::baseSpace}. The vector’s direction is expressed in the reference frame of {@link XR10#xrLocateSpace LocateSpace}{@code ::baseSpace} and is parallel to the rotational axis of {@link XR10#xrLocateSpace LocateSpace}{@code ::space}. The vector’s magnitude is the relative angular speed of {@link XR10#xrLocateSpace LocateSpace}{@code ::space} in radians per second. The vector follows the right-hand rule for torque/rotation. */ - public XrVector3f angularVelocity() { return nangularVelocity(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceVelocity type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SPACE_VELOCITY TYPE_SPACE_VELOCITY} value to the {@link #type} field. */ - public XrSpaceVelocity type$Default() { return type(XR10.XR_TYPE_SPACE_VELOCITY); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceVelocity next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #velocityFlags} field. */ - public XrSpaceVelocity velocityFlags(@NativeType("XrSpaceVelocityFlags") long value) { nvelocityFlags(address(), value); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #linearVelocity} field. */ - public XrSpaceVelocity linearVelocity(XrVector3f value) { nlinearVelocity(address(), value); return this; } - /** Passes the {@link #linearVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpaceVelocity linearVelocity(java.util.function.Consumer consumer) { consumer.accept(linearVelocity()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #angularVelocity} field. */ - public XrSpaceVelocity angularVelocity(XrVector3f value) { nangularVelocity(address(), value); return this; } - /** Passes the {@link #angularVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpaceVelocity angularVelocity(java.util.function.Consumer consumer) { consumer.accept(angularVelocity()); 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 bitfield, with bit masks defined in {@code XrSpaceVelocityFlagBits}, 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("XrSpaceVelocityFlags") + public long velocityFlags() { return nvelocityFlags(address()); } + /** the relative linear velocity of the origin of {@link XR10#xrLocateSpace LocateSpace}{@code ::space} with respect to and expressed in the reference frame of {@link XR10#xrLocateSpace LocateSpace}{@code ::baseSpace}, in units of meters per second. */ + public XrVector3f linearVelocity() { return nlinearVelocity(address()); } + /** the relative angular velocity of {@link XR10#xrLocateSpace LocateSpace}{@code ::space} with respect to {@link XR10#xrLocateSpace LocateSpace}{@code ::baseSpace}. The vector’s direction is expressed in the reference frame of {@link XR10#xrLocateSpace LocateSpace}{@code ::baseSpace} and is parallel to the rotational axis of {@link XR10#xrLocateSpace LocateSpace}{@code ::space}. The vector’s magnitude is the relative angular speed of {@link XR10#xrLocateSpace LocateSpace}{@code ::space} in radians per second. The vector follows the right-hand rule for torque/rotation. */ + public XrVector3f angularVelocity() { return nangularVelocity(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceVelocity type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SPACE_VELOCITY TYPE_SPACE_VELOCITY} value to the {@link #type} field. */ + public XrSpaceVelocity type$Default() { return type(XR10.XR_TYPE_SPACE_VELOCITY); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceVelocity next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #velocityFlags} field. */ + public XrSpaceVelocity velocityFlags(@NativeType("XrSpaceVelocityFlags") long value) { nvelocityFlags(address(), value); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #linearVelocity} field. */ + public XrSpaceVelocity linearVelocity(XrVector3f value) { nlinearVelocity(address(), value); return this; } + /** Passes the {@link #linearVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpaceVelocity linearVelocity(java.util.function.Consumer consumer) { consumer.accept(linearVelocity()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #angularVelocity} field. */ + public XrSpaceVelocity angularVelocity(XrVector3f value) { nangularVelocity(address(), value); return this; } + /** Passes the {@link #angularVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpaceVelocity angularVelocity(java.util.function.Consumer consumer) { consumer.accept(angularVelocity()); return this; } /** Initializes this struct with the specified values. */ public XrSpaceVelocity set( - int type, - long next, - long velocityFlags, - XrVector3f linearVelocity, + int type, + long next, + long velocityFlags, + XrVector3f linearVelocity, XrVector3f angularVelocity - ) { - type(type); - next(next); - velocityFlags(velocityFlags); - linearVelocity(linearVelocity); - angularVelocity(angularVelocity); + ) { + type(type); + next(next); + velocityFlags(velocityFlags); + linearVelocity(linearVelocity); + angularVelocity(angularVelocity); return this; } @@ -162,29 +153,29 @@ public XrSpaceVelocity set(XrSpaceVelocity src) { /** Returns a new {@code XrSpaceVelocity} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpaceVelocity malloc() { - return new XrSpaceVelocity(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpaceVelocity.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpaceVelocity} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpaceVelocity calloc() { - return new XrSpaceVelocity(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpaceVelocity.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpaceVelocity} instance allocated with {@link BufferUtils}. */ public static XrSpaceVelocity create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpaceVelocity(memAddress(container), container); + return wrap(XrSpaceVelocity.class, memAddress(container), container); } /** Returns a new {@code XrSpaceVelocity} instance for the specified memory address. */ public static XrSpaceVelocity create(long address) { - return new XrSpaceVelocity(address, null); + return wrap(XrSpaceVelocity.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpaceVelocity createSafe(long address) { - return address == NULL ? null : new XrSpaceVelocity(address, null); + return address == NULL ? null : wrap(XrSpaceVelocity.class, address); } /** @@ -193,7 +184,7 @@ public static XrSpaceVelocity createSafe(long address) { * @param capacity the buffer capacity */ public static XrSpaceVelocity.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 XrSpaceVelocity.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceVelocity.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 XrSpaceVelocity.Buffer calloc(int capacity) { */ public static XrSpaceVelocity.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 XrSpaceVelocity.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSpaceVelocity.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 XrSpaceVelocity.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 XrSpaceVelocity.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrSpaceVelocity malloc(MemoryStack stack) { - return new XrSpaceVelocity(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpaceVelocity.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -246,7 +237,7 @@ public static XrSpaceVelocity malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSpaceVelocity calloc(MemoryStack stack) { - return new XrSpaceVelocity(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpaceVelocity.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -256,7 +247,7 @@ public static XrSpaceVelocity calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpaceVelocity.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 XrSpaceVelocity.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpaceVelocity.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 + XrSpaceVelocity.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceVelocity.NEXT); } - /** Unsafe version of {@link #velocityFlags}. */ - public static long nvelocityFlags(long struct) { return UNSAFE.getLong(null, struct + XrSpaceVelocity.VELOCITYFLAGS); } - /** Unsafe version of {@link #linearVelocity}. */ - public static XrVector3f nlinearVelocity(long struct) { return XrVector3f.create(struct + XrSpaceVelocity.LINEARVELOCITY); } - /** Unsafe version of {@link #angularVelocity}. */ - public static XrVector3f nangularVelocity(long struct) { return XrVector3f.create(struct + XrSpaceVelocity.ANGULARVELOCITY); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceVelocity.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceVelocity.NEXT, value); } - /** Unsafe version of {@link #velocityFlags(long) velocityFlags}. */ - public static void nvelocityFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceVelocity.VELOCITYFLAGS, value); } - /** Unsafe version of {@link #linearVelocity(XrVector3f) linearVelocity}. */ - public static void nlinearVelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrSpaceVelocity.LINEARVELOCITY, XrVector3f.SIZEOF); } - /** Unsafe version of {@link #angularVelocity(XrVector3f) angularVelocity}. */ - public static void nangularVelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrSpaceVelocity.ANGULARVELOCITY, XrVector3f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceVelocity.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceVelocity.NEXT); } + /** Unsafe version of {@link #velocityFlags}. */ + public static long nvelocityFlags(long struct) { return UNSAFE.getLong(null, struct + XrSpaceVelocity.VELOCITYFLAGS); } + /** Unsafe version of {@link #linearVelocity}. */ + public static XrVector3f nlinearVelocity(long struct) { return XrVector3f.create(struct + XrSpaceVelocity.LINEARVELOCITY); } + /** Unsafe version of {@link #angularVelocity}. */ + public static XrVector3f nangularVelocity(long struct) { return XrVector3f.create(struct + XrSpaceVelocity.ANGULARVELOCITY); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceVelocity.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceVelocity.NEXT, value); } + /** Unsafe version of {@link #velocityFlags(long) velocityFlags}. */ + public static void nvelocityFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceVelocity.VELOCITYFLAGS, value); } + /** Unsafe version of {@link #linearVelocity(XrVector3f) linearVelocity}. */ + public static void nlinearVelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrSpaceVelocity.LINEARVELOCITY, XrVector3f.SIZEOF); } + /** Unsafe version of {@link #angularVelocity(XrVector3f) angularVelocity}. */ + public static void nangularVelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrSpaceVelocity.ANGULARVELOCITY, XrVector3f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSpaceVelocity} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -303,9 +294,9 @@ public static class Buffer extends StructBuffer impleme /** * Creates a new {@code XrSpaceVelocity.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 XrSpaceVelocity#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpaceVelocity#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -330,37 +321,37 @@ protected Buffer self() { protected XrSpaceVelocity getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceVelocity#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceVelocity.ntype(address()); } - /** @return the value of the {@link XrSpaceVelocity#next} field. */ - @NativeType("void *") - public long next() { return XrSpaceVelocity.nnext(address()); } - /** @return the value of the {@link XrSpaceVelocity#velocityFlags} field. */ - @NativeType("XrSpaceVelocityFlags") - public long velocityFlags() { return XrSpaceVelocity.nvelocityFlags(address()); } - /** @return a {@link XrVector3f} view of the {@link XrSpaceVelocity#linearVelocity} field. */ - public XrVector3f linearVelocity() { return XrSpaceVelocity.nlinearVelocity(address()); } - /** @return a {@link XrVector3f} view of the {@link XrSpaceVelocity#angularVelocity} field. */ - public XrVector3f angularVelocity() { return XrSpaceVelocity.nangularVelocity(address()); } - - /** Sets the specified value to the {@link XrSpaceVelocity#type} field. */ - public XrSpaceVelocity.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceVelocity.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SPACE_VELOCITY TYPE_SPACE_VELOCITY} value to the {@link XrSpaceVelocity#type} field. */ - public XrSpaceVelocity.Buffer type$Default() { return type(XR10.XR_TYPE_SPACE_VELOCITY); } - /** Sets the specified value to the {@link XrSpaceVelocity#next} field. */ - public XrSpaceVelocity.Buffer next(@NativeType("void *") long value) { XrSpaceVelocity.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceVelocity#velocityFlags} field. */ - public XrSpaceVelocity.Buffer velocityFlags(@NativeType("XrSpaceVelocityFlags") long value) { XrSpaceVelocity.nvelocityFlags(address(), value); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrSpaceVelocity#linearVelocity} field. */ - public XrSpaceVelocity.Buffer linearVelocity(XrVector3f value) { XrSpaceVelocity.nlinearVelocity(address(), value); return this; } - /** Passes the {@link XrSpaceVelocity#linearVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpaceVelocity.Buffer linearVelocity(java.util.function.Consumer consumer) { consumer.accept(linearVelocity()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrSpaceVelocity#angularVelocity} field. */ - public XrSpaceVelocity.Buffer angularVelocity(XrVector3f value) { XrSpaceVelocity.nangularVelocity(address(), value); return this; } - /** Passes the {@link XrSpaceVelocity#angularVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpaceVelocity.Buffer angularVelocity(java.util.function.Consumer consumer) { consumer.accept(angularVelocity()); return this; } + + /** @return the value of the {@link XrSpaceVelocity#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceVelocity.ntype(address()); } + /** @return the value of the {@link XrSpaceVelocity#next} field. */ + @NativeType("void *") + public long next() { return XrSpaceVelocity.nnext(address()); } + /** @return the value of the {@link XrSpaceVelocity#velocityFlags} field. */ + @NativeType("XrSpaceVelocityFlags") + public long velocityFlags() { return XrSpaceVelocity.nvelocityFlags(address()); } + /** @return a {@link XrVector3f} view of the {@link XrSpaceVelocity#linearVelocity} field. */ + public XrVector3f linearVelocity() { return XrSpaceVelocity.nlinearVelocity(address()); } + /** @return a {@link XrVector3f} view of the {@link XrSpaceVelocity#angularVelocity} field. */ + public XrVector3f angularVelocity() { return XrSpaceVelocity.nangularVelocity(address()); } + + /** Sets the specified value to the {@link XrSpaceVelocity#type} field. */ + public XrSpaceVelocity.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceVelocity.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SPACE_VELOCITY TYPE_SPACE_VELOCITY} value to the {@link XrSpaceVelocity#type} field. */ + public XrSpaceVelocity.Buffer type$Default() { return type(XR10.XR_TYPE_SPACE_VELOCITY); } + /** Sets the specified value to the {@link XrSpaceVelocity#next} field. */ + public XrSpaceVelocity.Buffer next(@NativeType("void *") long value) { XrSpaceVelocity.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceVelocity#velocityFlags} field. */ + public XrSpaceVelocity.Buffer velocityFlags(@NativeType("XrSpaceVelocityFlags") long value) { XrSpaceVelocity.nvelocityFlags(address(), value); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrSpaceVelocity#linearVelocity} field. */ + public XrSpaceVelocity.Buffer linearVelocity(XrVector3f value) { XrSpaceVelocity.nlinearVelocity(address(), value); return this; } + /** Passes the {@link XrSpaceVelocity#linearVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpaceVelocity.Buffer linearVelocity(java.util.function.Consumer consumer) { consumer.accept(linearVelocity()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrSpaceVelocity#angularVelocity} field. */ + public XrSpaceVelocity.Buffer angularVelocity(XrVector3f value) { XrSpaceVelocity.nangularVelocity(address(), value); return this; } + /** Passes the {@link XrSpaceVelocity#angularVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpaceVelocity.Buffer angularVelocity(java.util.function.Consumer consumer) { consumer.accept(angularVelocity()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorCreateInfoFB.java index 473aaccc4b..97479641d0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorCreateInfoFB.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.*; + /** * Parameters to create a new spatial anchor. * @@ -46,8 +46,8 @@ * {@link XrPosef XrPosef} {@link #poseInSpace}; * XrTime {@link #time}; * } - */ -public class XrSpatialAnchorCreateInfoFB extends Struct implements NativeResource { + */ +public class XrSpatialAnchorCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,38 +57,29 @@ public class XrSpatialAnchorCreateInfoFB extends Struct consumer) { consumer.accept(poseInSpace()); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrSpatialAnchorCreateInfoFB 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()); } + /** the {@code XrSpace} handle to the reference space that defines the {@code poseInSpace} of the anchor to be defined. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the {@link XrPosef} location and orientation of the Spatial Anchor in the specified reference space. */ + public XrPosef poseInSpace() { return nposeInSpace(address()); } + /** the {@code XrTime} timestamp associated with the specified pose. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpatialAnchorCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntity#XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB} value to the {@link #type} field. */ + public XrSpatialAnchorCreateInfoFB type$Default() { return type(FBSpatialEntity.XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpatialAnchorCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrSpatialAnchorCreateInfoFB space(XrSpace value) { nspace(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #poseInSpace} field. */ + public XrSpatialAnchorCreateInfoFB poseInSpace(XrPosef value) { nposeInSpace(address(), value); return this; } + /** Passes the {@link #poseInSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorCreateInfoFB poseInSpace(java.util.function.Consumer consumer) { consumer.accept(poseInSpace()); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrSpatialAnchorCreateInfoFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpatialAnchorCreateInfoFB set( - int type, - long next, - XrSpace space, - XrPosef poseInSpace, + int type, + long next, + XrSpace space, + XrPosef poseInSpace, long time - ) { - type(type); - next(next); - space(space); - poseInSpace(poseInSpace); - time(time); + ) { + type(type); + next(next); + space(space); + poseInSpace(poseInSpace); + time(time); return this; } @@ -167,29 +158,29 @@ public XrSpatialAnchorCreateInfoFB set(XrSpatialAnchorCreateInfoFB src) { /** Returns a new {@code XrSpatialAnchorCreateInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpatialAnchorCreateInfoFB malloc() { - return new XrSpatialAnchorCreateInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpatialAnchorCreateInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpatialAnchorCreateInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpatialAnchorCreateInfoFB calloc() { - return new XrSpatialAnchorCreateInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpatialAnchorCreateInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpatialAnchorCreateInfoFB} instance allocated with {@link BufferUtils}. */ public static XrSpatialAnchorCreateInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpatialAnchorCreateInfoFB(memAddress(container), container); + return wrap(XrSpatialAnchorCreateInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrSpatialAnchorCreateInfoFB} instance for the specified memory address. */ public static XrSpatialAnchorCreateInfoFB create(long address) { - return new XrSpatialAnchorCreateInfoFB(address, null); + return wrap(XrSpatialAnchorCreateInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpatialAnchorCreateInfoFB createSafe(long address) { - return address == NULL ? null : new XrSpatialAnchorCreateInfoFB(address, null); + return address == NULL ? null : wrap(XrSpatialAnchorCreateInfoFB.class, address); } /** @@ -198,7 +189,7 @@ public static XrSpatialAnchorCreateInfoFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrSpatialAnchorCreateInfoFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -207,7 +198,7 @@ public static XrSpatialAnchorCreateInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSpatialAnchorCreateInfoFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -217,7 +208,7 @@ public static XrSpatialAnchorCreateInfoFB.Buffer calloc(int capacity) { */ public static XrSpatialAnchorCreateInfoFB.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); } /** @@ -227,13 +218,13 @@ public static XrSpatialAnchorCreateInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSpatialAnchorCreateInfoFB.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 XrSpatialAnchorCreateInfoFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -242,7 +233,7 @@ public static XrSpatialAnchorCreateInfoFB.Buffer createSafe(long address, int ca * @param stack the stack from which to allocate */ public static XrSpatialAnchorCreateInfoFB malloc(MemoryStack stack) { - return new XrSpatialAnchorCreateInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpatialAnchorCreateInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -251,7 +242,7 @@ public static XrSpatialAnchorCreateInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSpatialAnchorCreateInfoFB calloc(MemoryStack stack) { - return new XrSpatialAnchorCreateInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpatialAnchorCreateInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -261,7 +252,7 @@ public static XrSpatialAnchorCreateInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpatialAnchorCreateInfoFB.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); } /** @@ -271,32 +262,32 @@ public static XrSpatialAnchorCreateInfoFB.Buffer malloc(int capacity, MemoryStac * @param capacity the buffer capacity */ public static XrSpatialAnchorCreateInfoFB.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 + XrSpatialAnchorCreateInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorCreateInfoFB.NEXT); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrSpatialAnchorCreateInfoFB.SPACE); } - /** Unsafe version of {@link #poseInSpace}. */ - public static XrPosef nposeInSpace(long struct) { return XrPosef.create(struct + XrSpatialAnchorCreateInfoFB.POSEINSPACE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrSpatialAnchorCreateInfoFB.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorCreateInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorCreateInfoFB.NEXT, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpatialAnchorCreateInfoFB.SPACE, value.address()); } - /** Unsafe version of {@link #poseInSpace(XrPosef) poseInSpace}. */ - public static void nposeInSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialAnchorCreateInfoFB.POSEINSPACE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrSpatialAnchorCreateInfoFB.TIME, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialAnchorCreateInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorCreateInfoFB.NEXT); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrSpatialAnchorCreateInfoFB.SPACE); } + /** Unsafe version of {@link #poseInSpace}. */ + public static XrPosef nposeInSpace(long struct) { return XrPosef.create(struct + XrSpatialAnchorCreateInfoFB.POSEINSPACE); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrSpatialAnchorCreateInfoFB.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorCreateInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorCreateInfoFB.NEXT, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpatialAnchorCreateInfoFB.SPACE, value.address()); } + /** Unsafe version of {@link #poseInSpace(XrPosef) poseInSpace}. */ + public static void nposeInSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialAnchorCreateInfoFB.POSEINSPACE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrSpatialAnchorCreateInfoFB.TIME, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -305,9 +296,9 @@ public static XrSpatialAnchorCreateInfoFB.Buffer calloc(int capacity, MemoryStac */ public static void validate(long struct) { check(memGetAddress(struct + XrSpatialAnchorCreateInfoFB.SPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpatialAnchorCreateInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -317,9 +308,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 XrSpatialAnchorCreateInfoFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpatialAnchorCreateInfoFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -344,36 +335,36 @@ protected Buffer self() { protected XrSpatialAnchorCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpatialAnchorCreateInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpatialAnchorCreateInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpatialAnchorCreateInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpatialAnchorCreateInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpatialAnchorCreateInfoFB#space} field. */ - @NativeType("XrSpace") - public long space() { return XrSpatialAnchorCreateInfoFB.nspace(address()); } - /** @return a {@link XrPosef} view of the {@link XrSpatialAnchorCreateInfoFB#poseInSpace} field. */ - public XrPosef poseInSpace() { return XrSpatialAnchorCreateInfoFB.nposeInSpace(address()); } - /** @return the value of the {@link XrSpatialAnchorCreateInfoFB#time} field. */ - @NativeType("XrTime") - public long time() { return XrSpatialAnchorCreateInfoFB.ntime(address()); } - - /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoFB#type} field. */ - public XrSpatialAnchorCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntity#XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB} value to the {@link XrSpatialAnchorCreateInfoFB#type} field. */ - public XrSpatialAnchorCreateInfoFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB); } - /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoFB#next} field. */ - public XrSpatialAnchorCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorCreateInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoFB#space} field. */ - public XrSpatialAnchorCreateInfoFB.Buffer space(XrSpace value) { XrSpatialAnchorCreateInfoFB.nspace(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrSpatialAnchorCreateInfoFB#poseInSpace} field. */ - public XrSpatialAnchorCreateInfoFB.Buffer poseInSpace(XrPosef value) { XrSpatialAnchorCreateInfoFB.nposeInSpace(address(), value); return this; } - /** Passes the {@link XrSpatialAnchorCreateInfoFB#poseInSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpatialAnchorCreateInfoFB.Buffer poseInSpace(java.util.function.Consumer consumer) { consumer.accept(poseInSpace()); return this; } - /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoFB#time} field. */ - public XrSpatialAnchorCreateInfoFB.Buffer time(@NativeType("XrTime") long value) { XrSpatialAnchorCreateInfoFB.ntime(address(), value); return this; } + + /** @return the value of the {@link XrSpatialAnchorCreateInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpatialAnchorCreateInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpatialAnchorCreateInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpatialAnchorCreateInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpatialAnchorCreateInfoFB#space} field. */ + @NativeType("XrSpace") + public long space() { return XrSpatialAnchorCreateInfoFB.nspace(address()); } + /** @return a {@link XrPosef} view of the {@link XrSpatialAnchorCreateInfoFB#poseInSpace} field. */ + public XrPosef poseInSpace() { return XrSpatialAnchorCreateInfoFB.nposeInSpace(address()); } + /** @return the value of the {@link XrSpatialAnchorCreateInfoFB#time} field. */ + @NativeType("XrTime") + public long time() { return XrSpatialAnchorCreateInfoFB.ntime(address()); } + + /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoFB#type} field. */ + public XrSpatialAnchorCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntity#XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB} value to the {@link XrSpatialAnchorCreateInfoFB#type} field. */ + public XrSpatialAnchorCreateInfoFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB); } + /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoFB#next} field. */ + public XrSpatialAnchorCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorCreateInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoFB#space} field. */ + public XrSpatialAnchorCreateInfoFB.Buffer space(XrSpace value) { XrSpatialAnchorCreateInfoFB.nspace(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrSpatialAnchorCreateInfoFB#poseInSpace} field. */ + public XrSpatialAnchorCreateInfoFB.Buffer poseInSpace(XrPosef value) { XrSpatialAnchorCreateInfoFB.nposeInSpace(address(), value); return this; } + /** Passes the {@link XrSpatialAnchorCreateInfoFB#poseInSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorCreateInfoFB.Buffer poseInSpace(java.util.function.Consumer consumer) { consumer.accept(poseInSpace()); return this; } + /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoFB#time} field. */ + public XrSpatialAnchorCreateInfoFB.Buffer time(@NativeType("XrTime") long value) { XrSpatialAnchorCreateInfoFB.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorCreateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorCreateInfoMSFT.java index f062267632..e2a7fd72ae 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorCreateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorCreateInfoMSFT.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 create a spatial anchor. * @@ -42,8 +42,8 @@ * {@link XrPosef XrPosef} {@link #pose}; * XrTime {@link #time}; * } - */ -public class XrSpatialAnchorCreateInfoMSFT extends Struct implements NativeResource { + */ +public class XrSpatialAnchorCreateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,38 +53,29 @@ public class XrSpatialAnchorCreateInfoMSFT extends Struct consumer) { consumer.accept(pose()); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrSpatialAnchorCreateInfoMSFT 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()); } + /** a handle to the {@code XrSpace} in which {@code pose} is specified. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the {@link XrPosef} within {@code space} at {@code time} that specifies the point in the real world used to initialize the new anchor. */ + public XrPosef pose() { return npose(address()); } + /** the {@code XrTime} at which {@code pose} will be evaluated within {@code space}. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpatialAnchorCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialAnchor#XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT} value to the {@link #type} field. */ + public XrSpatialAnchorCreateInfoMSFT type$Default() { return type(MSFTSpatialAnchor.XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpatialAnchorCreateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrSpatialAnchorCreateInfoMSFT space(XrSpace value) { nspace(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrSpatialAnchorCreateInfoMSFT pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorCreateInfoMSFT pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrSpatialAnchorCreateInfoMSFT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpatialAnchorCreateInfoMSFT set( - int type, - long next, - XrSpace space, - XrPosef pose, + int type, + long next, + XrSpace space, + XrPosef pose, long time - ) { - type(type); - next(next); - space(space); - pose(pose); - time(time); + ) { + type(type); + next(next); + space(space); + pose(pose); + time(time); return this; } @@ -163,29 +154,29 @@ public XrSpatialAnchorCreateInfoMSFT set(XrSpatialAnchorCreateInfoMSFT src) { /** Returns a new {@code XrSpatialAnchorCreateInfoMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpatialAnchorCreateInfoMSFT malloc() { - return new XrSpatialAnchorCreateInfoMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpatialAnchorCreateInfoMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpatialAnchorCreateInfoMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpatialAnchorCreateInfoMSFT calloc() { - return new XrSpatialAnchorCreateInfoMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpatialAnchorCreateInfoMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpatialAnchorCreateInfoMSFT} instance allocated with {@link BufferUtils}. */ public static XrSpatialAnchorCreateInfoMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpatialAnchorCreateInfoMSFT(memAddress(container), container); + return wrap(XrSpatialAnchorCreateInfoMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSpatialAnchorCreateInfoMSFT} instance for the specified memory address. */ public static XrSpatialAnchorCreateInfoMSFT create(long address) { - return new XrSpatialAnchorCreateInfoMSFT(address, null); + return wrap(XrSpatialAnchorCreateInfoMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpatialAnchorCreateInfoMSFT createSafe(long address) { - return address == NULL ? null : new XrSpatialAnchorCreateInfoMSFT(address, null); + return address == NULL ? null : wrap(XrSpatialAnchorCreateInfoMSFT.class, address); } /** @@ -194,7 +185,7 @@ public static XrSpatialAnchorCreateInfoMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSpatialAnchorCreateInfoMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -203,7 +194,7 @@ public static XrSpatialAnchorCreateInfoMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSpatialAnchorCreateInfoMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -213,7 +204,7 @@ public static XrSpatialAnchorCreateInfoMSFT.Buffer calloc(int capacity) { */ public static XrSpatialAnchorCreateInfoMSFT.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); } /** @@ -223,13 +214,13 @@ public static XrSpatialAnchorCreateInfoMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSpatialAnchorCreateInfoMSFT.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 XrSpatialAnchorCreateInfoMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -238,7 +229,7 @@ public static XrSpatialAnchorCreateInfoMSFT.Buffer createSafe(long address, int * @param stack the stack from which to allocate */ public static XrSpatialAnchorCreateInfoMSFT malloc(MemoryStack stack) { - return new XrSpatialAnchorCreateInfoMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpatialAnchorCreateInfoMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -247,7 +238,7 @@ public static XrSpatialAnchorCreateInfoMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSpatialAnchorCreateInfoMSFT calloc(MemoryStack stack) { - return new XrSpatialAnchorCreateInfoMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpatialAnchorCreateInfoMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -257,7 +248,7 @@ public static XrSpatialAnchorCreateInfoMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpatialAnchorCreateInfoMSFT.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); } /** @@ -267,32 +258,32 @@ public static XrSpatialAnchorCreateInfoMSFT.Buffer malloc(int capacity, MemorySt * @param capacity the buffer capacity */ public static XrSpatialAnchorCreateInfoMSFT.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 + XrSpatialAnchorCreateInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorCreateInfoMSFT.NEXT); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrSpatialAnchorCreateInfoMSFT.SPACE); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSpatialAnchorCreateInfoMSFT.POSE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrSpatialAnchorCreateInfoMSFT.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorCreateInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorCreateInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpatialAnchorCreateInfoMSFT.SPACE, value.address()); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialAnchorCreateInfoMSFT.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrSpatialAnchorCreateInfoMSFT.TIME, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialAnchorCreateInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorCreateInfoMSFT.NEXT); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrSpatialAnchorCreateInfoMSFT.SPACE); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSpatialAnchorCreateInfoMSFT.POSE); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrSpatialAnchorCreateInfoMSFT.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorCreateInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorCreateInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpatialAnchorCreateInfoMSFT.SPACE, value.address()); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialAnchorCreateInfoMSFT.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrSpatialAnchorCreateInfoMSFT.TIME, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -301,9 +292,9 @@ public static XrSpatialAnchorCreateInfoMSFT.Buffer calloc(int capacity, MemorySt */ public static void validate(long struct) { check(memGetAddress(struct + XrSpatialAnchorCreateInfoMSFT.SPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpatialAnchorCreateInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -313,9 +304,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 XrSpatialAnchorCreateInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpatialAnchorCreateInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -340,36 +331,36 @@ protected Buffer self() { protected XrSpatialAnchorCreateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpatialAnchorCreateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpatialAnchorCreateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSpatialAnchorCreateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSpatialAnchorCreateInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSpatialAnchorCreateInfoMSFT#space} field. */ - @NativeType("XrSpace") - public long space() { return XrSpatialAnchorCreateInfoMSFT.nspace(address()); } - /** @return a {@link XrPosef} view of the {@link XrSpatialAnchorCreateInfoMSFT#pose} field. */ - public XrPosef pose() { return XrSpatialAnchorCreateInfoMSFT.npose(address()); } - /** @return the value of the {@link XrSpatialAnchorCreateInfoMSFT#time} field. */ - @NativeType("XrTime") - public long time() { return XrSpatialAnchorCreateInfoMSFT.ntime(address()); } - - /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoMSFT#type} field. */ - public XrSpatialAnchorCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorCreateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSpatialAnchor#XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT} value to the {@link XrSpatialAnchorCreateInfoMSFT#type} field. */ - public XrSpatialAnchorCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialAnchor.XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoMSFT#next} field. */ - public XrSpatialAnchorCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorCreateInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoMSFT#space} field. */ - public XrSpatialAnchorCreateInfoMSFT.Buffer space(XrSpace value) { XrSpatialAnchorCreateInfoMSFT.nspace(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrSpatialAnchorCreateInfoMSFT#pose} field. */ - public XrSpatialAnchorCreateInfoMSFT.Buffer pose(XrPosef value) { XrSpatialAnchorCreateInfoMSFT.npose(address(), value); return this; } - /** Passes the {@link XrSpatialAnchorCreateInfoMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpatialAnchorCreateInfoMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoMSFT#time} field. */ - public XrSpatialAnchorCreateInfoMSFT.Buffer time(@NativeType("XrTime") long value) { XrSpatialAnchorCreateInfoMSFT.ntime(address(), value); return this; } + + /** @return the value of the {@link XrSpatialAnchorCreateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpatialAnchorCreateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSpatialAnchorCreateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSpatialAnchorCreateInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSpatialAnchorCreateInfoMSFT#space} field. */ + @NativeType("XrSpace") + public long space() { return XrSpatialAnchorCreateInfoMSFT.nspace(address()); } + /** @return a {@link XrPosef} view of the {@link XrSpatialAnchorCreateInfoMSFT#pose} field. */ + public XrPosef pose() { return XrSpatialAnchorCreateInfoMSFT.npose(address()); } + /** @return the value of the {@link XrSpatialAnchorCreateInfoMSFT#time} field. */ + @NativeType("XrTime") + public long time() { return XrSpatialAnchorCreateInfoMSFT.ntime(address()); } + + /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoMSFT#type} field. */ + public XrSpatialAnchorCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorCreateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialAnchor#XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT} value to the {@link XrSpatialAnchorCreateInfoMSFT#type} field. */ + public XrSpatialAnchorCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialAnchor.XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoMSFT#next} field. */ + public XrSpatialAnchorCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorCreateInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoMSFT#space} field. */ + public XrSpatialAnchorCreateInfoMSFT.Buffer space(XrSpace value) { XrSpatialAnchorCreateInfoMSFT.nspace(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrSpatialAnchorCreateInfoMSFT#pose} field. */ + public XrSpatialAnchorCreateInfoMSFT.Buffer pose(XrPosef value) { XrSpatialAnchorCreateInfoMSFT.npose(address(), value); return this; } + /** Passes the {@link XrSpatialAnchorCreateInfoMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorCreateInfoMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoMSFT#time} field. */ + public XrSpatialAnchorCreateInfoMSFT.Buffer time(@NativeType("XrTime") long value) { XrSpatialAnchorCreateInfoMSFT.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.java index 318b2e7fa2..ab1707081e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.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 creating a spatial anchor handle from a persisted anchor. * @@ -46,8 +46,8 @@ * XrSpatialAnchorStoreConnectionMSFT {@link #spatialAnchorStore}; * {@link XrSpatialAnchorPersistenceNameMSFT XrSpatialAnchorPersistenceNameMSFT} {@link #spatialAnchorPersistenceName}; * } - */ -public class XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT extends Struct implements NativeResource { + */ +public class XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,35 +57,26 @@ public class XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT extends Struct consumer) { consumer.accept(spatialAnchorPersistenceName()); 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 XrSpatialAnchorStoreConnectionMSFT} from which the spatial anchor will be loaded from. */ + @NativeType("XrSpatialAnchorStoreConnectionMSFT") + public long spatialAnchorStore() { return nspatialAnchorStore(address()); } + /** the {@link XrSpatialAnchorPersistenceNameMSFT} associated with the {@code XrSpatialAnchorMSFT} in the spatial anchor store. This name is used to create an {@code XrSpatialAnchorMSFT} handle from a spatial anchor persisted in the spatial anchor store. */ + public XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName() { return nspatialAnchorPersistenceName(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialAnchorPersistence#XR_TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT} value to the {@link #type} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT type$Default() { return type(MSFTSpatialAnchorPersistence.XR_TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #spatialAnchorStore} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT spatialAnchorStore(XrSpatialAnchorStoreConnectionMSFT value) { nspatialAnchorStore(address(), value); return this; } + /** Copies the specified {@link XrSpatialAnchorPersistenceNameMSFT} to the {@link #spatialAnchorPersistenceName} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT value) { nspatialAnchorPersistenceName(address(), value); return this; } + /** Passes the {@link #spatialAnchorPersistenceName} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT spatialAnchorPersistenceName(java.util.function.Consumer consumer) { consumer.accept(spatialAnchorPersistenceName()); return this; } /** Initializes this struct with the specified values. */ public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT set( - int type, - long next, - XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, + int type, + long next, + XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName - ) { - type(type); - next(next); - spatialAnchorStore(spatialAnchorStore); - spatialAnchorPersistenceName(spatialAnchorPersistenceName); + ) { + type(type); + next(next); + spatialAnchorStore(spatialAnchorStore); + spatialAnchorPersistenceName(spatialAnchorPersistenceName); return this; } @@ -157,29 +148,29 @@ public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT set(XrSpatialAnchorFromP /** Returns a new {@code XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT malloc() { - return new XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT calloc() { - return new XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT} instance allocated with {@link BufferUtils}. */ public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT(memAddress(container), container); + return wrap(XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT} instance for the specified memory address. */ public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT create(long address) { - return new XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT(address, null); + return wrap(XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT createSafe(long address) { - return address == NULL ? null : new XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT(address, null); + return address == NULL ? null : wrap(XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.class, address); } /** @@ -188,7 +179,7 @@ public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT createSafe(long a * @param capacity the buffer capacity */ public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.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 XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer malloc(int * @param capacity the buffer capacity */ public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.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 XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer calloc(int */ public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.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 XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer create(int * @param capacity the buffer capacity */ public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.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 XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.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 XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer createSafe * @param stack the stack from which to allocate */ public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT malloc(MemoryStack stack) { - return new XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -241,7 +232,7 @@ public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT malloc(MemoryStac * @param stack the stack from which to allocate */ public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT calloc(MemoryStack stack) { - return new XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -251,7 +242,7 @@ public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT calloc(MemoryStac * @param capacity the buffer capacity */ public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.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,28 +252,28 @@ public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer malloc(int * @param capacity the buffer capacity */ public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.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 + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.NEXT); } - /** Unsafe version of {@link #spatialAnchorStore}. */ - public static long nspatialAnchorStore(long struct) { return memGetAddress(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.SPATIALANCHORSTORE); } - /** Unsafe version of {@link #spatialAnchorPersistenceName}. */ - public static XrSpatialAnchorPersistenceNameMSFT nspatialAnchorPersistenceName(long struct) { return XrSpatialAnchorPersistenceNameMSFT.create(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.SPATIALANCHORPERSISTENCENAME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #spatialAnchorStore(XrSpatialAnchorStoreConnectionMSFT) spatialAnchorStore}. */ - public static void nspatialAnchorStore(long struct, XrSpatialAnchorStoreConnectionMSFT value) { memPutAddress(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.SPATIALANCHORSTORE, value.address()); } - /** Unsafe version of {@link #spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT) spatialAnchorPersistenceName}. */ - public static void nspatialAnchorPersistenceName(long struct, XrSpatialAnchorPersistenceNameMSFT value) { memCopy(value.address(), struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.SPATIALANCHORPERSISTENCENAME, XrSpatialAnchorPersistenceNameMSFT.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.NEXT); } + /** Unsafe version of {@link #spatialAnchorStore}. */ + public static long nspatialAnchorStore(long struct) { return memGetAddress(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.SPATIALANCHORSTORE); } + /** Unsafe version of {@link #spatialAnchorPersistenceName}. */ + public static XrSpatialAnchorPersistenceNameMSFT nspatialAnchorPersistenceName(long struct) { return XrSpatialAnchorPersistenceNameMSFT.create(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.SPATIALANCHORPERSISTENCENAME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #spatialAnchorStore(XrSpatialAnchorStoreConnectionMSFT) spatialAnchorStore}. */ + public static void nspatialAnchorStore(long struct, XrSpatialAnchorStoreConnectionMSFT value) { memPutAddress(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.SPATIALANCHORSTORE, value.address()); } + /** Unsafe version of {@link #spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT) spatialAnchorPersistenceName}. */ + public static void nspatialAnchorPersistenceName(long struct, XrSpatialAnchorPersistenceNameMSFT value) { memCopy(value.address(), struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.SPATIALANCHORPERSISTENCENAME, XrSpatialAnchorPersistenceNameMSFT.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -291,9 +282,9 @@ public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer calloc(int */ public static void validate(long struct) { check(memGetAddress(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.SPATIALANCHORSTORE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT} 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 XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -330,31 +321,31 @@ protected Buffer self() { protected XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorStore} field. */ - @NativeType("XrSpatialAnchorStoreConnectionMSFT") - public long spatialAnchorStore() { return XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nspatialAnchorStore(address()); } - /** @return a {@link XrSpatialAnchorPersistenceNameMSFT} view of the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorPersistenceName} field. */ - public XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName() { return XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nspatialAnchorPersistenceName(address()); } - - /** Sets the specified value to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#type} field. */ - public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSpatialAnchorPersistence#XR_TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT} value to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#type} field. */ - public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialAnchorPersistence.XR_TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#next} field. */ - public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorStore} field. */ - public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer spatialAnchorStore(XrSpatialAnchorStoreConnectionMSFT value) { XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nspatialAnchorStore(address(), value); return this; } - /** Copies the specified {@link XrSpatialAnchorPersistenceNameMSFT} to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorPersistenceName} field. */ - public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT value) { XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nspatialAnchorPersistenceName(address(), value); return this; } - /** Passes the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorPersistenceName} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer spatialAnchorPersistenceName(java.util.function.Consumer consumer) { consumer.accept(spatialAnchorPersistenceName()); return this; } + + /** @return the value of the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorStore} field. */ + @NativeType("XrSpatialAnchorStoreConnectionMSFT") + public long spatialAnchorStore() { return XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nspatialAnchorStore(address()); } + /** @return a {@link XrSpatialAnchorPersistenceNameMSFT} view of the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorPersistenceName} field. */ + public XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName() { return XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nspatialAnchorPersistenceName(address()); } + + /** Sets the specified value to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#type} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialAnchorPersistence#XR_TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT} value to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#type} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialAnchorPersistence.XR_TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#next} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorStore} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer spatialAnchorStore(XrSpatialAnchorStoreConnectionMSFT value) { XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nspatialAnchorStore(address(), value); return this; } + /** Copies the specified {@link XrSpatialAnchorPersistenceNameMSFT} to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorPersistenceName} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT value) { XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nspatialAnchorPersistenceName(address(), value); return this; } + /** Passes the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorPersistenceName} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer spatialAnchorPersistenceName(java.util.function.Consumer consumer) { consumer.accept(spatialAnchorPersistenceName()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorMSFT.java index 40e5b061d7..e8a3b1036d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorMSFT.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrSpatialAnchorMSFT} handle. */ + +/** Wraps an {@code XrSpatialAnchorMSFT} handle. */ public class XrSpatialAnchorMSFT 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/XrSpatialAnchorPersistenceInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorPersistenceInfoMSFT.java index 88d0837250..acb16df0c1 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorPersistenceInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorPersistenceInfoMSFT.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.*; + /** * Persistence info for a spatial anchor. * @@ -42,8 +42,8 @@ * {@link XrSpatialAnchorPersistenceNameMSFT XrSpatialAnchorPersistenceNameMSFT} {@link #spatialAnchorPersistenceName}; * XrSpatialAnchorMSFT {@link #spatialAnchor}; * } - */ -public class XrSpatialAnchorPersistenceInfoMSFT extends Struct implements NativeResource { + */ +public class XrSpatialAnchorPersistenceInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,35 +53,26 @@ public class XrSpatialAnchorPersistenceInfoMSFT extends Struct consumer) { consumer.accept(spatialAnchorPersistenceName()); return this; } - /** Sets the specified value to the {@link #spatialAnchor} field. */ - public XrSpatialAnchorPersistenceInfoMSFT spatialAnchor(XrSpatialAnchorMSFT value) { nspatialAnchor(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 {@link XrSpatialAnchorPersistenceNameMSFT} containing the name associated with the {@code XrSpatialAnchorMSFT} in the spatial anchor store. */ + public XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName() { return nspatialAnchorPersistenceName(address()); } + /** the {@code XrSpatialAnchorMSFT} that the application wishes to perform persistence operations on. */ + @NativeType("XrSpatialAnchorMSFT") + public long spatialAnchor() { return nspatialAnchor(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpatialAnchorPersistenceInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialAnchorPersistence#XR_TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT} value to the {@link #type} field. */ + public XrSpatialAnchorPersistenceInfoMSFT type$Default() { return type(MSFTSpatialAnchorPersistence.XR_TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpatialAnchorPersistenceInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrSpatialAnchorPersistenceNameMSFT} to the {@link #spatialAnchorPersistenceName} field. */ + public XrSpatialAnchorPersistenceInfoMSFT spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT value) { nspatialAnchorPersistenceName(address(), value); return this; } + /** Passes the {@link #spatialAnchorPersistenceName} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorPersistenceInfoMSFT spatialAnchorPersistenceName(java.util.function.Consumer consumer) { consumer.accept(spatialAnchorPersistenceName()); return this; } + /** Sets the specified value to the {@link #spatialAnchor} field. */ + public XrSpatialAnchorPersistenceInfoMSFT spatialAnchor(XrSpatialAnchorMSFT value) { nspatialAnchor(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpatialAnchorPersistenceInfoMSFT set( - int type, - long next, - XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName, + int type, + long next, + XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName, XrSpatialAnchorMSFT spatialAnchor - ) { - type(type); - next(next); - spatialAnchorPersistenceName(spatialAnchorPersistenceName); - spatialAnchor(spatialAnchor); + ) { + type(type); + next(next); + spatialAnchorPersistenceName(spatialAnchorPersistenceName); + spatialAnchor(spatialAnchor); return this; } @@ -153,29 +144,29 @@ public XrSpatialAnchorPersistenceInfoMSFT set(XrSpatialAnchorPersistenceInfoMSFT /** Returns a new {@code XrSpatialAnchorPersistenceInfoMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpatialAnchorPersistenceInfoMSFT malloc() { - return new XrSpatialAnchorPersistenceInfoMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpatialAnchorPersistenceInfoMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpatialAnchorPersistenceInfoMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpatialAnchorPersistenceInfoMSFT calloc() { - return new XrSpatialAnchorPersistenceInfoMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpatialAnchorPersistenceInfoMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpatialAnchorPersistenceInfoMSFT} instance allocated with {@link BufferUtils}. */ public static XrSpatialAnchorPersistenceInfoMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpatialAnchorPersistenceInfoMSFT(memAddress(container), container); + return wrap(XrSpatialAnchorPersistenceInfoMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSpatialAnchorPersistenceInfoMSFT} instance for the specified memory address. */ public static XrSpatialAnchorPersistenceInfoMSFT create(long address) { - return new XrSpatialAnchorPersistenceInfoMSFT(address, null); + return wrap(XrSpatialAnchorPersistenceInfoMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpatialAnchorPersistenceInfoMSFT createSafe(long address) { - return address == NULL ? null : new XrSpatialAnchorPersistenceInfoMSFT(address, null); + return address == NULL ? null : wrap(XrSpatialAnchorPersistenceInfoMSFT.class, address); } /** @@ -184,7 +175,7 @@ public static XrSpatialAnchorPersistenceInfoMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSpatialAnchorPersistenceInfoMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -193,7 +184,7 @@ public static XrSpatialAnchorPersistenceInfoMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSpatialAnchorPersistenceInfoMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -203,7 +194,7 @@ public static XrSpatialAnchorPersistenceInfoMSFT.Buffer calloc(int capacity) { */ public static XrSpatialAnchorPersistenceInfoMSFT.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); } /** @@ -213,13 +204,13 @@ public static XrSpatialAnchorPersistenceInfoMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSpatialAnchorPersistenceInfoMSFT.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 XrSpatialAnchorPersistenceInfoMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -228,7 +219,7 @@ public static XrSpatialAnchorPersistenceInfoMSFT.Buffer createSafe(long address, * @param stack the stack from which to allocate */ public static XrSpatialAnchorPersistenceInfoMSFT malloc(MemoryStack stack) { - return new XrSpatialAnchorPersistenceInfoMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpatialAnchorPersistenceInfoMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -237,7 +228,7 @@ public static XrSpatialAnchorPersistenceInfoMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSpatialAnchorPersistenceInfoMSFT calloc(MemoryStack stack) { - return new XrSpatialAnchorPersistenceInfoMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpatialAnchorPersistenceInfoMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -247,7 +238,7 @@ public static XrSpatialAnchorPersistenceInfoMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpatialAnchorPersistenceInfoMSFT.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); } /** @@ -257,28 +248,28 @@ public static XrSpatialAnchorPersistenceInfoMSFT.Buffer malloc(int capacity, Mem * @param capacity the buffer capacity */ public static XrSpatialAnchorPersistenceInfoMSFT.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 + XrSpatialAnchorPersistenceInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorPersistenceInfoMSFT.NEXT); } - /** Unsafe version of {@link #spatialAnchorPersistenceName}. */ - public static XrSpatialAnchorPersistenceNameMSFT nspatialAnchorPersistenceName(long struct) { return XrSpatialAnchorPersistenceNameMSFT.create(struct + XrSpatialAnchorPersistenceInfoMSFT.SPATIALANCHORPERSISTENCENAME); } - /** Unsafe version of {@link #spatialAnchor}. */ - public static long nspatialAnchor(long struct) { return memGetAddress(struct + XrSpatialAnchorPersistenceInfoMSFT.SPATIALANCHOR); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorPersistenceInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorPersistenceInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT) spatialAnchorPersistenceName}. */ - public static void nspatialAnchorPersistenceName(long struct, XrSpatialAnchorPersistenceNameMSFT value) { memCopy(value.address(), struct + XrSpatialAnchorPersistenceInfoMSFT.SPATIALANCHORPERSISTENCENAME, XrSpatialAnchorPersistenceNameMSFT.SIZEOF); } - /** Unsafe version of {@link #spatialAnchor(XrSpatialAnchorMSFT) spatialAnchor}. */ - public static void nspatialAnchor(long struct, XrSpatialAnchorMSFT value) { memPutAddress(struct + XrSpatialAnchorPersistenceInfoMSFT.SPATIALANCHOR, value.address()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialAnchorPersistenceInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorPersistenceInfoMSFT.NEXT); } + /** Unsafe version of {@link #spatialAnchorPersistenceName}. */ + public static XrSpatialAnchorPersistenceNameMSFT nspatialAnchorPersistenceName(long struct) { return XrSpatialAnchorPersistenceNameMSFT.create(struct + XrSpatialAnchorPersistenceInfoMSFT.SPATIALANCHORPERSISTENCENAME); } + /** Unsafe version of {@link #spatialAnchor}. */ + public static long nspatialAnchor(long struct) { return memGetAddress(struct + XrSpatialAnchorPersistenceInfoMSFT.SPATIALANCHOR); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorPersistenceInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorPersistenceInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT) spatialAnchorPersistenceName}. */ + public static void nspatialAnchorPersistenceName(long struct, XrSpatialAnchorPersistenceNameMSFT value) { memCopy(value.address(), struct + XrSpatialAnchorPersistenceInfoMSFT.SPATIALANCHORPERSISTENCENAME, XrSpatialAnchorPersistenceNameMSFT.SIZEOF); } + /** Unsafe version of {@link #spatialAnchor(XrSpatialAnchorMSFT) spatialAnchor}. */ + public static void nspatialAnchor(long struct, XrSpatialAnchorMSFT value) { memPutAddress(struct + XrSpatialAnchorPersistenceInfoMSFT.SPATIALANCHOR, value.address()); } /** * Validates pointer members that should not be {@code NULL}. @@ -287,9 +278,9 @@ public static XrSpatialAnchorPersistenceInfoMSFT.Buffer calloc(int capacity, Mem */ public static void validate(long struct) { check(memGetAddress(struct + XrSpatialAnchorPersistenceInfoMSFT.SPATIALANCHOR)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpatialAnchorPersistenceInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -299,9 +290,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 XrSpatialAnchorPersistenceInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpatialAnchorPersistenceInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -326,31 +317,31 @@ protected Buffer self() { protected XrSpatialAnchorPersistenceInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpatialAnchorPersistenceInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpatialAnchorPersistenceInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSpatialAnchorPersistenceInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSpatialAnchorPersistenceInfoMSFT.nnext(address()); } - /** @return a {@link XrSpatialAnchorPersistenceNameMSFT} view of the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchorPersistenceName} field. */ - public XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName() { return XrSpatialAnchorPersistenceInfoMSFT.nspatialAnchorPersistenceName(address()); } - /** @return the value of the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchor} field. */ - @NativeType("XrSpatialAnchorMSFT") - public long spatialAnchor() { return XrSpatialAnchorPersistenceInfoMSFT.nspatialAnchor(address()); } - - /** Sets the specified value to the {@link XrSpatialAnchorPersistenceInfoMSFT#type} field. */ - public XrSpatialAnchorPersistenceInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorPersistenceInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSpatialAnchorPersistence#XR_TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT} value to the {@link XrSpatialAnchorPersistenceInfoMSFT#type} field. */ - public XrSpatialAnchorPersistenceInfoMSFT.Buffer type$Default() { return type(MSFTSpatialAnchorPersistence.XR_TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSpatialAnchorPersistenceInfoMSFT#next} field. */ - public XrSpatialAnchorPersistenceInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorPersistenceInfoMSFT.nnext(address(), value); return this; } - /** Copies the specified {@link XrSpatialAnchorPersistenceNameMSFT} to the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchorPersistenceName} field. */ - public XrSpatialAnchorPersistenceInfoMSFT.Buffer spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT value) { XrSpatialAnchorPersistenceInfoMSFT.nspatialAnchorPersistenceName(address(), value); return this; } - /** Passes the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchorPersistenceName} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpatialAnchorPersistenceInfoMSFT.Buffer spatialAnchorPersistenceName(java.util.function.Consumer consumer) { consumer.accept(spatialAnchorPersistenceName()); return this; } - /** Sets the specified value to the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchor} field. */ - public XrSpatialAnchorPersistenceInfoMSFT.Buffer spatialAnchor(XrSpatialAnchorMSFT value) { XrSpatialAnchorPersistenceInfoMSFT.nspatialAnchor(address(), value); return this; } + + /** @return the value of the {@link XrSpatialAnchorPersistenceInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpatialAnchorPersistenceInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSpatialAnchorPersistenceInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSpatialAnchorPersistenceInfoMSFT.nnext(address()); } + /** @return a {@link XrSpatialAnchorPersistenceNameMSFT} view of the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchorPersistenceName} field. */ + public XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName() { return XrSpatialAnchorPersistenceInfoMSFT.nspatialAnchorPersistenceName(address()); } + /** @return the value of the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchor} field. */ + @NativeType("XrSpatialAnchorMSFT") + public long spatialAnchor() { return XrSpatialAnchorPersistenceInfoMSFT.nspatialAnchor(address()); } + + /** Sets the specified value to the {@link XrSpatialAnchorPersistenceInfoMSFT#type} field. */ + public XrSpatialAnchorPersistenceInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorPersistenceInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialAnchorPersistence#XR_TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT} value to the {@link XrSpatialAnchorPersistenceInfoMSFT#type} field. */ + public XrSpatialAnchorPersistenceInfoMSFT.Buffer type$Default() { return type(MSFTSpatialAnchorPersistence.XR_TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSpatialAnchorPersistenceInfoMSFT#next} field. */ + public XrSpatialAnchorPersistenceInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorPersistenceInfoMSFT.nnext(address(), value); return this; } + /** Copies the specified {@link XrSpatialAnchorPersistenceNameMSFT} to the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchorPersistenceName} field. */ + public XrSpatialAnchorPersistenceInfoMSFT.Buffer spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT value) { XrSpatialAnchorPersistenceInfoMSFT.nspatialAnchorPersistenceName(address(), value); return this; } + /** Passes the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchorPersistenceName} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorPersistenceInfoMSFT.Buffer spatialAnchorPersistenceName(java.util.function.Consumer consumer) { consumer.accept(spatialAnchorPersistenceName()); return this; } + /** Sets the specified value to the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchor} field. */ + public XrSpatialAnchorPersistenceInfoMSFT.Buffer spatialAnchor(XrSpatialAnchorMSFT value) { XrSpatialAnchorPersistenceInfoMSFT.nspatialAnchor(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorPersistenceNameMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorPersistenceNameMSFT.java index 5b379267eb..ae43795135 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorPersistenceNameMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorPersistenceNameMSFT.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.MSFTSpatialAnchorPersistence.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.MSFTSpatialAnchorPersistence.*; + /** * The name to identify a Spatial anchor persistence operations. * @@ -42,8 +42,8 @@ * struct XrSpatialAnchorPersistenceNameMSFT { * char {@link #name}[XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT]; * } - */ -public class XrSpatialAnchorPersistenceNameMSFT extends Struct implements NativeResource { + */ +public class XrSpatialAnchorPersistenceNameMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,26 +53,17 @@ public class XrSpatialAnchorPersistenceNameMSFT extends Struct implements NativeResource { @@ -247,9 +238,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 XrSpatialAnchorPersistenceNameMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpatialAnchorPersistenceNameMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -274,16 +265,16 @@ protected Buffer self() { protected XrSpatialAnchorPersistenceNameMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link ByteBuffer} view of the {@link XrSpatialAnchorPersistenceNameMSFT#name} field. */ - @NativeType("char[XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT]") - public ByteBuffer name() { return XrSpatialAnchorPersistenceNameMSFT.nname(address()); } - /** @return the null-terminated string stored in the {@link XrSpatialAnchorPersistenceNameMSFT#name} field. */ - @NativeType("char[XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT]") - public String nameString() { return XrSpatialAnchorPersistenceNameMSFT.nnameString(address()); } - - /** Copies the specified encoded string to the {@link XrSpatialAnchorPersistenceNameMSFT#name} field. */ - public XrSpatialAnchorPersistenceNameMSFT.Buffer name(@NativeType("char[XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT]") ByteBuffer value) { XrSpatialAnchorPersistenceNameMSFT.nname(address(), value); return this; } + + /** @return a {@link ByteBuffer} view of the {@link XrSpatialAnchorPersistenceNameMSFT#name} field. */ + @NativeType("char[XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT]") + public ByteBuffer name() { return XrSpatialAnchorPersistenceNameMSFT.nname(address()); } + /** @return the null-terminated string stored in the {@link XrSpatialAnchorPersistenceNameMSFT#name} field. */ + @NativeType("char[XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT]") + public String nameString() { return XrSpatialAnchorPersistenceNameMSFT.nnameString(address()); } + + /** Copies the specified encoded string to the {@link XrSpatialAnchorPersistenceNameMSFT#name} field. */ + public XrSpatialAnchorPersistenceNameMSFT.Buffer name(@NativeType("char[XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT]") ByteBuffer value) { XrSpatialAnchorPersistenceNameMSFT.nname(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorSpaceCreateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorSpaceCreateInfoMSFT.java index cee1a7e767..541fa0dc46 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorSpaceCreateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorSpaceCreateInfoMSFT.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 create a space from a spatial anchor. * @@ -41,8 +41,8 @@ * XrSpatialAnchorMSFT {@link #anchor}; * {@link XrPosef XrPosef} {@link #poseInAnchorSpace}; * } - */ -public class XrSpatialAnchorSpaceCreateInfoMSFT extends Struct implements NativeResource { + */ +public class XrSpatialAnchorSpaceCreateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,35 +52,26 @@ public class XrSpatialAnchorSpaceCreateInfoMSFT extends Struct consumer) { consumer.accept(poseInAnchorSpace()); 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()); } + /** a handle to an {@code XrSpatialAnchorMSFT} previously created with {@link MSFTSpatialAnchor#xrCreateSpatialAnchorMSFT CreateSpatialAnchorMSFT}. */ + @NativeType("XrSpatialAnchorMSFT") + public long anchor() { return nanchor(address()); } + /** an {@link XrPosef} defining the position and orientation of the new space’s origin relative to the anchor’s natural origin. */ + public XrPosef poseInAnchorSpace() { return nposeInAnchorSpace(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialAnchor#XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT} value to the {@link #type} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT type$Default() { return type(MSFTSpatialAnchor.XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #anchor} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT anchor(XrSpatialAnchorMSFT value) { nanchor(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #poseInAnchorSpace} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT poseInAnchorSpace(XrPosef value) { nposeInAnchorSpace(address(), value); return this; } + /** Passes the {@link #poseInAnchorSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorSpaceCreateInfoMSFT poseInAnchorSpace(java.util.function.Consumer consumer) { consumer.accept(poseInAnchorSpace()); return this; } /** Initializes this struct with the specified values. */ public XrSpatialAnchorSpaceCreateInfoMSFT set( - int type, - long next, - XrSpatialAnchorMSFT anchor, + int type, + long next, + XrSpatialAnchorMSFT anchor, XrPosef poseInAnchorSpace - ) { - type(type); - next(next); - anchor(anchor); - poseInAnchorSpace(poseInAnchorSpace); + ) { + type(type); + next(next); + anchor(anchor); + poseInAnchorSpace(poseInAnchorSpace); return this; } @@ -152,29 +143,29 @@ public XrSpatialAnchorSpaceCreateInfoMSFT set(XrSpatialAnchorSpaceCreateInfoMSFT /** Returns a new {@code XrSpatialAnchorSpaceCreateInfoMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpatialAnchorSpaceCreateInfoMSFT malloc() { - return new XrSpatialAnchorSpaceCreateInfoMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpatialAnchorSpaceCreateInfoMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpatialAnchorSpaceCreateInfoMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpatialAnchorSpaceCreateInfoMSFT calloc() { - return new XrSpatialAnchorSpaceCreateInfoMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpatialAnchorSpaceCreateInfoMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpatialAnchorSpaceCreateInfoMSFT} instance allocated with {@link BufferUtils}. */ public static XrSpatialAnchorSpaceCreateInfoMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpatialAnchorSpaceCreateInfoMSFT(memAddress(container), container); + return wrap(XrSpatialAnchorSpaceCreateInfoMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSpatialAnchorSpaceCreateInfoMSFT} instance for the specified memory address. */ public static XrSpatialAnchorSpaceCreateInfoMSFT create(long address) { - return new XrSpatialAnchorSpaceCreateInfoMSFT(address, null); + return wrap(XrSpatialAnchorSpaceCreateInfoMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpatialAnchorSpaceCreateInfoMSFT createSafe(long address) { - return address == NULL ? null : new XrSpatialAnchorSpaceCreateInfoMSFT(address, null); + return address == NULL ? null : wrap(XrSpatialAnchorSpaceCreateInfoMSFT.class, address); } /** @@ -183,7 +174,7 @@ public static XrSpatialAnchorSpaceCreateInfoMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSpatialAnchorSpaceCreateInfoMSFT.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 XrSpatialAnchorSpaceCreateInfoMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSpatialAnchorSpaceCreateInfoMSFT.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 XrSpatialAnchorSpaceCreateInfoMSFT.Buffer calloc(int capacity) { */ public static XrSpatialAnchorSpaceCreateInfoMSFT.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 XrSpatialAnchorSpaceCreateInfoMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSpatialAnchorSpaceCreateInfoMSFT.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 XrSpatialAnchorSpaceCreateInfoMSFT.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 XrSpatialAnchorSpaceCreateInfoMSFT.Buffer createSafe(long address, * @param stack the stack from which to allocate */ public static XrSpatialAnchorSpaceCreateInfoMSFT malloc(MemoryStack stack) { - return new XrSpatialAnchorSpaceCreateInfoMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpatialAnchorSpaceCreateInfoMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -236,7 +227,7 @@ public static XrSpatialAnchorSpaceCreateInfoMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSpatialAnchorSpaceCreateInfoMSFT calloc(MemoryStack stack) { - return new XrSpatialAnchorSpaceCreateInfoMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpatialAnchorSpaceCreateInfoMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -246,7 +237,7 @@ public static XrSpatialAnchorSpaceCreateInfoMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpatialAnchorSpaceCreateInfoMSFT.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,28 +247,28 @@ public static XrSpatialAnchorSpaceCreateInfoMSFT.Buffer malloc(int capacity, Mem * @param capacity the buffer capacity */ public static XrSpatialAnchorSpaceCreateInfoMSFT.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 + XrSpatialAnchorSpaceCreateInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorSpaceCreateInfoMSFT.NEXT); } - /** Unsafe version of {@link #anchor}. */ - public static long nanchor(long struct) { return memGetAddress(struct + XrSpatialAnchorSpaceCreateInfoMSFT.ANCHOR); } - /** Unsafe version of {@link #poseInAnchorSpace}. */ - public static XrPosef nposeInAnchorSpace(long struct) { return XrPosef.create(struct + XrSpatialAnchorSpaceCreateInfoMSFT.POSEINANCHORSPACE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorSpaceCreateInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorSpaceCreateInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #anchor(XrSpatialAnchorMSFT) anchor}. */ - public static void nanchor(long struct, XrSpatialAnchorMSFT value) { memPutAddress(struct + XrSpatialAnchorSpaceCreateInfoMSFT.ANCHOR, value.address()); } - /** Unsafe version of {@link #poseInAnchorSpace(XrPosef) poseInAnchorSpace}. */ - public static void nposeInAnchorSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialAnchorSpaceCreateInfoMSFT.POSEINANCHORSPACE, XrPosef.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialAnchorSpaceCreateInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorSpaceCreateInfoMSFT.NEXT); } + /** Unsafe version of {@link #anchor}. */ + public static long nanchor(long struct) { return memGetAddress(struct + XrSpatialAnchorSpaceCreateInfoMSFT.ANCHOR); } + /** Unsafe version of {@link #poseInAnchorSpace}. */ + public static XrPosef nposeInAnchorSpace(long struct) { return XrPosef.create(struct + XrSpatialAnchorSpaceCreateInfoMSFT.POSEINANCHORSPACE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorSpaceCreateInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorSpaceCreateInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #anchor(XrSpatialAnchorMSFT) anchor}. */ + public static void nanchor(long struct, XrSpatialAnchorMSFT value) { memPutAddress(struct + XrSpatialAnchorSpaceCreateInfoMSFT.ANCHOR, value.address()); } + /** Unsafe version of {@link #poseInAnchorSpace(XrPosef) poseInAnchorSpace}. */ + public static void nposeInAnchorSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialAnchorSpaceCreateInfoMSFT.POSEINANCHORSPACE, XrPosef.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -286,9 +277,9 @@ public static XrSpatialAnchorSpaceCreateInfoMSFT.Buffer calloc(int capacity, Mem */ public static void validate(long struct) { check(memGetAddress(struct + XrSpatialAnchorSpaceCreateInfoMSFT.ANCHOR)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpatialAnchorSpaceCreateInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -298,9 +289,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 XrSpatialAnchorSpaceCreateInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpatialAnchorSpaceCreateInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -325,31 +316,31 @@ protected Buffer self() { protected XrSpatialAnchorSpaceCreateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpatialAnchorSpaceCreateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpatialAnchorSpaceCreateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSpatialAnchorSpaceCreateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSpatialAnchorSpaceCreateInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSpatialAnchorSpaceCreateInfoMSFT#anchor} field. */ - @NativeType("XrSpatialAnchorMSFT") - public long anchor() { return XrSpatialAnchorSpaceCreateInfoMSFT.nanchor(address()); } - /** @return a {@link XrPosef} view of the {@link XrSpatialAnchorSpaceCreateInfoMSFT#poseInAnchorSpace} field. */ - public XrPosef poseInAnchorSpace() { return XrSpatialAnchorSpaceCreateInfoMSFT.nposeInAnchorSpace(address()); } - - /** Sets the specified value to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#type} field. */ - public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorSpaceCreateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSpatialAnchor#XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT} value to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#type} field. */ - public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialAnchor.XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#next} field. */ - public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorSpaceCreateInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#anchor} field. */ - public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer anchor(XrSpatialAnchorMSFT value) { XrSpatialAnchorSpaceCreateInfoMSFT.nanchor(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#poseInAnchorSpace} field. */ - public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer poseInAnchorSpace(XrPosef value) { XrSpatialAnchorSpaceCreateInfoMSFT.nposeInAnchorSpace(address(), value); return this; } - /** Passes the {@link XrSpatialAnchorSpaceCreateInfoMSFT#poseInAnchorSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer poseInAnchorSpace(java.util.function.Consumer consumer) { consumer.accept(poseInAnchorSpace()); return this; } + + /** @return the value of the {@link XrSpatialAnchorSpaceCreateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpatialAnchorSpaceCreateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSpatialAnchorSpaceCreateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSpatialAnchorSpaceCreateInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSpatialAnchorSpaceCreateInfoMSFT#anchor} field. */ + @NativeType("XrSpatialAnchorMSFT") + public long anchor() { return XrSpatialAnchorSpaceCreateInfoMSFT.nanchor(address()); } + /** @return a {@link XrPosef} view of the {@link XrSpatialAnchorSpaceCreateInfoMSFT#poseInAnchorSpace} field. */ + public XrPosef poseInAnchorSpace() { return XrSpatialAnchorSpaceCreateInfoMSFT.nposeInAnchorSpace(address()); } + + /** Sets the specified value to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#type} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorSpaceCreateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialAnchor#XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT} value to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#type} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialAnchor.XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#next} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorSpaceCreateInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#anchor} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer anchor(XrSpatialAnchorMSFT value) { XrSpatialAnchorSpaceCreateInfoMSFT.nanchor(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#poseInAnchorSpace} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer poseInAnchorSpace(XrPosef value) { XrSpatialAnchorSpaceCreateInfoMSFT.nposeInAnchorSpace(address(), value); return this; } + /** Passes the {@link XrSpatialAnchorSpaceCreateInfoMSFT#poseInAnchorSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer poseInAnchorSpace(java.util.function.Consumer consumer) { consumer.accept(poseInAnchorSpace()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorStoreConnectionMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorStoreConnectionMSFT.java index c12a7fd6af..51dbbeb73d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorStoreConnectionMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorStoreConnectionMSFT.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrSpatialAnchorStoreConnectionMSFT} handle. */ + +/** Wraps an {@code XrSpatialAnchorStoreConnectionMSFT} handle. */ public class XrSpatialAnchorStoreConnectionMSFT 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/XrSpatialGraphNodeBindingMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingMSFT.java index 11f62b20cd..9fdfdc8938 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingMSFT.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrSpatialGraphNodeBindingMSFT} handle. */ + +/** Wraps an {@code XrSpatialGraphNodeBindingMSFT} handle. */ public class XrSpatialGraphNodeBindingMSFT 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/XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.java index 1555282b04..81ccbc44a2 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.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 information to get node binding properties. * @@ -37,8 +37,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrSpatialGraphNodeBindingPropertiesGetInfoMSFT extends Struct implements NativeResource { + */ +public class XrSpatialGraphNodeBindingPropertiesGetInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,29 +48,20 @@ public class XrSpatialGraphNodeBindingPropertiesGetInfoMSFT extends Struct implements NativeResource { @@ -256,9 +247,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 XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -283,20 +274,20 @@ protected Buffer self() { protected XrSpatialGraphNodeBindingPropertiesGetInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.nnext(address()); } - - /** Sets the specified value to the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#type} field. */ - public XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT} value to the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#type} field. */ - public XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.Buffer type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT); } - /** Sets the specified value to the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#next} field. */ - public XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.nnext(address()); } + + /** Sets the specified value to the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#type} field. */ + public XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT} value to the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#type} field. */ + public XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.Buffer type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT); } + /** Sets the specified value to the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#next} field. */ + public XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingPropertiesMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingPropertiesMSFT.java index 8bc9eb7c0a..92d13e03e7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingPropertiesMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingPropertiesMSFT.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.MSFTSpatialGraphBridge.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.MSFTSpatialGraphBridge.*; + /** * The spatial graph node binding properties. * @@ -42,8 +42,8 @@ * uint8_t {@link #nodeId}[XR_GUID_SIZE_MSFT]; * {@link XrPosef XrPosef} {@link #poseInNodeSpace}; * } - */ -public class XrSpatialGraphNodeBindingPropertiesMSFT extends Struct implements NativeResource { + */ +public class XrSpatialGraphNodeBindingPropertiesMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,35 +53,26 @@ public class XrSpatialGraphNodeBindingPropertiesMSFT extends Struct consumer) { consumer.accept(poseInNodeSpace()); 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 *") + public long next() { return nnext(address()); } + /** a global unique identifier (a.k.a. GUID or 16 byte array), representing the spatial graph node. */ + @NativeType("uint8_t[XR_GUID_SIZE_MSFT]") + public ByteBuffer nodeId() { return nnodeId(address()); } + /** a global unique identifier (a.k.a. GUID or 16 byte array), representing the spatial graph node. */ + @NativeType("uint8_t") + public byte nodeId(int index) { return nnodeId(address(), index); } + /** an {@link XrPosef} defining the pose in the underlying node’s space. */ + public XrPosef poseInNodeSpace() { return nposeInNodeSpace(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT} value to the {@link #type} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link ByteBuffer} to the {@link #nodeId} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT nodeId(@NativeType("uint8_t[XR_GUID_SIZE_MSFT]") ByteBuffer value) { nnodeId(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link #nodeId} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT nodeId(int index, @NativeType("uint8_t") byte value) { nnodeId(address(), index, value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #poseInNodeSpace} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT poseInNodeSpace(XrPosef value) { nposeInNodeSpace(address(), value); return this; } + /** Passes the {@link #poseInNodeSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialGraphNodeBindingPropertiesMSFT poseInNodeSpace(java.util.function.Consumer consumer) { consumer.accept(poseInNodeSpace()); return this; } /** Initializes this struct with the specified values. */ public XrSpatialGraphNodeBindingPropertiesMSFT set( - int type, - long next, - ByteBuffer nodeId, + int type, + long next, + ByteBuffer nodeId, XrPosef poseInNodeSpace - ) { - type(type); - next(next); - nodeId(nodeId); - poseInNodeSpace(poseInNodeSpace); + ) { + type(type); + next(next); + nodeId(nodeId); + poseInNodeSpace(poseInNodeSpace); return this; } @@ -158,29 +149,29 @@ public XrSpatialGraphNodeBindingPropertiesMSFT set(XrSpatialGraphNodeBindingProp /** Returns a new {@code XrSpatialGraphNodeBindingPropertiesMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpatialGraphNodeBindingPropertiesMSFT malloc() { - return new XrSpatialGraphNodeBindingPropertiesMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpatialGraphNodeBindingPropertiesMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpatialGraphNodeBindingPropertiesMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpatialGraphNodeBindingPropertiesMSFT calloc() { - return new XrSpatialGraphNodeBindingPropertiesMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpatialGraphNodeBindingPropertiesMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpatialGraphNodeBindingPropertiesMSFT} instance allocated with {@link BufferUtils}. */ public static XrSpatialGraphNodeBindingPropertiesMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpatialGraphNodeBindingPropertiesMSFT(memAddress(container), container); + return wrap(XrSpatialGraphNodeBindingPropertiesMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSpatialGraphNodeBindingPropertiesMSFT} instance for the specified memory address. */ public static XrSpatialGraphNodeBindingPropertiesMSFT create(long address) { - return new XrSpatialGraphNodeBindingPropertiesMSFT(address, null); + return wrap(XrSpatialGraphNodeBindingPropertiesMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpatialGraphNodeBindingPropertiesMSFT createSafe(long address) { - return address == NULL ? null : new XrSpatialGraphNodeBindingPropertiesMSFT(address, null); + return address == NULL ? null : wrap(XrSpatialGraphNodeBindingPropertiesMSFT.class, address); } /** @@ -189,7 +180,7 @@ public static XrSpatialGraphNodeBindingPropertiesMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSpatialGraphNodeBindingPropertiesMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -198,7 +189,7 @@ public static XrSpatialGraphNodeBindingPropertiesMSFT.Buffer malloc(int capacity * @param capacity the buffer capacity */ public static XrSpatialGraphNodeBindingPropertiesMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -208,7 +199,7 @@ public static XrSpatialGraphNodeBindingPropertiesMSFT.Buffer calloc(int capacity */ public static XrSpatialGraphNodeBindingPropertiesMSFT.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); } /** @@ -218,13 +209,13 @@ public static XrSpatialGraphNodeBindingPropertiesMSFT.Buffer create(int capacity * @param capacity the buffer capacity */ public static XrSpatialGraphNodeBindingPropertiesMSFT.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 XrSpatialGraphNodeBindingPropertiesMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -233,7 +224,7 @@ public static XrSpatialGraphNodeBindingPropertiesMSFT.Buffer createSafe(long add * @param stack the stack from which to allocate */ public static XrSpatialGraphNodeBindingPropertiesMSFT malloc(MemoryStack stack) { - return new XrSpatialGraphNodeBindingPropertiesMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpatialGraphNodeBindingPropertiesMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -242,7 +233,7 @@ public static XrSpatialGraphNodeBindingPropertiesMSFT malloc(MemoryStack stack) * @param stack the stack from which to allocate */ public static XrSpatialGraphNodeBindingPropertiesMSFT calloc(MemoryStack stack) { - return new XrSpatialGraphNodeBindingPropertiesMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpatialGraphNodeBindingPropertiesMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -252,7 +243,7 @@ public static XrSpatialGraphNodeBindingPropertiesMSFT calloc(MemoryStack stack) * @param capacity the buffer capacity */ public static XrSpatialGraphNodeBindingPropertiesMSFT.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); } /** @@ -262,41 +253,41 @@ public static XrSpatialGraphNodeBindingPropertiesMSFT.Buffer malloc(int capacity * @param capacity the buffer capacity */ public static XrSpatialGraphNodeBindingPropertiesMSFT.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 + XrSpatialGraphNodeBindingPropertiesMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpatialGraphNodeBindingPropertiesMSFT.NEXT); } - /** Unsafe version of {@link #nodeId}. */ - public static ByteBuffer nnodeId(long struct) { return memByteBuffer(struct + XrSpatialGraphNodeBindingPropertiesMSFT.NODEID, XR_GUID_SIZE_MSFT); } - /** Unsafe version of {@link #nodeId(int) nodeId}. */ - public static byte nnodeId(long struct, int index) { + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialGraphNodeBindingPropertiesMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpatialGraphNodeBindingPropertiesMSFT.NEXT); } + /** Unsafe version of {@link #nodeId}. */ + public static ByteBuffer nnodeId(long struct) { return memByteBuffer(struct + XrSpatialGraphNodeBindingPropertiesMSFT.NODEID, XR_GUID_SIZE_MSFT); } + /** Unsafe version of {@link #nodeId(int) nodeId}. */ + public static byte nnodeId(long struct, int index) { return UNSAFE.getByte(null, struct + XrSpatialGraphNodeBindingPropertiesMSFT.NODEID + check(index, XR_GUID_SIZE_MSFT) * 1); - } - /** Unsafe version of {@link #poseInNodeSpace}. */ - public static XrPosef nposeInNodeSpace(long struct) { return XrPosef.create(struct + XrSpatialGraphNodeBindingPropertiesMSFT.POSEINNODESPACE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialGraphNodeBindingPropertiesMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialGraphNodeBindingPropertiesMSFT.NEXT, value); } - /** Unsafe version of {@link #nodeId(ByteBuffer) nodeId}. */ - public static void nnodeId(long struct, ByteBuffer value) { - if (CHECKS) { checkGT(value, XR_GUID_SIZE_MSFT); } - memCopy(memAddress(value), struct + XrSpatialGraphNodeBindingPropertiesMSFT.NODEID, value.remaining() * 1); - } - /** Unsafe version of {@link #nodeId(int, byte) nodeId}. */ - public static void nnodeId(long struct, int index, byte value) { - UNSAFE.putByte(null, struct + XrSpatialGraphNodeBindingPropertiesMSFT.NODEID + check(index, XR_GUID_SIZE_MSFT) * 1, value); - } - /** Unsafe version of {@link #poseInNodeSpace(XrPosef) poseInNodeSpace}. */ - public static void nposeInNodeSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialGraphNodeBindingPropertiesMSFT.POSEINNODESPACE, XrPosef.SIZEOF); } - - // ----------------------------------- + } + /** Unsafe version of {@link #poseInNodeSpace}. */ + public static XrPosef nposeInNodeSpace(long struct) { return XrPosef.create(struct + XrSpatialGraphNodeBindingPropertiesMSFT.POSEINNODESPACE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialGraphNodeBindingPropertiesMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialGraphNodeBindingPropertiesMSFT.NEXT, value); } + /** Unsafe version of {@link #nodeId(ByteBuffer) nodeId}. */ + public static void nnodeId(long struct, ByteBuffer value) { + if (CHECKS) { checkGT(value, XR_GUID_SIZE_MSFT); } + memCopy(memAddress(value), struct + XrSpatialGraphNodeBindingPropertiesMSFT.NODEID, value.remaining() * 1); + } + /** Unsafe version of {@link #nodeId(int, byte) nodeId}. */ + public static void nnodeId(long struct, int index, byte value) { + UNSAFE.putByte(null, struct + XrSpatialGraphNodeBindingPropertiesMSFT.NODEID + check(index, XR_GUID_SIZE_MSFT) * 1, value); + } + /** Unsafe version of {@link #poseInNodeSpace(XrPosef) poseInNodeSpace}. */ + public static void nposeInNodeSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialGraphNodeBindingPropertiesMSFT.POSEINNODESPACE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSpatialGraphNodeBindingPropertiesMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -306,9 +297,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 XrSpatialGraphNodeBindingPropertiesMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpatialGraphNodeBindingPropertiesMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -333,36 +324,36 @@ protected Buffer self() { protected XrSpatialGraphNodeBindingPropertiesMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpatialGraphNodeBindingPropertiesMSFT.ntype(address()); } - /** @return the value of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSpatialGraphNodeBindingPropertiesMSFT.nnext(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#nodeId} field. */ - @NativeType("uint8_t[XR_GUID_SIZE_MSFT]") - public ByteBuffer nodeId() { return XrSpatialGraphNodeBindingPropertiesMSFT.nnodeId(address()); } - /** @return the value at the specified index of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#nodeId} field. */ - @NativeType("uint8_t") - public byte nodeId(int index) { return XrSpatialGraphNodeBindingPropertiesMSFT.nnodeId(address(), index); } - /** @return a {@link XrPosef} view of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#poseInNodeSpace} field. */ - public XrPosef poseInNodeSpace() { return XrSpatialGraphNodeBindingPropertiesMSFT.nposeInNodeSpace(address()); } - - /** Sets the specified value to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#type} field. */ - public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialGraphNodeBindingPropertiesMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT} value to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#type} field. */ - public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT); } - /** Sets the specified value to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#next} field. */ - public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer next(@NativeType("void *") long value) { XrSpatialGraphNodeBindingPropertiesMSFT.nnext(address(), value); return this; } - /** Copies the specified {@link ByteBuffer} to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#nodeId} field. */ - public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer nodeId(@NativeType("uint8_t[XR_GUID_SIZE_MSFT]") ByteBuffer value) { XrSpatialGraphNodeBindingPropertiesMSFT.nnodeId(address(), value); return this; } - /** Sets the specified value at the specified index of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#nodeId} field. */ - public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer nodeId(int index, @NativeType("uint8_t") byte value) { XrSpatialGraphNodeBindingPropertiesMSFT.nnodeId(address(), index, value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#poseInNodeSpace} field. */ - public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer poseInNodeSpace(XrPosef value) { XrSpatialGraphNodeBindingPropertiesMSFT.nposeInNodeSpace(address(), value); return this; } - /** Passes the {@link XrSpatialGraphNodeBindingPropertiesMSFT#poseInNodeSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer poseInNodeSpace(java.util.function.Consumer consumer) { consumer.accept(poseInNodeSpace()); return this; } + + /** @return the value of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpatialGraphNodeBindingPropertiesMSFT.ntype(address()); } + /** @return the value of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSpatialGraphNodeBindingPropertiesMSFT.nnext(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#nodeId} field. */ + @NativeType("uint8_t[XR_GUID_SIZE_MSFT]") + public ByteBuffer nodeId() { return XrSpatialGraphNodeBindingPropertiesMSFT.nnodeId(address()); } + /** @return the value at the specified index of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#nodeId} field. */ + @NativeType("uint8_t") + public byte nodeId(int index) { return XrSpatialGraphNodeBindingPropertiesMSFT.nnodeId(address(), index); } + /** @return a {@link XrPosef} view of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#poseInNodeSpace} field. */ + public XrPosef poseInNodeSpace() { return XrSpatialGraphNodeBindingPropertiesMSFT.nposeInNodeSpace(address()); } + + /** Sets the specified value to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#type} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialGraphNodeBindingPropertiesMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT} value to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#type} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT); } + /** Sets the specified value to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#next} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer next(@NativeType("void *") long value) { XrSpatialGraphNodeBindingPropertiesMSFT.nnext(address(), value); return this; } + /** Copies the specified {@link ByteBuffer} to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#nodeId} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer nodeId(@NativeType("uint8_t[XR_GUID_SIZE_MSFT]") ByteBuffer value) { XrSpatialGraphNodeBindingPropertiesMSFT.nnodeId(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#nodeId} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer nodeId(int index, @NativeType("uint8_t") byte value) { XrSpatialGraphNodeBindingPropertiesMSFT.nnodeId(address(), index, value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#poseInNodeSpace} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer poseInNodeSpace(XrPosef value) { XrSpatialGraphNodeBindingPropertiesMSFT.nposeInNodeSpace(address(), value); return this; } + /** Passes the {@link XrSpatialGraphNodeBindingPropertiesMSFT#poseInNodeSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer poseInNodeSpace(java.util.function.Consumer consumer) { consumer.accept(poseInNodeSpace()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeSpaceCreateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeSpaceCreateInfoMSFT.java index 59fc6302b1..4d90450e52 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeSpaceCreateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeSpaceCreateInfoMSFT.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.MSFTSpatialGraphBridge.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.MSFTSpatialGraphBridge.*; + /** * The information to create space from a spatial graph node. * @@ -44,8 +44,8 @@ * uint8_t {@link #nodeId}[XR_GUID_SIZE_MSFT]; * {@link XrPosef XrPosef} {@link #pose}; * } - */ -public class XrSpatialGraphNodeSpaceCreateInfoMSFT extends Struct implements NativeResource { + */ +public class XrSpatialGraphNodeSpaceCreateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,38 +55,29 @@ public class XrSpatialGraphNodeSpaceCreateInfoMSFT extends Struct consumer) { consumer.accept(pose()); 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 XrSpatialGraphNodeTypeMSFT} specifying the spatial node type. */ + @NativeType("XrSpatialGraphNodeTypeMSFT") + public int nodeType() { return nnodeType(address()); } + /** a global unique identifier (a.k.a. GUID or 16 byte array), representing the spatial node that is being tracked. */ + @NativeType("uint8_t[XR_GUID_SIZE_MSFT]") + public ByteBuffer nodeId() { return nnodeId(address()); } + /** a global unique identifier (a.k.a. GUID or 16 byte array), representing the spatial node that is being tracked. */ + @NativeType("uint8_t") + public byte nodeId(int index) { return nnodeId(address(), index); } + /** an {@link XrPosef} defining the position and orientation of the new space’s origin within the natural reference frame of the spatial graph node. */ + public XrPosef pose() { return npose(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT} value to the {@link #type} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #nodeType} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT nodeType(@NativeType("XrSpatialGraphNodeTypeMSFT") int value) { nnodeType(address(), value); return this; } + /** Copies the specified {@link ByteBuffer} to the {@link #nodeId} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT nodeId(@NativeType("uint8_t[XR_GUID_SIZE_MSFT]") ByteBuffer value) { nnodeId(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link #nodeId} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT nodeId(int index, @NativeType("uint8_t") byte value) { nnodeId(address(), index, value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } /** Initializes this struct with the specified values. */ public XrSpatialGraphNodeSpaceCreateInfoMSFT set( - int type, - long next, - int nodeType, - ByteBuffer nodeId, + int type, + long next, + int nodeType, + ByteBuffer nodeId, XrPosef pose - ) { - type(type); - next(next); - nodeType(nodeType); - nodeId(nodeId); - pose(pose); + ) { + type(type); + next(next); + nodeType(nodeType); + nodeId(nodeId); + pose(pose); return this; } @@ -170,29 +161,29 @@ public XrSpatialGraphNodeSpaceCreateInfoMSFT set(XrSpatialGraphNodeSpaceCreateIn /** Returns a new {@code XrSpatialGraphNodeSpaceCreateInfoMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpatialGraphNodeSpaceCreateInfoMSFT malloc() { - return new XrSpatialGraphNodeSpaceCreateInfoMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpatialGraphNodeSpaceCreateInfoMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpatialGraphNodeSpaceCreateInfoMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpatialGraphNodeSpaceCreateInfoMSFT calloc() { - return new XrSpatialGraphNodeSpaceCreateInfoMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpatialGraphNodeSpaceCreateInfoMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpatialGraphNodeSpaceCreateInfoMSFT} instance allocated with {@link BufferUtils}. */ public static XrSpatialGraphNodeSpaceCreateInfoMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpatialGraphNodeSpaceCreateInfoMSFT(memAddress(container), container); + return wrap(XrSpatialGraphNodeSpaceCreateInfoMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSpatialGraphNodeSpaceCreateInfoMSFT} instance for the specified memory address. */ public static XrSpatialGraphNodeSpaceCreateInfoMSFT create(long address) { - return new XrSpatialGraphNodeSpaceCreateInfoMSFT(address, null); + return wrap(XrSpatialGraphNodeSpaceCreateInfoMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpatialGraphNodeSpaceCreateInfoMSFT createSafe(long address) { - return address == NULL ? null : new XrSpatialGraphNodeSpaceCreateInfoMSFT(address, null); + return address == NULL ? null : wrap(XrSpatialGraphNodeSpaceCreateInfoMSFT.class, address); } /** @@ -201,7 +192,7 @@ public static XrSpatialGraphNodeSpaceCreateInfoMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -210,7 +201,7 @@ public static XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer malloc(int capacity) * @param capacity the buffer capacity */ public static XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -220,7 +211,7 @@ public static XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer calloc(int capacity) */ public static XrSpatialGraphNodeSpaceCreateInfoMSFT.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); } /** @@ -230,13 +221,13 @@ public static XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer create(int capacity) * @param capacity the buffer capacity */ public static XrSpatialGraphNodeSpaceCreateInfoMSFT.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 XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -245,7 +236,7 @@ public static XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer createSafe(long addre * @param stack the stack from which to allocate */ public static XrSpatialGraphNodeSpaceCreateInfoMSFT malloc(MemoryStack stack) { - return new XrSpatialGraphNodeSpaceCreateInfoMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpatialGraphNodeSpaceCreateInfoMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -254,7 +245,7 @@ public static XrSpatialGraphNodeSpaceCreateInfoMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSpatialGraphNodeSpaceCreateInfoMSFT calloc(MemoryStack stack) { - return new XrSpatialGraphNodeSpaceCreateInfoMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpatialGraphNodeSpaceCreateInfoMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -264,7 +255,7 @@ public static XrSpatialGraphNodeSpaceCreateInfoMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSpatialGraphNodeSpaceCreateInfoMSFT.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); } /** @@ -274,45 +265,45 @@ public static XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer malloc(int capacity, * @param capacity the buffer capacity */ public static XrSpatialGraphNodeSpaceCreateInfoMSFT.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 + XrSpatialGraphNodeSpaceCreateInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NEXT); } - /** Unsafe version of {@link #nodeType}. */ - public static int nnodeType(long struct) { return UNSAFE.getInt(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODETYPE); } - /** Unsafe version of {@link #nodeId}. */ - public static ByteBuffer nnodeId(long struct) { return memByteBuffer(struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODEID, XR_GUID_SIZE_MSFT); } - /** Unsafe version of {@link #nodeId(int) nodeId}. */ - public static byte nnodeId(long struct, int index) { + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NEXT); } + /** Unsafe version of {@link #nodeType}. */ + public static int nnodeType(long struct) { return UNSAFE.getInt(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODETYPE); } + /** Unsafe version of {@link #nodeId}. */ + public static ByteBuffer nnodeId(long struct) { return memByteBuffer(struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODEID, XR_GUID_SIZE_MSFT); } + /** Unsafe version of {@link #nodeId(int) nodeId}. */ + public static byte nnodeId(long struct, int index) { return UNSAFE.getByte(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODEID + check(index, XR_GUID_SIZE_MSFT) * 1); - } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.POSE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #nodeType(int) nodeType}. */ - public static void nnodeType(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODETYPE, value); } - /** Unsafe version of {@link #nodeId(ByteBuffer) nodeId}. */ - public static void nnodeId(long struct, ByteBuffer value) { - if (CHECKS) { checkGT(value, XR_GUID_SIZE_MSFT); } - memCopy(memAddress(value), struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODEID, value.remaining() * 1); - } - /** Unsafe version of {@link #nodeId(int, byte) nodeId}. */ - public static void nnodeId(long struct, int index, byte value) { - UNSAFE.putByte(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODEID + check(index, XR_GUID_SIZE_MSFT) * 1, value); - } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.POSE, XrPosef.SIZEOF); } - - // ----------------------------------- + } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.POSE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #nodeType(int) nodeType}. */ + public static void nnodeType(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODETYPE, value); } + /** Unsafe version of {@link #nodeId(ByteBuffer) nodeId}. */ + public static void nnodeId(long struct, ByteBuffer value) { + if (CHECKS) { checkGT(value, XR_GUID_SIZE_MSFT); } + memCopy(memAddress(value), struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODEID, value.remaining() * 1); + } + /** Unsafe version of {@link #nodeId(int, byte) nodeId}. */ + public static void nnodeId(long struct, int index, byte value) { + UNSAFE.putByte(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODEID + check(index, XR_GUID_SIZE_MSFT) * 1, value); + } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.POSE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSpatialGraphNodeSpaceCreateInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -322,9 +313,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 XrSpatialGraphNodeSpaceCreateInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -349,41 +340,41 @@ protected Buffer self() { protected XrSpatialGraphNodeSpaceCreateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeType} field. */ - @NativeType("XrSpatialGraphNodeTypeMSFT") - public int nodeType() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeType(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeId} field. */ - @NativeType("uint8_t[XR_GUID_SIZE_MSFT]") - public ByteBuffer nodeId() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeId(address()); } - /** @return the value at the specified index of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeId} field. */ - @NativeType("uint8_t") - public byte nodeId(int index) { return XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeId(address(), index); } - /** @return a {@link XrPosef} view of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#pose} field. */ - public XrPosef pose() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.npose(address()); } - - /** Sets the specified value to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#type} field. */ - public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT} value to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#type} field. */ - public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#next} field. */ - public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeType} field. */ - public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer nodeType(@NativeType("XrSpatialGraphNodeTypeMSFT") int value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeType(address(), value); return this; } - /** Copies the specified {@link ByteBuffer} to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeId} field. */ - public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer nodeId(@NativeType("uint8_t[XR_GUID_SIZE_MSFT]") ByteBuffer value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeId(address(), value); return this; } - /** Sets the specified value at the specified index of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeId} field. */ - public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer nodeId(int index, @NativeType("uint8_t") byte value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeId(address(), index, value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#pose} field. */ - public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer pose(XrPosef value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.npose(address(), value); return this; } - /** Passes the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + + /** @return the value of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeType} field. */ + @NativeType("XrSpatialGraphNodeTypeMSFT") + public int nodeType() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeType(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeId} field. */ + @NativeType("uint8_t[XR_GUID_SIZE_MSFT]") + public ByteBuffer nodeId() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeId(address()); } + /** @return the value at the specified index of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeId} field. */ + @NativeType("uint8_t") + public byte nodeId(int index) { return XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeId(address(), index); } + /** @return a {@link XrPosef} view of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#pose} field. */ + public XrPosef pose() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.npose(address()); } + + /** Sets the specified value to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#type} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT} value to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#type} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#next} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeType} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer nodeType(@NativeType("XrSpatialGraphNodeTypeMSFT") int value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeType(address(), value); return this; } + /** Copies the specified {@link ByteBuffer} to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeId} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer nodeId(@NativeType("uint8_t[XR_GUID_SIZE_MSFT]") ByteBuffer value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeId(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeId} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer nodeId(int index, @NativeType("uint8_t") byte value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeId(address(), index, value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#pose} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer pose(XrPosef value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.npose(address(), value); return this; } + /** Passes the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphStaticNodeBindingCreateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphStaticNodeBindingCreateInfoMSFT.java index f6ab1900ec..fb91e6a7c0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphStaticNodeBindingCreateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphStaticNodeBindingCreateInfoMSFT.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.*; + /** * The information to create a spatial graph static node binding handle. * @@ -42,8 +42,8 @@ * {@link XrPosef XrPosef} {@link #poseInSpace}; * XrTime {@link #time}; * } - */ -public class XrSpatialGraphStaticNodeBindingCreateInfoMSFT extends Struct implements NativeResource { + */ +public class XrSpatialGraphStaticNodeBindingCreateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,38 +53,29 @@ public class XrSpatialGraphStaticNodeBindingCreateInfoMSFT extends Struct consumer) { consumer.accept(poseInSpace()); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrSpatialGraphStaticNodeBindingCreateInfoMSFT 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. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a handle to the {@code XrSpace} in which {@code poseInSpace} is specified. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the {@link XrPosef} within {@code space} at {@code time}. */ + public XrPosef poseInSpace() { return nposeInSpace(address()); } + /** the {@code XrTime} at which {@code poseInSpace} will be evaluated within {@code space}. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT} value to the {@link #type} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT space(XrSpace value) { nspace(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #poseInSpace} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT poseInSpace(XrPosef value) { nposeInSpace(address(), value); return this; } + /** Passes the {@link #poseInSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT poseInSpace(java.util.function.Consumer consumer) { consumer.accept(poseInSpace()); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpatialGraphStaticNodeBindingCreateInfoMSFT set( - int type, - long next, - XrSpace space, - XrPosef poseInSpace, + int type, + long next, + XrSpace space, + XrPosef poseInSpace, long time - ) { - type(type); - next(next); - space(space); - poseInSpace(poseInSpace); - time(time); + ) { + type(type); + next(next); + space(space); + poseInSpace(poseInSpace); + time(time); return this; } @@ -163,29 +154,29 @@ public XrSpatialGraphStaticNodeBindingCreateInfoMSFT set(XrSpatialGraphStaticNod /** Returns a new {@code XrSpatialGraphStaticNodeBindingCreateInfoMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT malloc() { - return new XrSpatialGraphStaticNodeBindingCreateInfoMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSpatialGraphStaticNodeBindingCreateInfoMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSpatialGraphStaticNodeBindingCreateInfoMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT calloc() { - return new XrSpatialGraphStaticNodeBindingCreateInfoMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSpatialGraphStaticNodeBindingCreateInfoMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSpatialGraphStaticNodeBindingCreateInfoMSFT} instance allocated with {@link BufferUtils}. */ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSpatialGraphStaticNodeBindingCreateInfoMSFT(memAddress(container), container); + return wrap(XrSpatialGraphStaticNodeBindingCreateInfoMSFT.class, memAddress(container), container); } /** Returns a new {@code XrSpatialGraphStaticNodeBindingCreateInfoMSFT} instance for the specified memory address. */ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT create(long address) { - return new XrSpatialGraphStaticNodeBindingCreateInfoMSFT(address, null); + return wrap(XrSpatialGraphStaticNodeBindingCreateInfoMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT createSafe(long address) { - return address == NULL ? null : new XrSpatialGraphStaticNodeBindingCreateInfoMSFT(address, null); + return address == NULL ? null : wrap(XrSpatialGraphStaticNodeBindingCreateInfoMSFT.class, address); } /** @@ -194,7 +185,7 @@ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT createSafe(long addr * @param capacity the buffer capacity */ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -203,7 +194,7 @@ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer malloc(int ca * @param capacity the buffer capacity */ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -213,7 +204,7 @@ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer calloc(int ca */ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT.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); } /** @@ -223,13 +214,13 @@ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer create(int ca * @param capacity the buffer capacity */ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT.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 XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -238,7 +229,7 @@ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer createSafe(lo * @param stack the stack from which to allocate */ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT malloc(MemoryStack stack) { - return new XrSpatialGraphStaticNodeBindingCreateInfoMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSpatialGraphStaticNodeBindingCreateInfoMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -247,7 +238,7 @@ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT malloc(MemoryStack s * @param stack the stack from which to allocate */ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT calloc(MemoryStack stack) { - return new XrSpatialGraphStaticNodeBindingCreateInfoMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSpatialGraphStaticNodeBindingCreateInfoMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -257,7 +248,7 @@ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT calloc(MemoryStack s * @param capacity the buffer capacity */ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT.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); } /** @@ -267,32 +258,32 @@ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer malloc(int ca * @param capacity the buffer capacity */ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT.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 + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.NEXT); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.SPACE); } - /** Unsafe version of {@link #poseInSpace}. */ - public static XrPosef nposeInSpace(long struct) { return XrPosef.create(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.POSEINSPACE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.SPACE, value.address()); } - /** Unsafe version of {@link #poseInSpace(XrPosef) poseInSpace}. */ - public static void nposeInSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.POSEINSPACE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.TIME, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.NEXT); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.SPACE); } + /** Unsafe version of {@link #poseInSpace}. */ + public static XrPosef nposeInSpace(long struct) { return XrPosef.create(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.POSEINSPACE); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.SPACE, value.address()); } + /** Unsafe version of {@link #poseInSpace(XrPosef) poseInSpace}. */ + public static void nposeInSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.POSEINSPACE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.TIME, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -301,9 +292,9 @@ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer calloc(int ca */ public static void validate(long struct) { check(memGetAddress(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.SPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -313,9 +304,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 XrSpatialGraphStaticNodeBindingCreateInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -340,36 +331,36 @@ protected Buffer self() { protected XrSpatialGraphStaticNodeBindingCreateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#space} field. */ - @NativeType("XrSpace") - public long space() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nspace(address()); } - /** @return a {@link XrPosef} view of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#poseInSpace} field. */ - public XrPosef poseInSpace() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nposeInSpace(address()); } - /** @return the value of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#time} field. */ - @NativeType("XrTime") - public long time() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.ntime(address()); } - - /** Sets the specified value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#type} field. */ - public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT} value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#type} field. */ - public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#next} field. */ - public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#space} field. */ - public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer space(XrSpace value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nspace(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#poseInSpace} field. */ - public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer poseInSpace(XrPosef value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nposeInSpace(address(), value); return this; } - /** Passes the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#poseInSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer poseInSpace(java.util.function.Consumer consumer) { consumer.accept(poseInSpace()); return this; } - /** Sets the specified value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#time} field. */ - public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer time(@NativeType("XrTime") long value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.ntime(address(), value); return this; } + + /** @return the value of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#space} field. */ + @NativeType("XrSpace") + public long space() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nspace(address()); } + /** @return a {@link XrPosef} view of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#poseInSpace} field. */ + public XrPosef poseInSpace() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nposeInSpace(address()); } + /** @return the value of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#time} field. */ + @NativeType("XrTime") + public long time() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.ntime(address()); } + + /** Sets the specified value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#type} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT} value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#type} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#next} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#space} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer space(XrSpace value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nspace(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#poseInSpace} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer poseInSpace(XrPosef value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nposeInSpace(address(), value); return this; } + /** Passes the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#poseInSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer poseInSpace(java.util.function.Consumer consumer) { consumer.accept(poseInSpace()); return this; } + /** Sets the specified value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#time} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer time(@NativeType("XrTime") long value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchain.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchain.java index 026a6ec09c..cea87886cb 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchain.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchain.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrSwapchain} handle. */ + +/** Wraps an {@code XrSwapchain} handle. */ public class XrSwapchain 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/XrSwapchainCreateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainCreateInfo.java index a2c8e77063..465f1075b7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainCreateInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainCreateInfo.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.*; + /** * Creation info for a swapchain. * @@ -47,8 +47,8 @@ * uint32_t {@link #arraySize}; * uint32_t {@link #mipCount}; * } - */ -public class XrSwapchainCreateInfo extends Struct implements NativeResource { + */ +public class XrSwapchainCreateInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -58,56 +58,47 @@ public class XrSwapchainCreateInfo extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - CREATEFLAGS, - USAGEFLAGS, - FORMAT, - SAMPLECOUNT, - WIDTH, - HEIGHT, - FACECOUNT, - ARRAYSIZE, - MIPCOUNT; + TYPE, + NEXT, + CREATEFLAGS, + USAGEFLAGS, + FORMAT, + SAMPLECOUNT, + WIDTH, + HEIGHT, + FACECOUNT, + ARRAYSIZE, + MIPCOUNT; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(8), - __member(8), - __member(4), - __member(4), - __member(4), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(8), + __member(8), + __member(4), + __member(4), + __member(4), + __member(4), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - CREATEFLAGS = layout.offsetof(2); - USAGEFLAGS = layout.offsetof(3); - FORMAT = layout.offsetof(4); - SAMPLECOUNT = layout.offsetof(5); - WIDTH = layout.offsetof(6); - HEIGHT = layout.offsetof(7); - FACECOUNT = layout.offsetof(8); - ARRAYSIZE = layout.offsetof(9); - MIPCOUNT = layout.offsetof(10); - } - - protected XrSwapchainCreateInfo(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSwapchainCreateInfo create(long address, @Nullable ByteBuffer container) { - return new XrSwapchainCreateInfo(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + CREATEFLAGS = layout.offsetof(2); + USAGEFLAGS = layout.offsetof(3); + FORMAT = layout.offsetof(4); + SAMPLECOUNT = layout.offsetof(5); + WIDTH = layout.offsetof(6); + HEIGHT = layout.offsetof(7); + FACECOUNT = layout.offsetof(8); + ARRAYSIZE = layout.offsetof(9); + MIPCOUNT = layout.offsetof(10); } /** @@ -122,97 +113,97 @@ public XrSwapchainCreateInfo(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 bitmask of {@code XrSwapchainCreateFlagBits} describing additional properties of the swapchain. */ - @NativeType("XrSwapchainCreateFlags") - public long createFlags() { return ncreateFlags(address()); } - /** a bitmask of {@code XrSwapchainUsageFlagBits} describing the intended usage of the swapchain’s images. The usage flags define how the corresponding graphics API objects are created. A mismatch may result in swapchain images that do not support the application’s usage. */ - @NativeType("XrSwapchainUsageFlags") - public long usageFlags() { return nusageFlags(address()); } - /** a graphics API-specific texture format identifier. For example, if the graphics API specified in {@link XR10#xrCreateSession CreateSession} is Vulkan, then this format is a Vulkan format such as {@code VK_FORMAT_R8G8B8A8_SRGB}. The format identifies the format that the runtime will interpret the texture as upon submission. Valid formats are indicated by {@link XR10#xrEnumerateSwapchainFormats EnumerateSwapchainFormats}. */ - @NativeType("int64_t") - public long format() { return nformat(address()); } - /** the number of sub-data element samples in the image, must not be 0 or greater than the graphics API’s maximum limit. */ - @NativeType("uint32_t") - public int sampleCount() { return nsampleCount(address()); } - /** the width of the image, must not be 0 or greater than the graphics API’s maximum limit. */ - @NativeType("uint32_t") - public int width() { return nwidth(address()); } - /** the height of the image, must not be 0 or greater than the graphics API’s maximum limit. */ - @NativeType("uint32_t") - public int height() { return nheight(address()); } - /** the number of faces, which can be either 6 (for cubemaps) or 1. */ - @NativeType("uint32_t") - public int faceCount() { return nfaceCount(address()); } - /** the number of array layers in the image or 1 for a 2D image, must not be 0 or greater than the graphics API’s maximum limit. */ - @NativeType("uint32_t") - public int arraySize() { return narraySize(address()); } - /** describes the number of levels of detail available for minified sampling of the image, must not be 0 or greater than the graphics API’s maximum limit. */ - @NativeType("uint32_t") - public int mipCount() { return nmipCount(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSwapchainCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_CREATE_INFO TYPE_SWAPCHAIN_CREATE_INFO} value to the {@link #type} field. */ - public XrSwapchainCreateInfo type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_CREATE_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrSwapchainCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT} value to the {@code next} chain. */ - public XrSwapchainCreateInfo next(XrSecondaryViewConfigurationSwapchainCreateInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSwapchainCreateInfoFoveationFB} value to the {@code next} chain. */ - public XrSwapchainCreateInfo next(XrSwapchainCreateInfoFoveationFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrVulkanSwapchainCreateInfoMETA} value to the {@code next} chain. */ - public XrSwapchainCreateInfo next(XrVulkanSwapchainCreateInfoMETA value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #createFlags} field. */ - public XrSwapchainCreateInfo createFlags(@NativeType("XrSwapchainCreateFlags") long value) { ncreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link #usageFlags} field. */ - public XrSwapchainCreateInfo usageFlags(@NativeType("XrSwapchainUsageFlags") long value) { nusageFlags(address(), value); return this; } - /** Sets the specified value to the {@link #format} field. */ - public XrSwapchainCreateInfo format(@NativeType("int64_t") long value) { nformat(address(), value); return this; } - /** Sets the specified value to the {@link #sampleCount} field. */ - public XrSwapchainCreateInfo sampleCount(@NativeType("uint32_t") int value) { nsampleCount(address(), value); return this; } - /** Sets the specified value to the {@link #width} field. */ - public XrSwapchainCreateInfo width(@NativeType("uint32_t") int value) { nwidth(address(), value); return this; } - /** Sets the specified value to the {@link #height} field. */ - public XrSwapchainCreateInfo height(@NativeType("uint32_t") int value) { nheight(address(), value); return this; } - /** Sets the specified value to the {@link #faceCount} field. */ - public XrSwapchainCreateInfo faceCount(@NativeType("uint32_t") int value) { nfaceCount(address(), value); return this; } - /** Sets the specified value to the {@link #arraySize} field. */ - public XrSwapchainCreateInfo arraySize(@NativeType("uint32_t") int value) { narraySize(address(), value); return this; } - /** Sets the specified value to the {@link #mipCount} field. */ - public XrSwapchainCreateInfo mipCount(@NativeType("uint32_t") int value) { nmipCount(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()); } + /** a bitmask of {@code XrSwapchainCreateFlagBits} describing additional properties of the swapchain. */ + @NativeType("XrSwapchainCreateFlags") + public long createFlags() { return ncreateFlags(address()); } + /** a bitmask of {@code XrSwapchainUsageFlagBits} describing the intended usage of the swapchain’s images. The usage flags define how the corresponding graphics API objects are created. A mismatch may result in swapchain images that do not support the application’s usage. */ + @NativeType("XrSwapchainUsageFlags") + public long usageFlags() { return nusageFlags(address()); } + /** a graphics API-specific texture format identifier. For example, if the graphics API specified in {@link XR10#xrCreateSession CreateSession} is Vulkan, then this format is a Vulkan format such as {@code VK_FORMAT_R8G8B8A8_SRGB}. The format identifies the format that the runtime will interpret the texture as upon submission. Valid formats are indicated by {@link XR10#xrEnumerateSwapchainFormats EnumerateSwapchainFormats}. */ + @NativeType("int64_t") + public long format() { return nformat(address()); } + /** the number of sub-data element samples in the image, must not be 0 or greater than the graphics API’s maximum limit. */ + @NativeType("uint32_t") + public int sampleCount() { return nsampleCount(address()); } + /** the width of the image, must not be 0 or greater than the graphics API’s maximum limit. */ + @NativeType("uint32_t") + public int width() { return nwidth(address()); } + /** the height of the image, must not be 0 or greater than the graphics API’s maximum limit. */ + @NativeType("uint32_t") + public int height() { return nheight(address()); } + /** the number of faces, which can be either 6 (for cubemaps) or 1. */ + @NativeType("uint32_t") + public int faceCount() { return nfaceCount(address()); } + /** the number of array layers in the image or 1 for a 2D image, must not be 0 or greater than the graphics API’s maximum limit. */ + @NativeType("uint32_t") + public int arraySize() { return narraySize(address()); } + /** describes the number of levels of detail available for minified sampling of the image, must not be 0 or greater than the graphics API’s maximum limit. */ + @NativeType("uint32_t") + public int mipCount() { return nmipCount(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSwapchainCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_CREATE_INFO TYPE_SWAPCHAIN_CREATE_INFO} value to the {@link #type} field. */ + public XrSwapchainCreateInfo type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_CREATE_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrSwapchainCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT} value to the {@code next} chain. */ + public XrSwapchainCreateInfo next(XrSecondaryViewConfigurationSwapchainCreateInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSwapchainCreateInfoFoveationFB} value to the {@code next} chain. */ + public XrSwapchainCreateInfo next(XrSwapchainCreateInfoFoveationFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrVulkanSwapchainCreateInfoMETA} value to the {@code next} chain. */ + public XrSwapchainCreateInfo next(XrVulkanSwapchainCreateInfoMETA value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #createFlags} field. */ + public XrSwapchainCreateInfo createFlags(@NativeType("XrSwapchainCreateFlags") long value) { ncreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link #usageFlags} field. */ + public XrSwapchainCreateInfo usageFlags(@NativeType("XrSwapchainUsageFlags") long value) { nusageFlags(address(), value); return this; } + /** Sets the specified value to the {@link #format} field. */ + public XrSwapchainCreateInfo format(@NativeType("int64_t") long value) { nformat(address(), value); return this; } + /** Sets the specified value to the {@link #sampleCount} field. */ + public XrSwapchainCreateInfo sampleCount(@NativeType("uint32_t") int value) { nsampleCount(address(), value); return this; } + /** Sets the specified value to the {@link #width} field. */ + public XrSwapchainCreateInfo width(@NativeType("uint32_t") int value) { nwidth(address(), value); return this; } + /** Sets the specified value to the {@link #height} field. */ + public XrSwapchainCreateInfo height(@NativeType("uint32_t") int value) { nheight(address(), value); return this; } + /** Sets the specified value to the {@link #faceCount} field. */ + public XrSwapchainCreateInfo faceCount(@NativeType("uint32_t") int value) { nfaceCount(address(), value); return this; } + /** Sets the specified value to the {@link #arraySize} field. */ + public XrSwapchainCreateInfo arraySize(@NativeType("uint32_t") int value) { narraySize(address(), value); return this; } + /** Sets the specified value to the {@link #mipCount} field. */ + public XrSwapchainCreateInfo mipCount(@NativeType("uint32_t") int value) { nmipCount(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSwapchainCreateInfo set( - int type, - long next, - long createFlags, - long usageFlags, - long format, - int sampleCount, - int width, - int height, - int faceCount, - int arraySize, + int type, + long next, + long createFlags, + long usageFlags, + long format, + int sampleCount, + int width, + int height, + int faceCount, + int arraySize, int mipCount - ) { - type(type); - next(next); - createFlags(createFlags); - usageFlags(usageFlags); - format(format); - sampleCount(sampleCount); - width(width); - height(height); - faceCount(faceCount); - arraySize(arraySize); - mipCount(mipCount); + ) { + type(type); + next(next); + createFlags(createFlags); + usageFlags(usageFlags); + format(format); + sampleCount(sampleCount); + width(width); + height(height); + faceCount(faceCount); + arraySize(arraySize); + mipCount(mipCount); return this; } @@ -233,29 +224,29 @@ public XrSwapchainCreateInfo set(XrSwapchainCreateInfo src) { /** Returns a new {@code XrSwapchainCreateInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSwapchainCreateInfo malloc() { - return new XrSwapchainCreateInfo(nmemAllocChecked(SIZEOF), null); + return wrap(XrSwapchainCreateInfo.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSwapchainCreateInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSwapchainCreateInfo calloc() { - return new XrSwapchainCreateInfo(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSwapchainCreateInfo.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSwapchainCreateInfo} instance allocated with {@link BufferUtils}. */ public static XrSwapchainCreateInfo create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSwapchainCreateInfo(memAddress(container), container); + return wrap(XrSwapchainCreateInfo.class, memAddress(container), container); } /** Returns a new {@code XrSwapchainCreateInfo} instance for the specified memory address. */ public static XrSwapchainCreateInfo create(long address) { - return new XrSwapchainCreateInfo(address, null); + return wrap(XrSwapchainCreateInfo.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSwapchainCreateInfo createSafe(long address) { - return address == NULL ? null : new XrSwapchainCreateInfo(address, null); + return address == NULL ? null : wrap(XrSwapchainCreateInfo.class, address); } /** @@ -264,7 +255,7 @@ public static XrSwapchainCreateInfo createSafe(long address) { * @param capacity the buffer capacity */ public static XrSwapchainCreateInfo.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -273,7 +264,7 @@ public static XrSwapchainCreateInfo.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSwapchainCreateInfo.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -283,7 +274,7 @@ public static XrSwapchainCreateInfo.Buffer calloc(int capacity) { */ public static XrSwapchainCreateInfo.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); } /** @@ -293,13 +284,13 @@ public static XrSwapchainCreateInfo.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSwapchainCreateInfo.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 XrSwapchainCreateInfo.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -308,7 +299,7 @@ public static XrSwapchainCreateInfo.Buffer createSafe(long address, int capacity * @param stack the stack from which to allocate */ public static XrSwapchainCreateInfo malloc(MemoryStack stack) { - return new XrSwapchainCreateInfo(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSwapchainCreateInfo.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -317,7 +308,7 @@ public static XrSwapchainCreateInfo malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSwapchainCreateInfo calloc(MemoryStack stack) { - return new XrSwapchainCreateInfo(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSwapchainCreateInfo.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -327,7 +318,7 @@ public static XrSwapchainCreateInfo calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSwapchainCreateInfo.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,58 +328,58 @@ public static XrSwapchainCreateInfo.Buffer malloc(int capacity, MemoryStack stac * @param capacity the buffer capacity */ public static XrSwapchainCreateInfo.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 + XrSwapchainCreateInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainCreateInfo.NEXT); } - /** Unsafe version of {@link #createFlags}. */ - public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainCreateInfo.CREATEFLAGS); } - /** Unsafe version of {@link #usageFlags}. */ - public static long nusageFlags(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainCreateInfo.USAGEFLAGS); } - /** Unsafe version of {@link #format}. */ - public static long nformat(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainCreateInfo.FORMAT); } - /** Unsafe version of {@link #sampleCount}. */ - public static int nsampleCount(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.SAMPLECOUNT); } - /** Unsafe version of {@link #width}. */ - public static int nwidth(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.WIDTH); } - /** Unsafe version of {@link #height}. */ - public static int nheight(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.HEIGHT); } - /** Unsafe version of {@link #faceCount}. */ - public static int nfaceCount(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.FACECOUNT); } - /** Unsafe version of {@link #arraySize}. */ - public static int narraySize(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.ARRAYSIZE); } - /** Unsafe version of {@link #mipCount}. */ - public static int nmipCount(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.MIPCOUNT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainCreateInfo.NEXT, value); } - /** Unsafe version of {@link #createFlags(long) createFlags}. */ - public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainCreateInfo.CREATEFLAGS, value); } - /** Unsafe version of {@link #usageFlags(long) usageFlags}. */ - public static void nusageFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainCreateInfo.USAGEFLAGS, value); } - /** Unsafe version of {@link #format(long) format}. */ - public static void nformat(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainCreateInfo.FORMAT, value); } - /** Unsafe version of {@link #sampleCount(int) sampleCount}. */ - public static void nsampleCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.SAMPLECOUNT, value); } - /** Unsafe version of {@link #width(int) width}. */ - public static void nwidth(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.WIDTH, value); } - /** Unsafe version of {@link #height(int) height}. */ - public static void nheight(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.HEIGHT, value); } - /** Unsafe version of {@link #faceCount(int) faceCount}. */ - public static void nfaceCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.FACECOUNT, value); } - /** Unsafe version of {@link #arraySize(int) arraySize}. */ - public static void narraySize(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.ARRAYSIZE, value); } - /** Unsafe version of {@link #mipCount(int) mipCount}. */ - public static void nmipCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.MIPCOUNT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainCreateInfo.NEXT); } + /** Unsafe version of {@link #createFlags}. */ + public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainCreateInfo.CREATEFLAGS); } + /** Unsafe version of {@link #usageFlags}. */ + public static long nusageFlags(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainCreateInfo.USAGEFLAGS); } + /** Unsafe version of {@link #format}. */ + public static long nformat(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainCreateInfo.FORMAT); } + /** Unsafe version of {@link #sampleCount}. */ + public static int nsampleCount(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.SAMPLECOUNT); } + /** Unsafe version of {@link #width}. */ + public static int nwidth(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.WIDTH); } + /** Unsafe version of {@link #height}. */ + public static int nheight(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.HEIGHT); } + /** Unsafe version of {@link #faceCount}. */ + public static int nfaceCount(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.FACECOUNT); } + /** Unsafe version of {@link #arraySize}. */ + public static int narraySize(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.ARRAYSIZE); } + /** Unsafe version of {@link #mipCount}. */ + public static int nmipCount(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.MIPCOUNT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainCreateInfo.NEXT, value); } + /** Unsafe version of {@link #createFlags(long) createFlags}. */ + public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainCreateInfo.CREATEFLAGS, value); } + /** Unsafe version of {@link #usageFlags(long) usageFlags}. */ + public static void nusageFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainCreateInfo.USAGEFLAGS, value); } + /** Unsafe version of {@link #format(long) format}. */ + public static void nformat(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainCreateInfo.FORMAT, value); } + /** Unsafe version of {@link #sampleCount(int) sampleCount}. */ + public static void nsampleCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.SAMPLECOUNT, value); } + /** Unsafe version of {@link #width(int) width}. */ + public static void nwidth(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.WIDTH, value); } + /** Unsafe version of {@link #height(int) height}. */ + public static void nheight(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.HEIGHT, value); } + /** Unsafe version of {@link #faceCount(int) faceCount}. */ + public static void nfaceCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.FACECOUNT, value); } + /** Unsafe version of {@link #arraySize(int) arraySize}. */ + public static void narraySize(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.ARRAYSIZE, value); } + /** Unsafe version of {@link #mipCount(int) mipCount}. */ + public static void nmipCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.MIPCOUNT, value); } + + // ----------------------------------- /** An array of {@link XrSwapchainCreateInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -398,9 +389,9 @@ public static class Buffer extends StructBuffer i /** * Creates a new {@code XrSwapchainCreateInfo.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 XrSwapchainCreateInfo#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSwapchainCreateInfo#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -425,71 +416,71 @@ protected Buffer self() { protected XrSwapchainCreateInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainCreateInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainCreateInfo.ntype(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrSwapchainCreateInfo.nnext(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#createFlags} field. */ - @NativeType("XrSwapchainCreateFlags") - public long createFlags() { return XrSwapchainCreateInfo.ncreateFlags(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#usageFlags} field. */ - @NativeType("XrSwapchainUsageFlags") - public long usageFlags() { return XrSwapchainCreateInfo.nusageFlags(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#format} field. */ - @NativeType("int64_t") - public long format() { return XrSwapchainCreateInfo.nformat(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#sampleCount} field. */ - @NativeType("uint32_t") - public int sampleCount() { return XrSwapchainCreateInfo.nsampleCount(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#width} field. */ - @NativeType("uint32_t") - public int width() { return XrSwapchainCreateInfo.nwidth(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#height} field. */ - @NativeType("uint32_t") - public int height() { return XrSwapchainCreateInfo.nheight(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#faceCount} field. */ - @NativeType("uint32_t") - public int faceCount() { return XrSwapchainCreateInfo.nfaceCount(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#arraySize} field. */ - @NativeType("uint32_t") - public int arraySize() { return XrSwapchainCreateInfo.narraySize(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#mipCount} field. */ - @NativeType("uint32_t") - public int mipCount() { return XrSwapchainCreateInfo.nmipCount(address()); } - - /** Sets the specified value to the {@link XrSwapchainCreateInfo#type} field. */ - public XrSwapchainCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainCreateInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_CREATE_INFO TYPE_SWAPCHAIN_CREATE_INFO} value to the {@link XrSwapchainCreateInfo#type} field. */ - public XrSwapchainCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_CREATE_INFO); } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#next} field. */ - public XrSwapchainCreateInfo.Buffer next(@NativeType("void const *") long value) { XrSwapchainCreateInfo.nnext(address(), value); return this; } - /** Prepends the specified {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT} value to the {@code next} chain. */ - public XrSwapchainCreateInfo.Buffer next(XrSecondaryViewConfigurationSwapchainCreateInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSwapchainCreateInfoFoveationFB} value to the {@code next} chain. */ - public XrSwapchainCreateInfo.Buffer next(XrSwapchainCreateInfoFoveationFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrVulkanSwapchainCreateInfoMETA} value to the {@code next} chain. */ - public XrSwapchainCreateInfo.Buffer next(XrVulkanSwapchainCreateInfoMETA value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#createFlags} field. */ - public XrSwapchainCreateInfo.Buffer createFlags(@NativeType("XrSwapchainCreateFlags") long value) { XrSwapchainCreateInfo.ncreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#usageFlags} field. */ - public XrSwapchainCreateInfo.Buffer usageFlags(@NativeType("XrSwapchainUsageFlags") long value) { XrSwapchainCreateInfo.nusageFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#format} field. */ - public XrSwapchainCreateInfo.Buffer format(@NativeType("int64_t") long value) { XrSwapchainCreateInfo.nformat(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#sampleCount} field. */ - public XrSwapchainCreateInfo.Buffer sampleCount(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nsampleCount(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#width} field. */ - public XrSwapchainCreateInfo.Buffer width(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nwidth(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#height} field. */ - public XrSwapchainCreateInfo.Buffer height(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nheight(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#faceCount} field. */ - public XrSwapchainCreateInfo.Buffer faceCount(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nfaceCount(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#arraySize} field. */ - public XrSwapchainCreateInfo.Buffer arraySize(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.narraySize(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#mipCount} field. */ - public XrSwapchainCreateInfo.Buffer mipCount(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nmipCount(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainCreateInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainCreateInfo.ntype(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrSwapchainCreateInfo.nnext(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#createFlags} field. */ + @NativeType("XrSwapchainCreateFlags") + public long createFlags() { return XrSwapchainCreateInfo.ncreateFlags(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#usageFlags} field. */ + @NativeType("XrSwapchainUsageFlags") + public long usageFlags() { return XrSwapchainCreateInfo.nusageFlags(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#format} field. */ + @NativeType("int64_t") + public long format() { return XrSwapchainCreateInfo.nformat(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#sampleCount} field. */ + @NativeType("uint32_t") + public int sampleCount() { return XrSwapchainCreateInfo.nsampleCount(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#width} field. */ + @NativeType("uint32_t") + public int width() { return XrSwapchainCreateInfo.nwidth(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#height} field. */ + @NativeType("uint32_t") + public int height() { return XrSwapchainCreateInfo.nheight(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#faceCount} field. */ + @NativeType("uint32_t") + public int faceCount() { return XrSwapchainCreateInfo.nfaceCount(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#arraySize} field. */ + @NativeType("uint32_t") + public int arraySize() { return XrSwapchainCreateInfo.narraySize(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#mipCount} field. */ + @NativeType("uint32_t") + public int mipCount() { return XrSwapchainCreateInfo.nmipCount(address()); } + + /** Sets the specified value to the {@link XrSwapchainCreateInfo#type} field. */ + public XrSwapchainCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainCreateInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_CREATE_INFO TYPE_SWAPCHAIN_CREATE_INFO} value to the {@link XrSwapchainCreateInfo#type} field. */ + public XrSwapchainCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_CREATE_INFO); } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#next} field. */ + public XrSwapchainCreateInfo.Buffer next(@NativeType("void const *") long value) { XrSwapchainCreateInfo.nnext(address(), value); return this; } + /** Prepends the specified {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT} value to the {@code next} chain. */ + public XrSwapchainCreateInfo.Buffer next(XrSecondaryViewConfigurationSwapchainCreateInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSwapchainCreateInfoFoveationFB} value to the {@code next} chain. */ + public XrSwapchainCreateInfo.Buffer next(XrSwapchainCreateInfoFoveationFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrVulkanSwapchainCreateInfoMETA} value to the {@code next} chain. */ + public XrSwapchainCreateInfo.Buffer next(XrVulkanSwapchainCreateInfoMETA value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#createFlags} field. */ + public XrSwapchainCreateInfo.Buffer createFlags(@NativeType("XrSwapchainCreateFlags") long value) { XrSwapchainCreateInfo.ncreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#usageFlags} field. */ + public XrSwapchainCreateInfo.Buffer usageFlags(@NativeType("XrSwapchainUsageFlags") long value) { XrSwapchainCreateInfo.nusageFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#format} field. */ + public XrSwapchainCreateInfo.Buffer format(@NativeType("int64_t") long value) { XrSwapchainCreateInfo.nformat(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#sampleCount} field. */ + public XrSwapchainCreateInfo.Buffer sampleCount(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nsampleCount(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#width} field. */ + public XrSwapchainCreateInfo.Buffer width(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nwidth(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#height} field. */ + public XrSwapchainCreateInfo.Buffer height(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nheight(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#faceCount} field. */ + public XrSwapchainCreateInfo.Buffer faceCount(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nfaceCount(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#arraySize} field. */ + public XrSwapchainCreateInfo.Buffer arraySize(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.narraySize(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#mipCount} field. */ + public XrSwapchainCreateInfo.Buffer mipCount(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nmipCount(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainCreateInfoFoveationFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainCreateInfoFoveationFB.java index 3dda4bd1b1..f618a78bba 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainCreateInfoFoveationFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainCreateInfoFoveationFB.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 information to create a swapchain supporting foveation. * @@ -35,8 +35,8 @@ * void * {@link #next}; * XrSwapchainCreateFoveationFlagsFB {@link #flags}; * } - */ -public class XrSwapchainCreateInfoFoveationFB extends Struct implements NativeResource { + */ +public class XrSwapchainCreateInfoFoveationFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -46,32 +46,23 @@ public class XrSwapchainCreateInfoFoveationFB extends Struct implements NativeResource { @@ -268,9 +259,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 XrSwapchainCreateInfoFoveationFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSwapchainCreateInfoFoveationFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -295,25 +286,25 @@ protected Buffer self() { protected XrSwapchainCreateInfoFoveationFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainCreateInfoFoveationFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainCreateInfoFoveationFB.ntype(address()); } - /** @return the value of the {@link XrSwapchainCreateInfoFoveationFB#next} field. */ - @NativeType("void *") - public long next() { return XrSwapchainCreateInfoFoveationFB.nnext(address()); } - /** @return the value of the {@link XrSwapchainCreateInfoFoveationFB#flags} field. */ - @NativeType("XrSwapchainCreateFoveationFlagsFB") - public long flags() { return XrSwapchainCreateInfoFoveationFB.nflags(address()); } - - /** Sets the specified value to the {@link XrSwapchainCreateInfoFoveationFB#type} field. */ - public XrSwapchainCreateInfoFoveationFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainCreateInfoFoveationFB.ntype(address(), value); return this; } - /** Sets the {@link FBFoveation#XR_TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB} value to the {@link XrSwapchainCreateInfoFoveationFB#type} field. */ - public XrSwapchainCreateInfoFoveationFB.Buffer type$Default() { return type(FBFoveation.XR_TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB); } - /** Sets the specified value to the {@link XrSwapchainCreateInfoFoveationFB#next} field. */ - public XrSwapchainCreateInfoFoveationFB.Buffer next(@NativeType("void *") long value) { XrSwapchainCreateInfoFoveationFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainCreateInfoFoveationFB#flags} field. */ - public XrSwapchainCreateInfoFoveationFB.Buffer flags(@NativeType("XrSwapchainCreateFoveationFlagsFB") long value) { XrSwapchainCreateInfoFoveationFB.nflags(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainCreateInfoFoveationFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainCreateInfoFoveationFB.ntype(address()); } + /** @return the value of the {@link XrSwapchainCreateInfoFoveationFB#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainCreateInfoFoveationFB.nnext(address()); } + /** @return the value of the {@link XrSwapchainCreateInfoFoveationFB#flags} field. */ + @NativeType("XrSwapchainCreateFoveationFlagsFB") + public long flags() { return XrSwapchainCreateInfoFoveationFB.nflags(address()); } + + /** Sets the specified value to the {@link XrSwapchainCreateInfoFoveationFB#type} field. */ + public XrSwapchainCreateInfoFoveationFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainCreateInfoFoveationFB.ntype(address(), value); return this; } + /** Sets the {@link FBFoveation#XR_TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB} value to the {@link XrSwapchainCreateInfoFoveationFB#type} field. */ + public XrSwapchainCreateInfoFoveationFB.Buffer type$Default() { return type(FBFoveation.XR_TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB); } + /** Sets the specified value to the {@link XrSwapchainCreateInfoFoveationFB#next} field. */ + public XrSwapchainCreateInfoFoveationFB.Buffer next(@NativeType("void *") long value) { XrSwapchainCreateInfoFoveationFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainCreateInfoFoveationFB#flags} field. */ + public XrSwapchainCreateInfoFoveationFB.Buffer flags(@NativeType("XrSwapchainCreateFoveationFlagsFB") long value) { XrSwapchainCreateInfoFoveationFB.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageAcquireInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageAcquireInfo.java index 78a53dea8f..8cd96c9005 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageAcquireInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageAcquireInfo.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 a swapchain image acquisition. * @@ -40,8 +40,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrSwapchainImageAcquireInfo extends Struct implements NativeResource { + */ +public class XrSwapchainImageAcquireInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,29 +51,20 @@ public class XrSwapchainImageAcquireInfo extends Struct implements NativeResource { @@ -259,9 +250,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 XrSwapchainImageAcquireInfo#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSwapchainImageAcquireInfo#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -286,20 +277,20 @@ protected Buffer self() { protected XrSwapchainImageAcquireInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainImageAcquireInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainImageAcquireInfo.ntype(address()); } - /** @return the value of the {@link XrSwapchainImageAcquireInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrSwapchainImageAcquireInfo.nnext(address()); } - - /** Sets the specified value to the {@link XrSwapchainImageAcquireInfo#type} field. */ - public XrSwapchainImageAcquireInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageAcquireInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_IMAGE_ACQUIRE_INFO TYPE_SWAPCHAIN_IMAGE_ACQUIRE_INFO} value to the {@link XrSwapchainImageAcquireInfo#type} field. */ - public XrSwapchainImageAcquireInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_IMAGE_ACQUIRE_INFO); } - /** Sets the specified value to the {@link XrSwapchainImageAcquireInfo#next} field. */ - public XrSwapchainImageAcquireInfo.Buffer next(@NativeType("void const *") long value) { XrSwapchainImageAcquireInfo.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainImageAcquireInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainImageAcquireInfo.ntype(address()); } + /** @return the value of the {@link XrSwapchainImageAcquireInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrSwapchainImageAcquireInfo.nnext(address()); } + + /** Sets the specified value to the {@link XrSwapchainImageAcquireInfo#type} field. */ + public XrSwapchainImageAcquireInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageAcquireInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_IMAGE_ACQUIRE_INFO TYPE_SWAPCHAIN_IMAGE_ACQUIRE_INFO} value to the {@link XrSwapchainImageAcquireInfo#type} field. */ + public XrSwapchainImageAcquireInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_IMAGE_ACQUIRE_INFO); } + /** Sets the specified value to the {@link XrSwapchainImageAcquireInfo#next} field. */ + public XrSwapchainImageAcquireInfo.Buffer next(@NativeType("void const *") long value) { XrSwapchainImageAcquireInfo.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageBaseHeader.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageBaseHeader.java index b2fc033484..e4a4d82aad 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageBaseHeader.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageBaseHeader.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.*; + /** * Image base header for a swapchain image. * @@ -40,8 +40,8 @@ * XrStructureType {@link #type}; * void * {@link #next}; * } - */ -public class XrSwapchainImageBaseHeader extends Struct implements NativeResource { + */ +public class XrSwapchainImageBaseHeader extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,29 +51,20 @@ public class XrSwapchainImageBaseHeader extends Struct implements NativeResource { @@ -287,9 +278,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 XrSwapchainImageBaseHeader#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSwapchainImageBaseHeader#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -314,18 +305,18 @@ protected Buffer self() { protected XrSwapchainImageBaseHeader getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainImageBaseHeader#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainImageBaseHeader.ntype(address()); } - /** @return the value of the {@link XrSwapchainImageBaseHeader#next} field. */ - @NativeType("void *") - public long next() { return XrSwapchainImageBaseHeader.nnext(address()); } - - /** Sets the specified value to the {@link XrSwapchainImageBaseHeader#type} field. */ - public XrSwapchainImageBaseHeader.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageBaseHeader.ntype(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainImageBaseHeader#next} field. */ - public XrSwapchainImageBaseHeader.Buffer next(@NativeType("void *") long value) { XrSwapchainImageBaseHeader.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainImageBaseHeader#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainImageBaseHeader.ntype(address()); } + /** @return the value of the {@link XrSwapchainImageBaseHeader#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainImageBaseHeader.nnext(address()); } + + /** Sets the specified value to the {@link XrSwapchainImageBaseHeader#type} field. */ + public XrSwapchainImageBaseHeader.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageBaseHeader.ntype(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainImageBaseHeader#next} field. */ + public XrSwapchainImageBaseHeader.Buffer next(@NativeType("void *") long value) { XrSwapchainImageBaseHeader.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageFoveationVulkanFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageFoveationVulkanFB.java index 03b3d083d8..507df417f0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageFoveationVulkanFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageFoveationVulkanFB.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 org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * Profile with properties defining a foveation pattern. * @@ -42,8 +42,8 @@ * uint32_t {@link #width}; * uint32_t {@link #height}; * } - */ -public class XrSwapchainImageFoveationVulkanFB extends Struct implements NativeResource { + */ +public class XrSwapchainImageFoveationVulkanFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,38 +53,29 @@ public class XrSwapchainImageFoveationVulkanFB extends Struct implements NativeResource { @@ -285,9 +276,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 XrSwapchainImageFoveationVulkanFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSwapchainImageFoveationVulkanFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -312,29 +303,29 @@ protected Buffer self() { protected XrSwapchainImageFoveationVulkanFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainImageFoveationVulkanFB.ntype(address()); } - /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#next} field. */ - @NativeType("void *") - public long next() { return XrSwapchainImageFoveationVulkanFB.nnext(address()); } - /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#image} field. */ - @NativeType("VkImage") - public long image() { return XrSwapchainImageFoveationVulkanFB.nimage(address()); } - /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#width} field. */ - @NativeType("uint32_t") - public int width() { return XrSwapchainImageFoveationVulkanFB.nwidth(address()); } - /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#height} field. */ - @NativeType("uint32_t") - public int height() { return XrSwapchainImageFoveationVulkanFB.nheight(address()); } - - /** Sets the specified value to the {@link XrSwapchainImageFoveationVulkanFB#type} field. */ - public XrSwapchainImageFoveationVulkanFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageFoveationVulkanFB.ntype(address(), value); return this; } - /** Sets the {@link FBFoveationVulkan#XR_TYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FB TYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FB} value to the {@link XrSwapchainImageFoveationVulkanFB#type} field. */ - public XrSwapchainImageFoveationVulkanFB.Buffer type$Default() { return type(FBFoveationVulkan.XR_TYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FB); } - /** Sets the specified value to the {@link XrSwapchainImageFoveationVulkanFB#next} field. */ - public XrSwapchainImageFoveationVulkanFB.Buffer next(@NativeType("void *") long value) { XrSwapchainImageFoveationVulkanFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainImageFoveationVulkanFB.ntype(address()); } + /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainImageFoveationVulkanFB.nnext(address()); } + /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#image} field. */ + @NativeType("VkImage") + public long image() { return XrSwapchainImageFoveationVulkanFB.nimage(address()); } + /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#width} field. */ + @NativeType("uint32_t") + public int width() { return XrSwapchainImageFoveationVulkanFB.nwidth(address()); } + /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#height} field. */ + @NativeType("uint32_t") + public int height() { return XrSwapchainImageFoveationVulkanFB.nheight(address()); } + + /** Sets the specified value to the {@link XrSwapchainImageFoveationVulkanFB#type} field. */ + public XrSwapchainImageFoveationVulkanFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageFoveationVulkanFB.ntype(address(), value); return this; } + /** Sets the {@link FBFoveationVulkan#XR_TYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FB TYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FB} value to the {@link XrSwapchainImageFoveationVulkanFB#type} field. */ + public XrSwapchainImageFoveationVulkanFB.Buffer type$Default() { return type(FBFoveationVulkan.XR_TYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FB); } + /** Sets the specified value to the {@link XrSwapchainImageFoveationVulkanFB#next} field. */ + public XrSwapchainImageFoveationVulkanFB.Buffer next(@NativeType("void *") long value) { XrSwapchainImageFoveationVulkanFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageOpenGLESKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageOpenGLESKHR.java index b922547bf4..3ccfdde5b4 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageOpenGLESKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageOpenGLESKHR.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.*; + /** * OpenGL ES-specific swapchain image structure. * @@ -51,8 +51,8 @@ * void * {@link #next}; * uint32_t {@link #image}; * } - */ -public class XrSwapchainImageOpenGLESKHR extends Struct implements NativeResource { + */ +public class XrSwapchainImageOpenGLESKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -62,32 +62,23 @@ public class XrSwapchainImageOpenGLESKHR extends Struct 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 XrSwapchainImageOpenGLESKHR#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSwapchainImageOpenGLESKHR#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -315,23 +306,23 @@ protected Buffer self() { protected XrSwapchainImageOpenGLESKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainImageOpenGLESKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainImageOpenGLESKHR.ntype(address()); } - /** @return the value of the {@link XrSwapchainImageOpenGLESKHR#next} field. */ - @NativeType("void *") - public long next() { return XrSwapchainImageOpenGLESKHR.nnext(address()); } - /** @return the value of the {@link XrSwapchainImageOpenGLESKHR#image} field. */ - @NativeType("uint32_t") - public int image() { return XrSwapchainImageOpenGLESKHR.nimage(address()); } - - /** Sets the specified value to the {@link XrSwapchainImageOpenGLESKHR#type} field. */ - public XrSwapchainImageOpenGLESKHR.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageOpenGLESKHR.ntype(address(), value); return this; } - /** Sets the {@link KHROpenGLESEnable#XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR} value to the {@link XrSwapchainImageOpenGLESKHR#type} field. */ - public XrSwapchainImageOpenGLESKHR.Buffer type$Default() { return type(KHROpenGLESEnable.XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR); } - /** Sets the specified value to the {@link XrSwapchainImageOpenGLESKHR#next} field. */ - public XrSwapchainImageOpenGLESKHR.Buffer next(@NativeType("void *") long value) { XrSwapchainImageOpenGLESKHR.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainImageOpenGLESKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainImageOpenGLESKHR.ntype(address()); } + /** @return the value of the {@link XrSwapchainImageOpenGLESKHR#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainImageOpenGLESKHR.nnext(address()); } + /** @return the value of the {@link XrSwapchainImageOpenGLESKHR#image} field. */ + @NativeType("uint32_t") + public int image() { return XrSwapchainImageOpenGLESKHR.nimage(address()); } + + /** Sets the specified value to the {@link XrSwapchainImageOpenGLESKHR#type} field. */ + public XrSwapchainImageOpenGLESKHR.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageOpenGLESKHR.ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLESEnable#XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR} value to the {@link XrSwapchainImageOpenGLESKHR#type} field. */ + public XrSwapchainImageOpenGLESKHR.Buffer type$Default() { return type(KHROpenGLESEnable.XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR); } + /** Sets the specified value to the {@link XrSwapchainImageOpenGLESKHR#next} field. */ + public XrSwapchainImageOpenGLESKHR.Buffer next(@NativeType("void *") long value) { XrSwapchainImageOpenGLESKHR.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageOpenGLKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageOpenGLKHR.java index 7eec4e6e8d..5d057e15e2 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageOpenGLKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageOpenGLKHR.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.*; + /** * OpenGL-specific swapchain image structure. * @@ -51,8 +51,8 @@ * void * {@link #next}; * uint32_t {@link #image}; * } - */ -public class XrSwapchainImageOpenGLKHR extends Struct implements NativeResource { + */ +public class XrSwapchainImageOpenGLKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -62,32 +62,23 @@ public class XrSwapchainImageOpenGLKHR extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - IMAGE; + TYPE, + NEXT, + IMAGE; 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); - IMAGE = layout.offsetof(2); - } - - protected XrSwapchainImageOpenGLKHR(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSwapchainImageOpenGLKHR create(long address, @Nullable ByteBuffer container) { - return new XrSwapchainImageOpenGLKHR(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + IMAGE = layout.offsetof(2); } /** @@ -102,31 +93,31 @@ public XrSwapchainImageOpenGLKHR(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()); } - /** the OpenGL texture handle associated with this swapchain image. */ - @NativeType("uint32_t") - public int image() { return nimage(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSwapchainImageOpenGLKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHROpenGLEnable#XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR} value to the {@link #type} field. */ - public XrSwapchainImageOpenGLKHR type$Default() { return type(KHROpenGLEnable.XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR); } - /** Sets the specified value to the {@link #next} field. */ - public XrSwapchainImageOpenGLKHR 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 or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the OpenGL texture handle associated with this swapchain image. */ + @NativeType("uint32_t") + public int image() { return nimage(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSwapchainImageOpenGLKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLEnable#XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR} value to the {@link #type} field. */ + public XrSwapchainImageOpenGLKHR type$Default() { return type(KHROpenGLEnable.XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrSwapchainImageOpenGLKHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSwapchainImageOpenGLKHR set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -147,34 +138,34 @@ public XrSwapchainImageOpenGLKHR set(XrSwapchainImageOpenGLKHR src) { /** Returns a new {@code XrSwapchainImageOpenGLKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSwapchainImageOpenGLKHR malloc() { - return new XrSwapchainImageOpenGLKHR(nmemAllocChecked(SIZEOF), null); + return wrap(XrSwapchainImageOpenGLKHR.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSwapchainImageOpenGLKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSwapchainImageOpenGLKHR calloc() { - return new XrSwapchainImageOpenGLKHR(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSwapchainImageOpenGLKHR.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSwapchainImageOpenGLKHR} instance allocated with {@link BufferUtils}. */ public static XrSwapchainImageOpenGLKHR create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSwapchainImageOpenGLKHR(memAddress(container), container); + return wrap(XrSwapchainImageOpenGLKHR.class, memAddress(container), container); } /** Returns a new {@code XrSwapchainImageOpenGLKHR} instance for the specified memory address. */ public static XrSwapchainImageOpenGLKHR create(long address) { - return new XrSwapchainImageOpenGLKHR(address, null); + return wrap(XrSwapchainImageOpenGLKHR.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSwapchainImageOpenGLKHR createSafe(long address) { - return address == NULL ? null : new XrSwapchainImageOpenGLKHR(address, null); + return address == NULL ? null : wrap(XrSwapchainImageOpenGLKHR.class, address); } /** Downcasts the specified {@code XrSwapchainImageBaseHeader} instance to {@code XrSwapchainImageOpenGLKHR}. */ public static XrSwapchainImageOpenGLKHR create(XrSwapchainImageBaseHeader value) { - return new XrSwapchainImageOpenGLKHR(value.address(), __getContainer(value)); + return wrap(XrSwapchainImageOpenGLKHR.class, value); } /** @@ -183,7 +174,7 @@ public static XrSwapchainImageOpenGLKHR create(XrSwapchainImageBaseHeader value) * @param capacity the buffer capacity */ public static XrSwapchainImageOpenGLKHR.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 XrSwapchainImageOpenGLKHR.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSwapchainImageOpenGLKHR.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 XrSwapchainImageOpenGLKHR.Buffer calloc(int capacity) { */ public static XrSwapchainImageOpenGLKHR.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,18 +203,18 @@ public static XrSwapchainImageOpenGLKHR.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSwapchainImageOpenGLKHR.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 XrSwapchainImageOpenGLKHR.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 XrSwapchainImageBaseHeader.Buffer} instance to {@code XrSwapchainImageOpenGLKHR.Buffer}. */ public static XrSwapchainImageOpenGLKHR.Buffer create(XrSwapchainImageBaseHeader.Buffer value) { - return new XrSwapchainImageOpenGLKHR.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** @@ -232,7 +223,7 @@ public static XrSwapchainImageOpenGLKHR.Buffer create(XrSwapchainImageBaseHeader * @param stack the stack from which to allocate */ public static XrSwapchainImageOpenGLKHR malloc(MemoryStack stack) { - return new XrSwapchainImageOpenGLKHR(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSwapchainImageOpenGLKHR.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -241,7 +232,7 @@ public static XrSwapchainImageOpenGLKHR malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSwapchainImageOpenGLKHR calloc(MemoryStack stack) { - return new XrSwapchainImageOpenGLKHR(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSwapchainImageOpenGLKHR.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -251,7 +242,7 @@ public static XrSwapchainImageOpenGLKHR calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSwapchainImageOpenGLKHR.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,24 +252,24 @@ public static XrSwapchainImageOpenGLKHR.Buffer malloc(int capacity, MemoryStack * @param capacity the buffer capacity */ public static XrSwapchainImageOpenGLKHR.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 + XrSwapchainImageOpenGLKHR.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainImageOpenGLKHR.NEXT); } - /** Unsafe version of {@link #image}. */ - public static int nimage(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainImageOpenGLKHR.IMAGE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainImageOpenGLKHR.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainImageOpenGLKHR.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainImageOpenGLKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainImageOpenGLKHR.NEXT); } + /** Unsafe version of {@link #image}. */ + public static int nimage(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainImageOpenGLKHR.IMAGE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainImageOpenGLKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainImageOpenGLKHR.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrSwapchainImageOpenGLKHR} 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 XrSwapchainImageOpenGLKHR#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSwapchainImageOpenGLKHR#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -315,23 +306,23 @@ protected Buffer self() { protected XrSwapchainImageOpenGLKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainImageOpenGLKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainImageOpenGLKHR.ntype(address()); } - /** @return the value of the {@link XrSwapchainImageOpenGLKHR#next} field. */ - @NativeType("void *") - public long next() { return XrSwapchainImageOpenGLKHR.nnext(address()); } - /** @return the value of the {@link XrSwapchainImageOpenGLKHR#image} field. */ - @NativeType("uint32_t") - public int image() { return XrSwapchainImageOpenGLKHR.nimage(address()); } - - /** Sets the specified value to the {@link XrSwapchainImageOpenGLKHR#type} field. */ - public XrSwapchainImageOpenGLKHR.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageOpenGLKHR.ntype(address(), value); return this; } - /** Sets the {@link KHROpenGLEnable#XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR} value to the {@link XrSwapchainImageOpenGLKHR#type} field. */ - public XrSwapchainImageOpenGLKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR); } - /** Sets the specified value to the {@link XrSwapchainImageOpenGLKHR#next} field. */ - public XrSwapchainImageOpenGLKHR.Buffer next(@NativeType("void *") long value) { XrSwapchainImageOpenGLKHR.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainImageOpenGLKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainImageOpenGLKHR.ntype(address()); } + /** @return the value of the {@link XrSwapchainImageOpenGLKHR#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainImageOpenGLKHR.nnext(address()); } + /** @return the value of the {@link XrSwapchainImageOpenGLKHR#image} field. */ + @NativeType("uint32_t") + public int image() { return XrSwapchainImageOpenGLKHR.nimage(address()); } + + /** Sets the specified value to the {@link XrSwapchainImageOpenGLKHR#type} field. */ + public XrSwapchainImageOpenGLKHR.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageOpenGLKHR.ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLEnable#XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR} value to the {@link XrSwapchainImageOpenGLKHR#type} field. */ + public XrSwapchainImageOpenGLKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR); } + /** Sets the specified value to the {@link XrSwapchainImageOpenGLKHR#next} field. */ + public XrSwapchainImageOpenGLKHR.Buffer next(@NativeType("void *") long value) { XrSwapchainImageOpenGLKHR.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageReleaseInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageReleaseInfo.java index 5a138d84a9..987dfb43ab 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageReleaseInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageReleaseInfo.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 a swapchain image release. * @@ -40,8 +40,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrSwapchainImageReleaseInfo extends Struct implements NativeResource { + */ +public class XrSwapchainImageReleaseInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,29 +51,20 @@ public class XrSwapchainImageReleaseInfo extends Struct implements NativeResource { @@ -259,9 +250,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 XrSwapchainImageReleaseInfo#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSwapchainImageReleaseInfo#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -286,20 +277,20 @@ protected Buffer self() { protected XrSwapchainImageReleaseInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainImageReleaseInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainImageReleaseInfo.ntype(address()); } - /** @return the value of the {@link XrSwapchainImageReleaseInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrSwapchainImageReleaseInfo.nnext(address()); } - - /** Sets the specified value to the {@link XrSwapchainImageReleaseInfo#type} field. */ - public XrSwapchainImageReleaseInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageReleaseInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_IMAGE_RELEASE_INFO TYPE_SWAPCHAIN_IMAGE_RELEASE_INFO} value to the {@link XrSwapchainImageReleaseInfo#type} field. */ - public XrSwapchainImageReleaseInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_IMAGE_RELEASE_INFO); } - /** Sets the specified value to the {@link XrSwapchainImageReleaseInfo#next} field. */ - public XrSwapchainImageReleaseInfo.Buffer next(@NativeType("void const *") long value) { XrSwapchainImageReleaseInfo.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainImageReleaseInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainImageReleaseInfo.ntype(address()); } + /** @return the value of the {@link XrSwapchainImageReleaseInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrSwapchainImageReleaseInfo.nnext(address()); } + + /** Sets the specified value to the {@link XrSwapchainImageReleaseInfo#type} field. */ + public XrSwapchainImageReleaseInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageReleaseInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_IMAGE_RELEASE_INFO TYPE_SWAPCHAIN_IMAGE_RELEASE_INFO} value to the {@link XrSwapchainImageReleaseInfo#type} field. */ + public XrSwapchainImageReleaseInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_IMAGE_RELEASE_INFO); } + /** Sets the specified value to the {@link XrSwapchainImageReleaseInfo#next} field. */ + public XrSwapchainImageReleaseInfo.Buffer next(@NativeType("void const *") long value) { XrSwapchainImageReleaseInfo.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageVulkan2KHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageVulkan2KHR.java index 5197f07357..604f609777 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageVulkan2KHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageVulkan2KHR.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 org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * See {@link XrSwapchainImageVulkanKHR}. * @@ -28,8 +28,8 @@ * void * next; * VkImage image; * } - */ -public class XrSwapchainImageVulkan2KHR extends XrSwapchainImageVulkanKHR { + */ +public class XrSwapchainImageVulkan2KHR extends XrSwapchainImageVulkanKHR { /** * Creates a {@code XrSwapchainImageVulkan2KHR} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be @@ -40,25 +40,25 @@ public class XrSwapchainImageVulkan2KHR extends XrSwapchainImageVulkanKHR { public XrSwapchainImageVulkan2KHR(ByteBuffer container) { super(container); } - - /** Sets the specified value to the {@code type} field. */ - @Override - public XrSwapchainImageVulkan2KHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR} value to the {@code type} field. */ - @Override - public XrSwapchainImageVulkan2KHR type$Default() { return type(KHRVulkanEnable.XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR); } - /** Sets the specified value to the {@code next} field. */ - @Override - public XrSwapchainImageVulkan2KHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } + + /** Sets the specified value to the {@code type} field. */ + @Override + public XrSwapchainImageVulkan2KHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR} value to the {@code type} field. */ + @Override + public XrSwapchainImageVulkan2KHR type$Default() { return type(KHRVulkanEnable.XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR); } + /** Sets the specified value to the {@code next} field. */ + @Override + public XrSwapchainImageVulkan2KHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ @Override public XrSwapchainImageVulkan2KHR set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -186,7 +186,7 @@ public static XrSwapchainImageVulkan2KHR.Buffer calloc(int capacity, MemoryStack return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSwapchainImageVulkan2KHR} structs. */ public static class Buffer extends XrSwapchainImageVulkanKHR.Buffer { @@ -223,16 +223,16 @@ protected Buffer self() { protected XrSwapchainImageVulkan2KHR getElementFactory() { return ELEMENT_FACTORY; } - - /** Sets the specified value to the {@code type} field. */ - @Override - public XrSwapchainImageVulkan2KHR.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageVulkan2KHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR} value to the {@code type} field. */ - @Override - public XrSwapchainImageVulkan2KHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR); } - /** Sets the specified value to the {@code next} field. */ - @Override - public XrSwapchainImageVulkan2KHR.Buffer next(@NativeType("void *") long value) { XrSwapchainImageVulkan2KHR.nnext(address(), value); return this; } + + /** Sets the specified value to the {@code type} field. */ + @Override + public XrSwapchainImageVulkan2KHR.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageVulkan2KHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR} value to the {@code type} field. */ + @Override + public XrSwapchainImageVulkan2KHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR); } + /** Sets the specified value to the {@code next} field. */ + @Override + public XrSwapchainImageVulkan2KHR.Buffer next(@NativeType("void *") long value) { XrSwapchainImageVulkan2KHR.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageVulkanKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageVulkanKHR.java index 53d39265e5..1a29aeeaf8 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageVulkanKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageVulkanKHR.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 org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * Vulkan-specific swapchain image structure. * @@ -53,8 +53,8 @@ * void * {@link #next}; * VkImage {@link #image}; * } - */ -public class XrSwapchainImageVulkanKHR extends Struct implements NativeResource { + */ +public class XrSwapchainImageVulkanKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -64,32 +64,23 @@ public class XrSwapchainImageVulkanKHR extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - IMAGE; + TYPE, + NEXT, + IMAGE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - IMAGE = layout.offsetof(2); - } - - protected XrSwapchainImageVulkanKHR(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSwapchainImageVulkanKHR create(long address, @Nullable ByteBuffer container) { - return new XrSwapchainImageVulkanKHR(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + IMAGE = layout.offsetof(2); } /** @@ -104,33 +95,33 @@ public XrSwapchainImageVulkanKHR(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()); } - /** a valid Vulkan {@code VkImage} to use. */ - @NativeType("VkImage") - public long image() { return nimage(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSwapchainImageVulkanKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR} value to the {@link #type} field. */ - public XrSwapchainImageVulkanKHR type$Default() { return type(KHRVulkanEnable.XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR); } - /** Sets the specified value to the {@link #next} field. */ - public XrSwapchainImageVulkanKHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrSwapchainImageFoveationVulkanFB} value to the {@code next} chain. */ - public XrSwapchainImageVulkanKHR next(XrSwapchainImageFoveationVulkanFB value) { return this.next(value.next(this.next()).address()); } + + /** 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()); } + /** a valid Vulkan {@code VkImage} to use. */ + @NativeType("VkImage") + public long image() { return nimage(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSwapchainImageVulkanKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR} value to the {@link #type} field. */ + public XrSwapchainImageVulkanKHR type$Default() { return type(KHRVulkanEnable.XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrSwapchainImageVulkanKHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrSwapchainImageFoveationVulkanFB} value to the {@code next} chain. */ + public XrSwapchainImageVulkanKHR next(XrSwapchainImageFoveationVulkanFB value) { return this.next(value.next(this.next()).address()); } /** Initializes this struct with the specified values. */ public XrSwapchainImageVulkanKHR set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -151,34 +142,34 @@ public XrSwapchainImageVulkanKHR set(XrSwapchainImageVulkanKHR src) { /** Returns a new {@code XrSwapchainImageVulkanKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSwapchainImageVulkanKHR malloc() { - return new XrSwapchainImageVulkanKHR(nmemAllocChecked(SIZEOF), null); + return wrap(XrSwapchainImageVulkanKHR.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSwapchainImageVulkanKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSwapchainImageVulkanKHR calloc() { - return new XrSwapchainImageVulkanKHR(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSwapchainImageVulkanKHR.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSwapchainImageVulkanKHR} instance allocated with {@link BufferUtils}. */ public static XrSwapchainImageVulkanKHR create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSwapchainImageVulkanKHR(memAddress(container), container); + return wrap(XrSwapchainImageVulkanKHR.class, memAddress(container), container); } /** Returns a new {@code XrSwapchainImageVulkanKHR} instance for the specified memory address. */ public static XrSwapchainImageVulkanKHR create(long address) { - return new XrSwapchainImageVulkanKHR(address, null); + return wrap(XrSwapchainImageVulkanKHR.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSwapchainImageVulkanKHR createSafe(long address) { - return address == NULL ? null : new XrSwapchainImageVulkanKHR(address, null); + return address == NULL ? null : wrap(XrSwapchainImageVulkanKHR.class, address); } /** Downcasts the specified {@code XrSwapchainImageBaseHeader} instance to {@code XrSwapchainImageVulkanKHR}. */ public static XrSwapchainImageVulkanKHR create(XrSwapchainImageBaseHeader value) { - return new XrSwapchainImageVulkanKHR(value.address(), __getContainer(value)); + return wrap(XrSwapchainImageVulkanKHR.class, value); } /** @@ -187,7 +178,7 @@ public static XrSwapchainImageVulkanKHR create(XrSwapchainImageBaseHeader value) * @param capacity the buffer capacity */ public static XrSwapchainImageVulkanKHR.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -196,7 +187,7 @@ public static XrSwapchainImageVulkanKHR.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSwapchainImageVulkanKHR.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -206,7 +197,7 @@ public static XrSwapchainImageVulkanKHR.Buffer calloc(int capacity) { */ public static XrSwapchainImageVulkanKHR.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); } /** @@ -216,18 +207,18 @@ public static XrSwapchainImageVulkanKHR.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSwapchainImageVulkanKHR.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 XrSwapchainImageVulkanKHR.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 XrSwapchainImageBaseHeader.Buffer} instance to {@code XrSwapchainImageVulkanKHR.Buffer}. */ public static XrSwapchainImageVulkanKHR.Buffer create(XrSwapchainImageBaseHeader.Buffer value) { - return new XrSwapchainImageVulkanKHR.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** @@ -236,7 +227,7 @@ public static XrSwapchainImageVulkanKHR.Buffer create(XrSwapchainImageBaseHeader * @param stack the stack from which to allocate */ public static XrSwapchainImageVulkanKHR malloc(MemoryStack stack) { - return new XrSwapchainImageVulkanKHR(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSwapchainImageVulkanKHR.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -245,7 +236,7 @@ public static XrSwapchainImageVulkanKHR malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSwapchainImageVulkanKHR calloc(MemoryStack stack) { - return new XrSwapchainImageVulkanKHR(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSwapchainImageVulkanKHR.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -255,7 +246,7 @@ public static XrSwapchainImageVulkanKHR calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSwapchainImageVulkanKHR.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); } /** @@ -265,24 +256,24 @@ public static XrSwapchainImageVulkanKHR.Buffer malloc(int capacity, MemoryStack * @param capacity the buffer capacity */ public static XrSwapchainImageVulkanKHR.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 + XrSwapchainImageVulkanKHR.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainImageVulkanKHR.NEXT); } - /** Unsafe version of {@link #image}. */ - public static long nimage(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainImageVulkanKHR.IMAGE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainImageVulkanKHR.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainImageVulkanKHR.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainImageVulkanKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainImageVulkanKHR.NEXT); } + /** Unsafe version of {@link #image}. */ + public static long nimage(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainImageVulkanKHR.IMAGE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainImageVulkanKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainImageVulkanKHR.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrSwapchainImageVulkanKHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -292,9 +283,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 XrSwapchainImageVulkanKHR#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSwapchainImageVulkanKHR#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -319,25 +310,25 @@ protected Buffer self() { protected XrSwapchainImageVulkanKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainImageVulkanKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainImageVulkanKHR.ntype(address()); } - /** @return the value of the {@link XrSwapchainImageVulkanKHR#next} field. */ - @NativeType("void *") - public long next() { return XrSwapchainImageVulkanKHR.nnext(address()); } - /** @return the value of the {@link XrSwapchainImageVulkanKHR#image} field. */ - @NativeType("VkImage") - public long image() { return XrSwapchainImageVulkanKHR.nimage(address()); } - - /** Sets the specified value to the {@link XrSwapchainImageVulkanKHR#type} field. */ - public XrSwapchainImageVulkanKHR.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageVulkanKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR} value to the {@link XrSwapchainImageVulkanKHR#type} field. */ - public XrSwapchainImageVulkanKHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR); } - /** Sets the specified value to the {@link XrSwapchainImageVulkanKHR#next} field. */ - public XrSwapchainImageVulkanKHR.Buffer next(@NativeType("void *") long value) { XrSwapchainImageVulkanKHR.nnext(address(), value); return this; } - /** Prepends the specified {@link XrSwapchainImageFoveationVulkanFB} value to the {@code next} chain. */ - public XrSwapchainImageVulkanKHR.Buffer next(XrSwapchainImageFoveationVulkanFB value) { return this.next(value.next(this.next()).address()); } + + /** @return the value of the {@link XrSwapchainImageVulkanKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainImageVulkanKHR.ntype(address()); } + /** @return the value of the {@link XrSwapchainImageVulkanKHR#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainImageVulkanKHR.nnext(address()); } + /** @return the value of the {@link XrSwapchainImageVulkanKHR#image} field. */ + @NativeType("VkImage") + public long image() { return XrSwapchainImageVulkanKHR.nimage(address()); } + + /** Sets the specified value to the {@link XrSwapchainImageVulkanKHR#type} field. */ + public XrSwapchainImageVulkanKHR.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageVulkanKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR} value to the {@link XrSwapchainImageVulkanKHR#type} field. */ + public XrSwapchainImageVulkanKHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR); } + /** Sets the specified value to the {@link XrSwapchainImageVulkanKHR#next} field. */ + public XrSwapchainImageVulkanKHR.Buffer next(@NativeType("void *") long value) { XrSwapchainImageVulkanKHR.nnext(address(), value); return this; } + /** Prepends the specified {@link XrSwapchainImageFoveationVulkanFB} value to the {@code next} chain. */ + public XrSwapchainImageVulkanKHR.Buffer next(XrSwapchainImageFoveationVulkanFB value) { return this.next(value.next(this.next()).address()); } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageWaitInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageWaitInfo.java index 49f564fedd..4a8feead63 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageWaitInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageWaitInfo.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 a swapchain image wait operation. * @@ -37,8 +37,8 @@ * void const * {@link #next}; * XrDuration {@link #timeout}; * } - */ -public class XrSwapchainImageWaitInfo extends Struct implements NativeResource { + */ +public class XrSwapchainImageWaitInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,32 +48,23 @@ public class XrSwapchainImageWaitInfo extends Struct i /** The struct member offsets. */ public static final int - TYPE, - NEXT, - TIMEOUT; + TYPE, + NEXT, + TIMEOUT; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - TIMEOUT = layout.offsetof(2); - } - - protected XrSwapchainImageWaitInfo(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSwapchainImageWaitInfo create(long address, @Nullable ByteBuffer container) { - return new XrSwapchainImageWaitInfo(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + TIMEOUT = layout.offsetof(2); } /** @@ -88,35 +79,35 @@ public XrSwapchainImageWaitInfo(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()); } - /** indicates how many nanoseconds the call should block waiting for the image to become available for writing. */ - @NativeType("XrDuration") - public long timeout() { return ntimeout(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSwapchainImageWaitInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO TYPE_SWAPCHAIN_IMAGE_WAIT_INFO} value to the {@link #type} field. */ - public XrSwapchainImageWaitInfo type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrSwapchainImageWaitInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #timeout} field. */ - public XrSwapchainImageWaitInfo timeout(@NativeType("XrDuration") long value) { ntimeout(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()); } + /** indicates how many nanoseconds the call should block waiting for the image to become available for writing. */ + @NativeType("XrDuration") + public long timeout() { return ntimeout(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSwapchainImageWaitInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO TYPE_SWAPCHAIN_IMAGE_WAIT_INFO} value to the {@link #type} field. */ + public XrSwapchainImageWaitInfo type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrSwapchainImageWaitInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #timeout} field. */ + public XrSwapchainImageWaitInfo timeout(@NativeType("XrDuration") long value) { ntimeout(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSwapchainImageWaitInfo set( - int type, - long next, + int type, + long next, long timeout - ) { - type(type); - next(next); - timeout(timeout); + ) { + type(type); + next(next); + timeout(timeout); return this; } @@ -137,29 +128,29 @@ public XrSwapchainImageWaitInfo set(XrSwapchainImageWaitInfo src) { /** Returns a new {@code XrSwapchainImageWaitInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSwapchainImageWaitInfo malloc() { - return new XrSwapchainImageWaitInfo(nmemAllocChecked(SIZEOF), null); + return wrap(XrSwapchainImageWaitInfo.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSwapchainImageWaitInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSwapchainImageWaitInfo calloc() { - return new XrSwapchainImageWaitInfo(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSwapchainImageWaitInfo.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSwapchainImageWaitInfo} instance allocated with {@link BufferUtils}. */ public static XrSwapchainImageWaitInfo create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSwapchainImageWaitInfo(memAddress(container), container); + return wrap(XrSwapchainImageWaitInfo.class, memAddress(container), container); } /** Returns a new {@code XrSwapchainImageWaitInfo} instance for the specified memory address. */ public static XrSwapchainImageWaitInfo create(long address) { - return new XrSwapchainImageWaitInfo(address, null); + return wrap(XrSwapchainImageWaitInfo.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSwapchainImageWaitInfo createSafe(long address) { - return address == NULL ? null : new XrSwapchainImageWaitInfo(address, null); + return address == NULL ? null : wrap(XrSwapchainImageWaitInfo.class, address); } /** @@ -168,7 +159,7 @@ public static XrSwapchainImageWaitInfo createSafe(long address) { * @param capacity the buffer capacity */ public static XrSwapchainImageWaitInfo.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -177,7 +168,7 @@ public static XrSwapchainImageWaitInfo.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSwapchainImageWaitInfo.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -187,7 +178,7 @@ public static XrSwapchainImageWaitInfo.Buffer calloc(int capacity) { */ public static XrSwapchainImageWaitInfo.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); } /** @@ -197,13 +188,13 @@ public static XrSwapchainImageWaitInfo.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSwapchainImageWaitInfo.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 XrSwapchainImageWaitInfo.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -212,7 +203,7 @@ public static XrSwapchainImageWaitInfo.Buffer createSafe(long address, int capac * @param stack the stack from which to allocate */ public static XrSwapchainImageWaitInfo malloc(MemoryStack stack) { - return new XrSwapchainImageWaitInfo(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSwapchainImageWaitInfo.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -221,7 +212,7 @@ public static XrSwapchainImageWaitInfo malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSwapchainImageWaitInfo calloc(MemoryStack stack) { - return new XrSwapchainImageWaitInfo(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSwapchainImageWaitInfo.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -231,7 +222,7 @@ public static XrSwapchainImageWaitInfo calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSwapchainImageWaitInfo.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); } /** @@ -241,26 +232,26 @@ public static XrSwapchainImageWaitInfo.Buffer malloc(int capacity, MemoryStack s * @param capacity the buffer capacity */ public static XrSwapchainImageWaitInfo.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 + XrSwapchainImageWaitInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainImageWaitInfo.NEXT); } - /** Unsafe version of {@link #timeout}. */ - public static long ntimeout(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainImageWaitInfo.TIMEOUT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainImageWaitInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainImageWaitInfo.NEXT, value); } - /** Unsafe version of {@link #timeout(long) timeout}. */ - public static void ntimeout(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainImageWaitInfo.TIMEOUT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainImageWaitInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainImageWaitInfo.NEXT); } + /** Unsafe version of {@link #timeout}. */ + public static long ntimeout(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainImageWaitInfo.TIMEOUT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainImageWaitInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainImageWaitInfo.NEXT, value); } + /** Unsafe version of {@link #timeout(long) timeout}. */ + public static void ntimeout(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainImageWaitInfo.TIMEOUT, value); } + + // ----------------------------------- /** An array of {@link XrSwapchainImageWaitInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -270,9 +261,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 XrSwapchainImageWaitInfo#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSwapchainImageWaitInfo#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -297,25 +288,25 @@ protected Buffer self() { protected XrSwapchainImageWaitInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainImageWaitInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainImageWaitInfo.ntype(address()); } - /** @return the value of the {@link XrSwapchainImageWaitInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrSwapchainImageWaitInfo.nnext(address()); } - /** @return the value of the {@link XrSwapchainImageWaitInfo#timeout} field. */ - @NativeType("XrDuration") - public long timeout() { return XrSwapchainImageWaitInfo.ntimeout(address()); } - - /** Sets the specified value to the {@link XrSwapchainImageWaitInfo#type} field. */ - public XrSwapchainImageWaitInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageWaitInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO TYPE_SWAPCHAIN_IMAGE_WAIT_INFO} value to the {@link XrSwapchainImageWaitInfo#type} field. */ - public XrSwapchainImageWaitInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO); } - /** Sets the specified value to the {@link XrSwapchainImageWaitInfo#next} field. */ - public XrSwapchainImageWaitInfo.Buffer next(@NativeType("void const *") long value) { XrSwapchainImageWaitInfo.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainImageWaitInfo#timeout} field. */ - public XrSwapchainImageWaitInfo.Buffer timeout(@NativeType("XrDuration") long value) { XrSwapchainImageWaitInfo.ntimeout(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainImageWaitInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainImageWaitInfo.ntype(address()); } + /** @return the value of the {@link XrSwapchainImageWaitInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrSwapchainImageWaitInfo.nnext(address()); } + /** @return the value of the {@link XrSwapchainImageWaitInfo#timeout} field. */ + @NativeType("XrDuration") + public long timeout() { return XrSwapchainImageWaitInfo.ntimeout(address()); } + + /** Sets the specified value to the {@link XrSwapchainImageWaitInfo#type} field. */ + public XrSwapchainImageWaitInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageWaitInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO TYPE_SWAPCHAIN_IMAGE_WAIT_INFO} value to the {@link XrSwapchainImageWaitInfo#type} field. */ + public XrSwapchainImageWaitInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO); } + /** Sets the specified value to the {@link XrSwapchainImageWaitInfo#next} field. */ + public XrSwapchainImageWaitInfo.Buffer next(@NativeType("void const *") long value) { XrSwapchainImageWaitInfo.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainImageWaitInfo#timeout} field. */ + public XrSwapchainImageWaitInfo.Buffer timeout(@NativeType("XrDuration") long value) { XrSwapchainImageWaitInfo.ntimeout(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateBaseHeaderFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateBaseHeaderFB.java index 92d2c83dea..8b97133027 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateBaseHeaderFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateBaseHeaderFB.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 header for swapchain update state. * @@ -41,8 +41,8 @@ * XrStructureType {@link #type}; * void * {@link #next}; * } - */ -public class XrSwapchainStateBaseHeaderFB extends Struct implements NativeResource { + */ +public class XrSwapchainStateBaseHeaderFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,29 +52,20 @@ public class XrSwapchainStateBaseHeaderFB extends Struct 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 XrSwapchainStateBaseHeaderFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSwapchainStateBaseHeaderFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -315,18 +306,18 @@ protected Buffer self() { protected XrSwapchainStateBaseHeaderFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainStateBaseHeaderFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainStateBaseHeaderFB.ntype(address()); } - /** @return the value of the {@link XrSwapchainStateBaseHeaderFB#next} field. */ - @NativeType("void *") - public long next() { return XrSwapchainStateBaseHeaderFB.nnext(address()); } - - /** Sets the specified value to the {@link XrSwapchainStateBaseHeaderFB#type} field. */ - public XrSwapchainStateBaseHeaderFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainStateBaseHeaderFB.ntype(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateBaseHeaderFB#next} field. */ - public XrSwapchainStateBaseHeaderFB.Buffer next(@NativeType("void *") long value) { XrSwapchainStateBaseHeaderFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainStateBaseHeaderFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainStateBaseHeaderFB.ntype(address()); } + /** @return the value of the {@link XrSwapchainStateBaseHeaderFB#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainStateBaseHeaderFB.nnext(address()); } + + /** Sets the specified value to the {@link XrSwapchainStateBaseHeaderFB#type} field. */ + public XrSwapchainStateBaseHeaderFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainStateBaseHeaderFB.ntype(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateBaseHeaderFB#next} field. */ + public XrSwapchainStateBaseHeaderFB.Buffer next(@NativeType("void *") long value) { XrSwapchainStateBaseHeaderFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateFoveationFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateFoveationFB.java index 689c6966e5..8bc5762448 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateFoveationFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateFoveationFB.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.*; + /** * Foveation swapchain state,xrefs=. * @@ -38,8 +38,8 @@ * XrSwapchainStateFoveationFlagsFB {@link #flags}; * XrFoveationProfileFB {@link #profile}; * } - */ -public class XrSwapchainStateFoveationFB extends Struct implements NativeResource { + */ +public class XrSwapchainStateFoveationFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,35 +49,26 @@ public class XrSwapchainStateFoveationFB extends Structmust be updated. */ - @NativeType("XrSwapchainStateFoveationFlagsFB") - public long flags() { return nflags(address()); } - /** an {@code XrFoveationProfileFB} defining the desired foveation properties to be applied to the swapchain. */ - @NativeType("XrFoveationProfileFB") - public long profile() { return nprofile(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSwapchainStateFoveationFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBFoveation#XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB TYPE_SWAPCHAIN_STATE_FOVEATION_FB} value to the {@link #type} field. */ - public XrSwapchainStateFoveationFB type$Default() { return type(FBFoveation.XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSwapchainStateFoveationFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #flags} field. */ - public XrSwapchainStateFoveationFB flags(@NativeType("XrSwapchainStateFoveationFlagsFB") long value) { nflags(address(), value); return this; } - /** Sets the specified value to the {@link #profile} field. */ - public XrSwapchainStateFoveationFB profile(XrFoveationProfileFB value) { nprofile(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()); } + /** a bitmask of {@code XrSwapchainStateFoveationFlagBitsFB} which indicate various characteristics of how and when the foveation properties of the swapchain must be updated. */ + @NativeType("XrSwapchainStateFoveationFlagsFB") + public long flags() { return nflags(address()); } + /** an {@code XrFoveationProfileFB} defining the desired foveation properties to be applied to the swapchain. */ + @NativeType("XrFoveationProfileFB") + public long profile() { return nprofile(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSwapchainStateFoveationFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBFoveation#XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB TYPE_SWAPCHAIN_STATE_FOVEATION_FB} value to the {@link #type} field. */ + public XrSwapchainStateFoveationFB type$Default() { return type(FBFoveation.XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSwapchainStateFoveationFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #flags} field. */ + public XrSwapchainStateFoveationFB flags(@NativeType("XrSwapchainStateFoveationFlagsFB") long value) { nflags(address(), value); return this; } + /** Sets the specified value to the {@link #profile} field. */ + public XrSwapchainStateFoveationFB profile(XrFoveationProfileFB value) { nprofile(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSwapchainStateFoveationFB set( - int type, - long next, - long flags, + int type, + long next, + long flags, XrFoveationProfileFB profile - ) { - type(type); - next(next); - flags(flags); - profile(profile); + ) { + type(type); + next(next); + flags(flags); + profile(profile); return this; } @@ -148,34 +139,34 @@ public XrSwapchainStateFoveationFB set(XrSwapchainStateFoveationFB src) { /** Returns a new {@code XrSwapchainStateFoveationFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSwapchainStateFoveationFB malloc() { - return new XrSwapchainStateFoveationFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrSwapchainStateFoveationFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSwapchainStateFoveationFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSwapchainStateFoveationFB calloc() { - return new XrSwapchainStateFoveationFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSwapchainStateFoveationFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSwapchainStateFoveationFB} instance allocated with {@link BufferUtils}. */ public static XrSwapchainStateFoveationFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSwapchainStateFoveationFB(memAddress(container), container); + return wrap(XrSwapchainStateFoveationFB.class, memAddress(container), container); } /** Returns a new {@code XrSwapchainStateFoveationFB} instance for the specified memory address. */ public static XrSwapchainStateFoveationFB create(long address) { - return new XrSwapchainStateFoveationFB(address, null); + return wrap(XrSwapchainStateFoveationFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSwapchainStateFoveationFB createSafe(long address) { - return address == NULL ? null : new XrSwapchainStateFoveationFB(address, null); + return address == NULL ? null : wrap(XrSwapchainStateFoveationFB.class, address); } /** Downcasts the specified {@code XrSwapchainStateBaseHeaderFB} instance to {@code XrSwapchainStateFoveationFB}. */ public static XrSwapchainStateFoveationFB create(XrSwapchainStateBaseHeaderFB value) { - return new XrSwapchainStateFoveationFB(value.address(), __getContainer(value)); + return wrap(XrSwapchainStateFoveationFB.class, value); } /** @@ -184,7 +175,7 @@ public static XrSwapchainStateFoveationFB create(XrSwapchainStateBaseHeaderFB va * @param capacity the buffer capacity */ public static XrSwapchainStateFoveationFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -193,7 +184,7 @@ public static XrSwapchainStateFoveationFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSwapchainStateFoveationFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -203,7 +194,7 @@ public static XrSwapchainStateFoveationFB.Buffer calloc(int capacity) { */ public static XrSwapchainStateFoveationFB.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); } /** @@ -213,18 +204,18 @@ public static XrSwapchainStateFoveationFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSwapchainStateFoveationFB.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 XrSwapchainStateFoveationFB.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 XrSwapchainStateBaseHeaderFB.Buffer} instance to {@code XrSwapchainStateFoveationFB.Buffer}. */ public static XrSwapchainStateFoveationFB.Buffer create(XrSwapchainStateBaseHeaderFB.Buffer value) { - return new XrSwapchainStateFoveationFB.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** @@ -233,7 +224,7 @@ public static XrSwapchainStateFoveationFB.Buffer create(XrSwapchainStateBaseHead * @param stack the stack from which to allocate */ public static XrSwapchainStateFoveationFB malloc(MemoryStack stack) { - return new XrSwapchainStateFoveationFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSwapchainStateFoveationFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -242,7 +233,7 @@ public static XrSwapchainStateFoveationFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSwapchainStateFoveationFB calloc(MemoryStack stack) { - return new XrSwapchainStateFoveationFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSwapchainStateFoveationFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -252,7 +243,7 @@ public static XrSwapchainStateFoveationFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSwapchainStateFoveationFB.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); } /** @@ -262,28 +253,28 @@ public static XrSwapchainStateFoveationFB.Buffer malloc(int capacity, MemoryStac * @param capacity the buffer capacity */ public static XrSwapchainStateFoveationFB.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 + XrSwapchainStateFoveationFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainStateFoveationFB.NEXT); } - /** Unsafe version of {@link #flags}. */ - public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainStateFoveationFB.FLAGS); } - /** Unsafe version of {@link #profile}. */ - public static long nprofile(long struct) { return memGetAddress(struct + XrSwapchainStateFoveationFB.PROFILE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateFoveationFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainStateFoveationFB.NEXT, value); } - /** Unsafe version of {@link #flags(long) flags}. */ - public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainStateFoveationFB.FLAGS, value); } - /** Unsafe version of {@link #profile(XrFoveationProfileFB) profile}. */ - public static void nprofile(long struct, XrFoveationProfileFB value) { memPutAddress(struct + XrSwapchainStateFoveationFB.PROFILE, value.address()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateFoveationFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainStateFoveationFB.NEXT); } + /** Unsafe version of {@link #flags}. */ + public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainStateFoveationFB.FLAGS); } + /** Unsafe version of {@link #profile}. */ + public static long nprofile(long struct) { return memGetAddress(struct + XrSwapchainStateFoveationFB.PROFILE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateFoveationFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainStateFoveationFB.NEXT, value); } + /** Unsafe version of {@link #flags(long) flags}. */ + public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainStateFoveationFB.FLAGS, value); } + /** Unsafe version of {@link #profile(XrFoveationProfileFB) profile}. */ + public static void nprofile(long struct, XrFoveationProfileFB value) { memPutAddress(struct + XrSwapchainStateFoveationFB.PROFILE, value.address()); } /** * Validates pointer members that should not be {@code NULL}. @@ -292,9 +283,9 @@ public static XrSwapchainStateFoveationFB.Buffer calloc(int capacity, MemoryStac */ public static void validate(long struct) { check(memGetAddress(struct + XrSwapchainStateFoveationFB.PROFILE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSwapchainStateFoveationFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -304,9 +295,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 XrSwapchainStateFoveationFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSwapchainStateFoveationFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -331,30 +322,30 @@ protected Buffer self() { protected XrSwapchainStateFoveationFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainStateFoveationFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainStateFoveationFB.ntype(address()); } - /** @return the value of the {@link XrSwapchainStateFoveationFB#next} field. */ - @NativeType("void *") - public long next() { return XrSwapchainStateFoveationFB.nnext(address()); } - /** @return the value of the {@link XrSwapchainStateFoveationFB#flags} field. */ - @NativeType("XrSwapchainStateFoveationFlagsFB") - public long flags() { return XrSwapchainStateFoveationFB.nflags(address()); } - /** @return the value of the {@link XrSwapchainStateFoveationFB#profile} field. */ - @NativeType("XrFoveationProfileFB") - public long profile() { return XrSwapchainStateFoveationFB.nprofile(address()); } - - /** Sets the specified value to the {@link XrSwapchainStateFoveationFB#type} field. */ - public XrSwapchainStateFoveationFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainStateFoveationFB.ntype(address(), value); return this; } - /** Sets the {@link FBFoveation#XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB TYPE_SWAPCHAIN_STATE_FOVEATION_FB} value to the {@link XrSwapchainStateFoveationFB#type} field. */ - public XrSwapchainStateFoveationFB.Buffer type$Default() { return type(FBFoveation.XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB); } - /** Sets the specified value to the {@link XrSwapchainStateFoveationFB#next} field. */ - public XrSwapchainStateFoveationFB.Buffer next(@NativeType("void *") long value) { XrSwapchainStateFoveationFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateFoveationFB#flags} field. */ - public XrSwapchainStateFoveationFB.Buffer flags(@NativeType("XrSwapchainStateFoveationFlagsFB") long value) { XrSwapchainStateFoveationFB.nflags(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateFoveationFB#profile} field. */ - public XrSwapchainStateFoveationFB.Buffer profile(XrFoveationProfileFB value) { XrSwapchainStateFoveationFB.nprofile(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainStateFoveationFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainStateFoveationFB.ntype(address()); } + /** @return the value of the {@link XrSwapchainStateFoveationFB#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainStateFoveationFB.nnext(address()); } + /** @return the value of the {@link XrSwapchainStateFoveationFB#flags} field. */ + @NativeType("XrSwapchainStateFoveationFlagsFB") + public long flags() { return XrSwapchainStateFoveationFB.nflags(address()); } + /** @return the value of the {@link XrSwapchainStateFoveationFB#profile} field. */ + @NativeType("XrFoveationProfileFB") + public long profile() { return XrSwapchainStateFoveationFB.nprofile(address()); } + + /** Sets the specified value to the {@link XrSwapchainStateFoveationFB#type} field. */ + public XrSwapchainStateFoveationFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainStateFoveationFB.ntype(address(), value); return this; } + /** Sets the {@link FBFoveation#XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB TYPE_SWAPCHAIN_STATE_FOVEATION_FB} value to the {@link XrSwapchainStateFoveationFB#type} field. */ + public XrSwapchainStateFoveationFB.Buffer type$Default() { return type(FBFoveation.XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB); } + /** Sets the specified value to the {@link XrSwapchainStateFoveationFB#next} field. */ + public XrSwapchainStateFoveationFB.Buffer next(@NativeType("void *") long value) { XrSwapchainStateFoveationFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateFoveationFB#flags} field. */ + public XrSwapchainStateFoveationFB.Buffer flags(@NativeType("XrSwapchainStateFoveationFlagsFB") long value) { XrSwapchainStateFoveationFB.nflags(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateFoveationFB#profile} field. */ + public XrSwapchainStateFoveationFB.Buffer profile(XrFoveationProfileFB value) { XrSwapchainStateFoveationFB.nprofile(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateSamplerOpenGLESFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateSamplerOpenGLESFB.java index 6db55504de..7ceb925e0a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateSamplerOpenGLESFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateSamplerOpenGLESFB.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 org.lwjgl.egl.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.egl.*; + /** * OpenGL ES-specific swapchain sampler state structure. * @@ -71,8 +71,8 @@ * float {@link #maxAnisotropy}; * {@link XrColor4f XrColor4f} {@link #borderColor}; * } - */ -public class XrSwapchainStateSamplerOpenGLESFB extends Struct implements NativeResource { + */ +public class XrSwapchainStateSamplerOpenGLESFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -82,59 +82,50 @@ public class XrSwapchainStateSamplerOpenGLESFB extends Struct consumer) { consumer.accept(borderColor()); 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()); } + /** a valid Android OpenGL ES {@code EGLenum}. */ + @NativeType("EGLenum") + public int minFilter() { return nminFilter(address()); } + /** a valid Android OpenGL ES {@code EGLenum}. */ + @NativeType("EGLenum") + public int magFilter() { return nmagFilter(address()); } + /** a valid Android OpenGL ES {@code EGLenum}. */ + @NativeType("EGLenum") + public int wrapModeS() { return nwrapModeS(address()); } + /** a valid Android OpenGL ES {@code EGLenum}. */ + @NativeType("EGLenum") + public int wrapModeT() { return nwrapModeT(address()); } + /** a valid Android OpenGL ES {@code EGLenum}. */ + @NativeType("EGLenum") + public int swizzleRed() { return nswizzleRed(address()); } + /** a valid Android OpenGL ES {@code EGLenum}. */ + @NativeType("EGLenum") + public int swizzleGreen() { return nswizzleGreen(address()); } + /** a valid Android OpenGL ES {@code EGLenum}. */ + @NativeType("EGLenum") + public int swizzleBlue() { return nswizzleBlue(address()); } + /** a valid Android OpenGL ES {@code EGLenum}. */ + @NativeType("EGLenum") + public int swizzleAlpha() { return nswizzleAlpha(address()); } + /** a valid float used to represent max anisotropy. */ + public float maxAnisotropy() { return nmaxAnisotropy(address()); } + /** an RGBA color to be used as border texels. */ + public XrColor4f borderColor() { return nborderColor(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSwapchainStateSamplerOpenGLESFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSwapchainUpdateStateOpenGLES#XR_TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB} value to the {@link #type} field. */ + public XrSwapchainStateSamplerOpenGLESFB type$Default() { return type(FBSwapchainUpdateStateOpenGLES.XR_TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSwapchainStateSamplerOpenGLESFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #minFilter} field. */ + public XrSwapchainStateSamplerOpenGLESFB minFilter(@NativeType("EGLenum") int value) { nminFilter(address(), value); return this; } + /** Sets the specified value to the {@link #magFilter} field. */ + public XrSwapchainStateSamplerOpenGLESFB magFilter(@NativeType("EGLenum") int value) { nmagFilter(address(), value); return this; } + /** Sets the specified value to the {@link #wrapModeS} field. */ + public XrSwapchainStateSamplerOpenGLESFB wrapModeS(@NativeType("EGLenum") int value) { nwrapModeS(address(), value); return this; } + /** Sets the specified value to the {@link #wrapModeT} field. */ + public XrSwapchainStateSamplerOpenGLESFB wrapModeT(@NativeType("EGLenum") int value) { nwrapModeT(address(), value); return this; } + /** Sets the specified value to the {@link #swizzleRed} field. */ + public XrSwapchainStateSamplerOpenGLESFB swizzleRed(@NativeType("EGLenum") int value) { nswizzleRed(address(), value); return this; } + /** Sets the specified value to the {@link #swizzleGreen} field. */ + public XrSwapchainStateSamplerOpenGLESFB swizzleGreen(@NativeType("EGLenum") int value) { nswizzleGreen(address(), value); return this; } + /** Sets the specified value to the {@link #swizzleBlue} field. */ + public XrSwapchainStateSamplerOpenGLESFB swizzleBlue(@NativeType("EGLenum") int value) { nswizzleBlue(address(), value); return this; } + /** Sets the specified value to the {@link #swizzleAlpha} field. */ + public XrSwapchainStateSamplerOpenGLESFB swizzleAlpha(@NativeType("EGLenum") int value) { nswizzleAlpha(address(), value); return this; } + /** Sets the specified value to the {@link #maxAnisotropy} field. */ + public XrSwapchainStateSamplerOpenGLESFB maxAnisotropy(float value) { nmaxAnisotropy(address(), value); return this; } + /** Copies the specified {@link XrColor4f} to the {@link #borderColor} field. */ + public XrSwapchainStateSamplerOpenGLESFB borderColor(XrColor4f value) { nborderColor(address(), value); return this; } + /** Passes the {@link #borderColor} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSwapchainStateSamplerOpenGLESFB borderColor(java.util.function.Consumer consumer) { consumer.accept(borderColor()); return this; } /** Initializes this struct with the specified values. */ public XrSwapchainStateSamplerOpenGLESFB set( - int type, - long next, - int minFilter, - int magFilter, - int wrapModeS, - int wrapModeT, - int swizzleRed, - int swizzleGreen, - int swizzleBlue, - int swizzleAlpha, - float maxAnisotropy, + int type, + long next, + int minFilter, + int magFilter, + int wrapModeS, + int wrapModeT, + int swizzleRed, + int swizzleGreen, + int swizzleBlue, + int swizzleAlpha, + float maxAnisotropy, XrColor4f borderColor - ) { - type(type); - next(next); - minFilter(minFilter); - magFilter(magFilter); - wrapModeS(wrapModeS); - wrapModeT(wrapModeT); - swizzleRed(swizzleRed); - swizzleGreen(swizzleGreen); - swizzleBlue(swizzleBlue); - swizzleAlpha(swizzleAlpha); - maxAnisotropy(maxAnisotropy); - borderColor(borderColor); + ) { + type(type); + next(next); + minFilter(minFilter); + magFilter(magFilter); + wrapModeS(wrapModeS); + wrapModeT(wrapModeT); + swizzleRed(swizzleRed); + swizzleGreen(swizzleGreen); + swizzleBlue(swizzleBlue); + swizzleAlpha(swizzleAlpha); + maxAnisotropy(maxAnisotropy); + borderColor(borderColor); return this; } @@ -261,34 +252,34 @@ public XrSwapchainStateSamplerOpenGLESFB set(XrSwapchainStateSamplerOpenGLESFB s /** Returns a new {@code XrSwapchainStateSamplerOpenGLESFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSwapchainStateSamplerOpenGLESFB malloc() { - return new XrSwapchainStateSamplerOpenGLESFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrSwapchainStateSamplerOpenGLESFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSwapchainStateSamplerOpenGLESFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSwapchainStateSamplerOpenGLESFB calloc() { - return new XrSwapchainStateSamplerOpenGLESFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSwapchainStateSamplerOpenGLESFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSwapchainStateSamplerOpenGLESFB} instance allocated with {@link BufferUtils}. */ public static XrSwapchainStateSamplerOpenGLESFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSwapchainStateSamplerOpenGLESFB(memAddress(container), container); + return wrap(XrSwapchainStateSamplerOpenGLESFB.class, memAddress(container), container); } /** Returns a new {@code XrSwapchainStateSamplerOpenGLESFB} instance for the specified memory address. */ public static XrSwapchainStateSamplerOpenGLESFB create(long address) { - return new XrSwapchainStateSamplerOpenGLESFB(address, null); + return wrap(XrSwapchainStateSamplerOpenGLESFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSwapchainStateSamplerOpenGLESFB createSafe(long address) { - return address == NULL ? null : new XrSwapchainStateSamplerOpenGLESFB(address, null); + return address == NULL ? null : wrap(XrSwapchainStateSamplerOpenGLESFB.class, address); } /** Downcasts the specified {@code XrSwapchainStateBaseHeaderFB} instance to {@code XrSwapchainStateSamplerOpenGLESFB}. */ public static XrSwapchainStateSamplerOpenGLESFB create(XrSwapchainStateBaseHeaderFB value) { - return new XrSwapchainStateSamplerOpenGLESFB(value.address(), __getContainer(value)); + return wrap(XrSwapchainStateSamplerOpenGLESFB.class, value); } /** @@ -297,7 +288,7 @@ public static XrSwapchainStateSamplerOpenGLESFB create(XrSwapchainStateBaseHeade * @param capacity the buffer capacity */ public static XrSwapchainStateSamplerOpenGLESFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -306,7 +297,7 @@ public static XrSwapchainStateSamplerOpenGLESFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSwapchainStateSamplerOpenGLESFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -316,7 +307,7 @@ public static XrSwapchainStateSamplerOpenGLESFB.Buffer calloc(int capacity) { */ public static XrSwapchainStateSamplerOpenGLESFB.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); } /** @@ -326,18 +317,18 @@ public static XrSwapchainStateSamplerOpenGLESFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSwapchainStateSamplerOpenGLESFB.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 XrSwapchainStateSamplerOpenGLESFB.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 XrSwapchainStateBaseHeaderFB.Buffer} instance to {@code XrSwapchainStateSamplerOpenGLESFB.Buffer}. */ public static XrSwapchainStateSamplerOpenGLESFB.Buffer create(XrSwapchainStateBaseHeaderFB.Buffer value) { - return new XrSwapchainStateSamplerOpenGLESFB.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** @@ -346,7 +337,7 @@ public static XrSwapchainStateSamplerOpenGLESFB.Buffer create(XrSwapchainStateBa * @param stack the stack from which to allocate */ public static XrSwapchainStateSamplerOpenGLESFB malloc(MemoryStack stack) { - return new XrSwapchainStateSamplerOpenGLESFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSwapchainStateSamplerOpenGLESFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -355,7 +346,7 @@ public static XrSwapchainStateSamplerOpenGLESFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSwapchainStateSamplerOpenGLESFB calloc(MemoryStack stack) { - return new XrSwapchainStateSamplerOpenGLESFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSwapchainStateSamplerOpenGLESFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -365,7 +356,7 @@ public static XrSwapchainStateSamplerOpenGLESFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSwapchainStateSamplerOpenGLESFB.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); } /** @@ -375,62 +366,62 @@ public static XrSwapchainStateSamplerOpenGLESFB.Buffer malloc(int capacity, Memo * @param capacity the buffer capacity */ public static XrSwapchainStateSamplerOpenGLESFB.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 + XrSwapchainStateSamplerOpenGLESFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainStateSamplerOpenGLESFB.NEXT); } - /** Unsafe version of {@link #minFilter}. */ - public static int nminFilter(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.MINFILTER); } - /** Unsafe version of {@link #magFilter}. */ - public static int nmagFilter(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.MAGFILTER); } - /** Unsafe version of {@link #wrapModeS}. */ - public static int nwrapModeS(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.WRAPMODES); } - /** Unsafe version of {@link #wrapModeT}. */ - public static int nwrapModeT(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.WRAPMODET); } - /** Unsafe version of {@link #swizzleRed}. */ - public static int nswizzleRed(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLERED); } - /** Unsafe version of {@link #swizzleGreen}. */ - public static int nswizzleGreen(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEGREEN); } - /** Unsafe version of {@link #swizzleBlue}. */ - public static int nswizzleBlue(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEBLUE); } - /** Unsafe version of {@link #swizzleAlpha}. */ - public static int nswizzleAlpha(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEALPHA); } - /** Unsafe version of {@link #maxAnisotropy}. */ - public static float nmaxAnisotropy(long struct) { return UNSAFE.getFloat(null, struct + XrSwapchainStateSamplerOpenGLESFB.MAXANISOTROPY); } - /** Unsafe version of {@link #borderColor}. */ - public static XrColor4f nborderColor(long struct) { return XrColor4f.create(struct + XrSwapchainStateSamplerOpenGLESFB.BORDERCOLOR); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainStateSamplerOpenGLESFB.NEXT, value); } - /** Unsafe version of {@link #minFilter(int) minFilter}. */ - public static void nminFilter(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.MINFILTER, value); } - /** Unsafe version of {@link #magFilter(int) magFilter}. */ - public static void nmagFilter(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.MAGFILTER, value); } - /** Unsafe version of {@link #wrapModeS(int) wrapModeS}. */ - public static void nwrapModeS(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.WRAPMODES, value); } - /** Unsafe version of {@link #wrapModeT(int) wrapModeT}. */ - public static void nwrapModeT(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.WRAPMODET, value); } - /** Unsafe version of {@link #swizzleRed(int) swizzleRed}. */ - public static void nswizzleRed(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLERED, value); } - /** Unsafe version of {@link #swizzleGreen(int) swizzleGreen}. */ - public static void nswizzleGreen(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEGREEN, value); } - /** Unsafe version of {@link #swizzleBlue(int) swizzleBlue}. */ - public static void nswizzleBlue(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEBLUE, value); } - /** Unsafe version of {@link #swizzleAlpha(int) swizzleAlpha}. */ - public static void nswizzleAlpha(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEALPHA, value); } - /** Unsafe version of {@link #maxAnisotropy(float) maxAnisotropy}. */ - public static void nmaxAnisotropy(long struct, float value) { UNSAFE.putFloat(null, struct + XrSwapchainStateSamplerOpenGLESFB.MAXANISOTROPY, value); } - /** Unsafe version of {@link #borderColor(XrColor4f) borderColor}. */ - public static void nborderColor(long struct, XrColor4f value) { memCopy(value.address(), struct + XrSwapchainStateSamplerOpenGLESFB.BORDERCOLOR, XrColor4f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainStateSamplerOpenGLESFB.NEXT); } + /** Unsafe version of {@link #minFilter}. */ + public static int nminFilter(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.MINFILTER); } + /** Unsafe version of {@link #magFilter}. */ + public static int nmagFilter(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.MAGFILTER); } + /** Unsafe version of {@link #wrapModeS}. */ + public static int nwrapModeS(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.WRAPMODES); } + /** Unsafe version of {@link #wrapModeT}. */ + public static int nwrapModeT(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.WRAPMODET); } + /** Unsafe version of {@link #swizzleRed}. */ + public static int nswizzleRed(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLERED); } + /** Unsafe version of {@link #swizzleGreen}. */ + public static int nswizzleGreen(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEGREEN); } + /** Unsafe version of {@link #swizzleBlue}. */ + public static int nswizzleBlue(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEBLUE); } + /** Unsafe version of {@link #swizzleAlpha}. */ + public static int nswizzleAlpha(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEALPHA); } + /** Unsafe version of {@link #maxAnisotropy}. */ + public static float nmaxAnisotropy(long struct) { return UNSAFE.getFloat(null, struct + XrSwapchainStateSamplerOpenGLESFB.MAXANISOTROPY); } + /** Unsafe version of {@link #borderColor}. */ + public static XrColor4f nborderColor(long struct) { return XrColor4f.create(struct + XrSwapchainStateSamplerOpenGLESFB.BORDERCOLOR); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainStateSamplerOpenGLESFB.NEXT, value); } + /** Unsafe version of {@link #minFilter(int) minFilter}. */ + public static void nminFilter(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.MINFILTER, value); } + /** Unsafe version of {@link #magFilter(int) magFilter}. */ + public static void nmagFilter(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.MAGFILTER, value); } + /** Unsafe version of {@link #wrapModeS(int) wrapModeS}. */ + public static void nwrapModeS(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.WRAPMODES, value); } + /** Unsafe version of {@link #wrapModeT(int) wrapModeT}. */ + public static void nwrapModeT(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.WRAPMODET, value); } + /** Unsafe version of {@link #swizzleRed(int) swizzleRed}. */ + public static void nswizzleRed(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLERED, value); } + /** Unsafe version of {@link #swizzleGreen(int) swizzleGreen}. */ + public static void nswizzleGreen(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEGREEN, value); } + /** Unsafe version of {@link #swizzleBlue(int) swizzleBlue}. */ + public static void nswizzleBlue(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEBLUE, value); } + /** Unsafe version of {@link #swizzleAlpha(int) swizzleAlpha}. */ + public static void nswizzleAlpha(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEALPHA, value); } + /** Unsafe version of {@link #maxAnisotropy(float) maxAnisotropy}. */ + public static void nmaxAnisotropy(long struct, float value) { UNSAFE.putFloat(null, struct + XrSwapchainStateSamplerOpenGLESFB.MAXANISOTROPY, value); } + /** Unsafe version of {@link #borderColor(XrColor4f) borderColor}. */ + public static void nborderColor(long struct, XrColor4f value) { memCopy(value.address(), struct + XrSwapchainStateSamplerOpenGLESFB.BORDERCOLOR, XrColor4f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSwapchainStateSamplerOpenGLESFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -440,9 +431,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 XrSwapchainStateSamplerOpenGLESFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSwapchainStateSamplerOpenGLESFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -467,70 +458,70 @@ protected Buffer self() { protected XrSwapchainStateSamplerOpenGLESFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainStateSamplerOpenGLESFB.ntype(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#next} field. */ - @NativeType("void *") - public long next() { return XrSwapchainStateSamplerOpenGLESFB.nnext(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#minFilter} field. */ - @NativeType("EGLenum") - public int minFilter() { return XrSwapchainStateSamplerOpenGLESFB.nminFilter(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#magFilter} field. */ - @NativeType("EGLenum") - public int magFilter() { return XrSwapchainStateSamplerOpenGLESFB.nmagFilter(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#wrapModeS} field. */ - @NativeType("EGLenum") - public int wrapModeS() { return XrSwapchainStateSamplerOpenGLESFB.nwrapModeS(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#wrapModeT} field. */ - @NativeType("EGLenum") - public int wrapModeT() { return XrSwapchainStateSamplerOpenGLESFB.nwrapModeT(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleRed} field. */ - @NativeType("EGLenum") - public int swizzleRed() { return XrSwapchainStateSamplerOpenGLESFB.nswizzleRed(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleGreen} field. */ - @NativeType("EGLenum") - public int swizzleGreen() { return XrSwapchainStateSamplerOpenGLESFB.nswizzleGreen(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleBlue} field. */ - @NativeType("EGLenum") - public int swizzleBlue() { return XrSwapchainStateSamplerOpenGLESFB.nswizzleBlue(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleAlpha} field. */ - @NativeType("EGLenum") - public int swizzleAlpha() { return XrSwapchainStateSamplerOpenGLESFB.nswizzleAlpha(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#maxAnisotropy} field. */ - public float maxAnisotropy() { return XrSwapchainStateSamplerOpenGLESFB.nmaxAnisotropy(address()); } - /** @return a {@link XrColor4f} view of the {@link XrSwapchainStateSamplerOpenGLESFB#borderColor} field. */ - public XrColor4f borderColor() { return XrSwapchainStateSamplerOpenGLESFB.nborderColor(address()); } - - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#type} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainStateSamplerOpenGLESFB.ntype(address(), value); return this; } - /** Sets the {@link FBSwapchainUpdateStateOpenGLES#XR_TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB} value to the {@link XrSwapchainStateSamplerOpenGLESFB#type} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer type$Default() { return type(FBSwapchainUpdateStateOpenGLES.XR_TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB); } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#next} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer next(@NativeType("void *") long value) { XrSwapchainStateSamplerOpenGLESFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#minFilter} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer minFilter(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nminFilter(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#magFilter} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer magFilter(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nmagFilter(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#wrapModeS} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer wrapModeS(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nwrapModeS(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#wrapModeT} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer wrapModeT(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nwrapModeT(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleRed} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer swizzleRed(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nswizzleRed(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleGreen} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer swizzleGreen(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nswizzleGreen(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleBlue} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer swizzleBlue(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nswizzleBlue(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleAlpha} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer swizzleAlpha(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nswizzleAlpha(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#maxAnisotropy} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer maxAnisotropy(float value) { XrSwapchainStateSamplerOpenGLESFB.nmaxAnisotropy(address(), value); return this; } - /** Copies the specified {@link XrColor4f} to the {@link XrSwapchainStateSamplerOpenGLESFB#borderColor} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer borderColor(XrColor4f value) { XrSwapchainStateSamplerOpenGLESFB.nborderColor(address(), value); return this; } - /** Passes the {@link XrSwapchainStateSamplerOpenGLESFB#borderColor} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer borderColor(java.util.function.Consumer consumer) { consumer.accept(borderColor()); return this; } + + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainStateSamplerOpenGLESFB.ntype(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainStateSamplerOpenGLESFB.nnext(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#minFilter} field. */ + @NativeType("EGLenum") + public int minFilter() { return XrSwapchainStateSamplerOpenGLESFB.nminFilter(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#magFilter} field. */ + @NativeType("EGLenum") + public int magFilter() { return XrSwapchainStateSamplerOpenGLESFB.nmagFilter(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#wrapModeS} field. */ + @NativeType("EGLenum") + public int wrapModeS() { return XrSwapchainStateSamplerOpenGLESFB.nwrapModeS(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#wrapModeT} field. */ + @NativeType("EGLenum") + public int wrapModeT() { return XrSwapchainStateSamplerOpenGLESFB.nwrapModeT(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleRed} field. */ + @NativeType("EGLenum") + public int swizzleRed() { return XrSwapchainStateSamplerOpenGLESFB.nswizzleRed(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleGreen} field. */ + @NativeType("EGLenum") + public int swizzleGreen() { return XrSwapchainStateSamplerOpenGLESFB.nswizzleGreen(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleBlue} field. */ + @NativeType("EGLenum") + public int swizzleBlue() { return XrSwapchainStateSamplerOpenGLESFB.nswizzleBlue(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleAlpha} field. */ + @NativeType("EGLenum") + public int swizzleAlpha() { return XrSwapchainStateSamplerOpenGLESFB.nswizzleAlpha(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#maxAnisotropy} field. */ + public float maxAnisotropy() { return XrSwapchainStateSamplerOpenGLESFB.nmaxAnisotropy(address()); } + /** @return a {@link XrColor4f} view of the {@link XrSwapchainStateSamplerOpenGLESFB#borderColor} field. */ + public XrColor4f borderColor() { return XrSwapchainStateSamplerOpenGLESFB.nborderColor(address()); } + + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#type} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainStateSamplerOpenGLESFB.ntype(address(), value); return this; } + /** Sets the {@link FBSwapchainUpdateStateOpenGLES#XR_TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB} value to the {@link XrSwapchainStateSamplerOpenGLESFB#type} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer type$Default() { return type(FBSwapchainUpdateStateOpenGLES.XR_TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB); } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#next} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer next(@NativeType("void *") long value) { XrSwapchainStateSamplerOpenGLESFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#minFilter} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer minFilter(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nminFilter(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#magFilter} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer magFilter(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nmagFilter(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#wrapModeS} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer wrapModeS(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nwrapModeS(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#wrapModeT} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer wrapModeT(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nwrapModeT(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleRed} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer swizzleRed(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nswizzleRed(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleGreen} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer swizzleGreen(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nswizzleGreen(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleBlue} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer swizzleBlue(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nswizzleBlue(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleAlpha} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer swizzleAlpha(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nswizzleAlpha(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#maxAnisotropy} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer maxAnisotropy(float value) { XrSwapchainStateSamplerOpenGLESFB.nmaxAnisotropy(address(), value); return this; } + /** Copies the specified {@link XrColor4f} to the {@link XrSwapchainStateSamplerOpenGLESFB#borderColor} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer borderColor(XrColor4f value) { XrSwapchainStateSamplerOpenGLESFB.nborderColor(address(), value); return this; } + /** Passes the {@link XrSwapchainStateSamplerOpenGLESFB#borderColor} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer borderColor(java.util.function.Consumer consumer) { consumer.accept(borderColor()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateSamplerVulkanFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateSamplerVulkanFB.java index 87a4b557a7..cfb946fbc6 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateSamplerVulkanFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateSamplerVulkanFB.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 org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * Vulkan-specific swapchain sampler state structure. * @@ -67,8 +67,8 @@ * float {@link #maxAnisotropy}; * {@link XrColor4f XrColor4f} {@link #borderColor}; * } - */ -public class XrSwapchainStateSamplerVulkanFB extends Struct implements NativeResource { + */ +public class XrSwapchainStateSamplerVulkanFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -78,62 +78,53 @@ public class XrSwapchainStateSamplerVulkanFB extends Struct consumer) { consumer.accept(borderColor()); 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()); } + /** a valid Vulkan {@code VkFilter}. */ + @NativeType("VkFilter") + public int minFilter() { return nminFilter(address()); } + /** a valid Vulkan {@code VkFilter}. */ + @NativeType("VkFilter") + public int magFilter() { return nmagFilter(address()); } + /** a valid Vulkan {@code VkSamplerMipmapMode}. */ + @NativeType("VkSamplerMipmapMode") + public int mipmapMode() { return nmipmapMode(address()); } + /** a valid Vulkan {@code VkSamplerAddressMode}. */ + @NativeType("VkSamplerAddressMode") + public int wrapModeS() { return nwrapModeS(address()); } + /** a valid Vulkan {@code VkSamplerAddressMode}. */ + @NativeType("VkSamplerAddressMode") + public int wrapModeT() { return nwrapModeT(address()); } + /** a valid Vulkan {@code VkComponentSwizzle}. */ + @NativeType("VkComponentSwizzle") + public int swizzleRed() { return nswizzleRed(address()); } + /** a valid Vulkan {@code VkComponentSwizzle}. */ + @NativeType("VkComponentSwizzle") + public int swizzleGreen() { return nswizzleGreen(address()); } + /** a valid Vulkan {@code VkComponentSwizzle}. */ + @NativeType("VkComponentSwizzle") + public int swizzleBlue() { return nswizzleBlue(address()); } + /** a valid Vulkan {@code VkComponentSwizzle}. */ + @NativeType("VkComponentSwizzle") + public int swizzleAlpha() { return nswizzleAlpha(address()); } + /** a valid float used to represent max anisotropy. */ + public float maxAnisotropy() { return nmaxAnisotropy(address()); } + /** an RGBA color to be used as border texels. */ + public XrColor4f borderColor() { return nborderColor(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSwapchainStateSamplerVulkanFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSwapchainUpdateStateVulkan#XR_TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB} value to the {@link #type} field. */ + public XrSwapchainStateSamplerVulkanFB type$Default() { return type(FBSwapchainUpdateStateVulkan.XR_TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSwapchainStateSamplerVulkanFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #minFilter} field. */ + public XrSwapchainStateSamplerVulkanFB minFilter(@NativeType("VkFilter") int value) { nminFilter(address(), value); return this; } + /** Sets the specified value to the {@link #magFilter} field. */ + public XrSwapchainStateSamplerVulkanFB magFilter(@NativeType("VkFilter") int value) { nmagFilter(address(), value); return this; } + /** Sets the specified value to the {@link #mipmapMode} field. */ + public XrSwapchainStateSamplerVulkanFB mipmapMode(@NativeType("VkSamplerMipmapMode") int value) { nmipmapMode(address(), value); return this; } + /** Sets the specified value to the {@link #wrapModeS} field. */ + public XrSwapchainStateSamplerVulkanFB wrapModeS(@NativeType("VkSamplerAddressMode") int value) { nwrapModeS(address(), value); return this; } + /** Sets the specified value to the {@link #wrapModeT} field. */ + public XrSwapchainStateSamplerVulkanFB wrapModeT(@NativeType("VkSamplerAddressMode") int value) { nwrapModeT(address(), value); return this; } + /** Sets the specified value to the {@link #swizzleRed} field. */ + public XrSwapchainStateSamplerVulkanFB swizzleRed(@NativeType("VkComponentSwizzle") int value) { nswizzleRed(address(), value); return this; } + /** Sets the specified value to the {@link #swizzleGreen} field. */ + public XrSwapchainStateSamplerVulkanFB swizzleGreen(@NativeType("VkComponentSwizzle") int value) { nswizzleGreen(address(), value); return this; } + /** Sets the specified value to the {@link #swizzleBlue} field. */ + public XrSwapchainStateSamplerVulkanFB swizzleBlue(@NativeType("VkComponentSwizzle") int value) { nswizzleBlue(address(), value); return this; } + /** Sets the specified value to the {@link #swizzleAlpha} field. */ + public XrSwapchainStateSamplerVulkanFB swizzleAlpha(@NativeType("VkComponentSwizzle") int value) { nswizzleAlpha(address(), value); return this; } + /** Sets the specified value to the {@link #maxAnisotropy} field. */ + public XrSwapchainStateSamplerVulkanFB maxAnisotropy(float value) { nmaxAnisotropy(address(), value); return this; } + /** Copies the specified {@link XrColor4f} to the {@link #borderColor} field. */ + public XrSwapchainStateSamplerVulkanFB borderColor(XrColor4f value) { nborderColor(address(), value); return this; } + /** Passes the {@link #borderColor} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSwapchainStateSamplerVulkanFB borderColor(java.util.function.Consumer consumer) { consumer.accept(borderColor()); return this; } /** Initializes this struct with the specified values. */ public XrSwapchainStateSamplerVulkanFB set( - int type, - long next, - int minFilter, - int magFilter, - int mipmapMode, - int wrapModeS, - int wrapModeT, - int swizzleRed, - int swizzleGreen, - int swizzleBlue, - int swizzleAlpha, - float maxAnisotropy, + int type, + long next, + int minFilter, + int magFilter, + int mipmapMode, + int wrapModeS, + int wrapModeT, + int swizzleRed, + int swizzleGreen, + int swizzleBlue, + int swizzleAlpha, + float maxAnisotropy, XrColor4f borderColor - ) { - type(type); - next(next); - minFilter(minFilter); - magFilter(magFilter); - mipmapMode(mipmapMode); - wrapModeS(wrapModeS); - wrapModeT(wrapModeT); - swizzleRed(swizzleRed); - swizzleGreen(swizzleGreen); - swizzleBlue(swizzleBlue); - swizzleAlpha(swizzleAlpha); - maxAnisotropy(maxAnisotropy); - borderColor(borderColor); + ) { + type(type); + next(next); + minFilter(minFilter); + magFilter(magFilter); + mipmapMode(mipmapMode); + wrapModeS(wrapModeS); + wrapModeT(wrapModeT); + swizzleRed(swizzleRed); + swizzleGreen(swizzleGreen); + swizzleBlue(swizzleBlue); + swizzleAlpha(swizzleAlpha); + maxAnisotropy(maxAnisotropy); + borderColor(borderColor); return this; } @@ -267,34 +258,34 @@ public XrSwapchainStateSamplerVulkanFB set(XrSwapchainStateSamplerVulkanFB src) /** Returns a new {@code XrSwapchainStateSamplerVulkanFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSwapchainStateSamplerVulkanFB malloc() { - return new XrSwapchainStateSamplerVulkanFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrSwapchainStateSamplerVulkanFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSwapchainStateSamplerVulkanFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSwapchainStateSamplerVulkanFB calloc() { - return new XrSwapchainStateSamplerVulkanFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSwapchainStateSamplerVulkanFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSwapchainStateSamplerVulkanFB} instance allocated with {@link BufferUtils}. */ public static XrSwapchainStateSamplerVulkanFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSwapchainStateSamplerVulkanFB(memAddress(container), container); + return wrap(XrSwapchainStateSamplerVulkanFB.class, memAddress(container), container); } /** Returns a new {@code XrSwapchainStateSamplerVulkanFB} instance for the specified memory address. */ public static XrSwapchainStateSamplerVulkanFB create(long address) { - return new XrSwapchainStateSamplerVulkanFB(address, null); + return wrap(XrSwapchainStateSamplerVulkanFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSwapchainStateSamplerVulkanFB createSafe(long address) { - return address == NULL ? null : new XrSwapchainStateSamplerVulkanFB(address, null); + return address == NULL ? null : wrap(XrSwapchainStateSamplerVulkanFB.class, address); } /** Downcasts the specified {@code XrSwapchainStateBaseHeaderFB} instance to {@code XrSwapchainStateSamplerVulkanFB}. */ public static XrSwapchainStateSamplerVulkanFB create(XrSwapchainStateBaseHeaderFB value) { - return new XrSwapchainStateSamplerVulkanFB(value.address(), __getContainer(value)); + return wrap(XrSwapchainStateSamplerVulkanFB.class, value); } /** @@ -303,7 +294,7 @@ public static XrSwapchainStateSamplerVulkanFB create(XrSwapchainStateBaseHeaderF * @param capacity the buffer capacity */ public static XrSwapchainStateSamplerVulkanFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -312,7 +303,7 @@ public static XrSwapchainStateSamplerVulkanFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSwapchainStateSamplerVulkanFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -322,7 +313,7 @@ public static XrSwapchainStateSamplerVulkanFB.Buffer calloc(int capacity) { */ public static XrSwapchainStateSamplerVulkanFB.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); } /** @@ -332,18 +323,18 @@ public static XrSwapchainStateSamplerVulkanFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSwapchainStateSamplerVulkanFB.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 XrSwapchainStateSamplerVulkanFB.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 XrSwapchainStateBaseHeaderFB.Buffer} instance to {@code XrSwapchainStateSamplerVulkanFB.Buffer}. */ public static XrSwapchainStateSamplerVulkanFB.Buffer create(XrSwapchainStateBaseHeaderFB.Buffer value) { - return new XrSwapchainStateSamplerVulkanFB.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + return wrap(Buffer.class, value); } /** @@ -352,7 +343,7 @@ public static XrSwapchainStateSamplerVulkanFB.Buffer create(XrSwapchainStateBase * @param stack the stack from which to allocate */ public static XrSwapchainStateSamplerVulkanFB malloc(MemoryStack stack) { - return new XrSwapchainStateSamplerVulkanFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSwapchainStateSamplerVulkanFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -361,7 +352,7 @@ public static XrSwapchainStateSamplerVulkanFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSwapchainStateSamplerVulkanFB calloc(MemoryStack stack) { - return new XrSwapchainStateSamplerVulkanFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSwapchainStateSamplerVulkanFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -371,7 +362,7 @@ public static XrSwapchainStateSamplerVulkanFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSwapchainStateSamplerVulkanFB.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); } /** @@ -381,66 +372,66 @@ public static XrSwapchainStateSamplerVulkanFB.Buffer malloc(int capacity, Memory * @param capacity the buffer capacity */ public static XrSwapchainStateSamplerVulkanFB.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 + XrSwapchainStateSamplerVulkanFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainStateSamplerVulkanFB.NEXT); } - /** Unsafe version of {@link #minFilter}. */ - public static int nminFilter(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.MINFILTER); } - /** Unsafe version of {@link #magFilter}. */ - public static int nmagFilter(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.MAGFILTER); } - /** Unsafe version of {@link #mipmapMode}. */ - public static int nmipmapMode(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.MIPMAPMODE); } - /** Unsafe version of {@link #wrapModeS}. */ - public static int nwrapModeS(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.WRAPMODES); } - /** Unsafe version of {@link #wrapModeT}. */ - public static int nwrapModeT(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.WRAPMODET); } - /** Unsafe version of {@link #swizzleRed}. */ - public static int nswizzleRed(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLERED); } - /** Unsafe version of {@link #swizzleGreen}. */ - public static int nswizzleGreen(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEGREEN); } - /** Unsafe version of {@link #swizzleBlue}. */ - public static int nswizzleBlue(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEBLUE); } - /** Unsafe version of {@link #swizzleAlpha}. */ - public static int nswizzleAlpha(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEALPHA); } - /** Unsafe version of {@link #maxAnisotropy}. */ - public static float nmaxAnisotropy(long struct) { return UNSAFE.getFloat(null, struct + XrSwapchainStateSamplerVulkanFB.MAXANISOTROPY); } - /** Unsafe version of {@link #borderColor}. */ - public static XrColor4f nborderColor(long struct) { return XrColor4f.create(struct + XrSwapchainStateSamplerVulkanFB.BORDERCOLOR); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainStateSamplerVulkanFB.NEXT, value); } - /** Unsafe version of {@link #minFilter(int) minFilter}. */ - public static void nminFilter(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.MINFILTER, value); } - /** Unsafe version of {@link #magFilter(int) magFilter}. */ - public static void nmagFilter(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.MAGFILTER, value); } - /** Unsafe version of {@link #mipmapMode(int) mipmapMode}. */ - public static void nmipmapMode(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.MIPMAPMODE, value); } - /** Unsafe version of {@link #wrapModeS(int) wrapModeS}. */ - public static void nwrapModeS(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.WRAPMODES, value); } - /** Unsafe version of {@link #wrapModeT(int) wrapModeT}. */ - public static void nwrapModeT(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.WRAPMODET, value); } - /** Unsafe version of {@link #swizzleRed(int) swizzleRed}. */ - public static void nswizzleRed(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLERED, value); } - /** Unsafe version of {@link #swizzleGreen(int) swizzleGreen}. */ - public static void nswizzleGreen(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEGREEN, value); } - /** Unsafe version of {@link #swizzleBlue(int) swizzleBlue}. */ - public static void nswizzleBlue(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEBLUE, value); } - /** Unsafe version of {@link #swizzleAlpha(int) swizzleAlpha}. */ - public static void nswizzleAlpha(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEALPHA, value); } - /** Unsafe version of {@link #maxAnisotropy(float) maxAnisotropy}. */ - public static void nmaxAnisotropy(long struct, float value) { UNSAFE.putFloat(null, struct + XrSwapchainStateSamplerVulkanFB.MAXANISOTROPY, value); } - /** Unsafe version of {@link #borderColor(XrColor4f) borderColor}. */ - public static void nborderColor(long struct, XrColor4f value) { memCopy(value.address(), struct + XrSwapchainStateSamplerVulkanFB.BORDERCOLOR, XrColor4f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainStateSamplerVulkanFB.NEXT); } + /** Unsafe version of {@link #minFilter}. */ + public static int nminFilter(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.MINFILTER); } + /** Unsafe version of {@link #magFilter}. */ + public static int nmagFilter(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.MAGFILTER); } + /** Unsafe version of {@link #mipmapMode}. */ + public static int nmipmapMode(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.MIPMAPMODE); } + /** Unsafe version of {@link #wrapModeS}. */ + public static int nwrapModeS(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.WRAPMODES); } + /** Unsafe version of {@link #wrapModeT}. */ + public static int nwrapModeT(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.WRAPMODET); } + /** Unsafe version of {@link #swizzleRed}. */ + public static int nswizzleRed(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLERED); } + /** Unsafe version of {@link #swizzleGreen}. */ + public static int nswizzleGreen(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEGREEN); } + /** Unsafe version of {@link #swizzleBlue}. */ + public static int nswizzleBlue(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEBLUE); } + /** Unsafe version of {@link #swizzleAlpha}. */ + public static int nswizzleAlpha(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEALPHA); } + /** Unsafe version of {@link #maxAnisotropy}. */ + public static float nmaxAnisotropy(long struct) { return UNSAFE.getFloat(null, struct + XrSwapchainStateSamplerVulkanFB.MAXANISOTROPY); } + /** Unsafe version of {@link #borderColor}. */ + public static XrColor4f nborderColor(long struct) { return XrColor4f.create(struct + XrSwapchainStateSamplerVulkanFB.BORDERCOLOR); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainStateSamplerVulkanFB.NEXT, value); } + /** Unsafe version of {@link #minFilter(int) minFilter}. */ + public static void nminFilter(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.MINFILTER, value); } + /** Unsafe version of {@link #magFilter(int) magFilter}. */ + public static void nmagFilter(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.MAGFILTER, value); } + /** Unsafe version of {@link #mipmapMode(int) mipmapMode}. */ + public static void nmipmapMode(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.MIPMAPMODE, value); } + /** Unsafe version of {@link #wrapModeS(int) wrapModeS}. */ + public static void nwrapModeS(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.WRAPMODES, value); } + /** Unsafe version of {@link #wrapModeT(int) wrapModeT}. */ + public static void nwrapModeT(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.WRAPMODET, value); } + /** Unsafe version of {@link #swizzleRed(int) swizzleRed}. */ + public static void nswizzleRed(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLERED, value); } + /** Unsafe version of {@link #swizzleGreen(int) swizzleGreen}. */ + public static void nswizzleGreen(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEGREEN, value); } + /** Unsafe version of {@link #swizzleBlue(int) swizzleBlue}. */ + public static void nswizzleBlue(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEBLUE, value); } + /** Unsafe version of {@link #swizzleAlpha(int) swizzleAlpha}. */ + public static void nswizzleAlpha(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEALPHA, value); } + /** Unsafe version of {@link #maxAnisotropy(float) maxAnisotropy}. */ + public static void nmaxAnisotropy(long struct, float value) { UNSAFE.putFloat(null, struct + XrSwapchainStateSamplerVulkanFB.MAXANISOTROPY, value); } + /** Unsafe version of {@link #borderColor(XrColor4f) borderColor}. */ + public static void nborderColor(long struct, XrColor4f value) { memCopy(value.address(), struct + XrSwapchainStateSamplerVulkanFB.BORDERCOLOR, XrColor4f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSwapchainStateSamplerVulkanFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -450,9 +441,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 XrSwapchainStateSamplerVulkanFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSwapchainStateSamplerVulkanFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -477,75 +468,75 @@ protected Buffer self() { protected XrSwapchainStateSamplerVulkanFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainStateSamplerVulkanFB.ntype(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#next} field. */ - @NativeType("void *") - public long next() { return XrSwapchainStateSamplerVulkanFB.nnext(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#minFilter} field. */ - @NativeType("VkFilter") - public int minFilter() { return XrSwapchainStateSamplerVulkanFB.nminFilter(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#magFilter} field. */ - @NativeType("VkFilter") - public int magFilter() { return XrSwapchainStateSamplerVulkanFB.nmagFilter(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#mipmapMode} field. */ - @NativeType("VkSamplerMipmapMode") - public int mipmapMode() { return XrSwapchainStateSamplerVulkanFB.nmipmapMode(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#wrapModeS} field. */ - @NativeType("VkSamplerAddressMode") - public int wrapModeS() { return XrSwapchainStateSamplerVulkanFB.nwrapModeS(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#wrapModeT} field. */ - @NativeType("VkSamplerAddressMode") - public int wrapModeT() { return XrSwapchainStateSamplerVulkanFB.nwrapModeT(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#swizzleRed} field. */ - @NativeType("VkComponentSwizzle") - public int swizzleRed() { return XrSwapchainStateSamplerVulkanFB.nswizzleRed(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#swizzleGreen} field. */ - @NativeType("VkComponentSwizzle") - public int swizzleGreen() { return XrSwapchainStateSamplerVulkanFB.nswizzleGreen(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#swizzleBlue} field. */ - @NativeType("VkComponentSwizzle") - public int swizzleBlue() { return XrSwapchainStateSamplerVulkanFB.nswizzleBlue(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#swizzleAlpha} field. */ - @NativeType("VkComponentSwizzle") - public int swizzleAlpha() { return XrSwapchainStateSamplerVulkanFB.nswizzleAlpha(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#maxAnisotropy} field. */ - public float maxAnisotropy() { return XrSwapchainStateSamplerVulkanFB.nmaxAnisotropy(address()); } - /** @return a {@link XrColor4f} view of the {@link XrSwapchainStateSamplerVulkanFB#borderColor} field. */ - public XrColor4f borderColor() { return XrSwapchainStateSamplerVulkanFB.nborderColor(address()); } - - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#type} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainStateSamplerVulkanFB.ntype(address(), value); return this; } - /** Sets the {@link FBSwapchainUpdateStateVulkan#XR_TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB} value to the {@link XrSwapchainStateSamplerVulkanFB#type} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer type$Default() { return type(FBSwapchainUpdateStateVulkan.XR_TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB); } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#next} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer next(@NativeType("void *") long value) { XrSwapchainStateSamplerVulkanFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#minFilter} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer minFilter(@NativeType("VkFilter") int value) { XrSwapchainStateSamplerVulkanFB.nminFilter(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#magFilter} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer magFilter(@NativeType("VkFilter") int value) { XrSwapchainStateSamplerVulkanFB.nmagFilter(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#mipmapMode} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer mipmapMode(@NativeType("VkSamplerMipmapMode") int value) { XrSwapchainStateSamplerVulkanFB.nmipmapMode(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#wrapModeS} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer wrapModeS(@NativeType("VkSamplerAddressMode") int value) { XrSwapchainStateSamplerVulkanFB.nwrapModeS(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#wrapModeT} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer wrapModeT(@NativeType("VkSamplerAddressMode") int value) { XrSwapchainStateSamplerVulkanFB.nwrapModeT(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#swizzleRed} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer swizzleRed(@NativeType("VkComponentSwizzle") int value) { XrSwapchainStateSamplerVulkanFB.nswizzleRed(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#swizzleGreen} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer swizzleGreen(@NativeType("VkComponentSwizzle") int value) { XrSwapchainStateSamplerVulkanFB.nswizzleGreen(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#swizzleBlue} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer swizzleBlue(@NativeType("VkComponentSwizzle") int value) { XrSwapchainStateSamplerVulkanFB.nswizzleBlue(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#swizzleAlpha} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer swizzleAlpha(@NativeType("VkComponentSwizzle") int value) { XrSwapchainStateSamplerVulkanFB.nswizzleAlpha(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#maxAnisotropy} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer maxAnisotropy(float value) { XrSwapchainStateSamplerVulkanFB.nmaxAnisotropy(address(), value); return this; } - /** Copies the specified {@link XrColor4f} to the {@link XrSwapchainStateSamplerVulkanFB#borderColor} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer borderColor(XrColor4f value) { XrSwapchainStateSamplerVulkanFB.nborderColor(address(), value); return this; } - /** Passes the {@link XrSwapchainStateSamplerVulkanFB#borderColor} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSwapchainStateSamplerVulkanFB.Buffer borderColor(java.util.function.Consumer consumer) { consumer.accept(borderColor()); return this; } + + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainStateSamplerVulkanFB.ntype(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainStateSamplerVulkanFB.nnext(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#minFilter} field. */ + @NativeType("VkFilter") + public int minFilter() { return XrSwapchainStateSamplerVulkanFB.nminFilter(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#magFilter} field. */ + @NativeType("VkFilter") + public int magFilter() { return XrSwapchainStateSamplerVulkanFB.nmagFilter(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#mipmapMode} field. */ + @NativeType("VkSamplerMipmapMode") + public int mipmapMode() { return XrSwapchainStateSamplerVulkanFB.nmipmapMode(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#wrapModeS} field. */ + @NativeType("VkSamplerAddressMode") + public int wrapModeS() { return XrSwapchainStateSamplerVulkanFB.nwrapModeS(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#wrapModeT} field. */ + @NativeType("VkSamplerAddressMode") + public int wrapModeT() { return XrSwapchainStateSamplerVulkanFB.nwrapModeT(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#swizzleRed} field. */ + @NativeType("VkComponentSwizzle") + public int swizzleRed() { return XrSwapchainStateSamplerVulkanFB.nswizzleRed(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#swizzleGreen} field. */ + @NativeType("VkComponentSwizzle") + public int swizzleGreen() { return XrSwapchainStateSamplerVulkanFB.nswizzleGreen(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#swizzleBlue} field. */ + @NativeType("VkComponentSwizzle") + public int swizzleBlue() { return XrSwapchainStateSamplerVulkanFB.nswizzleBlue(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#swizzleAlpha} field. */ + @NativeType("VkComponentSwizzle") + public int swizzleAlpha() { return XrSwapchainStateSamplerVulkanFB.nswizzleAlpha(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#maxAnisotropy} field. */ + public float maxAnisotropy() { return XrSwapchainStateSamplerVulkanFB.nmaxAnisotropy(address()); } + /** @return a {@link XrColor4f} view of the {@link XrSwapchainStateSamplerVulkanFB#borderColor} field. */ + public XrColor4f borderColor() { return XrSwapchainStateSamplerVulkanFB.nborderColor(address()); } + + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#type} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainStateSamplerVulkanFB.ntype(address(), value); return this; } + /** Sets the {@link FBSwapchainUpdateStateVulkan#XR_TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB} value to the {@link XrSwapchainStateSamplerVulkanFB#type} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer type$Default() { return type(FBSwapchainUpdateStateVulkan.XR_TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB); } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#next} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer next(@NativeType("void *") long value) { XrSwapchainStateSamplerVulkanFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#minFilter} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer minFilter(@NativeType("VkFilter") int value) { XrSwapchainStateSamplerVulkanFB.nminFilter(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#magFilter} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer magFilter(@NativeType("VkFilter") int value) { XrSwapchainStateSamplerVulkanFB.nmagFilter(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#mipmapMode} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer mipmapMode(@NativeType("VkSamplerMipmapMode") int value) { XrSwapchainStateSamplerVulkanFB.nmipmapMode(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#wrapModeS} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer wrapModeS(@NativeType("VkSamplerAddressMode") int value) { XrSwapchainStateSamplerVulkanFB.nwrapModeS(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#wrapModeT} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer wrapModeT(@NativeType("VkSamplerAddressMode") int value) { XrSwapchainStateSamplerVulkanFB.nwrapModeT(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#swizzleRed} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer swizzleRed(@NativeType("VkComponentSwizzle") int value) { XrSwapchainStateSamplerVulkanFB.nswizzleRed(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#swizzleGreen} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer swizzleGreen(@NativeType("VkComponentSwizzle") int value) { XrSwapchainStateSamplerVulkanFB.nswizzleGreen(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#swizzleBlue} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer swizzleBlue(@NativeType("VkComponentSwizzle") int value) { XrSwapchainStateSamplerVulkanFB.nswizzleBlue(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#swizzleAlpha} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer swizzleAlpha(@NativeType("VkComponentSwizzle") int value) { XrSwapchainStateSamplerVulkanFB.nswizzleAlpha(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#maxAnisotropy} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer maxAnisotropy(float value) { XrSwapchainStateSamplerVulkanFB.nmaxAnisotropy(address(), value); return this; } + /** Copies the specified {@link XrColor4f} to the {@link XrSwapchainStateSamplerVulkanFB#borderColor} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer borderColor(XrColor4f value) { XrSwapchainStateSamplerVulkanFB.nborderColor(address(), value); return this; } + /** Passes the {@link XrSwapchainStateSamplerVulkanFB#borderColor} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSwapchainStateSamplerVulkanFB.Buffer borderColor(java.util.function.Consumer consumer) { consumer.accept(borderColor()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainSubImage.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainSubImage.java index 2d51177b18..07c1b50339 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainSubImage.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainSubImage.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 data. * @@ -37,8 +37,8 @@ * {@link XrRect2Di XrRect2Di} {@link #imageRect}; * uint32_t {@link #imageArrayIndex}; * } - */ -public class XrSwapchainSubImage extends Struct implements NativeResource { + */ +public class XrSwapchainSubImage extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,32 +48,23 @@ public class XrSwapchainSubImage extends Struct implements /** The struct member offsets. */ public static final int - SWAPCHAIN, - IMAGERECT, - IMAGEARRAYINDEX; + SWAPCHAIN, + IMAGERECT, + IMAGEARRAYINDEX; static { - Layout layout = __struct( - __member(POINTER_SIZE), - __member(XrRect2Di.SIZEOF, XrRect2Di.ALIGNOF), + Layout layout = __struct( + __member(POINTER_SIZE), + __member(XrRect2Di.SIZEOF, XrRect2Di.ALIGNOF), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - SWAPCHAIN = layout.offsetof(0); - IMAGERECT = layout.offsetof(1); - IMAGEARRAYINDEX = layout.offsetof(2); - } - - protected XrSwapchainSubImage(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSwapchainSubImage create(long address, @Nullable ByteBuffer container) { - return new XrSwapchainSubImage(address, container); + SWAPCHAIN = layout.offsetof(0); + IMAGERECT = layout.offsetof(1); + IMAGEARRAYINDEX = layout.offsetof(2); } /** @@ -88,34 +79,34 @@ public XrSwapchainSubImage(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrSwapchain} to be displayed. */ - @NativeType("XrSwapchain") - public long swapchain() { return nswapchain(address()); } - /** an {@link XrRect2Di} representing the valid portion of the image to use, in pixels. It also implicitly defines the transform from normalized image coordinates into pixel coordinates. The coordinate origin depends on which graphics API is being used. See the graphics API extension details for more information on the coordinate origin definition. Note that the compositor may bleed in pixels from outside the bounds in some cases, for instance due to mipmapping. */ - public XrRect2Di imageRect() { return nimageRect(address()); } - /** the image array index, with 0 meaning the first or only array element. */ - @NativeType("uint32_t") - public int imageArrayIndex() { return nimageArrayIndex(address()); } - - /** Sets the specified value to the {@link #swapchain} field. */ - public XrSwapchainSubImage swapchain(XrSwapchain value) { nswapchain(address(), value); return this; } - /** Copies the specified {@link XrRect2Di} to the {@link #imageRect} field. */ - public XrSwapchainSubImage imageRect(XrRect2Di value) { nimageRect(address(), value); return this; } - /** Passes the {@link #imageRect} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSwapchainSubImage imageRect(java.util.function.Consumer consumer) { consumer.accept(imageRect()); return this; } - /** Sets the specified value to the {@link #imageArrayIndex} field. */ - public XrSwapchainSubImage imageArrayIndex(@NativeType("uint32_t") int value) { nimageArrayIndex(address(), value); return this; } + + /** the {@code XrSwapchain} to be displayed. */ + @NativeType("XrSwapchain") + public long swapchain() { return nswapchain(address()); } + /** an {@link XrRect2Di} representing the valid portion of the image to use, in pixels. It also implicitly defines the transform from normalized image coordinates into pixel coordinates. The coordinate origin depends on which graphics API is being used. See the graphics API extension details for more information on the coordinate origin definition. Note that the compositor may bleed in pixels from outside the bounds in some cases, for instance due to mipmapping. */ + public XrRect2Di imageRect() { return nimageRect(address()); } + /** the image array index, with 0 meaning the first or only array element. */ + @NativeType("uint32_t") + public int imageArrayIndex() { return nimageArrayIndex(address()); } + + /** Sets the specified value to the {@link #swapchain} field. */ + public XrSwapchainSubImage swapchain(XrSwapchain value) { nswapchain(address(), value); return this; } + /** Copies the specified {@link XrRect2Di} to the {@link #imageRect} field. */ + public XrSwapchainSubImage imageRect(XrRect2Di value) { nimageRect(address(), value); return this; } + /** Passes the {@link #imageRect} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSwapchainSubImage imageRect(java.util.function.Consumer consumer) { consumer.accept(imageRect()); return this; } + /** Sets the specified value to the {@link #imageArrayIndex} field. */ + public XrSwapchainSubImage imageArrayIndex(@NativeType("uint32_t") int value) { nimageArrayIndex(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSwapchainSubImage set( - XrSwapchain swapchain, - XrRect2Di imageRect, + XrSwapchain swapchain, + XrRect2Di imageRect, int imageArrayIndex - ) { - swapchain(swapchain); - imageRect(imageRect); - imageArrayIndex(imageArrayIndex); + ) { + swapchain(swapchain); + imageRect(imageRect); + imageArrayIndex(imageArrayIndex); return this; } @@ -136,29 +127,29 @@ public XrSwapchainSubImage set(XrSwapchainSubImage src) { /** Returns a new {@code XrSwapchainSubImage} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSwapchainSubImage malloc() { - return new XrSwapchainSubImage(nmemAllocChecked(SIZEOF), null); + return wrap(XrSwapchainSubImage.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSwapchainSubImage} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSwapchainSubImage calloc() { - return new XrSwapchainSubImage(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSwapchainSubImage.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSwapchainSubImage} instance allocated with {@link BufferUtils}. */ public static XrSwapchainSubImage create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSwapchainSubImage(memAddress(container), container); + return wrap(XrSwapchainSubImage.class, memAddress(container), container); } /** Returns a new {@code XrSwapchainSubImage} instance for the specified memory address. */ public static XrSwapchainSubImage create(long address) { - return new XrSwapchainSubImage(address, null); + return wrap(XrSwapchainSubImage.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSwapchainSubImage createSafe(long address) { - return address == NULL ? null : new XrSwapchainSubImage(address, null); + return address == NULL ? null : wrap(XrSwapchainSubImage.class, address); } /** @@ -167,7 +158,7 @@ public static XrSwapchainSubImage createSafe(long address) { * @param capacity the buffer capacity */ public static XrSwapchainSubImage.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -176,7 +167,7 @@ public static XrSwapchainSubImage.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSwapchainSubImage.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -186,7 +177,7 @@ public static XrSwapchainSubImage.Buffer calloc(int capacity) { */ public static XrSwapchainSubImage.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); } /** @@ -196,13 +187,13 @@ public static XrSwapchainSubImage.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSwapchainSubImage.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 XrSwapchainSubImage.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -211,7 +202,7 @@ public static XrSwapchainSubImage.Buffer createSafe(long address, int capacity) * @param stack the stack from which to allocate */ public static XrSwapchainSubImage malloc(MemoryStack stack) { - return new XrSwapchainSubImage(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSwapchainSubImage.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -220,7 +211,7 @@ public static XrSwapchainSubImage malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSwapchainSubImage calloc(MemoryStack stack) { - return new XrSwapchainSubImage(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSwapchainSubImage.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -230,7 +221,7 @@ public static XrSwapchainSubImage calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSwapchainSubImage.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); } /** @@ -240,24 +231,24 @@ public static XrSwapchainSubImage.Buffer malloc(int capacity, MemoryStack stack) * @param capacity the buffer capacity */ public static XrSwapchainSubImage.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 #swapchain}. */ - public static long nswapchain(long struct) { return memGetAddress(struct + XrSwapchainSubImage.SWAPCHAIN); } - /** Unsafe version of {@link #imageRect}. */ - public static XrRect2Di nimageRect(long struct) { return XrRect2Di.create(struct + XrSwapchainSubImage.IMAGERECT); } - /** Unsafe version of {@link #imageArrayIndex}. */ - public static int nimageArrayIndex(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainSubImage.IMAGEARRAYINDEX); } - - /** Unsafe version of {@link #swapchain(XrSwapchain) swapchain}. */ - public static void nswapchain(long struct, XrSwapchain value) { memPutAddress(struct + XrSwapchainSubImage.SWAPCHAIN, value.address()); } - /** Unsafe version of {@link #imageRect(XrRect2Di) imageRect}. */ - public static void nimageRect(long struct, XrRect2Di value) { memCopy(value.address(), struct + XrSwapchainSubImage.IMAGERECT, XrRect2Di.SIZEOF); } - /** Unsafe version of {@link #imageArrayIndex(int) imageArrayIndex}. */ - public static void nimageArrayIndex(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainSubImage.IMAGEARRAYINDEX, value); } + + /** Unsafe version of {@link #swapchain}. */ + public static long nswapchain(long struct) { return memGetAddress(struct + XrSwapchainSubImage.SWAPCHAIN); } + /** Unsafe version of {@link #imageRect}. */ + public static XrRect2Di nimageRect(long struct) { return XrRect2Di.create(struct + XrSwapchainSubImage.IMAGERECT); } + /** Unsafe version of {@link #imageArrayIndex}. */ + public static int nimageArrayIndex(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainSubImage.IMAGEARRAYINDEX); } + + /** Unsafe version of {@link #swapchain(XrSwapchain) swapchain}. */ + public static void nswapchain(long struct, XrSwapchain value) { memPutAddress(struct + XrSwapchainSubImage.SWAPCHAIN, value.address()); } + /** Unsafe version of {@link #imageRect(XrRect2Di) imageRect}. */ + public static void nimageRect(long struct, XrRect2Di value) { memCopy(value.address(), struct + XrSwapchainSubImage.IMAGERECT, XrRect2Di.SIZEOF); } + /** Unsafe version of {@link #imageArrayIndex(int) imageArrayIndex}. */ + public static void nimageArrayIndex(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainSubImage.IMAGEARRAYINDEX, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -266,9 +257,9 @@ public static XrSwapchainSubImage.Buffer calloc(int capacity, MemoryStack stack) */ public static void validate(long struct) { check(memGetAddress(struct + XrSwapchainSubImage.SWAPCHAIN)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSwapchainSubImage} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -278,9 +269,9 @@ public static class Buffer extends StructBuffer imp /** * Creates a new {@code XrSwapchainSubImage.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 XrSwapchainSubImage#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSwapchainSubImage#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 XrSwapchainSubImage getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainSubImage#swapchain} field. */ - @NativeType("XrSwapchain") - public long swapchain() { return XrSwapchainSubImage.nswapchain(address()); } - /** @return a {@link XrRect2Di} view of the {@link XrSwapchainSubImage#imageRect} field. */ - public XrRect2Di imageRect() { return XrSwapchainSubImage.nimageRect(address()); } - /** @return the value of the {@link XrSwapchainSubImage#imageArrayIndex} field. */ - @NativeType("uint32_t") - public int imageArrayIndex() { return XrSwapchainSubImage.nimageArrayIndex(address()); } - - /** Sets the specified value to the {@link XrSwapchainSubImage#swapchain} field. */ - public XrSwapchainSubImage.Buffer swapchain(XrSwapchain value) { XrSwapchainSubImage.nswapchain(address(), value); return this; } - /** Copies the specified {@link XrRect2Di} to the {@link XrSwapchainSubImage#imageRect} field. */ - public XrSwapchainSubImage.Buffer imageRect(XrRect2Di value) { XrSwapchainSubImage.nimageRect(address(), value); return this; } - /** Passes the {@link XrSwapchainSubImage#imageRect} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSwapchainSubImage.Buffer imageRect(java.util.function.Consumer consumer) { consumer.accept(imageRect()); return this; } - /** Sets the specified value to the {@link XrSwapchainSubImage#imageArrayIndex} field. */ - public XrSwapchainSubImage.Buffer imageArrayIndex(@NativeType("uint32_t") int value) { XrSwapchainSubImage.nimageArrayIndex(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainSubImage#swapchain} field. */ + @NativeType("XrSwapchain") + public long swapchain() { return XrSwapchainSubImage.nswapchain(address()); } + /** @return a {@link XrRect2Di} view of the {@link XrSwapchainSubImage#imageRect} field. */ + public XrRect2Di imageRect() { return XrSwapchainSubImage.nimageRect(address()); } + /** @return the value of the {@link XrSwapchainSubImage#imageArrayIndex} field. */ + @NativeType("uint32_t") + public int imageArrayIndex() { return XrSwapchainSubImage.nimageArrayIndex(address()); } + + /** Sets the specified value to the {@link XrSwapchainSubImage#swapchain} field. */ + public XrSwapchainSubImage.Buffer swapchain(XrSwapchain value) { XrSwapchainSubImage.nswapchain(address(), value); return this; } + /** Copies the specified {@link XrRect2Di} to the {@link XrSwapchainSubImage#imageRect} field. */ + public XrSwapchainSubImage.Buffer imageRect(XrRect2Di value) { XrSwapchainSubImage.nimageRect(address(), value); return this; } + /** Passes the {@link XrSwapchainSubImage#imageRect} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSwapchainSubImage.Buffer imageRect(java.util.function.Consumer consumer) { consumer.accept(imageRect()); return this; } + /** Sets the specified value to the {@link XrSwapchainSubImage#imageArrayIndex} field. */ + public XrSwapchainSubImage.Buffer imageArrayIndex(@NativeType("uint32_t") int value) { XrSwapchainSubImage.nimageArrayIndex(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemBodyTrackingPropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemBodyTrackingPropertiesFB.java index 78a5cf1a5a..efb10d4954 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemBodyTrackingPropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemBodyTrackingPropertiesFB.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.*; + /** * System property for body tracking. * @@ -38,8 +38,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsBodyTracking}; * } - */ -public class XrSystemBodyTrackingPropertiesFB extends Struct implements NativeResource { + */ +public class XrSystemBodyTrackingPropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,32 +49,23 @@ public class XrSystemBodyTrackingPropertiesFB extends Struct implements NativeResource { @@ -265,9 +256,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 XrSystemBodyTrackingPropertiesFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemBodyTrackingPropertiesFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -292,23 +283,23 @@ protected Buffer self() { protected XrSystemBodyTrackingPropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemBodyTrackingPropertiesFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemBodyTrackingPropertiesFB.ntype(address()); } - /** @return the value of the {@link XrSystemBodyTrackingPropertiesFB#next} field. */ - @NativeType("void *") - public long next() { return XrSystemBodyTrackingPropertiesFB.nnext(address()); } - /** @return the value of the {@link XrSystemBodyTrackingPropertiesFB#supportsBodyTracking} field. */ - @NativeType("XrBool32") - public boolean supportsBodyTracking() { return XrSystemBodyTrackingPropertiesFB.nsupportsBodyTracking(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemBodyTrackingPropertiesFB#type} field. */ - public XrSystemBodyTrackingPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemBodyTrackingPropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBBodyTracking#XR_TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_FB TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_FB} value to the {@link XrSystemBodyTrackingPropertiesFB#type} field. */ - public XrSystemBodyTrackingPropertiesFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_FB); } - /** Sets the specified value to the {@link XrSystemBodyTrackingPropertiesFB#next} field. */ - public XrSystemBodyTrackingPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemBodyTrackingPropertiesFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemBodyTrackingPropertiesFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemBodyTrackingPropertiesFB.ntype(address()); } + /** @return the value of the {@link XrSystemBodyTrackingPropertiesFB#next} field. */ + @NativeType("void *") + public long next() { return XrSystemBodyTrackingPropertiesFB.nnext(address()); } + /** @return the value of the {@link XrSystemBodyTrackingPropertiesFB#supportsBodyTracking} field. */ + @NativeType("XrBool32") + public boolean supportsBodyTracking() { return XrSystemBodyTrackingPropertiesFB.nsupportsBodyTracking(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemBodyTrackingPropertiesFB#type} field. */ + public XrSystemBodyTrackingPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemBodyTrackingPropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBBodyTracking#XR_TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_FB TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_FB} value to the {@link XrSystemBodyTrackingPropertiesFB#type} field. */ + public XrSystemBodyTrackingPropertiesFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_FB); } + /** Sets the specified value to the {@link XrSystemBodyTrackingPropertiesFB#next} field. */ + public XrSystemBodyTrackingPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemBodyTrackingPropertiesFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemColorSpacePropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemColorSpacePropertiesFB.java index de40cc9876..990d24a403 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemColorSpacePropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemColorSpacePropertiesFB.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.*; + /** * System property for color space. * @@ -34,8 +34,8 @@ * void * {@link #next}; * XrColorSpaceFB {@link #colorSpace}; * } - */ -public class XrSystemColorSpacePropertiesFB extends Struct implements NativeResource { + */ +public class XrSystemColorSpacePropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -45,32 +45,23 @@ public class XrSystemColorSpacePropertiesFB extends Struct implements NativeResource { @@ -261,9 +252,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 XrSystemColorSpacePropertiesFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemColorSpacePropertiesFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -288,23 +279,23 @@ protected Buffer self() { protected XrSystemColorSpacePropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemColorSpacePropertiesFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemColorSpacePropertiesFB.ntype(address()); } - /** @return the value of the {@link XrSystemColorSpacePropertiesFB#next} field. */ - @NativeType("void *") - public long next() { return XrSystemColorSpacePropertiesFB.nnext(address()); } - /** @return the value of the {@link XrSystemColorSpacePropertiesFB#colorSpace} field. */ - @NativeType("XrColorSpaceFB") - public int colorSpace() { return XrSystemColorSpacePropertiesFB.ncolorSpace(address()); } - - /** Sets the specified value to the {@link XrSystemColorSpacePropertiesFB#type} field. */ - public XrSystemColorSpacePropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemColorSpacePropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBColorSpace#XR_TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB} value to the {@link XrSystemColorSpacePropertiesFB#type} field. */ - public XrSystemColorSpacePropertiesFB.Buffer type$Default() { return type(FBColorSpace.XR_TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB); } - /** Sets the specified value to the {@link XrSystemColorSpacePropertiesFB#next} field. */ - public XrSystemColorSpacePropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemColorSpacePropertiesFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemColorSpacePropertiesFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemColorSpacePropertiesFB.ntype(address()); } + /** @return the value of the {@link XrSystemColorSpacePropertiesFB#next} field. */ + @NativeType("void *") + public long next() { return XrSystemColorSpacePropertiesFB.nnext(address()); } + /** @return the value of the {@link XrSystemColorSpacePropertiesFB#colorSpace} field. */ + @NativeType("XrColorSpaceFB") + public int colorSpace() { return XrSystemColorSpacePropertiesFB.ncolorSpace(address()); } + + /** Sets the specified value to the {@link XrSystemColorSpacePropertiesFB#type} field. */ + public XrSystemColorSpacePropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemColorSpacePropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBColorSpace#XR_TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB} value to the {@link XrSystemColorSpacePropertiesFB#type} field. */ + public XrSystemColorSpacePropertiesFB.Buffer type$Default() { return type(FBColorSpace.XR_TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB); } + /** Sets the specified value to the {@link XrSystemColorSpacePropertiesFB#next} field. */ + public XrSystemColorSpacePropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemColorSpacePropertiesFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemEyeGazeInteractionPropertiesEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemEyeGazeInteractionPropertiesEXT.java index e699b87c4e..744e5f45a8 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemEyeGazeInteractionPropertiesEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemEyeGazeInteractionPropertiesEXT.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.*; + /** * Eye gaze interaction system properties. * @@ -34,8 +34,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsEyeGazeInteraction}; * } - */ -public class XrSystemEyeGazeInteractionPropertiesEXT extends Struct implements NativeResource { + */ +public class XrSystemEyeGazeInteractionPropertiesEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -45,32 +45,23 @@ public class XrSystemEyeGazeInteractionPropertiesEXT extends Structmust set this value to {@link XR10#XR_TRUE TRUE} when eye gaze sufficient for use cases such as aiming or targeting is supported by the current device, otherwise the runtime must set this to {@link XR10#XR_FALSE FALSE}. */ - @NativeType("XrBool32") - public boolean supportsEyeGazeInteraction() { return nsupportsEyeGazeInteraction(address()) != 0; } - - /** Sets the specified value to the {@link #type} field. */ - public XrSystemEyeGazeInteractionPropertiesEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTEyeGazeInteraction#XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT} value to the {@link #type} field. */ - public XrSystemEyeGazeInteractionPropertiesEXT type$Default() { return type(EXTEyeGazeInteraction.XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSystemEyeGazeInteractionPropertiesEXT 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 or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the runtime must set this value to {@link XR10#XR_TRUE TRUE} when eye gaze sufficient for use cases such as aiming or targeting is supported by the current device, otherwise the runtime must set this to {@link XR10#XR_FALSE FALSE}. */ + @NativeType("XrBool32") + public boolean supportsEyeGazeInteraction() { return nsupportsEyeGazeInteraction(address()) != 0; } + + /** Sets the specified value to the {@link #type} field. */ + public XrSystemEyeGazeInteractionPropertiesEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link EXTEyeGazeInteraction#XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT} value to the {@link #type} field. */ + public XrSystemEyeGazeInteractionPropertiesEXT type$Default() { return type(EXTEyeGazeInteraction.XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSystemEyeGazeInteractionPropertiesEXT next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSystemEyeGazeInteractionPropertiesEXT set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -130,29 +121,29 @@ public XrSystemEyeGazeInteractionPropertiesEXT set(XrSystemEyeGazeInteractionPro /** Returns a new {@code XrSystemEyeGazeInteractionPropertiesEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSystemEyeGazeInteractionPropertiesEXT malloc() { - return new XrSystemEyeGazeInteractionPropertiesEXT(nmemAllocChecked(SIZEOF), null); + return wrap(XrSystemEyeGazeInteractionPropertiesEXT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSystemEyeGazeInteractionPropertiesEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSystemEyeGazeInteractionPropertiesEXT calloc() { - return new XrSystemEyeGazeInteractionPropertiesEXT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSystemEyeGazeInteractionPropertiesEXT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSystemEyeGazeInteractionPropertiesEXT} instance allocated with {@link BufferUtils}. */ public static XrSystemEyeGazeInteractionPropertiesEXT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSystemEyeGazeInteractionPropertiesEXT(memAddress(container), container); + return wrap(XrSystemEyeGazeInteractionPropertiesEXT.class, memAddress(container), container); } /** Returns a new {@code XrSystemEyeGazeInteractionPropertiesEXT} instance for the specified memory address. */ public static XrSystemEyeGazeInteractionPropertiesEXT create(long address) { - return new XrSystemEyeGazeInteractionPropertiesEXT(address, null); + return wrap(XrSystemEyeGazeInteractionPropertiesEXT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSystemEyeGazeInteractionPropertiesEXT createSafe(long address) { - return address == NULL ? null : new XrSystemEyeGazeInteractionPropertiesEXT(address, null); + return address == NULL ? null : wrap(XrSystemEyeGazeInteractionPropertiesEXT.class, address); } /** @@ -161,7 +152,7 @@ public static XrSystemEyeGazeInteractionPropertiesEXT createSafe(long address) { * @param capacity the buffer capacity */ public static XrSystemEyeGazeInteractionPropertiesEXT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -170,7 +161,7 @@ public static XrSystemEyeGazeInteractionPropertiesEXT.Buffer malloc(int capacity * @param capacity the buffer capacity */ public static XrSystemEyeGazeInteractionPropertiesEXT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -180,7 +171,7 @@ public static XrSystemEyeGazeInteractionPropertiesEXT.Buffer calloc(int capacity */ public static XrSystemEyeGazeInteractionPropertiesEXT.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); } /** @@ -190,13 +181,13 @@ public static XrSystemEyeGazeInteractionPropertiesEXT.Buffer create(int capacity * @param capacity the buffer capacity */ public static XrSystemEyeGazeInteractionPropertiesEXT.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 XrSystemEyeGazeInteractionPropertiesEXT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -205,7 +196,7 @@ public static XrSystemEyeGazeInteractionPropertiesEXT.Buffer createSafe(long add * @param stack the stack from which to allocate */ public static XrSystemEyeGazeInteractionPropertiesEXT malloc(MemoryStack stack) { - return new XrSystemEyeGazeInteractionPropertiesEXT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSystemEyeGazeInteractionPropertiesEXT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -214,7 +205,7 @@ public static XrSystemEyeGazeInteractionPropertiesEXT malloc(MemoryStack stack) * @param stack the stack from which to allocate */ public static XrSystemEyeGazeInteractionPropertiesEXT calloc(MemoryStack stack) { - return new XrSystemEyeGazeInteractionPropertiesEXT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSystemEyeGazeInteractionPropertiesEXT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -224,7 +215,7 @@ public static XrSystemEyeGazeInteractionPropertiesEXT calloc(MemoryStack stack) * @param capacity the buffer capacity */ public static XrSystemEyeGazeInteractionPropertiesEXT.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); } /** @@ -234,24 +225,24 @@ public static XrSystemEyeGazeInteractionPropertiesEXT.Buffer malloc(int capacity * @param capacity the buffer capacity */ public static XrSystemEyeGazeInteractionPropertiesEXT.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 + XrSystemEyeGazeInteractionPropertiesEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSystemEyeGazeInteractionPropertiesEXT.NEXT); } - /** Unsafe version of {@link #supportsEyeGazeInteraction}. */ - public static int nsupportsEyeGazeInteraction(long struct) { return UNSAFE.getInt(null, struct + XrSystemEyeGazeInteractionPropertiesEXT.SUPPORTSEYEGAZEINTERACTION); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemEyeGazeInteractionPropertiesEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSystemEyeGazeInteractionPropertiesEXT.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSystemEyeGazeInteractionPropertiesEXT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSystemEyeGazeInteractionPropertiesEXT.NEXT); } + /** Unsafe version of {@link #supportsEyeGazeInteraction}. */ + public static int nsupportsEyeGazeInteraction(long struct) { return UNSAFE.getInt(null, struct + XrSystemEyeGazeInteractionPropertiesEXT.SUPPORTSEYEGAZEINTERACTION); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemEyeGazeInteractionPropertiesEXT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSystemEyeGazeInteractionPropertiesEXT.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrSystemEyeGazeInteractionPropertiesEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -261,9 +252,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 XrSystemEyeGazeInteractionPropertiesEXT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemEyeGazeInteractionPropertiesEXT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -288,23 +279,23 @@ protected Buffer self() { protected XrSystemEyeGazeInteractionPropertiesEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemEyeGazeInteractionPropertiesEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemEyeGazeInteractionPropertiesEXT.ntype(address()); } - /** @return the value of the {@link XrSystemEyeGazeInteractionPropertiesEXT#next} field. */ - @NativeType("void *") - public long next() { return XrSystemEyeGazeInteractionPropertiesEXT.nnext(address()); } - /** @return the value of the {@link XrSystemEyeGazeInteractionPropertiesEXT#supportsEyeGazeInteraction} field. */ - @NativeType("XrBool32") - public boolean supportsEyeGazeInteraction() { return XrSystemEyeGazeInteractionPropertiesEXT.nsupportsEyeGazeInteraction(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemEyeGazeInteractionPropertiesEXT#type} field. */ - public XrSystemEyeGazeInteractionPropertiesEXT.Buffer type(@NativeType("XrStructureType") int value) { XrSystemEyeGazeInteractionPropertiesEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTEyeGazeInteraction#XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT} value to the {@link XrSystemEyeGazeInteractionPropertiesEXT#type} field. */ - public XrSystemEyeGazeInteractionPropertiesEXT.Buffer type$Default() { return type(EXTEyeGazeInteraction.XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT); } - /** Sets the specified value to the {@link XrSystemEyeGazeInteractionPropertiesEXT#next} field. */ - public XrSystemEyeGazeInteractionPropertiesEXT.Buffer next(@NativeType("void *") long value) { XrSystemEyeGazeInteractionPropertiesEXT.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemEyeGazeInteractionPropertiesEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemEyeGazeInteractionPropertiesEXT.ntype(address()); } + /** @return the value of the {@link XrSystemEyeGazeInteractionPropertiesEXT#next} field. */ + @NativeType("void *") + public long next() { return XrSystemEyeGazeInteractionPropertiesEXT.nnext(address()); } + /** @return the value of the {@link XrSystemEyeGazeInteractionPropertiesEXT#supportsEyeGazeInteraction} field. */ + @NativeType("XrBool32") + public boolean supportsEyeGazeInteraction() { return XrSystemEyeGazeInteractionPropertiesEXT.nsupportsEyeGazeInteraction(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemEyeGazeInteractionPropertiesEXT#type} field. */ + public XrSystemEyeGazeInteractionPropertiesEXT.Buffer type(@NativeType("XrStructureType") int value) { XrSystemEyeGazeInteractionPropertiesEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTEyeGazeInteraction#XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT} value to the {@link XrSystemEyeGazeInteractionPropertiesEXT#type} field. */ + public XrSystemEyeGazeInteractionPropertiesEXT.Buffer type$Default() { return type(EXTEyeGazeInteraction.XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT); } + /** Sets the specified value to the {@link XrSystemEyeGazeInteractionPropertiesEXT#next} field. */ + public XrSystemEyeGazeInteractionPropertiesEXT.Buffer next(@NativeType("void *") long value) { XrSystemEyeGazeInteractionPropertiesEXT.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemEyeTrackingPropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemEyeTrackingPropertiesFB.java index 91c35b94cb..4e36afa639 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemEyeTrackingPropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemEyeTrackingPropertiesFB.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.*; + /** * System property for eye tracking. * @@ -40,8 +40,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsEyeTracking}; * } - */ -public class XrSystemEyeTrackingPropertiesFB extends Struct implements NativeResource { + */ +public class XrSystemEyeTrackingPropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,32 +51,23 @@ public class XrSystemEyeTrackingPropertiesFB extends Struct implements NativeResource { @@ -267,9 +258,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 XrSystemEyeTrackingPropertiesFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemEyeTrackingPropertiesFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -294,23 +285,23 @@ protected Buffer self() { protected XrSystemEyeTrackingPropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemEyeTrackingPropertiesFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemEyeTrackingPropertiesFB.ntype(address()); } - /** @return the value of the {@link XrSystemEyeTrackingPropertiesFB#next} field. */ - @NativeType("void *") - public long next() { return XrSystemEyeTrackingPropertiesFB.nnext(address()); } - /** @return the value of the {@link XrSystemEyeTrackingPropertiesFB#supportsEyeTracking} field. */ - @NativeType("XrBool32") - public boolean supportsEyeTracking() { return XrSystemEyeTrackingPropertiesFB.nsupportsEyeTracking(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemEyeTrackingPropertiesFB#type} field. */ - public XrSystemEyeTrackingPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemEyeTrackingPropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB} value to the {@link XrSystemEyeTrackingPropertiesFB#type} field. */ - public XrSystemEyeTrackingPropertiesFB.Buffer type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB); } - /** Sets the specified value to the {@link XrSystemEyeTrackingPropertiesFB#next} field. */ - public XrSystemEyeTrackingPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemEyeTrackingPropertiesFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemEyeTrackingPropertiesFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemEyeTrackingPropertiesFB.ntype(address()); } + /** @return the value of the {@link XrSystemEyeTrackingPropertiesFB#next} field. */ + @NativeType("void *") + public long next() { return XrSystemEyeTrackingPropertiesFB.nnext(address()); } + /** @return the value of the {@link XrSystemEyeTrackingPropertiesFB#supportsEyeTracking} field. */ + @NativeType("XrBool32") + public boolean supportsEyeTracking() { return XrSystemEyeTrackingPropertiesFB.nsupportsEyeTracking(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemEyeTrackingPropertiesFB#type} field. */ + public XrSystemEyeTrackingPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemEyeTrackingPropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB} value to the {@link XrSystemEyeTrackingPropertiesFB#type} field. */ + public XrSystemEyeTrackingPropertiesFB.Buffer type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB); } + /** Sets the specified value to the {@link XrSystemEyeTrackingPropertiesFB#next} field. */ + public XrSystemEyeTrackingPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemEyeTrackingPropertiesFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFaceTrackingPropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFaceTrackingPropertiesFB.java index ba01376359..c6e786436e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFaceTrackingPropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFaceTrackingPropertiesFB.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.*; + /** * System property for face tracking. * @@ -40,8 +40,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsFaceTracking}; * } - */ -public class XrSystemFaceTrackingPropertiesFB extends Struct implements NativeResource { + */ +public class XrSystemFaceTrackingPropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,32 +51,23 @@ public class XrSystemFaceTrackingPropertiesFB extends Struct implements NativeResource { @@ -267,9 +258,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 XrSystemFaceTrackingPropertiesFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemFaceTrackingPropertiesFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -294,23 +285,23 @@ protected Buffer self() { protected XrSystemFaceTrackingPropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemFaceTrackingPropertiesFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemFaceTrackingPropertiesFB.ntype(address()); } - /** @return the value of the {@link XrSystemFaceTrackingPropertiesFB#next} field. */ - @NativeType("void *") - public long next() { return XrSystemFaceTrackingPropertiesFB.nnext(address()); } - /** @return the value of the {@link XrSystemFaceTrackingPropertiesFB#supportsFaceTracking} field. */ - @NativeType("XrBool32") - public boolean supportsFaceTracking() { return XrSystemFaceTrackingPropertiesFB.nsupportsFaceTracking(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemFaceTrackingPropertiesFB#type} field. */ - public XrSystemFaceTrackingPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemFaceTrackingPropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBFaceTracking#XR_TYPE_SYSTEM_FACE_TRACKING_PROPERTIES_FB TYPE_SYSTEM_FACE_TRACKING_PROPERTIES_FB} value to the {@link XrSystemFaceTrackingPropertiesFB#type} field. */ - public XrSystemFaceTrackingPropertiesFB.Buffer type$Default() { return type(FBFaceTracking.XR_TYPE_SYSTEM_FACE_TRACKING_PROPERTIES_FB); } - /** Sets the specified value to the {@link XrSystemFaceTrackingPropertiesFB#next} field. */ - public XrSystemFaceTrackingPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemFaceTrackingPropertiesFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemFaceTrackingPropertiesFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemFaceTrackingPropertiesFB.ntype(address()); } + /** @return the value of the {@link XrSystemFaceTrackingPropertiesFB#next} field. */ + @NativeType("void *") + public long next() { return XrSystemFaceTrackingPropertiesFB.nnext(address()); } + /** @return the value of the {@link XrSystemFaceTrackingPropertiesFB#supportsFaceTracking} field. */ + @NativeType("XrBool32") + public boolean supportsFaceTracking() { return XrSystemFaceTrackingPropertiesFB.nsupportsFaceTracking(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemFaceTrackingPropertiesFB#type} field. */ + public XrSystemFaceTrackingPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemFaceTrackingPropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBFaceTracking#XR_TYPE_SYSTEM_FACE_TRACKING_PROPERTIES_FB TYPE_SYSTEM_FACE_TRACKING_PROPERTIES_FB} value to the {@link XrSystemFaceTrackingPropertiesFB#type} field. */ + public XrSystemFaceTrackingPropertiesFB.Buffer type$Default() { return type(FBFaceTracking.XR_TYPE_SYSTEM_FACE_TRACKING_PROPERTIES_FB); } + /** Sets the specified value to the {@link XrSystemFaceTrackingPropertiesFB#next} field. */ + public XrSystemFaceTrackingPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemFaceTrackingPropertiesFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFacialTrackingPropertiesHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFacialTrackingPropertiesHTC.java index 7f014e993c..77f9774907 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFacialTrackingPropertiesHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFacialTrackingPropertiesHTC.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.*; + /** * System property for facial tracking. * @@ -41,8 +41,8 @@ * XrBool32 {@link #supportEyeFacialTracking}; * XrBool32 {@link #supportLipFacialTracking}; * } - */ -public class XrSystemFacialTrackingPropertiesHTC extends Struct implements NativeResource { + */ +public class XrSystemFacialTrackingPropertiesHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,35 +52,26 @@ public class XrSystemFacialTrackingPropertiesHTC extends Struct implements NativeResource { @@ -276,9 +267,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 XrSystemFacialTrackingPropertiesHTC#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemFacialTrackingPropertiesHTC#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -303,26 +294,26 @@ protected Buffer self() { protected XrSystemFacialTrackingPropertiesHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemFacialTrackingPropertiesHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemFacialTrackingPropertiesHTC.ntype(address()); } - /** @return the value of the {@link XrSystemFacialTrackingPropertiesHTC#next} field. */ - @NativeType("void *") - public long next() { return XrSystemFacialTrackingPropertiesHTC.nnext(address()); } - /** @return the value of the {@link XrSystemFacialTrackingPropertiesHTC#supportEyeFacialTracking} field. */ - @NativeType("XrBool32") - public boolean supportEyeFacialTracking() { return XrSystemFacialTrackingPropertiesHTC.nsupportEyeFacialTracking(address()) != 0; } - /** @return the value of the {@link XrSystemFacialTrackingPropertiesHTC#supportLipFacialTracking} field. */ - @NativeType("XrBool32") - public boolean supportLipFacialTracking() { return XrSystemFacialTrackingPropertiesHTC.nsupportLipFacialTracking(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemFacialTrackingPropertiesHTC#type} field. */ - public XrSystemFacialTrackingPropertiesHTC.Buffer type(@NativeType("XrStructureType") int value) { XrSystemFacialTrackingPropertiesHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCFacialTracking#XR_TYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTC TYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTC} value to the {@link XrSystemFacialTrackingPropertiesHTC#type} field. */ - public XrSystemFacialTrackingPropertiesHTC.Buffer type$Default() { return type(HTCFacialTracking.XR_TYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTC); } - /** Sets the specified value to the {@link XrSystemFacialTrackingPropertiesHTC#next} field. */ - public XrSystemFacialTrackingPropertiesHTC.Buffer next(@NativeType("void *") long value) { XrSystemFacialTrackingPropertiesHTC.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemFacialTrackingPropertiesHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemFacialTrackingPropertiesHTC.ntype(address()); } + /** @return the value of the {@link XrSystemFacialTrackingPropertiesHTC#next} field. */ + @NativeType("void *") + public long next() { return XrSystemFacialTrackingPropertiesHTC.nnext(address()); } + /** @return the value of the {@link XrSystemFacialTrackingPropertiesHTC#supportEyeFacialTracking} field. */ + @NativeType("XrBool32") + public boolean supportEyeFacialTracking() { return XrSystemFacialTrackingPropertiesHTC.nsupportEyeFacialTracking(address()) != 0; } + /** @return the value of the {@link XrSystemFacialTrackingPropertiesHTC#supportLipFacialTracking} field. */ + @NativeType("XrBool32") + public boolean supportLipFacialTracking() { return XrSystemFacialTrackingPropertiesHTC.nsupportLipFacialTracking(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemFacialTrackingPropertiesHTC#type} field. */ + public XrSystemFacialTrackingPropertiesHTC.Buffer type(@NativeType("XrStructureType") int value) { XrSystemFacialTrackingPropertiesHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCFacialTracking#XR_TYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTC TYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTC} value to the {@link XrSystemFacialTrackingPropertiesHTC#type} field. */ + public XrSystemFacialTrackingPropertiesHTC.Buffer type$Default() { return type(HTCFacialTracking.XR_TYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTC); } + /** Sets the specified value to the {@link XrSystemFacialTrackingPropertiesHTC#next} field. */ + public XrSystemFacialTrackingPropertiesHTC.Buffer next(@NativeType("void *") long value) { XrSystemFacialTrackingPropertiesHTC.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemForceFeedbackCurlPropertiesMNDX.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemForceFeedbackCurlPropertiesMNDX.java index cb8b30f0d2..18fa35fee7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemForceFeedbackCurlPropertiesMNDX.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemForceFeedbackCurlPropertiesMNDX.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.*; + /** * System property for force feedback curl. * @@ -44,8 +44,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsForceFeedbackCurl}; * } - */ -public class XrSystemForceFeedbackCurlPropertiesMNDX extends Struct implements NativeResource { + */ +public class XrSystemForceFeedbackCurlPropertiesMNDX extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,32 +55,23 @@ public class XrSystemForceFeedbackCurlPropertiesMNDX extends Struct implements NativeResource { @@ -271,9 +262,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 XrSystemForceFeedbackCurlPropertiesMNDX#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemForceFeedbackCurlPropertiesMNDX#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -298,23 +289,23 @@ protected Buffer self() { protected XrSystemForceFeedbackCurlPropertiesMNDX getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemForceFeedbackCurlPropertiesMNDX#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemForceFeedbackCurlPropertiesMNDX.ntype(address()); } - /** @return the value of the {@link XrSystemForceFeedbackCurlPropertiesMNDX#next} field. */ - @NativeType("void *") - public long next() { return XrSystemForceFeedbackCurlPropertiesMNDX.nnext(address()); } - /** @return the value of the {@link XrSystemForceFeedbackCurlPropertiesMNDX#supportsForceFeedbackCurl} field. */ - @NativeType("XrBool32") - public boolean supportsForceFeedbackCurl() { return XrSystemForceFeedbackCurlPropertiesMNDX.nsupportsForceFeedbackCurl(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemForceFeedbackCurlPropertiesMNDX#type} field. */ - public XrSystemForceFeedbackCurlPropertiesMNDX.Buffer type(@NativeType("XrStructureType") int value) { XrSystemForceFeedbackCurlPropertiesMNDX.ntype(address(), value); return this; } - /** Sets the {@link MNDXForceFeedbackCurl#XR_TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX} value to the {@link XrSystemForceFeedbackCurlPropertiesMNDX#type} field. */ - public XrSystemForceFeedbackCurlPropertiesMNDX.Buffer type$Default() { return type(MNDXForceFeedbackCurl.XR_TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX); } - /** Sets the specified value to the {@link XrSystemForceFeedbackCurlPropertiesMNDX#next} field. */ - public XrSystemForceFeedbackCurlPropertiesMNDX.Buffer next(@NativeType("void *") long value) { XrSystemForceFeedbackCurlPropertiesMNDX.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemForceFeedbackCurlPropertiesMNDX#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemForceFeedbackCurlPropertiesMNDX.ntype(address()); } + /** @return the value of the {@link XrSystemForceFeedbackCurlPropertiesMNDX#next} field. */ + @NativeType("void *") + public long next() { return XrSystemForceFeedbackCurlPropertiesMNDX.nnext(address()); } + /** @return the value of the {@link XrSystemForceFeedbackCurlPropertiesMNDX#supportsForceFeedbackCurl} field. */ + @NativeType("XrBool32") + public boolean supportsForceFeedbackCurl() { return XrSystemForceFeedbackCurlPropertiesMNDX.nsupportsForceFeedbackCurl(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemForceFeedbackCurlPropertiesMNDX#type} field. */ + public XrSystemForceFeedbackCurlPropertiesMNDX.Buffer type(@NativeType("XrStructureType") int value) { XrSystemForceFeedbackCurlPropertiesMNDX.ntype(address(), value); return this; } + /** Sets the {@link MNDXForceFeedbackCurl#XR_TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX} value to the {@link XrSystemForceFeedbackCurlPropertiesMNDX#type} field. */ + public XrSystemForceFeedbackCurlPropertiesMNDX.Buffer type$Default() { return type(MNDXForceFeedbackCurl.XR_TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX); } + /** Sets the specified value to the {@link XrSystemForceFeedbackCurlPropertiesMNDX#next} field. */ + public XrSystemForceFeedbackCurlPropertiesMNDX.Buffer next(@NativeType("void *") long value) { XrSystemForceFeedbackCurlPropertiesMNDX.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFoveatedRenderingPropertiesVARJO.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFoveatedRenderingPropertiesVARJO.java index 843a1f330f..16e2a8a43f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFoveatedRenderingPropertiesVARJO.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFoveatedRenderingPropertiesVARJO.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.*; + /** * System property for foveated rendering. * @@ -38,8 +38,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsFoveatedRendering}; * } - */ -public class XrSystemFoveatedRenderingPropertiesVARJO extends Struct implements NativeResource { + */ +public class XrSystemFoveatedRenderingPropertiesVARJO extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,32 +49,23 @@ public class XrSystemFoveatedRenderingPropertiesVARJO extends Struct implements NativeResource { @@ -265,9 +256,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 XrSystemFoveatedRenderingPropertiesVARJO#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemFoveatedRenderingPropertiesVARJO#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -292,23 +283,23 @@ protected Buffer self() { protected XrSystemFoveatedRenderingPropertiesVARJO getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemFoveatedRenderingPropertiesVARJO#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemFoveatedRenderingPropertiesVARJO.ntype(address()); } - /** @return the value of the {@link XrSystemFoveatedRenderingPropertiesVARJO#next} field. */ - @NativeType("void *") - public long next() { return XrSystemFoveatedRenderingPropertiesVARJO.nnext(address()); } - /** @return the value of the {@link XrSystemFoveatedRenderingPropertiesVARJO#supportsFoveatedRendering} field. */ - @NativeType("XrBool32") - public boolean supportsFoveatedRendering() { return XrSystemFoveatedRenderingPropertiesVARJO.nsupportsFoveatedRendering(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemFoveatedRenderingPropertiesVARJO#type} field. */ - public XrSystemFoveatedRenderingPropertiesVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrSystemFoveatedRenderingPropertiesVARJO.ntype(address(), value); return this; } - /** Sets the {@link VARJOFoveatedRendering#XR_TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO} value to the {@link XrSystemFoveatedRenderingPropertiesVARJO#type} field. */ - public XrSystemFoveatedRenderingPropertiesVARJO.Buffer type$Default() { return type(VARJOFoveatedRendering.XR_TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO); } - /** Sets the specified value to the {@link XrSystemFoveatedRenderingPropertiesVARJO#next} field. */ - public XrSystemFoveatedRenderingPropertiesVARJO.Buffer next(@NativeType("void *") long value) { XrSystemFoveatedRenderingPropertiesVARJO.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemFoveatedRenderingPropertiesVARJO#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemFoveatedRenderingPropertiesVARJO.ntype(address()); } + /** @return the value of the {@link XrSystemFoveatedRenderingPropertiesVARJO#next} field. */ + @NativeType("void *") + public long next() { return XrSystemFoveatedRenderingPropertiesVARJO.nnext(address()); } + /** @return the value of the {@link XrSystemFoveatedRenderingPropertiesVARJO#supportsFoveatedRendering} field. */ + @NativeType("XrBool32") + public boolean supportsFoveatedRendering() { return XrSystemFoveatedRenderingPropertiesVARJO.nsupportsFoveatedRendering(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemFoveatedRenderingPropertiesVARJO#type} field. */ + public XrSystemFoveatedRenderingPropertiesVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrSystemFoveatedRenderingPropertiesVARJO.ntype(address(), value); return this; } + /** Sets the {@link VARJOFoveatedRendering#XR_TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO} value to the {@link XrSystemFoveatedRenderingPropertiesVARJO#type} field. */ + public XrSystemFoveatedRenderingPropertiesVARJO.Buffer type$Default() { return type(VARJOFoveatedRendering.XR_TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO); } + /** Sets the specified value to the {@link XrSystemFoveatedRenderingPropertiesVARJO#next} field. */ + public XrSystemFoveatedRenderingPropertiesVARJO.Buffer next(@NativeType("void *") long value) { XrSystemFoveatedRenderingPropertiesVARJO.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFoveationEyeTrackedPropertiesMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFoveationEyeTrackedPropertiesMETA.java index 72fbe2b3cc..6f725ffe04 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFoveationEyeTrackedPropertiesMETA.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFoveationEyeTrackedPropertiesMETA.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 about the current system support for eye tracked foveation. * @@ -42,8 +42,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsFoveationEyeTracked}; * } - */ -public class XrSystemFoveationEyeTrackedPropertiesMETA extends Struct implements NativeResource { + */ +public class XrSystemFoveationEyeTrackedPropertiesMETA extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,32 +53,23 @@ public class XrSystemFoveationEyeTrackedPropertiesMETA extends Struct implements NativeResource { @@ -269,9 +260,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 XrSystemFoveationEyeTrackedPropertiesMETA#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemFoveationEyeTrackedPropertiesMETA#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -296,23 +287,23 @@ protected Buffer self() { protected XrSystemFoveationEyeTrackedPropertiesMETA getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemFoveationEyeTrackedPropertiesMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemFoveationEyeTrackedPropertiesMETA.ntype(address()); } - /** @return the value of the {@link XrSystemFoveationEyeTrackedPropertiesMETA#next} field. */ - @NativeType("void *") - public long next() { return XrSystemFoveationEyeTrackedPropertiesMETA.nnext(address()); } - /** @return the value of the {@link XrSystemFoveationEyeTrackedPropertiesMETA#supportsFoveationEyeTracked} field. */ - @NativeType("XrBool32") - public boolean supportsFoveationEyeTracked() { return XrSystemFoveationEyeTrackedPropertiesMETA.nsupportsFoveationEyeTracked(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemFoveationEyeTrackedPropertiesMETA#type} field. */ - public XrSystemFoveationEyeTrackedPropertiesMETA.Buffer type(@NativeType("XrStructureType") int value) { XrSystemFoveationEyeTrackedPropertiesMETA.ntype(address(), value); return this; } - /** Sets the {@link METAFoveationEyeTracked#XR_TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META} value to the {@link XrSystemFoveationEyeTrackedPropertiesMETA#type} field. */ - public XrSystemFoveationEyeTrackedPropertiesMETA.Buffer type$Default() { return type(METAFoveationEyeTracked.XR_TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META); } - /** Sets the specified value to the {@link XrSystemFoveationEyeTrackedPropertiesMETA#next} field. */ - public XrSystemFoveationEyeTrackedPropertiesMETA.Buffer next(@NativeType("void *") long value) { XrSystemFoveationEyeTrackedPropertiesMETA.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemFoveationEyeTrackedPropertiesMETA#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemFoveationEyeTrackedPropertiesMETA.ntype(address()); } + /** @return the value of the {@link XrSystemFoveationEyeTrackedPropertiesMETA#next} field. */ + @NativeType("void *") + public long next() { return XrSystemFoveationEyeTrackedPropertiesMETA.nnext(address()); } + /** @return the value of the {@link XrSystemFoveationEyeTrackedPropertiesMETA#supportsFoveationEyeTracked} field. */ + @NativeType("XrBool32") + public boolean supportsFoveationEyeTracked() { return XrSystemFoveationEyeTrackedPropertiesMETA.nsupportsFoveationEyeTracked(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemFoveationEyeTrackedPropertiesMETA#type} field. */ + public XrSystemFoveationEyeTrackedPropertiesMETA.Buffer type(@NativeType("XrStructureType") int value) { XrSystemFoveationEyeTrackedPropertiesMETA.ntype(address(), value); return this; } + /** Sets the {@link METAFoveationEyeTracked#XR_TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META} value to the {@link XrSystemFoveationEyeTrackedPropertiesMETA#type} field. */ + public XrSystemFoveationEyeTrackedPropertiesMETA.Buffer type$Default() { return type(METAFoveationEyeTracked.XR_TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META); } + /** Sets the specified value to the {@link XrSystemFoveationEyeTrackedPropertiesMETA#next} field. */ + public XrSystemFoveationEyeTrackedPropertiesMETA.Buffer next(@NativeType("void *") long value) { XrSystemFoveationEyeTrackedPropertiesMETA.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemGetInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemGetInfo.java index 3bc27614a9..3d612d1d09 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemGetInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemGetInfo.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 desired attributes of the system. * @@ -42,8 +42,8 @@ * void const * {@link #next}; * XrFormFactor {@link #formFactor}; * } - */ -public class XrSystemGetInfo extends Struct implements NativeResource { + */ +public class XrSystemGetInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,32 +53,23 @@ public class XrSystemGetInfo extends Struct implements NativeRe /** The struct member offsets. */ public static final int - TYPE, - NEXT, - FORMFACTOR; + TYPE, + NEXT, + FORMFACTOR; 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); - FORMFACTOR = layout.offsetof(2); - } - - protected XrSystemGetInfo(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSystemGetInfo create(long address, @Nullable ByteBuffer container) { - return new XrSystemGetInfo(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + FORMFACTOR = layout.offsetof(2); } /** @@ -93,35 +84,35 @@ public XrSystemGetInfo(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 XrFormFactor} requested by the application. */ - @NativeType("XrFormFactor") - public int formFactor() { return nformFactor(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSystemGetInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SYSTEM_GET_INFO TYPE_SYSTEM_GET_INFO} value to the {@link #type} field. */ - public XrSystemGetInfo type$Default() { return type(XR10.XR_TYPE_SYSTEM_GET_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrSystemGetInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #formFactor} field. */ - public XrSystemGetInfo formFactor(@NativeType("XrFormFactor") int value) { nformFactor(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 XrFormFactor} requested by the application. */ + @NativeType("XrFormFactor") + public int formFactor() { return nformFactor(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSystemGetInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SYSTEM_GET_INFO TYPE_SYSTEM_GET_INFO} value to the {@link #type} field. */ + public XrSystemGetInfo type$Default() { return type(XR10.XR_TYPE_SYSTEM_GET_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrSystemGetInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #formFactor} field. */ + public XrSystemGetInfo formFactor(@NativeType("XrFormFactor") int value) { nformFactor(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSystemGetInfo set( - int type, - long next, + int type, + long next, int formFactor - ) { - type(type); - next(next); - formFactor(formFactor); + ) { + type(type); + next(next); + formFactor(formFactor); return this; } @@ -142,29 +133,29 @@ public XrSystemGetInfo set(XrSystemGetInfo src) { /** Returns a new {@code XrSystemGetInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSystemGetInfo malloc() { - return new XrSystemGetInfo(nmemAllocChecked(SIZEOF), null); + return wrap(XrSystemGetInfo.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSystemGetInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSystemGetInfo calloc() { - return new XrSystemGetInfo(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSystemGetInfo.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSystemGetInfo} instance allocated with {@link BufferUtils}. */ public static XrSystemGetInfo create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSystemGetInfo(memAddress(container), container); + return wrap(XrSystemGetInfo.class, memAddress(container), container); } /** Returns a new {@code XrSystemGetInfo} instance for the specified memory address. */ public static XrSystemGetInfo create(long address) { - return new XrSystemGetInfo(address, null); + return wrap(XrSystemGetInfo.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSystemGetInfo createSafe(long address) { - return address == NULL ? null : new XrSystemGetInfo(address, null); + return address == NULL ? null : wrap(XrSystemGetInfo.class, address); } /** @@ -173,7 +164,7 @@ public static XrSystemGetInfo createSafe(long address) { * @param capacity the buffer capacity */ public static XrSystemGetInfo.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -182,7 +173,7 @@ public static XrSystemGetInfo.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSystemGetInfo.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -192,7 +183,7 @@ public static XrSystemGetInfo.Buffer calloc(int capacity) { */ public static XrSystemGetInfo.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); } /** @@ -202,13 +193,13 @@ public static XrSystemGetInfo.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSystemGetInfo.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 XrSystemGetInfo.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -217,7 +208,7 @@ public static XrSystemGetInfo.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrSystemGetInfo malloc(MemoryStack stack) { - return new XrSystemGetInfo(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSystemGetInfo.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -226,7 +217,7 @@ public static XrSystemGetInfo malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSystemGetInfo calloc(MemoryStack stack) { - return new XrSystemGetInfo(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSystemGetInfo.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -236,7 +227,7 @@ public static XrSystemGetInfo calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSystemGetInfo.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); } /** @@ -246,26 +237,26 @@ public static XrSystemGetInfo.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSystemGetInfo.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 + XrSystemGetInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSystemGetInfo.NEXT); } - /** Unsafe version of {@link #formFactor}. */ - public static int nformFactor(long struct) { return UNSAFE.getInt(null, struct + XrSystemGetInfo.FORMFACTOR); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGetInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSystemGetInfo.NEXT, value); } - /** Unsafe version of {@link #formFactor(int) formFactor}. */ - public static void nformFactor(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGetInfo.FORMFACTOR, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSystemGetInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSystemGetInfo.NEXT); } + /** Unsafe version of {@link #formFactor}. */ + public static int nformFactor(long struct) { return UNSAFE.getInt(null, struct + XrSystemGetInfo.FORMFACTOR); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGetInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSystemGetInfo.NEXT, value); } + /** Unsafe version of {@link #formFactor(int) formFactor}. */ + public static void nformFactor(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGetInfo.FORMFACTOR, value); } + + // ----------------------------------- /** An array of {@link XrSystemGetInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -275,9 +266,9 @@ public static class Buffer extends StructBuffer impleme /** * Creates a new {@code XrSystemGetInfo.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 XrSystemGetInfo#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemGetInfo#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -302,25 +293,25 @@ protected Buffer self() { protected XrSystemGetInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemGetInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemGetInfo.ntype(address()); } - /** @return the value of the {@link XrSystemGetInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrSystemGetInfo.nnext(address()); } - /** @return the value of the {@link XrSystemGetInfo#formFactor} field. */ - @NativeType("XrFormFactor") - public int formFactor() { return XrSystemGetInfo.nformFactor(address()); } - - /** Sets the specified value to the {@link XrSystemGetInfo#type} field. */ - public XrSystemGetInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSystemGetInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SYSTEM_GET_INFO TYPE_SYSTEM_GET_INFO} value to the {@link XrSystemGetInfo#type} field. */ - public XrSystemGetInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SYSTEM_GET_INFO); } - /** Sets the specified value to the {@link XrSystemGetInfo#next} field. */ - public XrSystemGetInfo.Buffer next(@NativeType("void const *") long value) { XrSystemGetInfo.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSystemGetInfo#formFactor} field. */ - public XrSystemGetInfo.Buffer formFactor(@NativeType("XrFormFactor") int value) { XrSystemGetInfo.nformFactor(address(), value); return this; } + + /** @return the value of the {@link XrSystemGetInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemGetInfo.ntype(address()); } + /** @return the value of the {@link XrSystemGetInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrSystemGetInfo.nnext(address()); } + /** @return the value of the {@link XrSystemGetInfo#formFactor} field. */ + @NativeType("XrFormFactor") + public int formFactor() { return XrSystemGetInfo.nformFactor(address()); } + + /** Sets the specified value to the {@link XrSystemGetInfo#type} field. */ + public XrSystemGetInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSystemGetInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SYSTEM_GET_INFO TYPE_SYSTEM_GET_INFO} value to the {@link XrSystemGetInfo#type} field. */ + public XrSystemGetInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SYSTEM_GET_INFO); } + /** Sets the specified value to the {@link XrSystemGetInfo#next} field. */ + public XrSystemGetInfo.Buffer next(@NativeType("void const *") long value) { XrSystemGetInfo.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSystemGetInfo#formFactor} field. */ + public XrSystemGetInfo.Buffer formFactor(@NativeType("XrFormFactor") int value) { XrSystemGetInfo.nformFactor(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemGraphicsProperties.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemGraphicsProperties.java index 34c3d92935..148d9630f1 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemGraphicsProperties.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemGraphicsProperties.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.*; + /** * Graphics-related properties of a particular system. * @@ -30,8 +30,8 @@ * uint32_t {@link #maxSwapchainImageWidth}; * uint32_t {@link #maxLayerCount}; * } - */ -public class XrSystemGraphicsProperties extends Struct implements NativeResource { + */ +public class XrSystemGraphicsProperties extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -41,32 +41,23 @@ public class XrSystemGraphicsProperties extends Structmust support at least {@link XR10#XR_MIN_COMPOSITION_LAYERS_SUPPORTED MIN_COMPOSITION_LAYERS_SUPPORTED} layers. */ - @NativeType("uint32_t") - public int maxLayerCount() { return nmaxLayerCount(address()); } - - /** Sets the specified value to the {@link #maxSwapchainImageHeight} field. */ - public XrSystemGraphicsProperties maxSwapchainImageHeight(@NativeType("uint32_t") int value) { nmaxSwapchainImageHeight(address(), value); return this; } - /** Sets the specified value to the {@link #maxSwapchainImageWidth} field. */ - public XrSystemGraphicsProperties maxSwapchainImageWidth(@NativeType("uint32_t") int value) { nmaxSwapchainImageWidth(address(), value); return this; } - /** Sets the specified value to the {@link #maxLayerCount} field. */ - public XrSystemGraphicsProperties maxLayerCount(@NativeType("uint32_t") int value) { nmaxLayerCount(address(), value); return this; } + + /** the maximum swapchain image pixel height supported by this system. */ + @NativeType("uint32_t") + public int maxSwapchainImageHeight() { return nmaxSwapchainImageHeight(address()); } + /** the maximum swapchain image pixel width supported by this system. */ + @NativeType("uint32_t") + public int maxSwapchainImageWidth() { return nmaxSwapchainImageWidth(address()); } + /** the maximum number of composition layers supported by this system. The runtime must support at least {@link XR10#XR_MIN_COMPOSITION_LAYERS_SUPPORTED MIN_COMPOSITION_LAYERS_SUPPORTED} layers. */ + @NativeType("uint32_t") + public int maxLayerCount() { return nmaxLayerCount(address()); } + + /** Sets the specified value to the {@link #maxSwapchainImageHeight} field. */ + public XrSystemGraphicsProperties maxSwapchainImageHeight(@NativeType("uint32_t") int value) { nmaxSwapchainImageHeight(address(), value); return this; } + /** Sets the specified value to the {@link #maxSwapchainImageWidth} field. */ + public XrSystemGraphicsProperties maxSwapchainImageWidth(@NativeType("uint32_t") int value) { nmaxSwapchainImageWidth(address(), value); return this; } + /** Sets the specified value to the {@link #maxLayerCount} field. */ + public XrSystemGraphicsProperties maxLayerCount(@NativeType("uint32_t") int value) { nmaxLayerCount(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSystemGraphicsProperties set( - int maxSwapchainImageHeight, - int maxSwapchainImageWidth, + int maxSwapchainImageHeight, + int maxSwapchainImageWidth, int maxLayerCount - ) { - maxSwapchainImageHeight(maxSwapchainImageHeight); - maxSwapchainImageWidth(maxSwapchainImageWidth); - maxLayerCount(maxLayerCount); + ) { + maxSwapchainImageHeight(maxSwapchainImageHeight); + maxSwapchainImageWidth(maxSwapchainImageWidth); + maxLayerCount(maxLayerCount); return this; } @@ -128,29 +119,29 @@ public XrSystemGraphicsProperties set(XrSystemGraphicsProperties src) { /** Returns a new {@code XrSystemGraphicsProperties} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSystemGraphicsProperties malloc() { - return new XrSystemGraphicsProperties(nmemAllocChecked(SIZEOF), null); + return wrap(XrSystemGraphicsProperties.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSystemGraphicsProperties} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSystemGraphicsProperties calloc() { - return new XrSystemGraphicsProperties(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSystemGraphicsProperties.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSystemGraphicsProperties} instance allocated with {@link BufferUtils}. */ public static XrSystemGraphicsProperties create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSystemGraphicsProperties(memAddress(container), container); + return wrap(XrSystemGraphicsProperties.class, memAddress(container), container); } /** Returns a new {@code XrSystemGraphicsProperties} instance for the specified memory address. */ public static XrSystemGraphicsProperties create(long address) { - return new XrSystemGraphicsProperties(address, null); + return wrap(XrSystemGraphicsProperties.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSystemGraphicsProperties createSafe(long address) { - return address == NULL ? null : new XrSystemGraphicsProperties(address, null); + return address == NULL ? null : wrap(XrSystemGraphicsProperties.class, address); } /** @@ -159,7 +150,7 @@ public static XrSystemGraphicsProperties createSafe(long address) { * @param capacity the buffer capacity */ public static XrSystemGraphicsProperties.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 XrSystemGraphicsProperties.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSystemGraphicsProperties.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 XrSystemGraphicsProperties.Buffer calloc(int capacity) { */ public static XrSystemGraphicsProperties.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 XrSystemGraphicsProperties.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSystemGraphicsProperties.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 XrSystemGraphicsProperties.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 XrSystemGraphicsProperties.Buffer createSafe(long address, int cap * @param stack the stack from which to allocate */ public static XrSystemGraphicsProperties malloc(MemoryStack stack) { - return new XrSystemGraphicsProperties(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSystemGraphicsProperties.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -212,7 +203,7 @@ public static XrSystemGraphicsProperties malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSystemGraphicsProperties calloc(MemoryStack stack) { - return new XrSystemGraphicsProperties(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSystemGraphicsProperties.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -222,7 +213,7 @@ public static XrSystemGraphicsProperties calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSystemGraphicsProperties.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,26 +223,26 @@ public static XrSystemGraphicsProperties.Buffer malloc(int capacity, MemoryStack * @param capacity the buffer capacity */ public static XrSystemGraphicsProperties.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 #maxSwapchainImageHeight}. */ - public static int nmaxSwapchainImageHeight(long struct) { return UNSAFE.getInt(null, struct + XrSystemGraphicsProperties.MAXSWAPCHAINIMAGEHEIGHT); } - /** Unsafe version of {@link #maxSwapchainImageWidth}. */ - public static int nmaxSwapchainImageWidth(long struct) { return UNSAFE.getInt(null, struct + XrSystemGraphicsProperties.MAXSWAPCHAINIMAGEWIDTH); } - /** Unsafe version of {@link #maxLayerCount}. */ - public static int nmaxLayerCount(long struct) { return UNSAFE.getInt(null, struct + XrSystemGraphicsProperties.MAXLAYERCOUNT); } - - /** Unsafe version of {@link #maxSwapchainImageHeight(int) maxSwapchainImageHeight}. */ - public static void nmaxSwapchainImageHeight(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGraphicsProperties.MAXSWAPCHAINIMAGEHEIGHT, value); } - /** Unsafe version of {@link #maxSwapchainImageWidth(int) maxSwapchainImageWidth}. */ - public static void nmaxSwapchainImageWidth(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGraphicsProperties.MAXSWAPCHAINIMAGEWIDTH, value); } - /** Unsafe version of {@link #maxLayerCount(int) maxLayerCount}. */ - public static void nmaxLayerCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGraphicsProperties.MAXLAYERCOUNT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #maxSwapchainImageHeight}. */ + public static int nmaxSwapchainImageHeight(long struct) { return UNSAFE.getInt(null, struct + XrSystemGraphicsProperties.MAXSWAPCHAINIMAGEHEIGHT); } + /** Unsafe version of {@link #maxSwapchainImageWidth}. */ + public static int nmaxSwapchainImageWidth(long struct) { return UNSAFE.getInt(null, struct + XrSystemGraphicsProperties.MAXSWAPCHAINIMAGEWIDTH); } + /** Unsafe version of {@link #maxLayerCount}. */ + public static int nmaxLayerCount(long struct) { return UNSAFE.getInt(null, struct + XrSystemGraphicsProperties.MAXLAYERCOUNT); } + + /** Unsafe version of {@link #maxSwapchainImageHeight(int) maxSwapchainImageHeight}. */ + public static void nmaxSwapchainImageHeight(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGraphicsProperties.MAXSWAPCHAINIMAGEHEIGHT, value); } + /** Unsafe version of {@link #maxSwapchainImageWidth(int) maxSwapchainImageWidth}. */ + public static void nmaxSwapchainImageWidth(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGraphicsProperties.MAXSWAPCHAINIMAGEWIDTH, value); } + /** Unsafe version of {@link #maxLayerCount(int) maxLayerCount}. */ + public static void nmaxLayerCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGraphicsProperties.MAXLAYERCOUNT, value); } + + // ----------------------------------- /** An array of {@link XrSystemGraphicsProperties} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -261,9 +252,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 XrSystemGraphicsProperties#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemGraphicsProperties#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -288,23 +279,23 @@ protected Buffer self() { protected XrSystemGraphicsProperties getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemGraphicsProperties#maxSwapchainImageHeight} field. */ - @NativeType("uint32_t") - public int maxSwapchainImageHeight() { return XrSystemGraphicsProperties.nmaxSwapchainImageHeight(address()); } - /** @return the value of the {@link XrSystemGraphicsProperties#maxSwapchainImageWidth} field. */ - @NativeType("uint32_t") - public int maxSwapchainImageWidth() { return XrSystemGraphicsProperties.nmaxSwapchainImageWidth(address()); } - /** @return the value of the {@link XrSystemGraphicsProperties#maxLayerCount} field. */ - @NativeType("uint32_t") - public int maxLayerCount() { return XrSystemGraphicsProperties.nmaxLayerCount(address()); } - - /** Sets the specified value to the {@link XrSystemGraphicsProperties#maxSwapchainImageHeight} field. */ - public XrSystemGraphicsProperties.Buffer maxSwapchainImageHeight(@NativeType("uint32_t") int value) { XrSystemGraphicsProperties.nmaxSwapchainImageHeight(address(), value); return this; } - /** Sets the specified value to the {@link XrSystemGraphicsProperties#maxSwapchainImageWidth} field. */ - public XrSystemGraphicsProperties.Buffer maxSwapchainImageWidth(@NativeType("uint32_t") int value) { XrSystemGraphicsProperties.nmaxSwapchainImageWidth(address(), value); return this; } - /** Sets the specified value to the {@link XrSystemGraphicsProperties#maxLayerCount} field. */ - public XrSystemGraphicsProperties.Buffer maxLayerCount(@NativeType("uint32_t") int value) { XrSystemGraphicsProperties.nmaxLayerCount(address(), value); return this; } + + /** @return the value of the {@link XrSystemGraphicsProperties#maxSwapchainImageHeight} field. */ + @NativeType("uint32_t") + public int maxSwapchainImageHeight() { return XrSystemGraphicsProperties.nmaxSwapchainImageHeight(address()); } + /** @return the value of the {@link XrSystemGraphicsProperties#maxSwapchainImageWidth} field. */ + @NativeType("uint32_t") + public int maxSwapchainImageWidth() { return XrSystemGraphicsProperties.nmaxSwapchainImageWidth(address()); } + /** @return the value of the {@link XrSystemGraphicsProperties#maxLayerCount} field. */ + @NativeType("uint32_t") + public int maxLayerCount() { return XrSystemGraphicsProperties.nmaxLayerCount(address()); } + + /** Sets the specified value to the {@link XrSystemGraphicsProperties#maxSwapchainImageHeight} field. */ + public XrSystemGraphicsProperties.Buffer maxSwapchainImageHeight(@NativeType("uint32_t") int value) { XrSystemGraphicsProperties.nmaxSwapchainImageHeight(address(), value); return this; } + /** Sets the specified value to the {@link XrSystemGraphicsProperties#maxSwapchainImageWidth} field. */ + public XrSystemGraphicsProperties.Buffer maxSwapchainImageWidth(@NativeType("uint32_t") int value) { XrSystemGraphicsProperties.nmaxSwapchainImageWidth(address(), value); return this; } + /** Sets the specified value to the {@link XrSystemGraphicsProperties#maxLayerCount} field. */ + public XrSystemGraphicsProperties.Buffer maxLayerCount(@NativeType("uint32_t") int value) { XrSystemGraphicsProperties.nmaxLayerCount(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHandTrackingMeshPropertiesMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHandTrackingMeshPropertiesMSFT.java index 1828b63d10..2d505ec213 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHandTrackingMeshPropertiesMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHandTrackingMeshPropertiesMSFT.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.*; + /** * System property for hand tracking mesh. * @@ -46,8 +46,8 @@ * uint32_t {@link #maxHandMeshIndexCount}; * uint32_t {@link #maxHandMeshVertexCount}; * } - */ -public class XrSystemHandTrackingMeshPropertiesMSFT extends Struct implements NativeResource { + */ +public class XrSystemHandTrackingMeshPropertiesMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,38 +57,29 @@ public class XrSystemHandTrackingMeshPropertiesMSFT extends Struct implements NativeResource { @@ -289,9 +280,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 XrSystemHandTrackingMeshPropertiesMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemHandTrackingMeshPropertiesMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -316,29 +307,29 @@ protected Buffer self() { protected XrSystemHandTrackingMeshPropertiesMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemHandTrackingMeshPropertiesMSFT.ntype(address()); } - /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSystemHandTrackingMeshPropertiesMSFT.nnext(address()); } - /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#supportsHandTrackingMesh} field. */ - @NativeType("XrBool32") - public boolean supportsHandTrackingMesh() { return XrSystemHandTrackingMeshPropertiesMSFT.nsupportsHandTrackingMesh(address()) != 0; } - /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#maxHandMeshIndexCount} field. */ - @NativeType("uint32_t") - public int maxHandMeshIndexCount() { return XrSystemHandTrackingMeshPropertiesMSFT.nmaxHandMeshIndexCount(address()); } - /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#maxHandMeshVertexCount} field. */ - @NativeType("uint32_t") - public int maxHandMeshVertexCount() { return XrSystemHandTrackingMeshPropertiesMSFT.nmaxHandMeshVertexCount(address()); } - - /** Sets the specified value to the {@link XrSystemHandTrackingMeshPropertiesMSFT#type} field. */ - public XrSystemHandTrackingMeshPropertiesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSystemHandTrackingMeshPropertiesMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT TYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT} value to the {@link XrSystemHandTrackingMeshPropertiesMSFT#type} field. */ - public XrSystemHandTrackingMeshPropertiesMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT); } - /** Sets the specified value to the {@link XrSystemHandTrackingMeshPropertiesMSFT#next} field. */ - public XrSystemHandTrackingMeshPropertiesMSFT.Buffer next(@NativeType("void *") long value) { XrSystemHandTrackingMeshPropertiesMSFT.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemHandTrackingMeshPropertiesMSFT.ntype(address()); } + /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSystemHandTrackingMeshPropertiesMSFT.nnext(address()); } + /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#supportsHandTrackingMesh} field. */ + @NativeType("XrBool32") + public boolean supportsHandTrackingMesh() { return XrSystemHandTrackingMeshPropertiesMSFT.nsupportsHandTrackingMesh(address()) != 0; } + /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#maxHandMeshIndexCount} field. */ + @NativeType("uint32_t") + public int maxHandMeshIndexCount() { return XrSystemHandTrackingMeshPropertiesMSFT.nmaxHandMeshIndexCount(address()); } + /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#maxHandMeshVertexCount} field. */ + @NativeType("uint32_t") + public int maxHandMeshVertexCount() { return XrSystemHandTrackingMeshPropertiesMSFT.nmaxHandMeshVertexCount(address()); } + + /** Sets the specified value to the {@link XrSystemHandTrackingMeshPropertiesMSFT#type} field. */ + public XrSystemHandTrackingMeshPropertiesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSystemHandTrackingMeshPropertiesMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT TYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT} value to the {@link XrSystemHandTrackingMeshPropertiesMSFT#type} field. */ + public XrSystemHandTrackingMeshPropertiesMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT); } + /** Sets the specified value to the {@link XrSystemHandTrackingMeshPropertiesMSFT#next} field. */ + public XrSystemHandTrackingMeshPropertiesMSFT.Buffer next(@NativeType("void *") long value) { XrSystemHandTrackingMeshPropertiesMSFT.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHandTrackingPropertiesEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHandTrackingPropertiesEXT.java index 8d72a94b5f..140b92d1c0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHandTrackingPropertiesEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHandTrackingPropertiesEXT.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.*; + /** * System property for hand tracking. * @@ -36,8 +36,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsHandTracking}; * } - */ -public class XrSystemHandTrackingPropertiesEXT extends Struct implements NativeResource { + */ +public class XrSystemHandTrackingPropertiesEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -47,32 +47,23 @@ public class XrSystemHandTrackingPropertiesEXT 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 XrSystemHandTrackingPropertiesEXT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemHandTrackingPropertiesEXT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -290,23 +281,23 @@ protected Buffer self() { protected XrSystemHandTrackingPropertiesEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemHandTrackingPropertiesEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemHandTrackingPropertiesEXT.ntype(address()); } - /** @return the value of the {@link XrSystemHandTrackingPropertiesEXT#next} field. */ - @NativeType("void *") - public long next() { return XrSystemHandTrackingPropertiesEXT.nnext(address()); } - /** @return the value of the {@link XrSystemHandTrackingPropertiesEXT#supportsHandTracking} field. */ - @NativeType("XrBool32") - public boolean supportsHandTracking() { return XrSystemHandTrackingPropertiesEXT.nsupportsHandTracking(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemHandTrackingPropertiesEXT#type} field. */ - public XrSystemHandTrackingPropertiesEXT.Buffer type(@NativeType("XrStructureType") int value) { XrSystemHandTrackingPropertiesEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTHandTracking#XR_TYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXT TYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXT} value to the {@link XrSystemHandTrackingPropertiesEXT#type} field. */ - public XrSystemHandTrackingPropertiesEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXT); } - /** Sets the specified value to the {@link XrSystemHandTrackingPropertiesEXT#next} field. */ - public XrSystemHandTrackingPropertiesEXT.Buffer next(@NativeType("void *") long value) { XrSystemHandTrackingPropertiesEXT.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemHandTrackingPropertiesEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemHandTrackingPropertiesEXT.ntype(address()); } + /** @return the value of the {@link XrSystemHandTrackingPropertiesEXT#next} field. */ + @NativeType("void *") + public long next() { return XrSystemHandTrackingPropertiesEXT.nnext(address()); } + /** @return the value of the {@link XrSystemHandTrackingPropertiesEXT#supportsHandTracking} field. */ + @NativeType("XrBool32") + public boolean supportsHandTracking() { return XrSystemHandTrackingPropertiesEXT.nsupportsHandTracking(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemHandTrackingPropertiesEXT#type} field. */ + public XrSystemHandTrackingPropertiesEXT.Buffer type(@NativeType("XrStructureType") int value) { XrSystemHandTrackingPropertiesEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTHandTracking#XR_TYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXT TYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXT} value to the {@link XrSystemHandTrackingPropertiesEXT#type} field. */ + public XrSystemHandTrackingPropertiesEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXT); } + /** Sets the specified value to the {@link XrSystemHandTrackingPropertiesEXT#next} field. */ + public XrSystemHandTrackingPropertiesEXT.Buffer next(@NativeType("void *") long value) { XrSystemHandTrackingPropertiesEXT.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHeadsetIdPropertiesMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHeadsetIdPropertiesMETA.java index b319a11a97..a5dd6bcf64 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHeadsetIdPropertiesMETA.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHeadsetIdPropertiesMETA.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.*; + /** * get headset model id from xrGetSystemProperties. * @@ -52,8 +52,8 @@ * void * {@link #next}; * {@link XrUuidEXT XrUuidEXT} {@link #id}; * } - */ -public class XrSystemHeadsetIdPropertiesMETA extends Struct implements NativeResource { + */ +public class XrSystemHeadsetIdPropertiesMETA extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -63,32 +63,23 @@ public class XrSystemHeadsetIdPropertiesMETA extends Struct implements NativeResource { @@ -278,9 +269,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 XrSystemHeadsetIdPropertiesMETA#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemHeadsetIdPropertiesMETA#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -305,22 +296,22 @@ protected Buffer self() { protected XrSystemHeadsetIdPropertiesMETA getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemHeadsetIdPropertiesMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemHeadsetIdPropertiesMETA.ntype(address()); } - /** @return the value of the {@link XrSystemHeadsetIdPropertiesMETA#next} field. */ - @NativeType("void *") - public long next() { return XrSystemHeadsetIdPropertiesMETA.nnext(address()); } - /** @return a {@link XrUuidEXT} view of the {@link XrSystemHeadsetIdPropertiesMETA#id} field. */ - public XrUuidEXT id() { return XrSystemHeadsetIdPropertiesMETA.nid(address()); } - - /** Sets the specified value to the {@link XrSystemHeadsetIdPropertiesMETA#type} field. */ - public XrSystemHeadsetIdPropertiesMETA.Buffer type(@NativeType("XrStructureType") int value) { XrSystemHeadsetIdPropertiesMETA.ntype(address(), value); return this; } - /** Sets the {@link METAHeadsetId#XR_TYPE_SYSTEM_HEADSET_ID_PROPERTIES_META TYPE_SYSTEM_HEADSET_ID_PROPERTIES_META} value to the {@link XrSystemHeadsetIdPropertiesMETA#type} field. */ - public XrSystemHeadsetIdPropertiesMETA.Buffer type$Default() { return type(METAHeadsetId.XR_TYPE_SYSTEM_HEADSET_ID_PROPERTIES_META); } - /** Sets the specified value to the {@link XrSystemHeadsetIdPropertiesMETA#next} field. */ - public XrSystemHeadsetIdPropertiesMETA.Buffer next(@NativeType("void *") long value) { XrSystemHeadsetIdPropertiesMETA.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemHeadsetIdPropertiesMETA#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemHeadsetIdPropertiesMETA.ntype(address()); } + /** @return the value of the {@link XrSystemHeadsetIdPropertiesMETA#next} field. */ + @NativeType("void *") + public long next() { return XrSystemHeadsetIdPropertiesMETA.nnext(address()); } + /** @return a {@link XrUuidEXT} view of the {@link XrSystemHeadsetIdPropertiesMETA#id} field. */ + public XrUuidEXT id() { return XrSystemHeadsetIdPropertiesMETA.nid(address()); } + + /** Sets the specified value to the {@link XrSystemHeadsetIdPropertiesMETA#type} field. */ + public XrSystemHeadsetIdPropertiesMETA.Buffer type(@NativeType("XrStructureType") int value) { XrSystemHeadsetIdPropertiesMETA.ntype(address(), value); return this; } + /** Sets the {@link METAHeadsetId#XR_TYPE_SYSTEM_HEADSET_ID_PROPERTIES_META TYPE_SYSTEM_HEADSET_ID_PROPERTIES_META} value to the {@link XrSystemHeadsetIdPropertiesMETA#type} field. */ + public XrSystemHeadsetIdPropertiesMETA.Buffer type$Default() { return type(METAHeadsetId.XR_TYPE_SYSTEM_HEADSET_ID_PROPERTIES_META); } + /** Sets the specified value to the {@link XrSystemHeadsetIdPropertiesMETA#next} field. */ + public XrSystemHeadsetIdPropertiesMETA.Buffer next(@NativeType("void *") long value) { XrSystemHeadsetIdPropertiesMETA.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemKeyboardTrackingPropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemKeyboardTrackingPropertiesFB.java index 7e58172148..6438bfa591 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemKeyboardTrackingPropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemKeyboardTrackingPropertiesFB.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 from the system about tracked keyboard support. * @@ -42,8 +42,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsKeyboardTracking}; * } - */ -public class XrSystemKeyboardTrackingPropertiesFB extends Struct implements NativeResource { + */ +public class XrSystemKeyboardTrackingPropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,32 +53,23 @@ public class XrSystemKeyboardTrackingPropertiesFB extends Struct implements NativeResource { @@ -269,9 +260,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 XrSystemKeyboardTrackingPropertiesFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemKeyboardTrackingPropertiesFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -296,23 +287,23 @@ protected Buffer self() { protected XrSystemKeyboardTrackingPropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemKeyboardTrackingPropertiesFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemKeyboardTrackingPropertiesFB.ntype(address()); } - /** @return the value of the {@link XrSystemKeyboardTrackingPropertiesFB#next} field. */ - @NativeType("void *") - public long next() { return XrSystemKeyboardTrackingPropertiesFB.nnext(address()); } - /** @return the value of the {@link XrSystemKeyboardTrackingPropertiesFB#supportsKeyboardTracking} field. */ - @NativeType("XrBool32") - public boolean supportsKeyboardTracking() { return XrSystemKeyboardTrackingPropertiesFB.nsupportsKeyboardTracking(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemKeyboardTrackingPropertiesFB#type} field. */ - public XrSystemKeyboardTrackingPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemKeyboardTrackingPropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBKeyboardTracking#XR_TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB} value to the {@link XrSystemKeyboardTrackingPropertiesFB#type} field. */ - public XrSystemKeyboardTrackingPropertiesFB.Buffer type$Default() { return type(FBKeyboardTracking.XR_TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB); } - /** Sets the specified value to the {@link XrSystemKeyboardTrackingPropertiesFB#next} field. */ - public XrSystemKeyboardTrackingPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemKeyboardTrackingPropertiesFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemKeyboardTrackingPropertiesFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemKeyboardTrackingPropertiesFB.ntype(address()); } + /** @return the value of the {@link XrSystemKeyboardTrackingPropertiesFB#next} field. */ + @NativeType("void *") + public long next() { return XrSystemKeyboardTrackingPropertiesFB.nnext(address()); } + /** @return the value of the {@link XrSystemKeyboardTrackingPropertiesFB#supportsKeyboardTracking} field. */ + @NativeType("XrBool32") + public boolean supportsKeyboardTracking() { return XrSystemKeyboardTrackingPropertiesFB.nsupportsKeyboardTracking(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemKeyboardTrackingPropertiesFB#type} field. */ + public XrSystemKeyboardTrackingPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemKeyboardTrackingPropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBKeyboardTracking#XR_TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB} value to the {@link XrSystemKeyboardTrackingPropertiesFB#type} field. */ + public XrSystemKeyboardTrackingPropertiesFB.Buffer type$Default() { return type(FBKeyboardTracking.XR_TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB); } + /** Sets the specified value to the {@link XrSystemKeyboardTrackingPropertiesFB#next} field. */ + public XrSystemKeyboardTrackingPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemKeyboardTrackingPropertiesFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemMarkerTrackingPropertiesVARJO.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemMarkerTrackingPropertiesVARJO.java index d489b42dae..2598c371d2 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemMarkerTrackingPropertiesVARJO.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemMarkerTrackingPropertiesVARJO.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.*; + /** * System property for marker tracking. * @@ -44,8 +44,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsMarkerTracking}; * } - */ -public class XrSystemMarkerTrackingPropertiesVARJO extends Struct implements NativeResource { + */ +public class XrSystemMarkerTrackingPropertiesVARJO extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,32 +55,23 @@ public class XrSystemMarkerTrackingPropertiesVARJO extends Struct implements NativeResource { @@ -271,9 +262,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 XrSystemMarkerTrackingPropertiesVARJO#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemMarkerTrackingPropertiesVARJO#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -298,23 +289,23 @@ protected Buffer self() { protected XrSystemMarkerTrackingPropertiesVARJO getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemMarkerTrackingPropertiesVARJO#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemMarkerTrackingPropertiesVARJO.ntype(address()); } - /** @return the value of the {@link XrSystemMarkerTrackingPropertiesVARJO#next} field. */ - @NativeType("void *") - public long next() { return XrSystemMarkerTrackingPropertiesVARJO.nnext(address()); } - /** @return the value of the {@link XrSystemMarkerTrackingPropertiesVARJO#supportsMarkerTracking} field. */ - @NativeType("XrBool32") - public boolean supportsMarkerTracking() { return XrSystemMarkerTrackingPropertiesVARJO.nsupportsMarkerTracking(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemMarkerTrackingPropertiesVARJO#type} field. */ - public XrSystemMarkerTrackingPropertiesVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrSystemMarkerTrackingPropertiesVARJO.ntype(address(), value); return this; } - /** Sets the {@link VARJOMarkerTracking#XR_TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJO TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJO} value to the {@link XrSystemMarkerTrackingPropertiesVARJO#type} field. */ - public XrSystemMarkerTrackingPropertiesVARJO.Buffer type$Default() { return type(VARJOMarkerTracking.XR_TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJO); } - /** Sets the specified value to the {@link XrSystemMarkerTrackingPropertiesVARJO#next} field. */ - public XrSystemMarkerTrackingPropertiesVARJO.Buffer next(@NativeType("void *") long value) { XrSystemMarkerTrackingPropertiesVARJO.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemMarkerTrackingPropertiesVARJO#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemMarkerTrackingPropertiesVARJO.ntype(address()); } + /** @return the value of the {@link XrSystemMarkerTrackingPropertiesVARJO#next} field. */ + @NativeType("void *") + public long next() { return XrSystemMarkerTrackingPropertiesVARJO.nnext(address()); } + /** @return the value of the {@link XrSystemMarkerTrackingPropertiesVARJO#supportsMarkerTracking} field. */ + @NativeType("XrBool32") + public boolean supportsMarkerTracking() { return XrSystemMarkerTrackingPropertiesVARJO.nsupportsMarkerTracking(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemMarkerTrackingPropertiesVARJO#type} field. */ + public XrSystemMarkerTrackingPropertiesVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrSystemMarkerTrackingPropertiesVARJO.ntype(address(), value); return this; } + /** Sets the {@link VARJOMarkerTracking#XR_TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJO TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJO} value to the {@link XrSystemMarkerTrackingPropertiesVARJO#type} field. */ + public XrSystemMarkerTrackingPropertiesVARJO.Buffer type$Default() { return type(VARJOMarkerTracking.XR_TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJO); } + /** Sets the specified value to the {@link XrSystemMarkerTrackingPropertiesVARJO#next} field. */ + public XrSystemMarkerTrackingPropertiesVARJO.Buffer next(@NativeType("void *") long value) { XrSystemMarkerTrackingPropertiesVARJO.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPassthroughProperties2FB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPassthroughProperties2FB.java index 17ad1d377a..44fcecf821 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPassthroughProperties2FB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPassthroughProperties2FB.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.*; + /** * Passthrough system properties. * @@ -42,8 +42,8 @@ * void const * next; * XrPassthroughCapabilityFlagsFB capabilities; * } - */ -public class XrSystemPassthroughProperties2FB extends Struct implements NativeResource { + */ +public class XrSystemPassthroughProperties2FB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,32 +53,23 @@ public class XrSystemPassthroughProperties2FB extends Struct implements NativeResource { @@ -269,9 +260,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 XrSystemPassthroughProperties2FB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemPassthroughProperties2FB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -296,23 +287,23 @@ protected Buffer self() { protected XrSystemPassthroughProperties2FB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemPassthroughProperties2FB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrSystemPassthroughProperties2FB.nnext(address()); } - /** @return the value of the {@code capabilities} field. */ - @NativeType("XrPassthroughCapabilityFlagsFB") - public long capabilities() { return XrSystemPassthroughProperties2FB.ncapabilities(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrSystemPassthroughProperties2FB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemPassthroughProperties2FB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB} value to the {@code type} field. */ - public XrSystemPassthroughProperties2FB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrSystemPassthroughProperties2FB.Buffer next(@NativeType("void const *") long value) { XrSystemPassthroughProperties2FB.nnext(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemPassthroughProperties2FB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrSystemPassthroughProperties2FB.nnext(address()); } + /** @return the value of the {@code capabilities} field. */ + @NativeType("XrPassthroughCapabilityFlagsFB") + public long capabilities() { return XrSystemPassthroughProperties2FB.ncapabilities(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrSystemPassthroughProperties2FB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemPassthroughProperties2FB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB} value to the {@code type} field. */ + public XrSystemPassthroughProperties2FB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrSystemPassthroughProperties2FB.Buffer next(@NativeType("void const *") long value) { XrSystemPassthroughProperties2FB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPassthroughPropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPassthroughPropertiesFB.java index f9de89f278..fe2ed7bfff 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPassthroughPropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPassthroughPropertiesFB.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.*; + /** * A passthrough system property. * @@ -42,8 +42,8 @@ * void const * next; * XrBool32 supportsPassthrough; * } - */ -public class XrSystemPassthroughPropertiesFB extends Struct implements NativeResource { + */ +public class XrSystemPassthroughPropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,32 +53,23 @@ public class XrSystemPassthroughPropertiesFB extends Struct implements NativeResource { @@ -269,9 +260,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 XrSystemPassthroughPropertiesFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemPassthroughPropertiesFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -296,23 +287,23 @@ protected Buffer self() { protected XrSystemPassthroughPropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemPassthroughPropertiesFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrSystemPassthroughPropertiesFB.nnext(address()); } - /** @return the value of the {@code supportsPassthrough} field. */ - @NativeType("XrBool32") - public boolean supportsPassthrough() { return XrSystemPassthroughPropertiesFB.nsupportsPassthrough(address()) != 0; } - - /** Sets the specified value to the {@code type} field. */ - public XrSystemPassthroughPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemPassthroughPropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FB TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FB} value to the {@code type} field. */ - public XrSystemPassthroughPropertiesFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrSystemPassthroughPropertiesFB.Buffer next(@NativeType("void const *") long value) { XrSystemPassthroughPropertiesFB.nnext(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemPassthroughPropertiesFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrSystemPassthroughPropertiesFB.nnext(address()); } + /** @return the value of the {@code supportsPassthrough} field. */ + @NativeType("XrBool32") + public boolean supportsPassthrough() { return XrSystemPassthroughPropertiesFB.nsupportsPassthrough(address()) != 0; } + + /** Sets the specified value to the {@code type} field. */ + public XrSystemPassthroughPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemPassthroughPropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FB TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FB} value to the {@code type} field. */ + public XrSystemPassthroughPropertiesFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrSystemPassthroughPropertiesFB.Buffer next(@NativeType("void const *") long value) { XrSystemPassthroughPropertiesFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemProperties.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemProperties.java index a547a6a976..56daf70eee 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemProperties.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemProperties.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.*; + /** * Properties of a particular system. * @@ -43,8 +43,8 @@ * {@link XrSystemGraphicsProperties XrSystemGraphicsProperties} {@link #graphicsProperties}; * {@link XrSystemTrackingProperties XrSystemTrackingProperties} {@link #trackingProperties}; * } - */ -public class XrSystemProperties extends Struct implements NativeResource { + */ +public class XrSystemProperties extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,44 +54,35 @@ public class XrSystemProperties extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT, - SYSTEMID, - VENDORID, - SYSTEMNAME, - GRAPHICSPROPERTIES, - TRACKINGPROPERTIES; + TYPE, + NEXT, + SYSTEMID, + VENDORID, + SYSTEMNAME, + GRAPHICSPROPERTIES, + TRACKINGPROPERTIES; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(4), - __array(1, XR_MAX_SYSTEM_NAME_SIZE), - __member(XrSystemGraphicsProperties.SIZEOF, XrSystemGraphicsProperties.ALIGNOF), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(4), + __array(1, XR_MAX_SYSTEM_NAME_SIZE), + __member(XrSystemGraphicsProperties.SIZEOF, XrSystemGraphicsProperties.ALIGNOF), __member(XrSystemTrackingProperties.SIZEOF, XrSystemTrackingProperties.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - SYSTEMID = layout.offsetof(2); - VENDORID = layout.offsetof(3); - SYSTEMNAME = layout.offsetof(4); - GRAPHICSPROPERTIES = layout.offsetof(5); - TRACKINGPROPERTIES = layout.offsetof(6); - } - - protected XrSystemProperties(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSystemProperties create(long address, @Nullable ByteBuffer container) { - return new XrSystemProperties(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + SYSTEMID = layout.offsetof(2); + VENDORID = layout.offsetof(3); + SYSTEMNAME = layout.offsetof(4); + GRAPHICSPROPERTIES = layout.offsetof(5); + TRACKINGPROPERTIES = layout.offsetof(6); } /** @@ -106,84 +97,84 @@ public XrSystemProperties(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 {@code XrSystemId} identifying the system. */ - @NativeType("XrSystemId") - public long systemId() { return nsystemId(address()); } - /** a unique identifier for the vendor of the system. */ - @NativeType("uint32_t") - public int vendorId() { return nvendorId(address()); } - /** a string containing the name of the system. */ - @NativeType("char[XR_MAX_SYSTEM_NAME_SIZE]") - public ByteBuffer systemName() { return nsystemName(address()); } - /** a string containing the name of the system. */ - @NativeType("char[XR_MAX_SYSTEM_NAME_SIZE]") - public String systemNameString() { return nsystemNameString(address()); } - /** an {@link XrSystemGraphicsProperties} structure specifying the system graphics properties. */ - public XrSystemGraphicsProperties graphicsProperties() { return ngraphicsProperties(address()); } - /** an {@link XrSystemTrackingProperties} structure specifying system tracking properties. */ - public XrSystemTrackingProperties trackingProperties() { return ntrackingProperties(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSystemProperties type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SYSTEM_PROPERTIES TYPE_SYSTEM_PROPERTIES} value to the {@link #type} field. */ - public XrSystemProperties type$Default() { return type(XR10.XR_TYPE_SYSTEM_PROPERTIES); } - /** Sets the specified value to the {@link #next} field. */ - public XrSystemProperties next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrRenderModelCapabilitiesRequestFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrRenderModelCapabilitiesRequestFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemBodyTrackingPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemBodyTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemColorSpacePropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemColorSpacePropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemEyeGazeInteractionPropertiesEXT} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemEyeGazeInteractionPropertiesEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemEyeTrackingPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemEyeTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemFaceTrackingPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemFaceTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemFacialTrackingPropertiesHTC} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemFacialTrackingPropertiesHTC value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemForceFeedbackCurlPropertiesMNDX} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemForceFeedbackCurlPropertiesMNDX value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemFoveatedRenderingPropertiesVARJO} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemFoveatedRenderingPropertiesVARJO value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemFoveationEyeTrackedPropertiesMETA} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemFoveationEyeTrackedPropertiesMETA value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemHandTrackingMeshPropertiesMSFT} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemHandTrackingMeshPropertiesMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemHandTrackingPropertiesEXT} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemHandTrackingPropertiesEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemHeadsetIdPropertiesMETA} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemHeadsetIdPropertiesMETA value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemKeyboardTrackingPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemKeyboardTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemMarkerTrackingPropertiesVARJO} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemMarkerTrackingPropertiesVARJO value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemPassthroughProperties2FB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemPassthroughProperties2FB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemPassthroughPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemPassthroughPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemRenderModelPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemRenderModelPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemSpaceWarpPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemSpaceWarpPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemSpatialEntityPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemSpatialEntityPropertiesFB value) { return this.next(value.next(this.next()).address()); } + + /** 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 {@code XrSystemId} identifying the system. */ + @NativeType("XrSystemId") + public long systemId() { return nsystemId(address()); } + /** a unique identifier for the vendor of the system. */ + @NativeType("uint32_t") + public int vendorId() { return nvendorId(address()); } + /** a string containing the name of the system. */ + @NativeType("char[XR_MAX_SYSTEM_NAME_SIZE]") + public ByteBuffer systemName() { return nsystemName(address()); } + /** a string containing the name of the system. */ + @NativeType("char[XR_MAX_SYSTEM_NAME_SIZE]") + public String systemNameString() { return nsystemNameString(address()); } + /** an {@link XrSystemGraphicsProperties} structure specifying the system graphics properties. */ + public XrSystemGraphicsProperties graphicsProperties() { return ngraphicsProperties(address()); } + /** an {@link XrSystemTrackingProperties} structure specifying system tracking properties. */ + public XrSystemTrackingProperties trackingProperties() { return ntrackingProperties(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSystemProperties type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SYSTEM_PROPERTIES TYPE_SYSTEM_PROPERTIES} value to the {@link #type} field. */ + public XrSystemProperties type$Default() { return type(XR10.XR_TYPE_SYSTEM_PROPERTIES); } + /** Sets the specified value to the {@link #next} field. */ + public XrSystemProperties next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrRenderModelCapabilitiesRequestFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrRenderModelCapabilitiesRequestFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemBodyTrackingPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemBodyTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemColorSpacePropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemColorSpacePropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemEyeGazeInteractionPropertiesEXT} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemEyeGazeInteractionPropertiesEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemEyeTrackingPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemEyeTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemFaceTrackingPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemFaceTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemFacialTrackingPropertiesHTC} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemFacialTrackingPropertiesHTC value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemForceFeedbackCurlPropertiesMNDX} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemForceFeedbackCurlPropertiesMNDX value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemFoveatedRenderingPropertiesVARJO} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemFoveatedRenderingPropertiesVARJO value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemFoveationEyeTrackedPropertiesMETA} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemFoveationEyeTrackedPropertiesMETA value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemHandTrackingMeshPropertiesMSFT} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemHandTrackingMeshPropertiesMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemHandTrackingPropertiesEXT} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemHandTrackingPropertiesEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemHeadsetIdPropertiesMETA} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemHeadsetIdPropertiesMETA value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemKeyboardTrackingPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemKeyboardTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemMarkerTrackingPropertiesVARJO} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemMarkerTrackingPropertiesVARJO value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemPassthroughProperties2FB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemPassthroughProperties2FB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemPassthroughPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemPassthroughPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemRenderModelPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemRenderModelPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemSpaceWarpPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemSpaceWarpPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemSpatialEntityPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemSpatialEntityPropertiesFB value) { return this.next(value.next(this.next()).address()); } /** Initializes this struct with the specified values. */ public XrSystemProperties set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -204,29 +195,29 @@ public XrSystemProperties set(XrSystemProperties src) { /** Returns a new {@code XrSystemProperties} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrSystemProperties malloc() { - return new XrSystemProperties(nmemAllocChecked(SIZEOF), null); + return wrap(XrSystemProperties.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrSystemProperties} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrSystemProperties calloc() { - return new XrSystemProperties(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrSystemProperties.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrSystemProperties} instance allocated with {@link BufferUtils}. */ public static XrSystemProperties create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSystemProperties(memAddress(container), container); + return wrap(XrSystemProperties.class, memAddress(container), container); } /** Returns a new {@code XrSystemProperties} instance for the specified memory address. */ public static XrSystemProperties create(long address) { - return new XrSystemProperties(address, null); + return wrap(XrSystemProperties.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrSystemProperties createSafe(long address) { - return address == NULL ? null : new XrSystemProperties(address, null); + return address == NULL ? null : wrap(XrSystemProperties.class, address); } /** @@ -235,7 +226,7 @@ public static XrSystemProperties createSafe(long address) { * @param capacity the buffer capacity */ public static XrSystemProperties.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -244,7 +235,7 @@ public static XrSystemProperties.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrSystemProperties.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -254,7 +245,7 @@ public static XrSystemProperties.Buffer calloc(int capacity) { */ public static XrSystemProperties.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); } /** @@ -264,13 +255,13 @@ public static XrSystemProperties.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrSystemProperties.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 XrSystemProperties.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -279,7 +270,7 @@ public static XrSystemProperties.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrSystemProperties malloc(MemoryStack stack) { - return new XrSystemProperties(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrSystemProperties.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -288,7 +279,7 @@ public static XrSystemProperties malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrSystemProperties calloc(MemoryStack stack) { - return new XrSystemProperties(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrSystemProperties.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -298,7 +289,7 @@ public static XrSystemProperties calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrSystemProperties.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); } /** @@ -308,34 +299,34 @@ public static XrSystemProperties.Buffer malloc(int capacity, MemoryStack stack) * @param capacity the buffer capacity */ public static XrSystemProperties.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 + XrSystemProperties.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSystemProperties.NEXT); } - /** Unsafe version of {@link #systemId}. */ - public static long nsystemId(long struct) { return UNSAFE.getLong(null, struct + XrSystemProperties.SYSTEMID); } - /** Unsafe version of {@link #vendorId}. */ - public static int nvendorId(long struct) { return UNSAFE.getInt(null, struct + XrSystemProperties.VENDORID); } - /** Unsafe version of {@link #systemName}. */ - public static ByteBuffer nsystemName(long struct) { return memByteBuffer(struct + XrSystemProperties.SYSTEMNAME, XR_MAX_SYSTEM_NAME_SIZE); } - /** Unsafe version of {@link #systemNameString}. */ - public static String nsystemNameString(long struct) { return memUTF8(struct + XrSystemProperties.SYSTEMNAME); } - /** Unsafe version of {@link #graphicsProperties}. */ - public static XrSystemGraphicsProperties ngraphicsProperties(long struct) { return XrSystemGraphicsProperties.create(struct + XrSystemProperties.GRAPHICSPROPERTIES); } - /** Unsafe version of {@link #trackingProperties}. */ - public static XrSystemTrackingProperties ntrackingProperties(long struct) { return XrSystemTrackingProperties.create(struct + XrSystemProperties.TRACKINGPROPERTIES); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemProperties.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSystemProperties.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSystemProperties.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSystemProperties.NEXT); } + /** Unsafe version of {@link #systemId}. */ + public static long nsystemId(long struct) { return UNSAFE.getLong(null, struct + XrSystemProperties.SYSTEMID); } + /** Unsafe version of {@link #vendorId}. */ + public static int nvendorId(long struct) { return UNSAFE.getInt(null, struct + XrSystemProperties.VENDORID); } + /** Unsafe version of {@link #systemName}. */ + public static ByteBuffer nsystemName(long struct) { return memByteBuffer(struct + XrSystemProperties.SYSTEMNAME, XR_MAX_SYSTEM_NAME_SIZE); } + /** Unsafe version of {@link #systemNameString}. */ + public static String nsystemNameString(long struct) { return memUTF8(struct + XrSystemProperties.SYSTEMNAME); } + /** Unsafe version of {@link #graphicsProperties}. */ + public static XrSystemGraphicsProperties ngraphicsProperties(long struct) { return XrSystemGraphicsProperties.create(struct + XrSystemProperties.GRAPHICSPROPERTIES); } + /** Unsafe version of {@link #trackingProperties}. */ + public static XrSystemTrackingProperties ntrackingProperties(long struct) { return XrSystemTrackingProperties.create(struct + XrSystemProperties.TRACKINGPROPERTIES); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemProperties.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSystemProperties.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrSystemProperties} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -345,9 +336,9 @@ public static class Buffer extends StructBuffer impl /** * Creates a new {@code XrSystemProperties.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 XrSystemProperties#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemProperties#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -372,76 +363,76 @@ protected Buffer self() { protected XrSystemProperties getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemProperties#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemProperties.ntype(address()); } - /** @return the value of the {@link XrSystemProperties#next} field. */ - @NativeType("void *") - public long next() { return XrSystemProperties.nnext(address()); } - /** @return the value of the {@link XrSystemProperties#systemId} field. */ - @NativeType("XrSystemId") - public long systemId() { return XrSystemProperties.nsystemId(address()); } - /** @return the value of the {@link XrSystemProperties#vendorId} field. */ - @NativeType("uint32_t") - public int vendorId() { return XrSystemProperties.nvendorId(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrSystemProperties#systemName} field. */ - @NativeType("char[XR_MAX_SYSTEM_NAME_SIZE]") - public ByteBuffer systemName() { return XrSystemProperties.nsystemName(address()); } - /** @return the null-terminated string stored in the {@link XrSystemProperties#systemName} field. */ - @NativeType("char[XR_MAX_SYSTEM_NAME_SIZE]") - public String systemNameString() { return XrSystemProperties.nsystemNameString(address()); } - /** @return a {@link XrSystemGraphicsProperties} view of the {@link XrSystemProperties#graphicsProperties} field. */ - public XrSystemGraphicsProperties graphicsProperties() { return XrSystemProperties.ngraphicsProperties(address()); } - /** @return a {@link XrSystemTrackingProperties} view of the {@link XrSystemProperties#trackingProperties} field. */ - public XrSystemTrackingProperties trackingProperties() { return XrSystemProperties.ntrackingProperties(address()); } - - /** Sets the specified value to the {@link XrSystemProperties#type} field. */ - public XrSystemProperties.Buffer type(@NativeType("XrStructureType") int value) { XrSystemProperties.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SYSTEM_PROPERTIES TYPE_SYSTEM_PROPERTIES} value to the {@link XrSystemProperties#type} field. */ - public XrSystemProperties.Buffer type$Default() { return type(XR10.XR_TYPE_SYSTEM_PROPERTIES); } - /** Sets the specified value to the {@link XrSystemProperties#next} field. */ - public XrSystemProperties.Buffer next(@NativeType("void *") long value) { XrSystemProperties.nnext(address(), value); return this; } - /** Prepends the specified {@link XrRenderModelCapabilitiesRequestFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrRenderModelCapabilitiesRequestFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemBodyTrackingPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemBodyTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemColorSpacePropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemColorSpacePropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemEyeGazeInteractionPropertiesEXT} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemEyeGazeInteractionPropertiesEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemEyeTrackingPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemEyeTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemFaceTrackingPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemFaceTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemFacialTrackingPropertiesHTC} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemFacialTrackingPropertiesHTC value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemForceFeedbackCurlPropertiesMNDX} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemForceFeedbackCurlPropertiesMNDX value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemFoveatedRenderingPropertiesVARJO} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemFoveatedRenderingPropertiesVARJO value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemFoveationEyeTrackedPropertiesMETA} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemFoveationEyeTrackedPropertiesMETA value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemHandTrackingMeshPropertiesMSFT} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemHandTrackingMeshPropertiesMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemHandTrackingPropertiesEXT} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemHandTrackingPropertiesEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemHeadsetIdPropertiesMETA} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemHeadsetIdPropertiesMETA value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemKeyboardTrackingPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemKeyboardTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemMarkerTrackingPropertiesVARJO} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemMarkerTrackingPropertiesVARJO value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemPassthroughProperties2FB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemPassthroughProperties2FB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemPassthroughPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemPassthroughPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemRenderModelPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemRenderModelPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemSpaceWarpPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemSpaceWarpPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemSpatialEntityPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemSpatialEntityPropertiesFB value) { return this.next(value.next(this.next()).address()); } + + /** @return the value of the {@link XrSystemProperties#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemProperties.ntype(address()); } + /** @return the value of the {@link XrSystemProperties#next} field. */ + @NativeType("void *") + public long next() { return XrSystemProperties.nnext(address()); } + /** @return the value of the {@link XrSystemProperties#systemId} field. */ + @NativeType("XrSystemId") + public long systemId() { return XrSystemProperties.nsystemId(address()); } + /** @return the value of the {@link XrSystemProperties#vendorId} field. */ + @NativeType("uint32_t") + public int vendorId() { return XrSystemProperties.nvendorId(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrSystemProperties#systemName} field. */ + @NativeType("char[XR_MAX_SYSTEM_NAME_SIZE]") + public ByteBuffer systemName() { return XrSystemProperties.nsystemName(address()); } + /** @return the null-terminated string stored in the {@link XrSystemProperties#systemName} field. */ + @NativeType("char[XR_MAX_SYSTEM_NAME_SIZE]") + public String systemNameString() { return XrSystemProperties.nsystemNameString(address()); } + /** @return a {@link XrSystemGraphicsProperties} view of the {@link XrSystemProperties#graphicsProperties} field. */ + public XrSystemGraphicsProperties graphicsProperties() { return XrSystemProperties.ngraphicsProperties(address()); } + /** @return a {@link XrSystemTrackingProperties} view of the {@link XrSystemProperties#trackingProperties} field. */ + public XrSystemTrackingProperties trackingProperties() { return XrSystemProperties.ntrackingProperties(address()); } + + /** Sets the specified value to the {@link XrSystemProperties#type} field. */ + public XrSystemProperties.Buffer type(@NativeType("XrStructureType") int value) { XrSystemProperties.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SYSTEM_PROPERTIES TYPE_SYSTEM_PROPERTIES} value to the {@link XrSystemProperties#type} field. */ + public XrSystemProperties.Buffer type$Default() { return type(XR10.XR_TYPE_SYSTEM_PROPERTIES); } + /** Sets the specified value to the {@link XrSystemProperties#next} field. */ + public XrSystemProperties.Buffer next(@NativeType("void *") long value) { XrSystemProperties.nnext(address(), value); return this; } + /** Prepends the specified {@link XrRenderModelCapabilitiesRequestFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrRenderModelCapabilitiesRequestFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemBodyTrackingPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemBodyTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemColorSpacePropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemColorSpacePropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemEyeGazeInteractionPropertiesEXT} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemEyeGazeInteractionPropertiesEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemEyeTrackingPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemEyeTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemFaceTrackingPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemFaceTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemFacialTrackingPropertiesHTC} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemFacialTrackingPropertiesHTC value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemForceFeedbackCurlPropertiesMNDX} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemForceFeedbackCurlPropertiesMNDX value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemFoveatedRenderingPropertiesVARJO} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemFoveatedRenderingPropertiesVARJO value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemFoveationEyeTrackedPropertiesMETA} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemFoveationEyeTrackedPropertiesMETA value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemHandTrackingMeshPropertiesMSFT} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemHandTrackingMeshPropertiesMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemHandTrackingPropertiesEXT} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemHandTrackingPropertiesEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemHeadsetIdPropertiesMETA} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemHeadsetIdPropertiesMETA value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemKeyboardTrackingPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemKeyboardTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemMarkerTrackingPropertiesVARJO} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemMarkerTrackingPropertiesVARJO value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemPassthroughProperties2FB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemPassthroughProperties2FB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemPassthroughPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemPassthroughPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemRenderModelPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemRenderModelPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemSpaceWarpPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemSpaceWarpPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemSpatialEntityPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemSpatialEntityPropertiesFB value) { return this.next(value.next(this.next()).address()); } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemRenderModelPropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemRenderModelPropertiesFB.java index 361b1f6012..e6bcce0b36 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemRenderModelPropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemRenderModelPropertiesFB.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.*; + /** * A render model system property. * @@ -42,8 +42,8 @@ * void * next; * XrBool32 supportsRenderModelLoading; * } - */ -public class XrSystemRenderModelPropertiesFB extends Struct implements NativeResource { + */ +public class XrSystemRenderModelPropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,32 +53,23 @@ public class XrSystemRenderModelPropertiesFB extends Struct implements NativeResource { @@ -269,9 +260,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 XrSystemRenderModelPropertiesFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemRenderModelPropertiesFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -296,23 +287,23 @@ protected Buffer self() { protected XrSystemRenderModelPropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemRenderModelPropertiesFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void *") - public long next() { return XrSystemRenderModelPropertiesFB.nnext(address()); } - /** @return the value of the {@code supportsRenderModelLoading} field. */ - @NativeType("XrBool32") - public boolean supportsRenderModelLoading() { return XrSystemRenderModelPropertiesFB.nsupportsRenderModelLoading(address()) != 0; } - - /** Sets the specified value to the {@code type} field. */ - public XrSystemRenderModelPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemRenderModelPropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB} value to the {@code type} field. */ - public XrSystemRenderModelPropertiesFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrSystemRenderModelPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemRenderModelPropertiesFB.nnext(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemRenderModelPropertiesFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void *") + public long next() { return XrSystemRenderModelPropertiesFB.nnext(address()); } + /** @return the value of the {@code supportsRenderModelLoading} field. */ + @NativeType("XrBool32") + public boolean supportsRenderModelLoading() { return XrSystemRenderModelPropertiesFB.nsupportsRenderModelLoading(address()) != 0; } + + /** Sets the specified value to the {@code type} field. */ + public XrSystemRenderModelPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemRenderModelPropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB} value to the {@code type} field. */ + public XrSystemRenderModelPropertiesFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrSystemRenderModelPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemRenderModelPropertiesFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemSpaceWarpPropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemSpaceWarpPropertiesFB.java index 860eaaf65f..9a1e8e3801 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemSpaceWarpPropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemSpaceWarpPropertiesFB.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.*; + /** * Composition Layer Space Warp structure. * @@ -39,8 +39,8 @@ * uint32_t {@link #recommendedMotionVectorImageRectWidth}; * uint32_t {@link #recommendedMotionVectorImageRectHeight}; * } - */ -public class XrSystemSpaceWarpPropertiesFB extends Struct implements NativeResource { + */ +public class XrSystemSpaceWarpPropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,35 +50,26 @@ public class XrSystemSpaceWarpPropertiesFB extends Struct implements NativeResource { @@ -274,9 +265,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 XrSystemSpaceWarpPropertiesFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemSpaceWarpPropertiesFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -301,26 +292,26 @@ protected Buffer self() { protected XrSystemSpaceWarpPropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemSpaceWarpPropertiesFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemSpaceWarpPropertiesFB.ntype(address()); } - /** @return the value of the {@link XrSystemSpaceWarpPropertiesFB#next} field. */ - @NativeType("void *") - public long next() { return XrSystemSpaceWarpPropertiesFB.nnext(address()); } - /** @return the value of the {@link XrSystemSpaceWarpPropertiesFB#recommendedMotionVectorImageRectWidth} field. */ - @NativeType("uint32_t") - public int recommendedMotionVectorImageRectWidth() { return XrSystemSpaceWarpPropertiesFB.nrecommendedMotionVectorImageRectWidth(address()); } - /** @return the value of the {@link XrSystemSpaceWarpPropertiesFB#recommendedMotionVectorImageRectHeight} field. */ - @NativeType("uint32_t") - public int recommendedMotionVectorImageRectHeight() { return XrSystemSpaceWarpPropertiesFB.nrecommendedMotionVectorImageRectHeight(address()); } - - /** Sets the specified value to the {@link XrSystemSpaceWarpPropertiesFB#type} field. */ - public XrSystemSpaceWarpPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemSpaceWarpPropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpaceWarp#XR_TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB} value to the {@link XrSystemSpaceWarpPropertiesFB#type} field. */ - public XrSystemSpaceWarpPropertiesFB.Buffer type$Default() { return type(FBSpaceWarp.XR_TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB); } - /** Sets the specified value to the {@link XrSystemSpaceWarpPropertiesFB#next} field. */ - public XrSystemSpaceWarpPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemSpaceWarpPropertiesFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemSpaceWarpPropertiesFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemSpaceWarpPropertiesFB.ntype(address()); } + /** @return the value of the {@link XrSystemSpaceWarpPropertiesFB#next} field. */ + @NativeType("void *") + public long next() { return XrSystemSpaceWarpPropertiesFB.nnext(address()); } + /** @return the value of the {@link XrSystemSpaceWarpPropertiesFB#recommendedMotionVectorImageRectWidth} field. */ + @NativeType("uint32_t") + public int recommendedMotionVectorImageRectWidth() { return XrSystemSpaceWarpPropertiesFB.nrecommendedMotionVectorImageRectWidth(address()); } + /** @return the value of the {@link XrSystemSpaceWarpPropertiesFB#recommendedMotionVectorImageRectHeight} field. */ + @NativeType("uint32_t") + public int recommendedMotionVectorImageRectHeight() { return XrSystemSpaceWarpPropertiesFB.nrecommendedMotionVectorImageRectHeight(address()); } + + /** Sets the specified value to the {@link XrSystemSpaceWarpPropertiesFB#type} field. */ + public XrSystemSpaceWarpPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemSpaceWarpPropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpaceWarp#XR_TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB} value to the {@link XrSystemSpaceWarpPropertiesFB#type} field. */ + public XrSystemSpaceWarpPropertiesFB.Buffer type$Default() { return type(FBSpaceWarp.XR_TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB); } + /** Sets the specified value to the {@link XrSystemSpaceWarpPropertiesFB#next} field. */ + public XrSystemSpaceWarpPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemSpaceWarpPropertiesFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemSpatialEntityPropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemSpatialEntityPropertiesFB.java index 2d300f6456..a6a2e06459 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemSpatialEntityPropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemSpatialEntityPropertiesFB.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.*; + /** * Properties object retrieved as part of next chain from xrGetSystemProperties. * @@ -44,8 +44,8 @@ * void const * {@link #next}; * XrBool32 {@link #supportsSpatialEntity}; * } - */ -public class XrSystemSpatialEntityPropertiesFB extends Struct implements NativeResource { + */ +public class XrSystemSpatialEntityPropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,32 +55,23 @@ public class XrSystemSpatialEntityPropertiesFB extends Struct implements NativeResource { @@ -271,9 +262,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 XrSystemSpatialEntityPropertiesFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemSpatialEntityPropertiesFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -298,23 +289,23 @@ protected Buffer self() { protected XrSystemSpatialEntityPropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemSpatialEntityPropertiesFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemSpatialEntityPropertiesFB.ntype(address()); } - /** @return the value of the {@link XrSystemSpatialEntityPropertiesFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSystemSpatialEntityPropertiesFB.nnext(address()); } - /** @return the value of the {@link XrSystemSpatialEntityPropertiesFB#supportsSpatialEntity} field. */ - @NativeType("XrBool32") - public boolean supportsSpatialEntity() { return XrSystemSpatialEntityPropertiesFB.nsupportsSpatialEntity(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemSpatialEntityPropertiesFB#type} field. */ - public XrSystemSpatialEntityPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemSpatialEntityPropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntity#XR_TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB} value to the {@link XrSystemSpatialEntityPropertiesFB#type} field. */ - public XrSystemSpatialEntityPropertiesFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB); } - /** Sets the specified value to the {@link XrSystemSpatialEntityPropertiesFB#next} field. */ - public XrSystemSpatialEntityPropertiesFB.Buffer next(@NativeType("void const *") long value) { XrSystemSpatialEntityPropertiesFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemSpatialEntityPropertiesFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemSpatialEntityPropertiesFB.ntype(address()); } + /** @return the value of the {@link XrSystemSpatialEntityPropertiesFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSystemSpatialEntityPropertiesFB.nnext(address()); } + /** @return the value of the {@link XrSystemSpatialEntityPropertiesFB#supportsSpatialEntity} field. */ + @NativeType("XrBool32") + public boolean supportsSpatialEntity() { return XrSystemSpatialEntityPropertiesFB.nsupportsSpatialEntity(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemSpatialEntityPropertiesFB#type} field. */ + public XrSystemSpatialEntityPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemSpatialEntityPropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntity#XR_TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB} value to the {@link XrSystemSpatialEntityPropertiesFB#type} field. */ + public XrSystemSpatialEntityPropertiesFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB); } + /** Sets the specified value to the {@link XrSystemSpatialEntityPropertiesFB#next} field. */ + public XrSystemSpatialEntityPropertiesFB.Buffer next(@NativeType("void const *") long value) { XrSystemSpatialEntityPropertiesFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemTrackingProperties.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemTrackingProperties.java index 82810d8ad4..9a06f6fa7b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemTrackingProperties.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemTrackingProperties.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.*; + /** * Tracking-related properties of a particular system. * @@ -29,8 +29,8 @@ * XrBool32 {@link #orientationTracking}; * XrBool32 {@link #positionTracking}; * } - */ -public class XrSystemTrackingProperties extends Struct implements NativeResource { + */ +public class XrSystemTrackingProperties extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -40,29 +40,20 @@ public class XrSystemTrackingProperties extends Struct implements NativeResource { @@ -246,9 +237,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 XrSystemTrackingProperties#SIZEOF}, and its mark will be undefined.

        + * by {@link XrSystemTrackingProperties#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -273,18 +264,18 @@ protected Buffer self() { protected XrSystemTrackingProperties getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemTrackingProperties#orientationTracking} field. */ - @NativeType("XrBool32") - public boolean orientationTracking() { return XrSystemTrackingProperties.norientationTracking(address()) != 0; } - /** @return the value of the {@link XrSystemTrackingProperties#positionTracking} field. */ - @NativeType("XrBool32") - public boolean positionTracking() { return XrSystemTrackingProperties.npositionTracking(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemTrackingProperties#orientationTracking} field. */ - public XrSystemTrackingProperties.Buffer orientationTracking(@NativeType("XrBool32") boolean value) { XrSystemTrackingProperties.norientationTracking(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link XrSystemTrackingProperties#positionTracking} field. */ - public XrSystemTrackingProperties.Buffer positionTracking(@NativeType("XrBool32") boolean value) { XrSystemTrackingProperties.npositionTracking(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrSystemTrackingProperties#orientationTracking} field. */ + @NativeType("XrBool32") + public boolean orientationTracking() { return XrSystemTrackingProperties.norientationTracking(address()) != 0; } + /** @return the value of the {@link XrSystemTrackingProperties#positionTracking} field. */ + @NativeType("XrBool32") + public boolean positionTracking() { return XrSystemTrackingProperties.npositionTracking(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemTrackingProperties#orientationTracking} field. */ + public XrSystemTrackingProperties.Buffer orientationTracking(@NativeType("XrBool32") boolean value) { XrSystemTrackingProperties.norientationTracking(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link XrSystemTrackingProperties#positionTracking} field. */ + public XrSystemTrackingProperties.Buffer positionTracking(@NativeType("XrBool32") boolean value) { XrSystemTrackingProperties.npositionTracking(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrTriangleMeshCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrTriangleMeshCreateInfoFB.java index 05b16599f6..4f183a3d45 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrTriangleMeshCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrTriangleMeshCreateInfoFB.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 information to create a triangle mesh. * @@ -51,8 +51,8 @@ * uint32_t {@link #triangleCount}; * uint32_t const * {@link #indexBuffer}; * } - */ -public class XrTriangleMeshCreateInfoFB extends Struct implements NativeResource { + */ +public class XrTriangleMeshCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -62,47 +62,38 @@ public class XrTriangleMeshCreateInfoFB extends Structmust be {@code NULL} and mesh data must be populated separately. */ - @Nullable - @NativeType("XrVector3f const *") - public XrVector3f vertexBuffer() { return nvertexBuffer(address()); } - /** the number of triangles in the mesh. In the case of the mutable mesh, the value is treated as the maximum number of triangles the mesh will be able to represent at any time in its lifecycle. The actual number of triangles can vary and is defined when {@link FBTriangleMesh#xrTriangleMeshEndUpdateFB TriangleMeshEndUpdateFB} is called. */ - @NativeType("uint32_t") - public int triangleCount() { return ntriangleCount(address()); } + + /** 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()); } + /** a bitmask of {@code XrTriangleMeshFlagBitsFB} that specify behavior. */ + @NativeType("XrTriangleMeshFlagsFB") + public long flags() { return nflags(address()); } + /** the {@code XrWindingOrderFB} value defining the winding order of the mesh triangles. */ + @NativeType("XrWindingOrderFB") + public int windingOrder() { return nwindingOrder(address()); } + /** the number of vertices in the mesh. In the case of the mutable mesh, the value is treated as the maximum number of vertices the mesh will be able to represent at any time in its lifecycle. The actual number of vertices can vary and is defined when {@link FBTriangleMesh#xrTriangleMeshEndUpdateFB TriangleMeshEndUpdateFB} is called. */ + @NativeType("uint32_t") + public int vertexCount() { return nvertexCount(address()); } + /** a pointer to the vertex data. The size of the array must be {@code vertexCount} elements. When the mesh is mutable ({@code ({@code flags} & {@link FBTriangleMesh#XR_TRIANGLE_MESH_MUTABLE_BIT_FB TRIANGLE_MESH_MUTABLE_BIT_FB}) != 0}), the {@code vertexBuffer} parameter must be {@code NULL} and mesh data must be populated separately. */ + @Nullable + @NativeType("XrVector3f const *") + public XrVector3f vertexBuffer() { return nvertexBuffer(address()); } + /** the number of triangles in the mesh. In the case of the mutable mesh, the value is treated as the maximum number of triangles the mesh will be able to represent at any time in its lifecycle. The actual number of triangles can vary and is defined when {@link FBTriangleMesh#xrTriangleMeshEndUpdateFB TriangleMeshEndUpdateFB} is called. */ + @NativeType("uint32_t") + public int triangleCount() { return ntriangleCount(address()); } /** * @param capacity the number of elements in the returned buffer * * @return the triangle indices. The size of the array must be {@code triangleCount} elements. When the mesh is mutable ({@code ({@code flags} & {@link FBTriangleMesh#XR_TRIANGLE_MESH_MUTABLE_BIT_FB TRIANGLE_MESH_MUTABLE_BIT_FB}) != 0}), the {@code indexBuffer} parameter must be {@code NULL} and mesh data must be populated separately. - */ - @Nullable - @NativeType("uint32_t const *") - public IntBuffer indexBuffer(int capacity) { return nindexBuffer(address(), capacity); } - - /** Sets the specified value to the {@link #type} field. */ - public XrTriangleMeshCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBTriangleMesh#XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB TYPE_TRIANGLE_MESH_CREATE_INFO_FB} value to the {@link #type} field. */ - public XrTriangleMeshCreateInfoFB type$Default() { return type(FBTriangleMesh.XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrTriangleMeshCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #flags} field. */ - public XrTriangleMeshCreateInfoFB flags(@NativeType("XrTriangleMeshFlagsFB") long value) { nflags(address(), value); return this; } - /** Sets the specified value to the {@link #windingOrder} field. */ - public XrTriangleMeshCreateInfoFB windingOrder(@NativeType("XrWindingOrderFB") int value) { nwindingOrder(address(), value); return this; } - /** Sets the specified value to the {@link #vertexCount} field. */ - public XrTriangleMeshCreateInfoFB vertexCount(@NativeType("uint32_t") int value) { nvertexCount(address(), value); return this; } - /** Sets the address of the specified {@link XrVector3f} to the {@link #vertexBuffer} field. */ - public XrTriangleMeshCreateInfoFB vertexBuffer(@Nullable @NativeType("XrVector3f const *") XrVector3f value) { nvertexBuffer(address(), value); return this; } - /** Sets the specified value to the {@link #triangleCount} field. */ - public XrTriangleMeshCreateInfoFB triangleCount(@NativeType("uint32_t") int value) { ntriangleCount(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link #indexBuffer} field. */ - public XrTriangleMeshCreateInfoFB indexBuffer(@Nullable @NativeType("uint32_t const *") IntBuffer value) { nindexBuffer(address(), value); return this; } + */ + @Nullable + @NativeType("uint32_t const *") + public IntBuffer indexBuffer(int capacity) { return nindexBuffer(address(), capacity); } + + /** Sets the specified value to the {@link #type} field. */ + public XrTriangleMeshCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBTriangleMesh#XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB TYPE_TRIANGLE_MESH_CREATE_INFO_FB} value to the {@link #type} field. */ + public XrTriangleMeshCreateInfoFB type$Default() { return type(FBTriangleMesh.XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrTriangleMeshCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #flags} field. */ + public XrTriangleMeshCreateInfoFB flags(@NativeType("XrTriangleMeshFlagsFB") long value) { nflags(address(), value); return this; } + /** Sets the specified value to the {@link #windingOrder} field. */ + public XrTriangleMeshCreateInfoFB windingOrder(@NativeType("XrWindingOrderFB") int value) { nwindingOrder(address(), value); return this; } + /** Sets the specified value to the {@link #vertexCount} field. */ + public XrTriangleMeshCreateInfoFB vertexCount(@NativeType("uint32_t") int value) { nvertexCount(address(), value); return this; } + /** Sets the address of the specified {@link XrVector3f} to the {@link #vertexBuffer} field. */ + public XrTriangleMeshCreateInfoFB vertexBuffer(@Nullable @NativeType("XrVector3f const *") XrVector3f value) { nvertexBuffer(address(), value); return this; } + /** Sets the specified value to the {@link #triangleCount} field. */ + public XrTriangleMeshCreateInfoFB triangleCount(@NativeType("uint32_t") int value) { ntriangleCount(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link #indexBuffer} field. */ + public XrTriangleMeshCreateInfoFB indexBuffer(@Nullable @NativeType("uint32_t const *") IntBuffer value) { nindexBuffer(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrTriangleMeshCreateInfoFB set( - int type, - long next, - long flags, - int windingOrder, - int vertexCount, - @Nullable XrVector3f vertexBuffer, - int triangleCount, + int type, + long next, + long flags, + int windingOrder, + int vertexCount, + @Nullable XrVector3f vertexBuffer, + int triangleCount, @Nullable IntBuffer indexBuffer - ) { - type(type); - next(next); - flags(flags); - windingOrder(windingOrder); - vertexCount(vertexCount); - vertexBuffer(vertexBuffer); - triangleCount(triangleCount); - indexBuffer(indexBuffer); + ) { + type(type); + next(next); + flags(flags); + windingOrder(windingOrder); + vertexCount(vertexCount); + vertexBuffer(vertexBuffer); + triangleCount(triangleCount); + indexBuffer(indexBuffer); return this; } @@ -207,29 +198,29 @@ public XrTriangleMeshCreateInfoFB set(XrTriangleMeshCreateInfoFB src) { /** Returns a new {@code XrTriangleMeshCreateInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrTriangleMeshCreateInfoFB malloc() { - return new XrTriangleMeshCreateInfoFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrTriangleMeshCreateInfoFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrTriangleMeshCreateInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrTriangleMeshCreateInfoFB calloc() { - return new XrTriangleMeshCreateInfoFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrTriangleMeshCreateInfoFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrTriangleMeshCreateInfoFB} instance allocated with {@link BufferUtils}. */ public static XrTriangleMeshCreateInfoFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrTriangleMeshCreateInfoFB(memAddress(container), container); + return wrap(XrTriangleMeshCreateInfoFB.class, memAddress(container), container); } /** Returns a new {@code XrTriangleMeshCreateInfoFB} instance for the specified memory address. */ public static XrTriangleMeshCreateInfoFB create(long address) { - return new XrTriangleMeshCreateInfoFB(address, null); + return wrap(XrTriangleMeshCreateInfoFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrTriangleMeshCreateInfoFB createSafe(long address) { - return address == NULL ? null : new XrTriangleMeshCreateInfoFB(address, null); + return address == NULL ? null : wrap(XrTriangleMeshCreateInfoFB.class, address); } /** @@ -238,7 +229,7 @@ public static XrTriangleMeshCreateInfoFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrTriangleMeshCreateInfoFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -247,7 +238,7 @@ public static XrTriangleMeshCreateInfoFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrTriangleMeshCreateInfoFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -257,7 +248,7 @@ public static XrTriangleMeshCreateInfoFB.Buffer calloc(int capacity) { */ public static XrTriangleMeshCreateInfoFB.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); } /** @@ -267,13 +258,13 @@ public static XrTriangleMeshCreateInfoFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrTriangleMeshCreateInfoFB.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 XrTriangleMeshCreateInfoFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -282,7 +273,7 @@ public static XrTriangleMeshCreateInfoFB.Buffer createSafe(long address, int cap * @param stack the stack from which to allocate */ public static XrTriangleMeshCreateInfoFB malloc(MemoryStack stack) { - return new XrTriangleMeshCreateInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrTriangleMeshCreateInfoFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -291,7 +282,7 @@ public static XrTriangleMeshCreateInfoFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrTriangleMeshCreateInfoFB calloc(MemoryStack stack) { - return new XrTriangleMeshCreateInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrTriangleMeshCreateInfoFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -301,7 +292,7 @@ public static XrTriangleMeshCreateInfoFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrTriangleMeshCreateInfoFB.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); } /** @@ -311,46 +302,46 @@ public static XrTriangleMeshCreateInfoFB.Buffer malloc(int capacity, MemoryStack * @param capacity the buffer capacity */ public static XrTriangleMeshCreateInfoFB.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 + XrTriangleMeshCreateInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrTriangleMeshCreateInfoFB.NEXT); } - /** Unsafe version of {@link #flags}. */ - public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrTriangleMeshCreateInfoFB.FLAGS); } - /** Unsafe version of {@link #windingOrder}. */ - public static int nwindingOrder(long struct) { return UNSAFE.getInt(null, struct + XrTriangleMeshCreateInfoFB.WINDINGORDER); } - /** Unsafe version of {@link #vertexCount}. */ - public static int nvertexCount(long struct) { return UNSAFE.getInt(null, struct + XrTriangleMeshCreateInfoFB.VERTEXCOUNT); } - /** Unsafe version of {@link #vertexBuffer}. */ - @Nullable public static XrVector3f nvertexBuffer(long struct) { return XrVector3f.createSafe(memGetAddress(struct + XrTriangleMeshCreateInfoFB.VERTEXBUFFER)); } - /** Unsafe version of {@link #triangleCount}. */ - public static int ntriangleCount(long struct) { return UNSAFE.getInt(null, struct + XrTriangleMeshCreateInfoFB.TRIANGLECOUNT); } - /** Unsafe version of {@link #indexBuffer(int) indexBuffer}. */ - @Nullable public static IntBuffer nindexBuffer(long struct, int capacity) { return memIntBufferSafe(memGetAddress(struct + XrTriangleMeshCreateInfoFB.INDEXBUFFER), capacity); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrTriangleMeshCreateInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrTriangleMeshCreateInfoFB.NEXT, value); } - /** Unsafe version of {@link #flags(long) flags}. */ - public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrTriangleMeshCreateInfoFB.FLAGS, value); } - /** Unsafe version of {@link #windingOrder(int) windingOrder}. */ - public static void nwindingOrder(long struct, int value) { UNSAFE.putInt(null, struct + XrTriangleMeshCreateInfoFB.WINDINGORDER, value); } - /** Unsafe version of {@link #vertexCount(int) vertexCount}. */ - public static void nvertexCount(long struct, int value) { UNSAFE.putInt(null, struct + XrTriangleMeshCreateInfoFB.VERTEXCOUNT, value); } - /** Unsafe version of {@link #vertexBuffer(XrVector3f) vertexBuffer}. */ - public static void nvertexBuffer(long struct, @Nullable XrVector3f value) { memPutAddress(struct + XrTriangleMeshCreateInfoFB.VERTEXBUFFER, memAddressSafe(value)); } - /** Unsafe version of {@link #triangleCount(int) triangleCount}. */ - public static void ntriangleCount(long struct, int value) { UNSAFE.putInt(null, struct + XrTriangleMeshCreateInfoFB.TRIANGLECOUNT, value); } - /** Unsafe version of {@link #indexBuffer(IntBuffer) indexBuffer}. */ - public static void nindexBuffer(long struct, @Nullable IntBuffer value) { memPutAddress(struct + XrTriangleMeshCreateInfoFB.INDEXBUFFER, memAddressSafe(value)); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrTriangleMeshCreateInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrTriangleMeshCreateInfoFB.NEXT); } + /** Unsafe version of {@link #flags}. */ + public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrTriangleMeshCreateInfoFB.FLAGS); } + /** Unsafe version of {@link #windingOrder}. */ + public static int nwindingOrder(long struct) { return UNSAFE.getInt(null, struct + XrTriangleMeshCreateInfoFB.WINDINGORDER); } + /** Unsafe version of {@link #vertexCount}. */ + public static int nvertexCount(long struct) { return UNSAFE.getInt(null, struct + XrTriangleMeshCreateInfoFB.VERTEXCOUNT); } + /** Unsafe version of {@link #vertexBuffer}. */ + @Nullable public static XrVector3f nvertexBuffer(long struct) { return XrVector3f.createSafe(memGetAddress(struct + XrTriangleMeshCreateInfoFB.VERTEXBUFFER)); } + /** Unsafe version of {@link #triangleCount}. */ + public static int ntriangleCount(long struct) { return UNSAFE.getInt(null, struct + XrTriangleMeshCreateInfoFB.TRIANGLECOUNT); } + /** Unsafe version of {@link #indexBuffer(int) indexBuffer}. */ + @Nullable public static IntBuffer nindexBuffer(long struct, int capacity) { return memIntBufferSafe(memGetAddress(struct + XrTriangleMeshCreateInfoFB.INDEXBUFFER), capacity); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrTriangleMeshCreateInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrTriangleMeshCreateInfoFB.NEXT, value); } + /** Unsafe version of {@link #flags(long) flags}. */ + public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrTriangleMeshCreateInfoFB.FLAGS, value); } + /** Unsafe version of {@link #windingOrder(int) windingOrder}. */ + public static void nwindingOrder(long struct, int value) { UNSAFE.putInt(null, struct + XrTriangleMeshCreateInfoFB.WINDINGORDER, value); } + /** Unsafe version of {@link #vertexCount(int) vertexCount}. */ + public static void nvertexCount(long struct, int value) { UNSAFE.putInt(null, struct + XrTriangleMeshCreateInfoFB.VERTEXCOUNT, value); } + /** Unsafe version of {@link #vertexBuffer(XrVector3f) vertexBuffer}. */ + public static void nvertexBuffer(long struct, @Nullable XrVector3f value) { memPutAddress(struct + XrTriangleMeshCreateInfoFB.VERTEXBUFFER, memAddressSafe(value)); } + /** Unsafe version of {@link #triangleCount(int) triangleCount}. */ + public static void ntriangleCount(long struct, int value) { UNSAFE.putInt(null, struct + XrTriangleMeshCreateInfoFB.TRIANGLECOUNT, value); } + /** Unsafe version of {@link #indexBuffer(IntBuffer) indexBuffer}. */ + public static void nindexBuffer(long struct, @Nullable IntBuffer value) { memPutAddress(struct + XrTriangleMeshCreateInfoFB.INDEXBUFFER, memAddressSafe(value)); } + + // ----------------------------------- /** An array of {@link XrTriangleMeshCreateInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -360,9 +351,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 XrTriangleMeshCreateInfoFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrTriangleMeshCreateInfoFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -387,56 +378,56 @@ protected Buffer self() { protected XrTriangleMeshCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrTriangleMeshCreateInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrTriangleMeshCreateInfoFB.ntype(address()); } - /** @return the value of the {@link XrTriangleMeshCreateInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrTriangleMeshCreateInfoFB.nnext(address()); } - /** @return the value of the {@link XrTriangleMeshCreateInfoFB#flags} field. */ - @NativeType("XrTriangleMeshFlagsFB") - public long flags() { return XrTriangleMeshCreateInfoFB.nflags(address()); } - /** @return the value of the {@link XrTriangleMeshCreateInfoFB#windingOrder} field. */ - @NativeType("XrWindingOrderFB") - public int windingOrder() { return XrTriangleMeshCreateInfoFB.nwindingOrder(address()); } - /** @return the value of the {@link XrTriangleMeshCreateInfoFB#vertexCount} field. */ - @NativeType("uint32_t") - public int vertexCount() { return XrTriangleMeshCreateInfoFB.nvertexCount(address()); } - /** @return a {@link XrVector3f} view of the struct pointed to by the {@link XrTriangleMeshCreateInfoFB#vertexBuffer} field. */ - @Nullable - @NativeType("XrVector3f const *") - public XrVector3f vertexBuffer() { return XrTriangleMeshCreateInfoFB.nvertexBuffer(address()); } - /** @return the value of the {@link XrTriangleMeshCreateInfoFB#triangleCount} field. */ - @NativeType("uint32_t") - public int triangleCount() { return XrTriangleMeshCreateInfoFB.ntriangleCount(address()); } + + /** @return the value of the {@link XrTriangleMeshCreateInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrTriangleMeshCreateInfoFB.ntype(address()); } + /** @return the value of the {@link XrTriangleMeshCreateInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrTriangleMeshCreateInfoFB.nnext(address()); } + /** @return the value of the {@link XrTriangleMeshCreateInfoFB#flags} field. */ + @NativeType("XrTriangleMeshFlagsFB") + public long flags() { return XrTriangleMeshCreateInfoFB.nflags(address()); } + /** @return the value of the {@link XrTriangleMeshCreateInfoFB#windingOrder} field. */ + @NativeType("XrWindingOrderFB") + public int windingOrder() { return XrTriangleMeshCreateInfoFB.nwindingOrder(address()); } + /** @return the value of the {@link XrTriangleMeshCreateInfoFB#vertexCount} field. */ + @NativeType("uint32_t") + public int vertexCount() { return XrTriangleMeshCreateInfoFB.nvertexCount(address()); } + /** @return a {@link XrVector3f} view of the struct pointed to by the {@link XrTriangleMeshCreateInfoFB#vertexBuffer} field. */ + @Nullable + @NativeType("XrVector3f const *") + public XrVector3f vertexBuffer() { return XrTriangleMeshCreateInfoFB.nvertexBuffer(address()); } + /** @return the value of the {@link XrTriangleMeshCreateInfoFB#triangleCount} field. */ + @NativeType("uint32_t") + public int triangleCount() { return XrTriangleMeshCreateInfoFB.ntriangleCount(address()); } /** * @return a {@link IntBuffer} view of the data pointed to by the {@link XrTriangleMeshCreateInfoFB#indexBuffer} field. * * @param capacity the number of elements in the returned buffer - */ - @Nullable - @NativeType("uint32_t const *") - public IntBuffer indexBuffer(int capacity) { return XrTriangleMeshCreateInfoFB.nindexBuffer(address(), capacity); } - - /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#type} field. */ - public XrTriangleMeshCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrTriangleMeshCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBTriangleMesh#XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB TYPE_TRIANGLE_MESH_CREATE_INFO_FB} value to the {@link XrTriangleMeshCreateInfoFB#type} field. */ - public XrTriangleMeshCreateInfoFB.Buffer type$Default() { return type(FBTriangleMesh.XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB); } - /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#next} field. */ - public XrTriangleMeshCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrTriangleMeshCreateInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#flags} field. */ - public XrTriangleMeshCreateInfoFB.Buffer flags(@NativeType("XrTriangleMeshFlagsFB") long value) { XrTriangleMeshCreateInfoFB.nflags(address(), value); return this; } - /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#windingOrder} field. */ - public XrTriangleMeshCreateInfoFB.Buffer windingOrder(@NativeType("XrWindingOrderFB") int value) { XrTriangleMeshCreateInfoFB.nwindingOrder(address(), value); return this; } - /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#vertexCount} field. */ - public XrTriangleMeshCreateInfoFB.Buffer vertexCount(@NativeType("uint32_t") int value) { XrTriangleMeshCreateInfoFB.nvertexCount(address(), value); return this; } - /** Sets the address of the specified {@link XrVector3f} to the {@link XrTriangleMeshCreateInfoFB#vertexBuffer} field. */ - public XrTriangleMeshCreateInfoFB.Buffer vertexBuffer(@Nullable @NativeType("XrVector3f const *") XrVector3f value) { XrTriangleMeshCreateInfoFB.nvertexBuffer(address(), value); return this; } - /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#triangleCount} field. */ - public XrTriangleMeshCreateInfoFB.Buffer triangleCount(@NativeType("uint32_t") int value) { XrTriangleMeshCreateInfoFB.ntriangleCount(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrTriangleMeshCreateInfoFB#indexBuffer} field. */ - public XrTriangleMeshCreateInfoFB.Buffer indexBuffer(@Nullable @NativeType("uint32_t const *") IntBuffer value) { XrTriangleMeshCreateInfoFB.nindexBuffer(address(), value); return this; } + */ + @Nullable + @NativeType("uint32_t const *") + public IntBuffer indexBuffer(int capacity) { return XrTriangleMeshCreateInfoFB.nindexBuffer(address(), capacity); } + + /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#type} field. */ + public XrTriangleMeshCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrTriangleMeshCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBTriangleMesh#XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB TYPE_TRIANGLE_MESH_CREATE_INFO_FB} value to the {@link XrTriangleMeshCreateInfoFB#type} field. */ + public XrTriangleMeshCreateInfoFB.Buffer type$Default() { return type(FBTriangleMesh.XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB); } + /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#next} field. */ + public XrTriangleMeshCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrTriangleMeshCreateInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#flags} field. */ + public XrTriangleMeshCreateInfoFB.Buffer flags(@NativeType("XrTriangleMeshFlagsFB") long value) { XrTriangleMeshCreateInfoFB.nflags(address(), value); return this; } + /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#windingOrder} field. */ + public XrTriangleMeshCreateInfoFB.Buffer windingOrder(@NativeType("XrWindingOrderFB") int value) { XrTriangleMeshCreateInfoFB.nwindingOrder(address(), value); return this; } + /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#vertexCount} field. */ + public XrTriangleMeshCreateInfoFB.Buffer vertexCount(@NativeType("uint32_t") int value) { XrTriangleMeshCreateInfoFB.nvertexCount(address(), value); return this; } + /** Sets the address of the specified {@link XrVector3f} to the {@link XrTriangleMeshCreateInfoFB#vertexBuffer} field. */ + public XrTriangleMeshCreateInfoFB.Buffer vertexBuffer(@Nullable @NativeType("XrVector3f const *") XrVector3f value) { XrTriangleMeshCreateInfoFB.nvertexBuffer(address(), value); return this; } + /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#triangleCount} field. */ + public XrTriangleMeshCreateInfoFB.Buffer triangleCount(@NativeType("uint32_t") int value) { XrTriangleMeshCreateInfoFB.ntriangleCount(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrTriangleMeshCreateInfoFB#indexBuffer} field. */ + public XrTriangleMeshCreateInfoFB.Buffer indexBuffer(@Nullable @NativeType("uint32_t const *") IntBuffer value) { XrTriangleMeshCreateInfoFB.nindexBuffer(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrTriangleMeshFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrTriangleMeshFB.java index 4047a7bc98..1d1326bf39 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrTriangleMeshFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrTriangleMeshFB.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrTriangleMeshFB} handle. */ + +/** Wraps an {@code XrTriangleMeshFB} handle. */ public class XrTriangleMeshFB 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/XrUuidEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrUuidEXT.java index fa484a879b..1a4ff9cbfc 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrUuidEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrUuidEXT.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.EXTUUIUD.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.EXTUUIUD.*; + /** * Universally Unique Identifier. * @@ -41,8 +41,8 @@ * struct XrUuidEXT { * uint8_t {@link #data}[XR_UUID_SIZE_EXT]; * } - */ -public class XrUuidEXT extends Struct implements NativeResource { + */ +public class XrUuidEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,26 +52,17 @@ public class XrUuidEXT extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - DATA; + DATA; static { - Layout layout = __struct( + Layout layout = __struct( __array(1, XR_UUID_SIZE_EXT) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - DATA = layout.offsetof(0); - } - - protected XrUuidEXT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrUuidEXT create(long address, @Nullable ByteBuffer container) { - return new XrUuidEXT(address, container); + DATA = layout.offsetof(0); } /** @@ -86,18 +77,18 @@ public XrUuidEXT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** a 128-bit Universally Unique Identifier. */ - @NativeType("uint8_t[XR_UUID_SIZE_EXT]") - public ByteBuffer data() { return ndata(address()); } - /** a 128-bit Universally Unique Identifier. */ - @NativeType("uint8_t") - public byte data(int index) { return ndata(address(), index); } - - /** Copies the specified {@link ByteBuffer} to the {@link #data} field. */ - public XrUuidEXT data(@NativeType("uint8_t[XR_UUID_SIZE_EXT]") ByteBuffer value) { ndata(address(), value); return this; } - /** Sets the specified value at the specified index of the {@link #data} field. */ - public XrUuidEXT data(int index, @NativeType("uint8_t") byte value) { ndata(address(), index, value); return this; } + + /** a 128-bit Universally Unique Identifier. */ + @NativeType("uint8_t[XR_UUID_SIZE_EXT]") + public ByteBuffer data() { return ndata(address()); } + /** a 128-bit Universally Unique Identifier. */ + @NativeType("uint8_t") + public byte data(int index) { return ndata(address(), index); } + + /** Copies the specified {@link ByteBuffer} to the {@link #data} field. */ + public XrUuidEXT data(@NativeType("uint8_t[XR_UUID_SIZE_EXT]") ByteBuffer value) { ndata(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link #data} field. */ + public XrUuidEXT data(int index, @NativeType("uint8_t") byte value) { ndata(address(), index, value); return this; } /** * Copies the specified struct data to this struct. @@ -115,29 +106,29 @@ public XrUuidEXT set(XrUuidEXT src) { /** Returns a new {@code XrUuidEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrUuidEXT malloc() { - return new XrUuidEXT(nmemAllocChecked(SIZEOF), null); + return wrap(XrUuidEXT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrUuidEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrUuidEXT calloc() { - return new XrUuidEXT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrUuidEXT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrUuidEXT} instance allocated with {@link BufferUtils}. */ public static XrUuidEXT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrUuidEXT(memAddress(container), container); + return wrap(XrUuidEXT.class, memAddress(container), container); } /** Returns a new {@code XrUuidEXT} instance for the specified memory address. */ public static XrUuidEXT create(long address) { - return new XrUuidEXT(address, null); + return wrap(XrUuidEXT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrUuidEXT createSafe(long address) { - return address == NULL ? null : new XrUuidEXT(address, null); + return address == NULL ? null : wrap(XrUuidEXT.class, address); } /** @@ -146,7 +137,7 @@ public static XrUuidEXT createSafe(long address) { * @param capacity the buffer capacity */ public static XrUuidEXT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -155,7 +146,7 @@ public static XrUuidEXT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrUuidEXT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -165,7 +156,7 @@ public static XrUuidEXT.Buffer calloc(int capacity) { */ public static XrUuidEXT.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); } /** @@ -175,13 +166,13 @@ public static XrUuidEXT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrUuidEXT.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 XrUuidEXT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -190,7 +181,7 @@ public static XrUuidEXT.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrUuidEXT malloc(MemoryStack stack) { - return new XrUuidEXT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrUuidEXT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -199,7 +190,7 @@ public static XrUuidEXT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrUuidEXT calloc(MemoryStack stack) { - return new XrUuidEXT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrUuidEXT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -209,7 +200,7 @@ public static XrUuidEXT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrUuidEXT.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); } /** @@ -219,29 +210,29 @@ public static XrUuidEXT.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrUuidEXT.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 #data}. */ - public static ByteBuffer ndata(long struct) { return memByteBuffer(struct + XrUuidEXT.DATA, XR_UUID_SIZE_EXT); } - /** Unsafe version of {@link #data(int) data}. */ - public static byte ndata(long struct, int index) { + + /** Unsafe version of {@link #data}. */ + public static ByteBuffer ndata(long struct) { return memByteBuffer(struct + XrUuidEXT.DATA, XR_UUID_SIZE_EXT); } + /** Unsafe version of {@link #data(int) data}. */ + public static byte ndata(long struct, int index) { return UNSAFE.getByte(null, struct + XrUuidEXT.DATA + check(index, XR_UUID_SIZE_EXT) * 1); - } - - /** Unsafe version of {@link #data(ByteBuffer) data}. */ - public static void ndata(long struct, ByteBuffer value) { - if (CHECKS) { checkGT(value, XR_UUID_SIZE_EXT); } - memCopy(memAddress(value), struct + XrUuidEXT.DATA, value.remaining() * 1); - } - /** Unsafe version of {@link #data(int, byte) data}. */ - public static void ndata(long struct, int index, byte value) { - UNSAFE.putByte(null, struct + XrUuidEXT.DATA + check(index, XR_UUID_SIZE_EXT) * 1, value); - } - - // ----------------------------------- + } + + /** Unsafe version of {@link #data(ByteBuffer) data}. */ + public static void ndata(long struct, ByteBuffer value) { + if (CHECKS) { checkGT(value, XR_UUID_SIZE_EXT); } + memCopy(memAddress(value), struct + XrUuidEXT.DATA, value.remaining() * 1); + } + /** Unsafe version of {@link #data(int, byte) data}. */ + public static void ndata(long struct, int index, byte value) { + UNSAFE.putByte(null, struct + XrUuidEXT.DATA + check(index, XR_UUID_SIZE_EXT) * 1, value); + } + + // ----------------------------------- /** An array of {@link XrUuidEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -251,9 +242,9 @@ public static class Buffer extends StructBuffer implements Na /** * Creates a new {@code XrUuidEXT.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 XrUuidEXT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrUuidEXT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -278,18 +269,18 @@ protected Buffer self() { protected XrUuidEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link ByteBuffer} view of the {@link XrUuidEXT#data} field. */ - @NativeType("uint8_t[XR_UUID_SIZE_EXT]") - public ByteBuffer data() { return XrUuidEXT.ndata(address()); } - /** @return the value at the specified index of the {@link XrUuidEXT#data} field. */ - @NativeType("uint8_t") - public byte data(int index) { return XrUuidEXT.ndata(address(), index); } - - /** Copies the specified {@link ByteBuffer} to the {@link XrUuidEXT#data} field. */ - public XrUuidEXT.Buffer data(@NativeType("uint8_t[XR_UUID_SIZE_EXT]") ByteBuffer value) { XrUuidEXT.ndata(address(), value); return this; } - /** Sets the specified value at the specified index of the {@link XrUuidEXT#data} field. */ - public XrUuidEXT.Buffer data(int index, @NativeType("uint8_t") byte value) { XrUuidEXT.ndata(address(), index, value); return this; } + + /** @return a {@link ByteBuffer} view of the {@link XrUuidEXT#data} field. */ + @NativeType("uint8_t[XR_UUID_SIZE_EXT]") + public ByteBuffer data() { return XrUuidEXT.ndata(address()); } + /** @return the value at the specified index of the {@link XrUuidEXT#data} field. */ + @NativeType("uint8_t") + public byte data(int index) { return XrUuidEXT.ndata(address(), index); } + + /** Copies the specified {@link ByteBuffer} to the {@link XrUuidEXT#data} field. */ + public XrUuidEXT.Buffer data(@NativeType("uint8_t[XR_UUID_SIZE_EXT]") ByteBuffer value) { XrUuidEXT.ndata(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link XrUuidEXT#data} field. */ + public XrUuidEXT.Buffer data(int index, @NativeType("uint8_t") byte value) { XrUuidEXT.ndata(address(), index, value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrUuidMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrUuidMSFT.java index ec11a19623..b825bd7c1a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrUuidMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrUuidMSFT.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.*; + /** * Universally Unique Identifier. * @@ -35,8 +35,8 @@ * struct XrUuidMSFT { * uint8_t {@link #bytes}[16]; * } - */ -public class XrUuidMSFT extends Struct implements NativeResource { + */ +public class XrUuidMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -46,26 +46,17 @@ public class XrUuidMSFT extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - BYTES; + BYTES; static { - Layout layout = __struct( + Layout layout = __struct( __array(1, 16) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - BYTES = layout.offsetof(0); - } - - protected XrUuidMSFT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrUuidMSFT create(long address, @Nullable ByteBuffer container) { - return new XrUuidMSFT(address, container); + BYTES = layout.offsetof(0); } /** @@ -80,18 +71,18 @@ public XrUuidMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** a 128-bit Variant-1 Universally Unique Identifier. */ - @NativeType("uint8_t[16]") - public ByteBuffer bytes() { return nbytes(address()); } - /** a 128-bit Variant-1 Universally Unique Identifier. */ - @NativeType("uint8_t") - public byte bytes(int index) { return nbytes(address(), index); } - - /** Copies the specified {@link ByteBuffer} to the {@link #bytes} field. */ - public XrUuidMSFT bytes(@NativeType("uint8_t[16]") ByteBuffer value) { nbytes(address(), value); return this; } - /** Sets the specified value at the specified index of the {@link #bytes} field. */ - public XrUuidMSFT bytes(int index, @NativeType("uint8_t") byte value) { nbytes(address(), index, value); return this; } + + /** a 128-bit Variant-1 Universally Unique Identifier. */ + @NativeType("uint8_t[16]") + public ByteBuffer bytes() { return nbytes(address()); } + /** a 128-bit Variant-1 Universally Unique Identifier. */ + @NativeType("uint8_t") + public byte bytes(int index) { return nbytes(address(), index); } + + /** Copies the specified {@link ByteBuffer} to the {@link #bytes} field. */ + public XrUuidMSFT bytes(@NativeType("uint8_t[16]") ByteBuffer value) { nbytes(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link #bytes} field. */ + public XrUuidMSFT bytes(int index, @NativeType("uint8_t") byte value) { nbytes(address(), index, value); return this; } /** * Copies the specified struct data to this struct. @@ -109,29 +100,29 @@ public XrUuidMSFT set(XrUuidMSFT src) { /** Returns a new {@code XrUuidMSFT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrUuidMSFT malloc() { - return new XrUuidMSFT(nmemAllocChecked(SIZEOF), null); + return wrap(XrUuidMSFT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrUuidMSFT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrUuidMSFT calloc() { - return new XrUuidMSFT(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrUuidMSFT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrUuidMSFT} instance allocated with {@link BufferUtils}. */ public static XrUuidMSFT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrUuidMSFT(memAddress(container), container); + return wrap(XrUuidMSFT.class, memAddress(container), container); } /** Returns a new {@code XrUuidMSFT} instance for the specified memory address. */ public static XrUuidMSFT create(long address) { - return new XrUuidMSFT(address, null); + return wrap(XrUuidMSFT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrUuidMSFT createSafe(long address) { - return address == NULL ? null : new XrUuidMSFT(address, null); + return address == NULL ? null : wrap(XrUuidMSFT.class, address); } /** @@ -140,7 +131,7 @@ public static XrUuidMSFT createSafe(long address) { * @param capacity the buffer capacity */ public static XrUuidMSFT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -149,7 +140,7 @@ public static XrUuidMSFT.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrUuidMSFT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -159,7 +150,7 @@ public static XrUuidMSFT.Buffer calloc(int capacity) { */ public static XrUuidMSFT.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); } /** @@ -169,13 +160,13 @@ public static XrUuidMSFT.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrUuidMSFT.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 XrUuidMSFT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -184,7 +175,7 @@ public static XrUuidMSFT.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrUuidMSFT malloc(MemoryStack stack) { - return new XrUuidMSFT(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrUuidMSFT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -193,7 +184,7 @@ public static XrUuidMSFT malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrUuidMSFT calloc(MemoryStack stack) { - return new XrUuidMSFT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrUuidMSFT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -203,7 +194,7 @@ public static XrUuidMSFT calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrUuidMSFT.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); } /** @@ -213,29 +204,29 @@ public static XrUuidMSFT.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrUuidMSFT.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 #bytes}. */ - public static ByteBuffer nbytes(long struct) { return memByteBuffer(struct + XrUuidMSFT.BYTES, 16); } - /** Unsafe version of {@link #bytes(int) bytes}. */ - public static byte nbytes(long struct, int index) { + + /** Unsafe version of {@link #bytes}. */ + public static ByteBuffer nbytes(long struct) { return memByteBuffer(struct + XrUuidMSFT.BYTES, 16); } + /** Unsafe version of {@link #bytes(int) bytes}. */ + public static byte nbytes(long struct, int index) { return UNSAFE.getByte(null, struct + XrUuidMSFT.BYTES + check(index, 16) * 1); - } - - /** Unsafe version of {@link #bytes(ByteBuffer) bytes}. */ - public static void nbytes(long struct, ByteBuffer value) { - if (CHECKS) { checkGT(value, 16); } - memCopy(memAddress(value), struct + XrUuidMSFT.BYTES, value.remaining() * 1); - } - /** Unsafe version of {@link #bytes(int, byte) bytes}. */ - public static void nbytes(long struct, int index, byte value) { - UNSAFE.putByte(null, struct + XrUuidMSFT.BYTES + check(index, 16) * 1, value); - } - - // ----------------------------------- + } + + /** Unsafe version of {@link #bytes(ByteBuffer) bytes}. */ + public static void nbytes(long struct, ByteBuffer value) { + if (CHECKS) { checkGT(value, 16); } + memCopy(memAddress(value), struct + XrUuidMSFT.BYTES, value.remaining() * 1); + } + /** Unsafe version of {@link #bytes(int, byte) bytes}. */ + public static void nbytes(long struct, int index, byte value) { + UNSAFE.putByte(null, struct + XrUuidMSFT.BYTES + check(index, 16) * 1, value); + } + + // ----------------------------------- /** An array of {@link XrUuidMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -245,9 +236,9 @@ public static class Buffer extends StructBuffer implements N /** * Creates a new {@code XrUuidMSFT.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 XrUuidMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrUuidMSFT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -272,18 +263,18 @@ protected Buffer self() { protected XrUuidMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link ByteBuffer} view of the {@link XrUuidMSFT#bytes} field. */ - @NativeType("uint8_t[16]") - public ByteBuffer bytes() { return XrUuidMSFT.nbytes(address()); } - /** @return the value at the specified index of the {@link XrUuidMSFT#bytes} field. */ - @NativeType("uint8_t") - public byte bytes(int index) { return XrUuidMSFT.nbytes(address(), index); } - - /** Copies the specified {@link ByteBuffer} to the {@link XrUuidMSFT#bytes} field. */ - public XrUuidMSFT.Buffer bytes(@NativeType("uint8_t[16]") ByteBuffer value) { XrUuidMSFT.nbytes(address(), value); return this; } - /** Sets the specified value at the specified index of the {@link XrUuidMSFT#bytes} field. */ - public XrUuidMSFT.Buffer bytes(int index, @NativeType("uint8_t") byte value) { XrUuidMSFT.nbytes(address(), index, value); return this; } + + /** @return a {@link ByteBuffer} view of the {@link XrUuidMSFT#bytes} field. */ + @NativeType("uint8_t[16]") + public ByteBuffer bytes() { return XrUuidMSFT.nbytes(address()); } + /** @return the value at the specified index of the {@link XrUuidMSFT#bytes} field. */ + @NativeType("uint8_t") + public byte bytes(int index) { return XrUuidMSFT.nbytes(address(), index); } + + /** Copies the specified {@link ByteBuffer} to the {@link XrUuidMSFT#bytes} field. */ + public XrUuidMSFT.Buffer bytes(@NativeType("uint8_t[16]") ByteBuffer value) { XrUuidMSFT.nbytes(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link XrUuidMSFT#bytes} field. */ + public XrUuidMSFT.Buffer bytes(int index, @NativeType("uint8_t") byte value) { XrUuidMSFT.nbytes(address(), index, value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector2f.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector2f.java index 6f71ad2b6a..389a30abd9 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector2f.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector2f.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.*; + /** * Two-dimensional vector. * @@ -33,8 +33,8 @@ * float {@link #x}; * float {@link #y}; * } - */ -public class XrVector2f extends Struct implements NativeResource { + */ +public class XrVector2f extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -44,29 +44,20 @@ public class XrVector2f extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - X, - Y; + X, + Y; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - X = layout.offsetof(0); - Y = layout.offsetof(1); - } - - protected XrVector2f(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrVector2f create(long address, @Nullable ByteBuffer container) { - return new XrVector2f(address, container); + X = layout.offsetof(0); + Y = layout.offsetof(1); } /** @@ -81,24 +72,24 @@ public XrVector2f(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the x coordinate of the vector. */ - public float x() { return nx(address()); } - /** the y coordinate of the vector. */ - public float y() { return ny(address()); } - - /** Sets the specified value to the {@link #x} field. */ - public XrVector2f x(float value) { nx(address(), value); return this; } - /** Sets the specified value to the {@link #y} field. */ - public XrVector2f y(float value) { ny(address(), value); return this; } + + /** the x coordinate of the vector. */ + public float x() { return nx(address()); } + /** the y coordinate of the vector. */ + public float y() { return ny(address()); } + + /** Sets the specified value to the {@link #x} field. */ + public XrVector2f x(float value) { nx(address(), value); return this; } + /** Sets the specified value to the {@link #y} field. */ + public XrVector2f y(float value) { ny(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrVector2f set( - float x, + float x, float y - ) { - x(x); - y(y); + ) { + x(x); + y(y); return this; } @@ -119,29 +110,29 @@ public XrVector2f set(XrVector2f src) { /** Returns a new {@code XrVector2f} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrVector2f malloc() { - return new XrVector2f(nmemAllocChecked(SIZEOF), null); + return wrap(XrVector2f.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrVector2f} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrVector2f calloc() { - return new XrVector2f(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrVector2f.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrVector2f} instance allocated with {@link BufferUtils}. */ public static XrVector2f create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrVector2f(memAddress(container), container); + return wrap(XrVector2f.class, memAddress(container), container); } /** Returns a new {@code XrVector2f} instance for the specified memory address. */ public static XrVector2f create(long address) { - return new XrVector2f(address, null); + return wrap(XrVector2f.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrVector2f createSafe(long address) { - return address == NULL ? null : new XrVector2f(address, null); + return address == NULL ? null : wrap(XrVector2f.class, address); } /** @@ -150,7 +141,7 @@ public static XrVector2f createSafe(long address) { * @param capacity the buffer capacity */ public static XrVector2f.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -159,7 +150,7 @@ public static XrVector2f.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrVector2f.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -169,7 +160,7 @@ public static XrVector2f.Buffer calloc(int capacity) { */ public static XrVector2f.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); } /** @@ -179,13 +170,13 @@ public static XrVector2f.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrVector2f.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 XrVector2f.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -194,7 +185,7 @@ public static XrVector2f.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrVector2f malloc(MemoryStack stack) { - return new XrVector2f(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrVector2f.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -203,7 +194,7 @@ public static XrVector2f malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrVector2f calloc(MemoryStack stack) { - return new XrVector2f(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrVector2f.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -213,7 +204,7 @@ public static XrVector2f calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrVector2f.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); } /** @@ -223,22 +214,22 @@ public static XrVector2f.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrVector2f.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 #x}. */ - public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrVector2f.X); } - /** Unsafe version of {@link #y}. */ - public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrVector2f.Y); } - - /** Unsafe version of {@link #x(float) x}. */ - public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector2f.X, value); } - /** Unsafe version of {@link #y(float) y}. */ - public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector2f.Y, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #x}. */ + public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrVector2f.X); } + /** Unsafe version of {@link #y}. */ + public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrVector2f.Y); } + + /** Unsafe version of {@link #x(float) x}. */ + public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector2f.X, value); } + /** Unsafe version of {@link #y(float) y}. */ + public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector2f.Y, value); } + + // ----------------------------------- /** An array of {@link XrVector2f} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -248,9 +239,9 @@ public static class Buffer extends StructBuffer implements N /** * Creates a new {@code XrVector2f.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 XrVector2f#SIZEOF}, and its mark will be undefined.

        + * by {@link XrVector2f#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -275,16 +266,16 @@ protected Buffer self() { protected XrVector2f getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrVector2f#x} field. */ - public float x() { return XrVector2f.nx(address()); } - /** @return the value of the {@link XrVector2f#y} field. */ - public float y() { return XrVector2f.ny(address()); } - - /** Sets the specified value to the {@link XrVector2f#x} field. */ - public XrVector2f.Buffer x(float value) { XrVector2f.nx(address(), value); return this; } - /** Sets the specified value to the {@link XrVector2f#y} field. */ - public XrVector2f.Buffer y(float value) { XrVector2f.ny(address(), value); return this; } + + /** @return the value of the {@link XrVector2f#x} field. */ + public float x() { return XrVector2f.nx(address()); } + /** @return the value of the {@link XrVector2f#y} field. */ + public float y() { return XrVector2f.ny(address()); } + + /** Sets the specified value to the {@link XrVector2f#x} field. */ + public XrVector2f.Buffer x(float value) { XrVector2f.nx(address(), value); return this; } + /** Sets the specified value to the {@link XrVector2f#y} field. */ + public XrVector2f.Buffer y(float value) { XrVector2f.ny(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector3f.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector3f.java index 6f8593af7f..8e5d799b52 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector3f.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector3f.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.*; + /** * Three-dimensional vector. * @@ -34,8 +34,8 @@ * float {@link #y}; * float {@link #z}; * } - */ -public class XrVector3f extends Struct implements NativeResource { + */ +public class XrVector3f extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -45,32 +45,23 @@ public class XrVector3f extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - X, - Y, - Z; + X, + Y, + Z; static { - Layout layout = __struct( - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - X = layout.offsetof(0); - Y = layout.offsetof(1); - Z = layout.offsetof(2); - } - - protected XrVector3f(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrVector3f create(long address, @Nullable ByteBuffer container) { - return new XrVector3f(address, container); + X = layout.offsetof(0); + Y = layout.offsetof(1); + Z = layout.offsetof(2); } /** @@ -85,30 +76,30 @@ public XrVector3f(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the x coordinate of the vector. */ - public float x() { return nx(address()); } - /** the y coordinate of the vector. */ - public float y() { return ny(address()); } - /** the z coordinate of the vector. */ - public float z() { return nz(address()); } - - /** Sets the specified value to the {@link #x} field. */ - public XrVector3f x(float value) { nx(address(), value); return this; } - /** Sets the specified value to the {@link #y} field. */ - public XrVector3f y(float value) { ny(address(), value); return this; } - /** Sets the specified value to the {@link #z} field. */ - public XrVector3f z(float value) { nz(address(), value); return this; } + + /** the x coordinate of the vector. */ + public float x() { return nx(address()); } + /** the y coordinate of the vector. */ + public float y() { return ny(address()); } + /** the z coordinate of the vector. */ + public float z() { return nz(address()); } + + /** Sets the specified value to the {@link #x} field. */ + public XrVector3f x(float value) { nx(address(), value); return this; } + /** Sets the specified value to the {@link #y} field. */ + public XrVector3f y(float value) { ny(address(), value); return this; } + /** Sets the specified value to the {@link #z} field. */ + public XrVector3f z(float value) { nz(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrVector3f set( - float x, - float y, + float x, + float y, float z - ) { - x(x); - y(y); - z(z); + ) { + x(x); + y(y); + z(z); return this; } @@ -129,29 +120,29 @@ public XrVector3f set(XrVector3f src) { /** Returns a new {@code XrVector3f} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrVector3f malloc() { - return new XrVector3f(nmemAllocChecked(SIZEOF), null); + return wrap(XrVector3f.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrVector3f} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrVector3f calloc() { - return new XrVector3f(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrVector3f.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrVector3f} instance allocated with {@link BufferUtils}. */ public static XrVector3f create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrVector3f(memAddress(container), container); + return wrap(XrVector3f.class, memAddress(container), container); } /** Returns a new {@code XrVector3f} instance for the specified memory address. */ public static XrVector3f create(long address) { - return new XrVector3f(address, null); + return wrap(XrVector3f.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrVector3f createSafe(long address) { - return address == NULL ? null : new XrVector3f(address, null); + return address == NULL ? null : wrap(XrVector3f.class, address); } /** @@ -160,7 +151,7 @@ public static XrVector3f createSafe(long address) { * @param capacity the buffer capacity */ public static XrVector3f.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -169,7 +160,7 @@ public static XrVector3f.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrVector3f.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -179,7 +170,7 @@ public static XrVector3f.Buffer calloc(int capacity) { */ public static XrVector3f.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); } /** @@ -189,13 +180,13 @@ public static XrVector3f.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrVector3f.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 XrVector3f.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -204,7 +195,7 @@ public static XrVector3f.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrVector3f malloc(MemoryStack stack) { - return new XrVector3f(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrVector3f.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -213,7 +204,7 @@ public static XrVector3f malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrVector3f calloc(MemoryStack stack) { - return new XrVector3f(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrVector3f.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -223,7 +214,7 @@ public static XrVector3f calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrVector3f.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); } /** @@ -233,26 +224,26 @@ public static XrVector3f.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrVector3f.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 #x}. */ - public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrVector3f.X); } - /** Unsafe version of {@link #y}. */ - public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrVector3f.Y); } - /** Unsafe version of {@link #z}. */ - public static float nz(long struct) { return UNSAFE.getFloat(null, struct + XrVector3f.Z); } - - /** Unsafe version of {@link #x(float) x}. */ - public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector3f.X, value); } - /** Unsafe version of {@link #y(float) y}. */ - public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector3f.Y, value); } - /** Unsafe version of {@link #z(float) z}. */ - public static void nz(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector3f.Z, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #x}. */ + public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrVector3f.X); } + /** Unsafe version of {@link #y}. */ + public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrVector3f.Y); } + /** Unsafe version of {@link #z}. */ + public static float nz(long struct) { return UNSAFE.getFloat(null, struct + XrVector3f.Z); } + + /** Unsafe version of {@link #x(float) x}. */ + public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector3f.X, value); } + /** Unsafe version of {@link #y(float) y}. */ + public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector3f.Y, value); } + /** Unsafe version of {@link #z(float) z}. */ + public static void nz(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector3f.Z, value); } + + // ----------------------------------- /** An array of {@link XrVector3f} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -262,9 +253,9 @@ public static class Buffer extends StructBuffer implements N /** * Creates a new {@code XrVector3f.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 XrVector3f#SIZEOF}, and its mark will be undefined.

        + * by {@link XrVector3f#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -289,20 +280,20 @@ protected Buffer self() { protected XrVector3f getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrVector3f#x} field. */ - public float x() { return XrVector3f.nx(address()); } - /** @return the value of the {@link XrVector3f#y} field. */ - public float y() { return XrVector3f.ny(address()); } - /** @return the value of the {@link XrVector3f#z} field. */ - public float z() { return XrVector3f.nz(address()); } - - /** Sets the specified value to the {@link XrVector3f#x} field. */ - public XrVector3f.Buffer x(float value) { XrVector3f.nx(address(), value); return this; } - /** Sets the specified value to the {@link XrVector3f#y} field. */ - public XrVector3f.Buffer y(float value) { XrVector3f.ny(address(), value); return this; } - /** Sets the specified value to the {@link XrVector3f#z} field. */ - public XrVector3f.Buffer z(float value) { XrVector3f.nz(address(), value); return this; } + + /** @return the value of the {@link XrVector3f#x} field. */ + public float x() { return XrVector3f.nx(address()); } + /** @return the value of the {@link XrVector3f#y} field. */ + public float y() { return XrVector3f.ny(address()); } + /** @return the value of the {@link XrVector3f#z} field. */ + public float z() { return XrVector3f.nz(address()); } + + /** Sets the specified value to the {@link XrVector3f#x} field. */ + public XrVector3f.Buffer x(float value) { XrVector3f.nx(address(), value); return this; } + /** Sets the specified value to the {@link XrVector3f#y} field. */ + public XrVector3f.Buffer y(float value) { XrVector3f.ny(address(), value); return this; } + /** Sets the specified value to the {@link XrVector3f#z} field. */ + public XrVector3f.Buffer z(float value) { XrVector3f.nz(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector4f.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector4f.java index b3cb9ffb2e..9d6818248f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector4f.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector4f.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.*; + /** * Four-dimensional vector. * @@ -35,8 +35,8 @@ * float {@link #z}; * float {@link #w}; * } - */ -public class XrVector4f extends Struct implements NativeResource { + */ +public class XrVector4f extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -46,35 +46,26 @@ public class XrVector4f extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - X, - Y, - Z, - W; + X, + Y, + Z, + W; 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(); - X = layout.offsetof(0); - Y = layout.offsetof(1); - Z = layout.offsetof(2); - W = layout.offsetof(3); - } - - protected XrVector4f(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrVector4f create(long address, @Nullable ByteBuffer container) { - return new XrVector4f(address, container); + X = layout.offsetof(0); + Y = layout.offsetof(1); + Z = layout.offsetof(2); + W = layout.offsetof(3); } /** @@ -89,36 +80,36 @@ public XrVector4f(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the x coordinate of the vector. */ - public float x() { return nx(address()); } - /** the y coordinate of the vector. */ - public float y() { return ny(address()); } - /** the z coordinate of the vector. */ - public float z() { return nz(address()); } - /** the w coordinate of the vector. */ - public float w() { return nw(address()); } - - /** Sets the specified value to the {@link #x} field. */ - public XrVector4f x(float value) { nx(address(), value); return this; } - /** Sets the specified value to the {@link #y} field. */ - public XrVector4f y(float value) { ny(address(), value); return this; } - /** Sets the specified value to the {@link #z} field. */ - public XrVector4f z(float value) { nz(address(), value); return this; } - /** Sets the specified value to the {@link #w} field. */ - public XrVector4f w(float value) { nw(address(), value); return this; } + + /** the x coordinate of the vector. */ + public float x() { return nx(address()); } + /** the y coordinate of the vector. */ + public float y() { return ny(address()); } + /** the z coordinate of the vector. */ + public float z() { return nz(address()); } + /** the w coordinate of the vector. */ + public float w() { return nw(address()); } + + /** Sets the specified value to the {@link #x} field. */ + public XrVector4f x(float value) { nx(address(), value); return this; } + /** Sets the specified value to the {@link #y} field. */ + public XrVector4f y(float value) { ny(address(), value); return this; } + /** Sets the specified value to the {@link #z} field. */ + public XrVector4f z(float value) { nz(address(), value); return this; } + /** Sets the specified value to the {@link #w} field. */ + public XrVector4f w(float value) { nw(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrVector4f set( - float x, - float y, - float z, + float x, + float y, + float z, float w - ) { - x(x); - y(y); - z(z); - w(w); + ) { + x(x); + y(y); + z(z); + w(w); return this; } @@ -139,29 +130,29 @@ public XrVector4f set(XrVector4f src) { /** Returns a new {@code XrVector4f} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrVector4f malloc() { - return new XrVector4f(nmemAllocChecked(SIZEOF), null); + return wrap(XrVector4f.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrVector4f} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrVector4f calloc() { - return new XrVector4f(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrVector4f.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrVector4f} instance allocated with {@link BufferUtils}. */ public static XrVector4f create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrVector4f(memAddress(container), container); + return wrap(XrVector4f.class, memAddress(container), container); } /** Returns a new {@code XrVector4f} instance for the specified memory address. */ public static XrVector4f create(long address) { - return new XrVector4f(address, null); + return wrap(XrVector4f.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrVector4f createSafe(long address) { - return address == NULL ? null : new XrVector4f(address, null); + return address == NULL ? null : wrap(XrVector4f.class, address); } /** @@ -170,7 +161,7 @@ public static XrVector4f createSafe(long address) { * @param capacity the buffer capacity */ public static XrVector4f.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 XrVector4f.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrVector4f.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 XrVector4f.Buffer calloc(int capacity) { */ public static XrVector4f.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 XrVector4f.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrVector4f.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 XrVector4f.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 XrVector4f.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrVector4f malloc(MemoryStack stack) { - return new XrVector4f(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrVector4f.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -223,7 +214,7 @@ public static XrVector4f malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrVector4f calloc(MemoryStack stack) { - return new XrVector4f(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrVector4f.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -233,7 +224,7 @@ public static XrVector4f calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrVector4f.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,30 +234,30 @@ public static XrVector4f.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrVector4f.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 #x}. */ - public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrVector4f.X); } - /** Unsafe version of {@link #y}. */ - public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrVector4f.Y); } - /** Unsafe version of {@link #z}. */ - public static float nz(long struct) { return UNSAFE.getFloat(null, struct + XrVector4f.Z); } - /** Unsafe version of {@link #w}. */ - public static float nw(long struct) { return UNSAFE.getFloat(null, struct + XrVector4f.W); } - - /** Unsafe version of {@link #x(float) x}. */ - public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector4f.X, value); } - /** Unsafe version of {@link #y(float) y}. */ - public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector4f.Y, value); } - /** Unsafe version of {@link #z(float) z}. */ - public static void nz(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector4f.Z, value); } - /** Unsafe version of {@link #w(float) w}. */ - public static void nw(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector4f.W, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #x}. */ + public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrVector4f.X); } + /** Unsafe version of {@link #y}. */ + public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrVector4f.Y); } + /** Unsafe version of {@link #z}. */ + public static float nz(long struct) { return UNSAFE.getFloat(null, struct + XrVector4f.Z); } + /** Unsafe version of {@link #w}. */ + public static float nw(long struct) { return UNSAFE.getFloat(null, struct + XrVector4f.W); } + + /** Unsafe version of {@link #x(float) x}. */ + public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector4f.X, value); } + /** Unsafe version of {@link #y(float) y}. */ + public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector4f.Y, value); } + /** Unsafe version of {@link #z(float) z}. */ + public static void nz(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector4f.Z, value); } + /** Unsafe version of {@link #w(float) w}. */ + public static void nw(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector4f.W, value); } + + // ----------------------------------- /** An array of {@link XrVector4f} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -276,9 +267,9 @@ public static class Buffer extends StructBuffer implements N /** * Creates a new {@code XrVector4f.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 XrVector4f#SIZEOF}, and its mark will be undefined.

        + * by {@link XrVector4f#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -303,24 +294,24 @@ protected Buffer self() { protected XrVector4f getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrVector4f#x} field. */ - public float x() { return XrVector4f.nx(address()); } - /** @return the value of the {@link XrVector4f#y} field. */ - public float y() { return XrVector4f.ny(address()); } - /** @return the value of the {@link XrVector4f#z} field. */ - public float z() { return XrVector4f.nz(address()); } - /** @return the value of the {@link XrVector4f#w} field. */ - public float w() { return XrVector4f.nw(address()); } - - /** Sets the specified value to the {@link XrVector4f#x} field. */ - public XrVector4f.Buffer x(float value) { XrVector4f.nx(address(), value); return this; } - /** Sets the specified value to the {@link XrVector4f#y} field. */ - public XrVector4f.Buffer y(float value) { XrVector4f.ny(address(), value); return this; } - /** Sets the specified value to the {@link XrVector4f#z} field. */ - public XrVector4f.Buffer z(float value) { XrVector4f.nz(address(), value); return this; } - /** Sets the specified value to the {@link XrVector4f#w} field. */ - public XrVector4f.Buffer w(float value) { XrVector4f.nw(address(), value); return this; } + + /** @return the value of the {@link XrVector4f#x} field. */ + public float x() { return XrVector4f.nx(address()); } + /** @return the value of the {@link XrVector4f#y} field. */ + public float y() { return XrVector4f.ny(address()); } + /** @return the value of the {@link XrVector4f#z} field. */ + public float z() { return XrVector4f.nz(address()); } + /** @return the value of the {@link XrVector4f#w} field. */ + public float w() { return XrVector4f.nw(address()); } + + /** Sets the specified value to the {@link XrVector4f#x} field. */ + public XrVector4f.Buffer x(float value) { XrVector4f.nx(address(), value); return this; } + /** Sets the specified value to the {@link XrVector4f#y} field. */ + public XrVector4f.Buffer y(float value) { XrVector4f.ny(address(), value); return this; } + /** Sets the specified value to the {@link XrVector4f#z} field. */ + public XrVector4f.Buffer z(float value) { XrVector4f.nz(address(), value); return this; } + /** Sets the specified value to the {@link XrVector4f#w} field. */ + public XrVector4f.Buffer w(float value) { XrVector4f.nw(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector4sFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector4sFB.java index 91e3d23317..dfe0d74c7f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector4sFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector4sFB.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.*; + /** * A four component short integer vector. * @@ -46,8 +46,8 @@ * int16_t z; * int16_t w; * } - */ -public class XrVector4sFB extends Struct implements NativeResource { + */ +public class XrVector4sFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,35 +57,26 @@ public class XrVector4sFB extends Struct implements NativeResource /** The struct member offsets. */ public static final int - X, - Y, - Z, - W; + X, + Y, + Z, + W; static { - Layout layout = __struct( - __member(2), - __member(2), - __member(2), + Layout layout = __struct( + __member(2), + __member(2), + __member(2), __member(2) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - X = layout.offsetof(0); - Y = layout.offsetof(1); - Z = layout.offsetof(2); - W = layout.offsetof(3); - } - - protected XrVector4sFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrVector4sFB create(long address, @Nullable ByteBuffer container) { - return new XrVector4sFB(address, container); + X = layout.offsetof(0); + Y = layout.offsetof(1); + Z = layout.offsetof(2); + W = layout.offsetof(3); } /** @@ -100,40 +91,40 @@ public XrVector4sFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** @return the value of the {@code x} field. */ - @NativeType("int16_t") - public short x() { return nx(address()); } - /** @return the value of the {@code y} field. */ - @NativeType("int16_t") - public short y() { return ny(address()); } - /** @return the value of the {@code z} field. */ - @NativeType("int16_t") - public short z() { return nz(address()); } - /** @return the value of the {@code w} field. */ - @NativeType("int16_t") - public short w() { return nw(address()); } - - /** Sets the specified value to the {@code x} field. */ - public XrVector4sFB x(@NativeType("int16_t") short value) { nx(address(), value); return this; } - /** Sets the specified value to the {@code y} field. */ - public XrVector4sFB y(@NativeType("int16_t") short value) { ny(address(), value); return this; } - /** Sets the specified value to the {@code z} field. */ - public XrVector4sFB z(@NativeType("int16_t") short value) { nz(address(), value); return this; } - /** Sets the specified value to the {@code w} field. */ - public XrVector4sFB w(@NativeType("int16_t") short value) { nw(address(), value); return this; } + + /** @return the value of the {@code x} field. */ + @NativeType("int16_t") + public short x() { return nx(address()); } + /** @return the value of the {@code y} field. */ + @NativeType("int16_t") + public short y() { return ny(address()); } + /** @return the value of the {@code z} field. */ + @NativeType("int16_t") + public short z() { return nz(address()); } + /** @return the value of the {@code w} field. */ + @NativeType("int16_t") + public short w() { return nw(address()); } + + /** Sets the specified value to the {@code x} field. */ + public XrVector4sFB x(@NativeType("int16_t") short value) { nx(address(), value); return this; } + /** Sets the specified value to the {@code y} field. */ + public XrVector4sFB y(@NativeType("int16_t") short value) { ny(address(), value); return this; } + /** Sets the specified value to the {@code z} field. */ + public XrVector4sFB z(@NativeType("int16_t") short value) { nz(address(), value); return this; } + /** Sets the specified value to the {@code w} field. */ + public XrVector4sFB w(@NativeType("int16_t") short value) { nw(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrVector4sFB set( - short x, - short y, - short z, + short x, + short y, + short z, short w - ) { - x(x); - y(y); - z(z); - w(w); + ) { + x(x); + y(y); + z(z); + w(w); return this; } @@ -154,29 +145,29 @@ public XrVector4sFB set(XrVector4sFB src) { /** Returns a new {@code XrVector4sFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrVector4sFB malloc() { - return new XrVector4sFB(nmemAllocChecked(SIZEOF), null); + return wrap(XrVector4sFB.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrVector4sFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrVector4sFB calloc() { - return new XrVector4sFB(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrVector4sFB.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrVector4sFB} instance allocated with {@link BufferUtils}. */ public static XrVector4sFB create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrVector4sFB(memAddress(container), container); + return wrap(XrVector4sFB.class, memAddress(container), container); } /** Returns a new {@code XrVector4sFB} instance for the specified memory address. */ public static XrVector4sFB create(long address) { - return new XrVector4sFB(address, null); + return wrap(XrVector4sFB.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrVector4sFB createSafe(long address) { - return address == NULL ? null : new XrVector4sFB(address, null); + return address == NULL ? null : wrap(XrVector4sFB.class, address); } /** @@ -185,7 +176,7 @@ public static XrVector4sFB createSafe(long address) { * @param capacity the buffer capacity */ public static XrVector4sFB.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 XrVector4sFB.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrVector4sFB.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 XrVector4sFB.Buffer calloc(int capacity) { */ public static XrVector4sFB.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 XrVector4sFB.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrVector4sFB.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 XrVector4sFB.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 XrVector4sFB.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrVector4sFB malloc(MemoryStack stack) { - return new XrVector4sFB(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrVector4sFB.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -238,7 +229,7 @@ public static XrVector4sFB malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrVector4sFB calloc(MemoryStack stack) { - return new XrVector4sFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrVector4sFB.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -248,7 +239,7 @@ public static XrVector4sFB calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrVector4sFB.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,30 +249,30 @@ public static XrVector4sFB.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrVector4sFB.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 #x}. */ - public static short nx(long struct) { return UNSAFE.getShort(null, struct + XrVector4sFB.X); } - /** Unsafe version of {@link #y}. */ - public static short ny(long struct) { return UNSAFE.getShort(null, struct + XrVector4sFB.Y); } - /** Unsafe version of {@link #z}. */ - public static short nz(long struct) { return UNSAFE.getShort(null, struct + XrVector4sFB.Z); } - /** Unsafe version of {@link #w}. */ - public static short nw(long struct) { return UNSAFE.getShort(null, struct + XrVector4sFB.W); } - - /** Unsafe version of {@link #x(short) x}. */ - public static void nx(long struct, short value) { UNSAFE.putShort(null, struct + XrVector4sFB.X, value); } - /** Unsafe version of {@link #y(short) y}. */ - public static void ny(long struct, short value) { UNSAFE.putShort(null, struct + XrVector4sFB.Y, value); } - /** Unsafe version of {@link #z(short) z}. */ - public static void nz(long struct, short value) { UNSAFE.putShort(null, struct + XrVector4sFB.Z, value); } - /** Unsafe version of {@link #w(short) w}. */ - public static void nw(long struct, short value) { UNSAFE.putShort(null, struct + XrVector4sFB.W, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #x}. */ + public static short nx(long struct) { return UNSAFE.getShort(null, struct + XrVector4sFB.X); } + /** Unsafe version of {@link #y}. */ + public static short ny(long struct) { return UNSAFE.getShort(null, struct + XrVector4sFB.Y); } + /** Unsafe version of {@link #z}. */ + public static short nz(long struct) { return UNSAFE.getShort(null, struct + XrVector4sFB.Z); } + /** Unsafe version of {@link #w}. */ + public static short nw(long struct) { return UNSAFE.getShort(null, struct + XrVector4sFB.W); } + + /** Unsafe version of {@link #x(short) x}. */ + public static void nx(long struct, short value) { UNSAFE.putShort(null, struct + XrVector4sFB.X, value); } + /** Unsafe version of {@link #y(short) y}. */ + public static void ny(long struct, short value) { UNSAFE.putShort(null, struct + XrVector4sFB.Y, value); } + /** Unsafe version of {@link #z(short) z}. */ + public static void nz(long struct, short value) { UNSAFE.putShort(null, struct + XrVector4sFB.Z, value); } + /** Unsafe version of {@link #w(short) w}. */ + public static void nw(long struct, short value) { UNSAFE.putShort(null, struct + XrVector4sFB.W, value); } + + // ----------------------------------- /** An array of {@link XrVector4sFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -291,9 +282,9 @@ public static class Buffer extends StructBuffer implements /** * Creates a new {@code XrVector4sFB.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 XrVector4sFB#SIZEOF}, and its mark will be undefined.

        + * by {@link XrVector4sFB#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -318,28 +309,28 @@ protected Buffer self() { protected XrVector4sFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code x} field. */ - @NativeType("int16_t") - public short x() { return XrVector4sFB.nx(address()); } - /** @return the value of the {@code y} field. */ - @NativeType("int16_t") - public short y() { return XrVector4sFB.ny(address()); } - /** @return the value of the {@code z} field. */ - @NativeType("int16_t") - public short z() { return XrVector4sFB.nz(address()); } - /** @return the value of the {@code w} field. */ - @NativeType("int16_t") - public short w() { return XrVector4sFB.nw(address()); } - - /** Sets the specified value to the {@code x} field. */ - public XrVector4sFB.Buffer x(@NativeType("int16_t") short value) { XrVector4sFB.nx(address(), value); return this; } - /** Sets the specified value to the {@code y} field. */ - public XrVector4sFB.Buffer y(@NativeType("int16_t") short value) { XrVector4sFB.ny(address(), value); return this; } - /** Sets the specified value to the {@code z} field. */ - public XrVector4sFB.Buffer z(@NativeType("int16_t") short value) { XrVector4sFB.nz(address(), value); return this; } - /** Sets the specified value to the {@code w} field. */ - public XrVector4sFB.Buffer w(@NativeType("int16_t") short value) { XrVector4sFB.nw(address(), value); return this; } + + /** @return the value of the {@code x} field. */ + @NativeType("int16_t") + public short x() { return XrVector4sFB.nx(address()); } + /** @return the value of the {@code y} field. */ + @NativeType("int16_t") + public short y() { return XrVector4sFB.ny(address()); } + /** @return the value of the {@code z} field. */ + @NativeType("int16_t") + public short z() { return XrVector4sFB.nz(address()); } + /** @return the value of the {@code w} field. */ + @NativeType("int16_t") + public short w() { return XrVector4sFB.nw(address()); } + + /** Sets the specified value to the {@code x} field. */ + public XrVector4sFB.Buffer x(@NativeType("int16_t") short value) { XrVector4sFB.nx(address(), value); return this; } + /** Sets the specified value to the {@code y} field. */ + public XrVector4sFB.Buffer y(@NativeType("int16_t") short value) { XrVector4sFB.ny(address(), value); return this; } + /** Sets the specified value to the {@code z} field. */ + public XrVector4sFB.Buffer z(@NativeType("int16_t") short value) { XrVector4sFB.nz(address(), value); return this; } + /** Sets the specified value to the {@code w} field. */ + public XrVector4sFB.Buffer w(@NativeType("int16_t") short value) { XrVector4sFB.nw(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrView.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrView.java index 09148dcf57..4313f75a21 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrView.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrView.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.*; + /** * Struct containing view projection state. * @@ -42,8 +42,8 @@ * {@link XrPosef XrPosef} {@link #pose}; * {@link XrFovf XrFovf} {@link #fov}; * } - */ -public class XrView extends Struct implements NativeResource { + */ +public class XrView extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,35 +53,26 @@ public class XrView extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - TYPE, - NEXT, - POSE, - FOV; + TYPE, + NEXT, + POSE, + FOV; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), __member(XrFovf.SIZEOF, XrFovf.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - POSE = layout.offsetof(2); - FOV = layout.offsetof(3); - } - - protected XrView(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrView create(long address, @Nullable ByteBuffer container) { - return new XrView(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + POSE = layout.offsetof(2); + FOV = layout.offsetof(3); } /** @@ -96,44 +87,44 @@ public XrView(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()); } - /** an {@link XrPosef} defining the location and orientation of the view in the {@code space} specified by the {@link XR10#xrLocateViews LocateViews} function. */ - public XrPosef pose() { return npose(address()); } - /** the {@link XrFovf} for the four sides of the projection. */ - public XrFovf fov() { return nfov(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrView type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_VIEW TYPE_VIEW} value to the {@link #type} field. */ - public XrView type$Default() { return type(XR10.XR_TYPE_VIEW); } - /** Sets the specified value to the {@link #next} field. */ - public XrView next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrView pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrView pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrFovf} to the {@link #fov} field. */ - public XrView fov(XrFovf value) { nfov(address(), value); return this; } - /** Passes the {@link #fov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrView fov(java.util.function.Consumer consumer) { consumer.accept(fov()); 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()); } + /** an {@link XrPosef} defining the location and orientation of the view in the {@code space} specified by the {@link XR10#xrLocateViews LocateViews} function. */ + public XrPosef pose() { return npose(address()); } + /** the {@link XrFovf} for the four sides of the projection. */ + public XrFovf fov() { return nfov(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrView type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_VIEW TYPE_VIEW} value to the {@link #type} field. */ + public XrView type$Default() { return type(XR10.XR_TYPE_VIEW); } + /** Sets the specified value to the {@link #next} field. */ + public XrView next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrView pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrView pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrFovf} to the {@link #fov} field. */ + public XrView fov(XrFovf value) { nfov(address(), value); return this; } + /** Passes the {@link #fov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrView fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } /** Initializes this struct with the specified values. */ public XrView set( - int type, - long next, - XrPosef pose, + int type, + long next, + XrPosef pose, XrFovf fov - ) { - type(type); - next(next); - pose(pose); - fov(fov); + ) { + type(type); + next(next); + pose(pose); + fov(fov); return this; } @@ -154,29 +145,29 @@ public XrView set(XrView src) { /** Returns a new {@code XrView} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrView malloc() { - return new XrView(nmemAllocChecked(SIZEOF), null); + return wrap(XrView.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrView} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrView calloc() { - return new XrView(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrView.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrView} instance allocated with {@link BufferUtils}. */ public static XrView create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrView(memAddress(container), container); + return wrap(XrView.class, memAddress(container), container); } /** Returns a new {@code XrView} instance for the specified memory address. */ public static XrView create(long address) { - return new XrView(address, null); + return wrap(XrView.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrView createSafe(long address) { - return address == NULL ? null : new XrView(address, null); + return address == NULL ? null : wrap(XrView.class, address); } /** @@ -185,7 +176,7 @@ public static XrView createSafe(long address) { * @param capacity the buffer capacity */ public static XrView.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 XrView.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrView.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 XrView.Buffer calloc(int capacity) { */ public static XrView.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 XrView.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrView.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 XrView.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 XrView.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrView malloc(MemoryStack stack) { - return new XrView(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrView.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -238,7 +229,7 @@ public static XrView malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrView calloc(MemoryStack stack) { - return new XrView(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrView.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -248,7 +239,7 @@ public static XrView calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrView.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,30 +249,30 @@ public static XrView.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrView.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 + XrView.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrView.NEXT); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrView.POSE); } - /** Unsafe version of {@link #fov}. */ - public static XrFovf nfov(long struct) { return XrFovf.create(struct + XrView.FOV); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrView.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrView.NEXT, value); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrView.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #fov(XrFovf) fov}. */ - public static void nfov(long struct, XrFovf value) { memCopy(value.address(), struct + XrView.FOV, XrFovf.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrView.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrView.NEXT); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrView.POSE); } + /** Unsafe version of {@link #fov}. */ + public static XrFovf nfov(long struct) { return XrFovf.create(struct + XrView.FOV); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrView.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrView.NEXT, value); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrView.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #fov(XrFovf) fov}. */ + public static void nfov(long struct, XrFovf value) { memCopy(value.address(), struct + XrView.FOV, XrFovf.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrView} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -291,9 +282,9 @@ public static class Buffer extends StructBuffer implements Nativ /** * Creates a new {@code XrView.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 XrView#SIZEOF}, and its mark will be undefined.

        + * by {@link XrView#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -318,32 +309,32 @@ protected Buffer self() { protected XrView getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrView#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrView.ntype(address()); } - /** @return the value of the {@link XrView#next} field. */ - @NativeType("void *") - public long next() { return XrView.nnext(address()); } - /** @return a {@link XrPosef} view of the {@link XrView#pose} field. */ - public XrPosef pose() { return XrView.npose(address()); } - /** @return a {@link XrFovf} view of the {@link XrView#fov} field. */ - public XrFovf fov() { return XrView.nfov(address()); } - - /** Sets the specified value to the {@link XrView#type} field. */ - public XrView.Buffer type(@NativeType("XrStructureType") int value) { XrView.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_VIEW TYPE_VIEW} value to the {@link XrView#type} field. */ - public XrView.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW); } - /** Sets the specified value to the {@link XrView#next} field. */ - public XrView.Buffer next(@NativeType("void *") long value) { XrView.nnext(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrView#pose} field. */ - public XrView.Buffer pose(XrPosef value) { XrView.npose(address(), value); return this; } - /** Passes the {@link XrView#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrView.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrFovf} to the {@link XrView#fov} field. */ - public XrView.Buffer fov(XrFovf value) { XrView.nfov(address(), value); return this; } - /** Passes the {@link XrView#fov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrView.Buffer fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } + + /** @return the value of the {@link XrView#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrView.ntype(address()); } + /** @return the value of the {@link XrView#next} field. */ + @NativeType("void *") + public long next() { return XrView.nnext(address()); } + /** @return a {@link XrPosef} view of the {@link XrView#pose} field. */ + public XrPosef pose() { return XrView.npose(address()); } + /** @return a {@link XrFovf} view of the {@link XrView#fov} field. */ + public XrFovf fov() { return XrView.nfov(address()); } + + /** Sets the specified value to the {@link XrView#type} field. */ + public XrView.Buffer type(@NativeType("XrStructureType") int value) { XrView.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_VIEW TYPE_VIEW} value to the {@link XrView#type} field. */ + public XrView.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW); } + /** Sets the specified value to the {@link XrView#next} field. */ + public XrView.Buffer next(@NativeType("void *") long value) { XrView.nnext(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrView#pose} field. */ + public XrView.Buffer pose(XrPosef value) { XrView.npose(address(), value); return this; } + /** Passes the {@link XrView#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrView.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrFovf} to the {@link XrView#fov} field. */ + public XrView.Buffer fov(XrFovf value) { XrView.nfov(address(), value); return this; } + /** Passes the {@link XrView#fov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrView.Buffer fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationDepthRangeEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationDepthRangeEXT.java index 677787a20a..ef1a9806d3 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationDepthRangeEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationDepthRangeEXT.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.*; + /** * View configuration depth range information. * @@ -45,8 +45,8 @@ * float {@link #recommendedFarZ}; * float {@link #maxFarZ}; * } - */ -public class XrViewConfigurationDepthRangeEXT extends Struct implements NativeResource { + */ +public class XrViewConfigurationDepthRangeEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,41 +56,32 @@ public class XrViewConfigurationDepthRangeEXT extends Struct implements NativeResource { @@ -316,9 +307,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 XrViewConfigurationDepthRangeEXT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrViewConfigurationDepthRangeEXT#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -343,36 +334,36 @@ protected Buffer self() { protected XrViewConfigurationDepthRangeEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrViewConfigurationDepthRangeEXT.ntype(address()); } - /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#next} field. */ - @NativeType("void *") - public long next() { return XrViewConfigurationDepthRangeEXT.nnext(address()); } - /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#recommendedNearZ} field. */ - public float recommendedNearZ() { return XrViewConfigurationDepthRangeEXT.nrecommendedNearZ(address()); } - /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#minNearZ} field. */ - public float minNearZ() { return XrViewConfigurationDepthRangeEXT.nminNearZ(address()); } - /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#recommendedFarZ} field. */ - public float recommendedFarZ() { return XrViewConfigurationDepthRangeEXT.nrecommendedFarZ(address()); } - /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#maxFarZ} field. */ - public float maxFarZ() { return XrViewConfigurationDepthRangeEXT.nmaxFarZ(address()); } - - /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#type} field. */ - public XrViewConfigurationDepthRangeEXT.Buffer type(@NativeType("XrStructureType") int value) { XrViewConfigurationDepthRangeEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTViewConfigurationDepthRange#XR_TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT} value to the {@link XrViewConfigurationDepthRangeEXT#type} field. */ - public XrViewConfigurationDepthRangeEXT.Buffer type$Default() { return type(EXTViewConfigurationDepthRange.XR_TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT); } - /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#next} field. */ - public XrViewConfigurationDepthRangeEXT.Buffer next(@NativeType("void *") long value) { XrViewConfigurationDepthRangeEXT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#recommendedNearZ} field. */ - public XrViewConfigurationDepthRangeEXT.Buffer recommendedNearZ(float value) { XrViewConfigurationDepthRangeEXT.nrecommendedNearZ(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#minNearZ} field. */ - public XrViewConfigurationDepthRangeEXT.Buffer minNearZ(float value) { XrViewConfigurationDepthRangeEXT.nminNearZ(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#recommendedFarZ} field. */ - public XrViewConfigurationDepthRangeEXT.Buffer recommendedFarZ(float value) { XrViewConfigurationDepthRangeEXT.nrecommendedFarZ(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#maxFarZ} field. */ - public XrViewConfigurationDepthRangeEXT.Buffer maxFarZ(float value) { XrViewConfigurationDepthRangeEXT.nmaxFarZ(address(), value); return this; } + + /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrViewConfigurationDepthRangeEXT.ntype(address()); } + /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#next} field. */ + @NativeType("void *") + public long next() { return XrViewConfigurationDepthRangeEXT.nnext(address()); } + /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#recommendedNearZ} field. */ + public float recommendedNearZ() { return XrViewConfigurationDepthRangeEXT.nrecommendedNearZ(address()); } + /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#minNearZ} field. */ + public float minNearZ() { return XrViewConfigurationDepthRangeEXT.nminNearZ(address()); } + /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#recommendedFarZ} field. */ + public float recommendedFarZ() { return XrViewConfigurationDepthRangeEXT.nrecommendedFarZ(address()); } + /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#maxFarZ} field. */ + public float maxFarZ() { return XrViewConfigurationDepthRangeEXT.nmaxFarZ(address()); } + + /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#type} field. */ + public XrViewConfigurationDepthRangeEXT.Buffer type(@NativeType("XrStructureType") int value) { XrViewConfigurationDepthRangeEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTViewConfigurationDepthRange#XR_TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT} value to the {@link XrViewConfigurationDepthRangeEXT#type} field. */ + public XrViewConfigurationDepthRangeEXT.Buffer type$Default() { return type(EXTViewConfigurationDepthRange.XR_TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT); } + /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#next} field. */ + public XrViewConfigurationDepthRangeEXT.Buffer next(@NativeType("void *") long value) { XrViewConfigurationDepthRangeEXT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#recommendedNearZ} field. */ + public XrViewConfigurationDepthRangeEXT.Buffer recommendedNearZ(float value) { XrViewConfigurationDepthRangeEXT.nrecommendedNearZ(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#minNearZ} field. */ + public XrViewConfigurationDepthRangeEXT.Buffer minNearZ(float value) { XrViewConfigurationDepthRangeEXT.nminNearZ(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#recommendedFarZ} field. */ + public XrViewConfigurationDepthRangeEXT.Buffer recommendedFarZ(float value) { XrViewConfigurationDepthRangeEXT.nrecommendedFarZ(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#maxFarZ} field. */ + public XrViewConfigurationDepthRangeEXT.Buffer maxFarZ(float value) { XrViewConfigurationDepthRangeEXT.nmaxFarZ(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationProperties.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationProperties.java index 6170ef4a41..7bd2c320f6 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationProperties.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationProperties.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.*; + /** * Detailed configuration properties for an XrViewConfigurationProperties. * @@ -39,8 +39,8 @@ * XrViewConfigurationType {@link #viewConfigurationType}; * XrBool32 {@link #fovMutable}; * } - */ -public class XrViewConfigurationProperties extends Struct implements NativeResource { + */ +public class XrViewConfigurationProperties extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,35 +50,26 @@ public class XrViewConfigurationProperties extends Struct implements NativeResource { @@ -286,9 +277,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 XrViewConfigurationProperties#SIZEOF}, and its mark will be undefined.

        + * by {@link XrViewConfigurationProperties#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -313,30 +304,30 @@ protected Buffer self() { protected XrViewConfigurationProperties getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrViewConfigurationProperties#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrViewConfigurationProperties.ntype(address()); } - /** @return the value of the {@link XrViewConfigurationProperties#next} field. */ - @NativeType("void *") - public long next() { return XrViewConfigurationProperties.nnext(address()); } - /** @return the value of the {@link XrViewConfigurationProperties#viewConfigurationType} field. */ - @NativeType("XrViewConfigurationType") - public int viewConfigurationType() { return XrViewConfigurationProperties.nviewConfigurationType(address()); } - /** @return the value of the {@link XrViewConfigurationProperties#fovMutable} field. */ - @NativeType("XrBool32") - public boolean fovMutable() { return XrViewConfigurationProperties.nfovMutable(address()) != 0; } - - /** Sets the specified value to the {@link XrViewConfigurationProperties#type} field. */ - public XrViewConfigurationProperties.Buffer type(@NativeType("XrStructureType") int value) { XrViewConfigurationProperties.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_VIEW_CONFIGURATION_PROPERTIES TYPE_VIEW_CONFIGURATION_PROPERTIES} value to the {@link XrViewConfigurationProperties#type} field. */ - public XrViewConfigurationProperties.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW_CONFIGURATION_PROPERTIES); } - /** Sets the specified value to the {@link XrViewConfigurationProperties#next} field. */ - public XrViewConfigurationProperties.Buffer next(@NativeType("void *") long value) { XrViewConfigurationProperties.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationProperties#viewConfigurationType} field. */ - public XrViewConfigurationProperties.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrViewConfigurationProperties.nviewConfigurationType(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationProperties#fovMutable} field. */ - public XrViewConfigurationProperties.Buffer fovMutable(@NativeType("XrBool32") boolean value) { XrViewConfigurationProperties.nfovMutable(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrViewConfigurationProperties#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrViewConfigurationProperties.ntype(address()); } + /** @return the value of the {@link XrViewConfigurationProperties#next} field. */ + @NativeType("void *") + public long next() { return XrViewConfigurationProperties.nnext(address()); } + /** @return the value of the {@link XrViewConfigurationProperties#viewConfigurationType} field. */ + @NativeType("XrViewConfigurationType") + public int viewConfigurationType() { return XrViewConfigurationProperties.nviewConfigurationType(address()); } + /** @return the value of the {@link XrViewConfigurationProperties#fovMutable} field. */ + @NativeType("XrBool32") + public boolean fovMutable() { return XrViewConfigurationProperties.nfovMutable(address()) != 0; } + + /** Sets the specified value to the {@link XrViewConfigurationProperties#type} field. */ + public XrViewConfigurationProperties.Buffer type(@NativeType("XrStructureType") int value) { XrViewConfigurationProperties.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_VIEW_CONFIGURATION_PROPERTIES TYPE_VIEW_CONFIGURATION_PROPERTIES} value to the {@link XrViewConfigurationProperties#type} field. */ + public XrViewConfigurationProperties.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW_CONFIGURATION_PROPERTIES); } + /** Sets the specified value to the {@link XrViewConfigurationProperties#next} field. */ + public XrViewConfigurationProperties.Buffer next(@NativeType("void *") long value) { XrViewConfigurationProperties.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationProperties#viewConfigurationType} field. */ + public XrViewConfigurationProperties.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrViewConfigurationProperties.nviewConfigurationType(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationProperties#fovMutable} field. */ + public XrViewConfigurationProperties.Buffer fovMutable(@NativeType("XrBool32") boolean value) { XrViewConfigurationProperties.nfovMutable(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationView.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationView.java index ccb81921f0..c4aa229ead 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationView.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationView.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.*; + /** * Individual view configuration. * @@ -48,8 +48,8 @@ * uint32_t {@link #recommendedSwapchainSampleCount}; * uint32_t {@link #maxSwapchainSampleCount}; * } - */ -public class XrViewConfigurationView extends Struct implements NativeResource { + */ +public class XrViewConfigurationView extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -59,47 +59,38 @@ public class XrViewConfigurationView extends Struct imp /** The struct member offsets. */ public static final int - TYPE, - NEXT, - RECOMMENDEDIMAGERECTWIDTH, - MAXIMAGERECTWIDTH, - RECOMMENDEDIMAGERECTHEIGHT, - MAXIMAGERECTHEIGHT, - RECOMMENDEDSWAPCHAINSAMPLECOUNT, - MAXSWAPCHAINSAMPLECOUNT; + TYPE, + NEXT, + RECOMMENDEDIMAGERECTWIDTH, + MAXIMAGERECTWIDTH, + RECOMMENDEDIMAGERECTHEIGHT, + MAXIMAGERECTHEIGHT, + RECOMMENDEDSWAPCHAINSAMPLECOUNT, + MAXSWAPCHAINSAMPLECOUNT; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(4), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), + __member(4), + __member(4), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - RECOMMENDEDIMAGERECTWIDTH = layout.offsetof(2); - MAXIMAGERECTWIDTH = layout.offsetof(3); - RECOMMENDEDIMAGERECTHEIGHT = layout.offsetof(4); - MAXIMAGERECTHEIGHT = layout.offsetof(5); - RECOMMENDEDSWAPCHAINSAMPLECOUNT = layout.offsetof(6); - MAXSWAPCHAINSAMPLECOUNT = layout.offsetof(7); - } - - protected XrViewConfigurationView(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrViewConfigurationView create(long address, @Nullable ByteBuffer container) { - return new XrViewConfigurationView(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + RECOMMENDEDIMAGERECTWIDTH = layout.offsetof(2); + MAXIMAGERECTWIDTH = layout.offsetof(3); + RECOMMENDEDIMAGERECTHEIGHT = layout.offsetof(4); + MAXIMAGERECTHEIGHT = layout.offsetof(5); + RECOMMENDEDSWAPCHAINSAMPLECOUNT = layout.offsetof(6); + MAXSWAPCHAINSAMPLECOUNT = layout.offsetof(7); } /** @@ -114,76 +105,76 @@ public XrViewConfigurationView(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 optimal width of {@code imageRect} to use when rendering this view into a swapchain. */ - @NativeType("uint32_t") - public int recommendedImageRectWidth() { return nrecommendedImageRectWidth(address()); } - /** the maximum width of {@code imageRect} supported when rendering this view into a swapchain. */ - @NativeType("uint32_t") - public int maxImageRectWidth() { return nmaxImageRectWidth(address()); } - /** the optimal height of {@code imageRect} to use when rendering this view into a swapchain. */ - @NativeType("uint32_t") - public int recommendedImageRectHeight() { return nrecommendedImageRectHeight(address()); } - /** the maximum height of {@code imageRect} supported when rendering this view into a swapchain. */ - @NativeType("uint32_t") - public int maxImageRectHeight() { return nmaxImageRectHeight(address()); } - /** the recommended number of sub-data element samples to create for each swapchain image that will be rendered into for this view. */ - @NativeType("uint32_t") - public int recommendedSwapchainSampleCount() { return nrecommendedSwapchainSampleCount(address()); } - /** the maximum number of sub-data element samples supported for swapchain images that will be rendered into for this view. */ - @NativeType("uint32_t") - public int maxSwapchainSampleCount() { return nmaxSwapchainSampleCount(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrViewConfigurationView type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_VIEW_CONFIGURATION_VIEW TYPE_VIEW_CONFIGURATION_VIEW} value to the {@link #type} field. */ - public XrViewConfigurationView type$Default() { return type(XR10.XR_TYPE_VIEW_CONFIGURATION_VIEW); } - /** Sets the specified value to the {@link #next} field. */ - public XrViewConfigurationView next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrFoveatedViewConfigurationViewVARJO} value to the {@code next} chain. */ - public XrViewConfigurationView next(XrFoveatedViewConfigurationViewVARJO value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrViewConfigurationDepthRangeEXT} value to the {@code next} chain. */ - public XrViewConfigurationView next(XrViewConfigurationDepthRangeEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrViewConfigurationViewFovEPIC} value to the {@code next} chain. */ - public XrViewConfigurationView next(XrViewConfigurationViewFovEPIC value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #recommendedImageRectWidth} field. */ - public XrViewConfigurationView recommendedImageRectWidth(@NativeType("uint32_t") int value) { nrecommendedImageRectWidth(address(), value); return this; } - /** Sets the specified value to the {@link #maxImageRectWidth} field. */ - public XrViewConfigurationView maxImageRectWidth(@NativeType("uint32_t") int value) { nmaxImageRectWidth(address(), value); return this; } - /** Sets the specified value to the {@link #recommendedImageRectHeight} field. */ - public XrViewConfigurationView recommendedImageRectHeight(@NativeType("uint32_t") int value) { nrecommendedImageRectHeight(address(), value); return this; } - /** Sets the specified value to the {@link #maxImageRectHeight} field. */ - public XrViewConfigurationView maxImageRectHeight(@NativeType("uint32_t") int value) { nmaxImageRectHeight(address(), value); return this; } - /** Sets the specified value to the {@link #recommendedSwapchainSampleCount} field. */ - public XrViewConfigurationView recommendedSwapchainSampleCount(@NativeType("uint32_t") int value) { nrecommendedSwapchainSampleCount(address(), value); return this; } - /** Sets the specified value to the {@link #maxSwapchainSampleCount} field. */ - public XrViewConfigurationView maxSwapchainSampleCount(@NativeType("uint32_t") int value) { nmaxSwapchainSampleCount(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()); } + /** the optimal width of {@code imageRect} to use when rendering this view into a swapchain. */ + @NativeType("uint32_t") + public int recommendedImageRectWidth() { return nrecommendedImageRectWidth(address()); } + /** the maximum width of {@code imageRect} supported when rendering this view into a swapchain. */ + @NativeType("uint32_t") + public int maxImageRectWidth() { return nmaxImageRectWidth(address()); } + /** the optimal height of {@code imageRect} to use when rendering this view into a swapchain. */ + @NativeType("uint32_t") + public int recommendedImageRectHeight() { return nrecommendedImageRectHeight(address()); } + /** the maximum height of {@code imageRect} supported when rendering this view into a swapchain. */ + @NativeType("uint32_t") + public int maxImageRectHeight() { return nmaxImageRectHeight(address()); } + /** the recommended number of sub-data element samples to create for each swapchain image that will be rendered into for this view. */ + @NativeType("uint32_t") + public int recommendedSwapchainSampleCount() { return nrecommendedSwapchainSampleCount(address()); } + /** the maximum number of sub-data element samples supported for swapchain images that will be rendered into for this view. */ + @NativeType("uint32_t") + public int maxSwapchainSampleCount() { return nmaxSwapchainSampleCount(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrViewConfigurationView type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_VIEW_CONFIGURATION_VIEW TYPE_VIEW_CONFIGURATION_VIEW} value to the {@link #type} field. */ + public XrViewConfigurationView type$Default() { return type(XR10.XR_TYPE_VIEW_CONFIGURATION_VIEW); } + /** Sets the specified value to the {@link #next} field. */ + public XrViewConfigurationView next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrFoveatedViewConfigurationViewVARJO} value to the {@code next} chain. */ + public XrViewConfigurationView next(XrFoveatedViewConfigurationViewVARJO value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrViewConfigurationDepthRangeEXT} value to the {@code next} chain. */ + public XrViewConfigurationView next(XrViewConfigurationDepthRangeEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrViewConfigurationViewFovEPIC} value to the {@code next} chain. */ + public XrViewConfigurationView next(XrViewConfigurationViewFovEPIC value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #recommendedImageRectWidth} field. */ + public XrViewConfigurationView recommendedImageRectWidth(@NativeType("uint32_t") int value) { nrecommendedImageRectWidth(address(), value); return this; } + /** Sets the specified value to the {@link #maxImageRectWidth} field. */ + public XrViewConfigurationView maxImageRectWidth(@NativeType("uint32_t") int value) { nmaxImageRectWidth(address(), value); return this; } + /** Sets the specified value to the {@link #recommendedImageRectHeight} field. */ + public XrViewConfigurationView recommendedImageRectHeight(@NativeType("uint32_t") int value) { nrecommendedImageRectHeight(address(), value); return this; } + /** Sets the specified value to the {@link #maxImageRectHeight} field. */ + public XrViewConfigurationView maxImageRectHeight(@NativeType("uint32_t") int value) { nmaxImageRectHeight(address(), value); return this; } + /** Sets the specified value to the {@link #recommendedSwapchainSampleCount} field. */ + public XrViewConfigurationView recommendedSwapchainSampleCount(@NativeType("uint32_t") int value) { nrecommendedSwapchainSampleCount(address(), value); return this; } + /** Sets the specified value to the {@link #maxSwapchainSampleCount} field. */ + public XrViewConfigurationView maxSwapchainSampleCount(@NativeType("uint32_t") int value) { nmaxSwapchainSampleCount(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrViewConfigurationView set( - int type, - long next, - int recommendedImageRectWidth, - int maxImageRectWidth, - int recommendedImageRectHeight, - int maxImageRectHeight, - int recommendedSwapchainSampleCount, + int type, + long next, + int recommendedImageRectWidth, + int maxImageRectWidth, + int recommendedImageRectHeight, + int maxImageRectHeight, + int recommendedSwapchainSampleCount, int maxSwapchainSampleCount - ) { - type(type); - next(next); - recommendedImageRectWidth(recommendedImageRectWidth); - maxImageRectWidth(maxImageRectWidth); - recommendedImageRectHeight(recommendedImageRectHeight); - maxImageRectHeight(maxImageRectHeight); - recommendedSwapchainSampleCount(recommendedSwapchainSampleCount); - maxSwapchainSampleCount(maxSwapchainSampleCount); + ) { + type(type); + next(next); + recommendedImageRectWidth(recommendedImageRectWidth); + maxImageRectWidth(maxImageRectWidth); + recommendedImageRectHeight(recommendedImageRectHeight); + maxImageRectHeight(maxImageRectHeight); + recommendedSwapchainSampleCount(recommendedSwapchainSampleCount); + maxSwapchainSampleCount(maxSwapchainSampleCount); return this; } @@ -204,29 +195,29 @@ public XrViewConfigurationView set(XrViewConfigurationView src) { /** Returns a new {@code XrViewConfigurationView} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrViewConfigurationView malloc() { - return new XrViewConfigurationView(nmemAllocChecked(SIZEOF), null); + return wrap(XrViewConfigurationView.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrViewConfigurationView} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrViewConfigurationView calloc() { - return new XrViewConfigurationView(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrViewConfigurationView.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrViewConfigurationView} instance allocated with {@link BufferUtils}. */ public static XrViewConfigurationView create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrViewConfigurationView(memAddress(container), container); + return wrap(XrViewConfigurationView.class, memAddress(container), container); } /** Returns a new {@code XrViewConfigurationView} instance for the specified memory address. */ public static XrViewConfigurationView create(long address) { - return new XrViewConfigurationView(address, null); + return wrap(XrViewConfigurationView.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrViewConfigurationView createSafe(long address) { - return address == NULL ? null : new XrViewConfigurationView(address, null); + return address == NULL ? null : wrap(XrViewConfigurationView.class, address); } /** @@ -235,7 +226,7 @@ public static XrViewConfigurationView createSafe(long address) { * @param capacity the buffer capacity */ public static XrViewConfigurationView.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -244,7 +235,7 @@ public static XrViewConfigurationView.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrViewConfigurationView.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -254,7 +245,7 @@ public static XrViewConfigurationView.Buffer calloc(int capacity) { */ public static XrViewConfigurationView.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); } /** @@ -264,13 +255,13 @@ public static XrViewConfigurationView.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrViewConfigurationView.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 XrViewConfigurationView.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -279,7 +270,7 @@ public static XrViewConfigurationView.Buffer createSafe(long address, int capaci * @param stack the stack from which to allocate */ public static XrViewConfigurationView malloc(MemoryStack stack) { - return new XrViewConfigurationView(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrViewConfigurationView.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -288,7 +279,7 @@ public static XrViewConfigurationView malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrViewConfigurationView calloc(MemoryStack stack) { - return new XrViewConfigurationView(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrViewConfigurationView.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -298,7 +289,7 @@ public static XrViewConfigurationView calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrViewConfigurationView.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); } /** @@ -308,46 +299,46 @@ public static XrViewConfigurationView.Buffer malloc(int capacity, MemoryStack st * @param capacity the buffer capacity */ public static XrViewConfigurationView.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 + XrViewConfigurationView.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrViewConfigurationView.NEXT); } - /** Unsafe version of {@link #recommendedImageRectWidth}. */ - public static int nrecommendedImageRectWidth(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.RECOMMENDEDIMAGERECTWIDTH); } - /** Unsafe version of {@link #maxImageRectWidth}. */ - public static int nmaxImageRectWidth(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.MAXIMAGERECTWIDTH); } - /** Unsafe version of {@link #recommendedImageRectHeight}. */ - public static int nrecommendedImageRectHeight(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.RECOMMENDEDIMAGERECTHEIGHT); } - /** Unsafe version of {@link #maxImageRectHeight}. */ - public static int nmaxImageRectHeight(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.MAXIMAGERECTHEIGHT); } - /** Unsafe version of {@link #recommendedSwapchainSampleCount}. */ - public static int nrecommendedSwapchainSampleCount(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.RECOMMENDEDSWAPCHAINSAMPLECOUNT); } - /** Unsafe version of {@link #maxSwapchainSampleCount}. */ - public static int nmaxSwapchainSampleCount(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.MAXSWAPCHAINSAMPLECOUNT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrViewConfigurationView.NEXT, value); } - /** Unsafe version of {@link #recommendedImageRectWidth(int) recommendedImageRectWidth}. */ - public static void nrecommendedImageRectWidth(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.RECOMMENDEDIMAGERECTWIDTH, value); } - /** Unsafe version of {@link #maxImageRectWidth(int) maxImageRectWidth}. */ - public static void nmaxImageRectWidth(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.MAXIMAGERECTWIDTH, value); } - /** Unsafe version of {@link #recommendedImageRectHeight(int) recommendedImageRectHeight}. */ - public static void nrecommendedImageRectHeight(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.RECOMMENDEDIMAGERECTHEIGHT, value); } - /** Unsafe version of {@link #maxImageRectHeight(int) maxImageRectHeight}. */ - public static void nmaxImageRectHeight(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.MAXIMAGERECTHEIGHT, value); } - /** Unsafe version of {@link #recommendedSwapchainSampleCount(int) recommendedSwapchainSampleCount}. */ - public static void nrecommendedSwapchainSampleCount(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.RECOMMENDEDSWAPCHAINSAMPLECOUNT, value); } - /** Unsafe version of {@link #maxSwapchainSampleCount(int) maxSwapchainSampleCount}. */ - public static void nmaxSwapchainSampleCount(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.MAXSWAPCHAINSAMPLECOUNT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrViewConfigurationView.NEXT); } + /** Unsafe version of {@link #recommendedImageRectWidth}. */ + public static int nrecommendedImageRectWidth(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.RECOMMENDEDIMAGERECTWIDTH); } + /** Unsafe version of {@link #maxImageRectWidth}. */ + public static int nmaxImageRectWidth(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.MAXIMAGERECTWIDTH); } + /** Unsafe version of {@link #recommendedImageRectHeight}. */ + public static int nrecommendedImageRectHeight(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.RECOMMENDEDIMAGERECTHEIGHT); } + /** Unsafe version of {@link #maxImageRectHeight}. */ + public static int nmaxImageRectHeight(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.MAXIMAGERECTHEIGHT); } + /** Unsafe version of {@link #recommendedSwapchainSampleCount}. */ + public static int nrecommendedSwapchainSampleCount(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.RECOMMENDEDSWAPCHAINSAMPLECOUNT); } + /** Unsafe version of {@link #maxSwapchainSampleCount}. */ + public static int nmaxSwapchainSampleCount(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.MAXSWAPCHAINSAMPLECOUNT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrViewConfigurationView.NEXT, value); } + /** Unsafe version of {@link #recommendedImageRectWidth(int) recommendedImageRectWidth}. */ + public static void nrecommendedImageRectWidth(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.RECOMMENDEDIMAGERECTWIDTH, value); } + /** Unsafe version of {@link #maxImageRectWidth(int) maxImageRectWidth}. */ + public static void nmaxImageRectWidth(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.MAXIMAGERECTWIDTH, value); } + /** Unsafe version of {@link #recommendedImageRectHeight(int) recommendedImageRectHeight}. */ + public static void nrecommendedImageRectHeight(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.RECOMMENDEDIMAGERECTHEIGHT, value); } + /** Unsafe version of {@link #maxImageRectHeight(int) maxImageRectHeight}. */ + public static void nmaxImageRectHeight(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.MAXIMAGERECTHEIGHT, value); } + /** Unsafe version of {@link #recommendedSwapchainSampleCount(int) recommendedSwapchainSampleCount}. */ + public static void nrecommendedSwapchainSampleCount(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.RECOMMENDEDSWAPCHAINSAMPLECOUNT, value); } + /** Unsafe version of {@link #maxSwapchainSampleCount(int) maxSwapchainSampleCount}. */ + public static void nmaxSwapchainSampleCount(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.MAXSWAPCHAINSAMPLECOUNT, value); } + + // ----------------------------------- /** An array of {@link XrViewConfigurationView} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -357,9 +348,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrViewConfigurationView.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 XrViewConfigurationView#SIZEOF}, and its mark will be undefined.

        + * by {@link XrViewConfigurationView#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -384,56 +375,56 @@ protected Buffer self() { protected XrViewConfigurationView getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrViewConfigurationView#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrViewConfigurationView.ntype(address()); } - /** @return the value of the {@link XrViewConfigurationView#next} field. */ - @NativeType("void *") - public long next() { return XrViewConfigurationView.nnext(address()); } - /** @return the value of the {@link XrViewConfigurationView#recommendedImageRectWidth} field. */ - @NativeType("uint32_t") - public int recommendedImageRectWidth() { return XrViewConfigurationView.nrecommendedImageRectWidth(address()); } - /** @return the value of the {@link XrViewConfigurationView#maxImageRectWidth} field. */ - @NativeType("uint32_t") - public int maxImageRectWidth() { return XrViewConfigurationView.nmaxImageRectWidth(address()); } - /** @return the value of the {@link XrViewConfigurationView#recommendedImageRectHeight} field. */ - @NativeType("uint32_t") - public int recommendedImageRectHeight() { return XrViewConfigurationView.nrecommendedImageRectHeight(address()); } - /** @return the value of the {@link XrViewConfigurationView#maxImageRectHeight} field. */ - @NativeType("uint32_t") - public int maxImageRectHeight() { return XrViewConfigurationView.nmaxImageRectHeight(address()); } - /** @return the value of the {@link XrViewConfigurationView#recommendedSwapchainSampleCount} field. */ - @NativeType("uint32_t") - public int recommendedSwapchainSampleCount() { return XrViewConfigurationView.nrecommendedSwapchainSampleCount(address()); } - /** @return the value of the {@link XrViewConfigurationView#maxSwapchainSampleCount} field. */ - @NativeType("uint32_t") - public int maxSwapchainSampleCount() { return XrViewConfigurationView.nmaxSwapchainSampleCount(address()); } - - /** Sets the specified value to the {@link XrViewConfigurationView#type} field. */ - public XrViewConfigurationView.Buffer type(@NativeType("XrStructureType") int value) { XrViewConfigurationView.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_VIEW_CONFIGURATION_VIEW TYPE_VIEW_CONFIGURATION_VIEW} value to the {@link XrViewConfigurationView#type} field. */ - public XrViewConfigurationView.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW_CONFIGURATION_VIEW); } - /** Sets the specified value to the {@link XrViewConfigurationView#next} field. */ - public XrViewConfigurationView.Buffer next(@NativeType("void *") long value) { XrViewConfigurationView.nnext(address(), value); return this; } - /** Prepends the specified {@link XrFoveatedViewConfigurationViewVARJO} value to the {@code next} chain. */ - public XrViewConfigurationView.Buffer next(XrFoveatedViewConfigurationViewVARJO value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrViewConfigurationDepthRangeEXT} value to the {@code next} chain. */ - public XrViewConfigurationView.Buffer next(XrViewConfigurationDepthRangeEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrViewConfigurationViewFovEPIC} value to the {@code next} chain. */ - public XrViewConfigurationView.Buffer next(XrViewConfigurationViewFovEPIC value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrViewConfigurationView#recommendedImageRectWidth} field. */ - public XrViewConfigurationView.Buffer recommendedImageRectWidth(@NativeType("uint32_t") int value) { XrViewConfigurationView.nrecommendedImageRectWidth(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationView#maxImageRectWidth} field. */ - public XrViewConfigurationView.Buffer maxImageRectWidth(@NativeType("uint32_t") int value) { XrViewConfigurationView.nmaxImageRectWidth(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationView#recommendedImageRectHeight} field. */ - public XrViewConfigurationView.Buffer recommendedImageRectHeight(@NativeType("uint32_t") int value) { XrViewConfigurationView.nrecommendedImageRectHeight(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationView#maxImageRectHeight} field. */ - public XrViewConfigurationView.Buffer maxImageRectHeight(@NativeType("uint32_t") int value) { XrViewConfigurationView.nmaxImageRectHeight(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationView#recommendedSwapchainSampleCount} field. */ - public XrViewConfigurationView.Buffer recommendedSwapchainSampleCount(@NativeType("uint32_t") int value) { XrViewConfigurationView.nrecommendedSwapchainSampleCount(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationView#maxSwapchainSampleCount} field. */ - public XrViewConfigurationView.Buffer maxSwapchainSampleCount(@NativeType("uint32_t") int value) { XrViewConfigurationView.nmaxSwapchainSampleCount(address(), value); return this; } + + /** @return the value of the {@link XrViewConfigurationView#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrViewConfigurationView.ntype(address()); } + /** @return the value of the {@link XrViewConfigurationView#next} field. */ + @NativeType("void *") + public long next() { return XrViewConfigurationView.nnext(address()); } + /** @return the value of the {@link XrViewConfigurationView#recommendedImageRectWidth} field. */ + @NativeType("uint32_t") + public int recommendedImageRectWidth() { return XrViewConfigurationView.nrecommendedImageRectWidth(address()); } + /** @return the value of the {@link XrViewConfigurationView#maxImageRectWidth} field. */ + @NativeType("uint32_t") + public int maxImageRectWidth() { return XrViewConfigurationView.nmaxImageRectWidth(address()); } + /** @return the value of the {@link XrViewConfigurationView#recommendedImageRectHeight} field. */ + @NativeType("uint32_t") + public int recommendedImageRectHeight() { return XrViewConfigurationView.nrecommendedImageRectHeight(address()); } + /** @return the value of the {@link XrViewConfigurationView#maxImageRectHeight} field. */ + @NativeType("uint32_t") + public int maxImageRectHeight() { return XrViewConfigurationView.nmaxImageRectHeight(address()); } + /** @return the value of the {@link XrViewConfigurationView#recommendedSwapchainSampleCount} field. */ + @NativeType("uint32_t") + public int recommendedSwapchainSampleCount() { return XrViewConfigurationView.nrecommendedSwapchainSampleCount(address()); } + /** @return the value of the {@link XrViewConfigurationView#maxSwapchainSampleCount} field. */ + @NativeType("uint32_t") + public int maxSwapchainSampleCount() { return XrViewConfigurationView.nmaxSwapchainSampleCount(address()); } + + /** Sets the specified value to the {@link XrViewConfigurationView#type} field. */ + public XrViewConfigurationView.Buffer type(@NativeType("XrStructureType") int value) { XrViewConfigurationView.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_VIEW_CONFIGURATION_VIEW TYPE_VIEW_CONFIGURATION_VIEW} value to the {@link XrViewConfigurationView#type} field. */ + public XrViewConfigurationView.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW_CONFIGURATION_VIEW); } + /** Sets the specified value to the {@link XrViewConfigurationView#next} field. */ + public XrViewConfigurationView.Buffer next(@NativeType("void *") long value) { XrViewConfigurationView.nnext(address(), value); return this; } + /** Prepends the specified {@link XrFoveatedViewConfigurationViewVARJO} value to the {@code next} chain. */ + public XrViewConfigurationView.Buffer next(XrFoveatedViewConfigurationViewVARJO value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrViewConfigurationDepthRangeEXT} value to the {@code next} chain. */ + public XrViewConfigurationView.Buffer next(XrViewConfigurationDepthRangeEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrViewConfigurationViewFovEPIC} value to the {@code next} chain. */ + public XrViewConfigurationView.Buffer next(XrViewConfigurationViewFovEPIC value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrViewConfigurationView#recommendedImageRectWidth} field. */ + public XrViewConfigurationView.Buffer recommendedImageRectWidth(@NativeType("uint32_t") int value) { XrViewConfigurationView.nrecommendedImageRectWidth(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationView#maxImageRectWidth} field. */ + public XrViewConfigurationView.Buffer maxImageRectWidth(@NativeType("uint32_t") int value) { XrViewConfigurationView.nmaxImageRectWidth(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationView#recommendedImageRectHeight} field. */ + public XrViewConfigurationView.Buffer recommendedImageRectHeight(@NativeType("uint32_t") int value) { XrViewConfigurationView.nrecommendedImageRectHeight(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationView#maxImageRectHeight} field. */ + public XrViewConfigurationView.Buffer maxImageRectHeight(@NativeType("uint32_t") int value) { XrViewConfigurationView.nmaxImageRectHeight(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationView#recommendedSwapchainSampleCount} field. */ + public XrViewConfigurationView.Buffer recommendedSwapchainSampleCount(@NativeType("uint32_t") int value) { XrViewConfigurationView.nrecommendedSwapchainSampleCount(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationView#maxSwapchainSampleCount} field. */ + public XrViewConfigurationView.Buffer maxSwapchainSampleCount(@NativeType("uint32_t") int value) { XrViewConfigurationView.nmaxSwapchainSampleCount(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationViewFovEPIC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationViewFovEPIC.java index 65b39c201e..99795f77d8 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationViewFovEPIC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationViewFovEPIC.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.*; + /** * View Configuration Field-of-View. * @@ -39,8 +39,8 @@ * {@link XrFovf XrFovf} {@link #recommendedFov}; * {@link XrFovf XrFovf} {@link #maxMutableFov}; * } - */ -public class XrViewConfigurationViewFovEPIC extends Struct implements NativeResource { + */ +public class XrViewConfigurationViewFovEPIC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,35 +50,26 @@ public class XrViewConfigurationViewFovEPIC extends Struct consumer) { consumer.accept(recommendedFov()); return this; } - /** Copies the specified {@link XrFovf} to the {@link #maxMutableFov} field. */ - public XrViewConfigurationViewFovEPIC maxMutableFov(XrFovf value) { nmaxMutableFov(address(), value); return this; } - /** Passes the {@link #maxMutableFov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrViewConfigurationViewFovEPIC maxMutableFov(java.util.function.Consumer consumer) { consumer.accept(maxMutableFov()); 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()); } + /** the recommended field-of-view based on the current user IPD. */ + public XrFovf recommendedFov() { return nrecommendedFov(address()); } + /** the maximum field-of-view that the runtime can display. */ + public XrFovf maxMutableFov() { return nmaxMutableFov(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrViewConfigurationViewFovEPIC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link EPICViewConfigurationFov#XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC} value to the {@link #type} field. */ + public XrViewConfigurationViewFovEPIC type$Default() { return type(EPICViewConfigurationFov.XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC); } + /** Sets the specified value to the {@link #next} field. */ + public XrViewConfigurationViewFovEPIC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrFovf} to the {@link #recommendedFov} field. */ + public XrViewConfigurationViewFovEPIC recommendedFov(XrFovf value) { nrecommendedFov(address(), value); return this; } + /** Passes the {@link #recommendedFov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrViewConfigurationViewFovEPIC recommendedFov(java.util.function.Consumer consumer) { consumer.accept(recommendedFov()); return this; } + /** Copies the specified {@link XrFovf} to the {@link #maxMutableFov} field. */ + public XrViewConfigurationViewFovEPIC maxMutableFov(XrFovf value) { nmaxMutableFov(address(), value); return this; } + /** Passes the {@link #maxMutableFov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrViewConfigurationViewFovEPIC maxMutableFov(java.util.function.Consumer consumer) { consumer.accept(maxMutableFov()); return this; } /** Initializes this struct with the specified values. */ public XrViewConfigurationViewFovEPIC set( - int type, - long next, - XrFovf recommendedFov, + int type, + long next, + XrFovf recommendedFov, XrFovf maxMutableFov - ) { - type(type); - next(next); - recommendedFov(recommendedFov); - maxMutableFov(maxMutableFov); + ) { + type(type); + next(next); + recommendedFov(recommendedFov); + maxMutableFov(maxMutableFov); return this; } @@ -151,29 +142,29 @@ public XrViewConfigurationViewFovEPIC set(XrViewConfigurationViewFovEPIC src) { /** Returns a new {@code XrViewConfigurationViewFovEPIC} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrViewConfigurationViewFovEPIC malloc() { - return new XrViewConfigurationViewFovEPIC(nmemAllocChecked(SIZEOF), null); + return wrap(XrViewConfigurationViewFovEPIC.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrViewConfigurationViewFovEPIC} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrViewConfigurationViewFovEPIC calloc() { - return new XrViewConfigurationViewFovEPIC(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrViewConfigurationViewFovEPIC.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrViewConfigurationViewFovEPIC} instance allocated with {@link BufferUtils}. */ public static XrViewConfigurationViewFovEPIC create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrViewConfigurationViewFovEPIC(memAddress(container), container); + return wrap(XrViewConfigurationViewFovEPIC.class, memAddress(container), container); } /** Returns a new {@code XrViewConfigurationViewFovEPIC} instance for the specified memory address. */ public static XrViewConfigurationViewFovEPIC create(long address) { - return new XrViewConfigurationViewFovEPIC(address, null); + return wrap(XrViewConfigurationViewFovEPIC.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrViewConfigurationViewFovEPIC createSafe(long address) { - return address == NULL ? null : new XrViewConfigurationViewFovEPIC(address, null); + return address == NULL ? null : wrap(XrViewConfigurationViewFovEPIC.class, address); } /** @@ -182,7 +173,7 @@ public static XrViewConfigurationViewFovEPIC createSafe(long address) { * @param capacity the buffer capacity */ public static XrViewConfigurationViewFovEPIC.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 XrViewConfigurationViewFovEPIC.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrViewConfigurationViewFovEPIC.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 XrViewConfigurationViewFovEPIC.Buffer calloc(int capacity) { */ public static XrViewConfigurationViewFovEPIC.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 XrViewConfigurationViewFovEPIC.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrViewConfigurationViewFovEPIC.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 XrViewConfigurationViewFovEPIC.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 XrViewConfigurationViewFovEPIC.Buffer createSafe(long address, int * @param stack the stack from which to allocate */ public static XrViewConfigurationViewFovEPIC malloc(MemoryStack stack) { - return new XrViewConfigurationViewFovEPIC(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrViewConfigurationViewFovEPIC.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -235,7 +226,7 @@ public static XrViewConfigurationViewFovEPIC malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrViewConfigurationViewFovEPIC calloc(MemoryStack stack) { - return new XrViewConfigurationViewFovEPIC(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrViewConfigurationViewFovEPIC.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -245,7 +236,7 @@ public static XrViewConfigurationViewFovEPIC calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrViewConfigurationViewFovEPIC.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 XrViewConfigurationViewFovEPIC.Buffer malloc(int capacity, MemoryS * @param capacity the buffer capacity */ public static XrViewConfigurationViewFovEPIC.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 + XrViewConfigurationViewFovEPIC.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrViewConfigurationViewFovEPIC.NEXT); } - /** Unsafe version of {@link #recommendedFov}. */ - public static XrFovf nrecommendedFov(long struct) { return XrFovf.create(struct + XrViewConfigurationViewFovEPIC.RECOMMENDEDFOV); } - /** Unsafe version of {@link #maxMutableFov}. */ - public static XrFovf nmaxMutableFov(long struct) { return XrFovf.create(struct + XrViewConfigurationViewFovEPIC.MAXMUTABLEFOV); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationViewFovEPIC.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrViewConfigurationViewFovEPIC.NEXT, value); } - /** Unsafe version of {@link #recommendedFov(XrFovf) recommendedFov}. */ - public static void nrecommendedFov(long struct, XrFovf value) { memCopy(value.address(), struct + XrViewConfigurationViewFovEPIC.RECOMMENDEDFOV, XrFovf.SIZEOF); } - /** Unsafe version of {@link #maxMutableFov(XrFovf) maxMutableFov}. */ - public static void nmaxMutableFov(long struct, XrFovf value) { memCopy(value.address(), struct + XrViewConfigurationViewFovEPIC.MAXMUTABLEFOV, XrFovf.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationViewFovEPIC.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrViewConfigurationViewFovEPIC.NEXT); } + /** Unsafe version of {@link #recommendedFov}. */ + public static XrFovf nrecommendedFov(long struct) { return XrFovf.create(struct + XrViewConfigurationViewFovEPIC.RECOMMENDEDFOV); } + /** Unsafe version of {@link #maxMutableFov}. */ + public static XrFovf nmaxMutableFov(long struct) { return XrFovf.create(struct + XrViewConfigurationViewFovEPIC.MAXMUTABLEFOV); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationViewFovEPIC.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrViewConfigurationViewFovEPIC.NEXT, value); } + /** Unsafe version of {@link #recommendedFov(XrFovf) recommendedFov}. */ + public static void nrecommendedFov(long struct, XrFovf value) { memCopy(value.address(), struct + XrViewConfigurationViewFovEPIC.RECOMMENDEDFOV, XrFovf.SIZEOF); } + /** Unsafe version of {@link #maxMutableFov(XrFovf) maxMutableFov}. */ + public static void nmaxMutableFov(long struct, XrFovf value) { memCopy(value.address(), struct + XrViewConfigurationViewFovEPIC.MAXMUTABLEFOV, XrFovf.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrViewConfigurationViewFovEPIC} 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 XrViewConfigurationViewFovEPIC#SIZEOF}, and its mark will be undefined.

        + * by {@link XrViewConfigurationViewFovEPIC#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -315,32 +306,32 @@ protected Buffer self() { protected XrViewConfigurationViewFovEPIC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrViewConfigurationViewFovEPIC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrViewConfigurationViewFovEPIC.ntype(address()); } - /** @return the value of the {@link XrViewConfigurationViewFovEPIC#next} field. */ - @NativeType("void const *") - public long next() { return XrViewConfigurationViewFovEPIC.nnext(address()); } - /** @return a {@link XrFovf} view of the {@link XrViewConfigurationViewFovEPIC#recommendedFov} field. */ - public XrFovf recommendedFov() { return XrViewConfigurationViewFovEPIC.nrecommendedFov(address()); } - /** @return a {@link XrFovf} view of the {@link XrViewConfigurationViewFovEPIC#maxMutableFov} field. */ - public XrFovf maxMutableFov() { return XrViewConfigurationViewFovEPIC.nmaxMutableFov(address()); } - - /** Sets the specified value to the {@link XrViewConfigurationViewFovEPIC#type} field. */ - public XrViewConfigurationViewFovEPIC.Buffer type(@NativeType("XrStructureType") int value) { XrViewConfigurationViewFovEPIC.ntype(address(), value); return this; } - /** Sets the {@link EPICViewConfigurationFov#XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC} value to the {@link XrViewConfigurationViewFovEPIC#type} field. */ - public XrViewConfigurationViewFovEPIC.Buffer type$Default() { return type(EPICViewConfigurationFov.XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC); } - /** Sets the specified value to the {@link XrViewConfigurationViewFovEPIC#next} field. */ - public XrViewConfigurationViewFovEPIC.Buffer next(@NativeType("void const *") long value) { XrViewConfigurationViewFovEPIC.nnext(address(), value); return this; } - /** Copies the specified {@link XrFovf} to the {@link XrViewConfigurationViewFovEPIC#recommendedFov} field. */ - public XrViewConfigurationViewFovEPIC.Buffer recommendedFov(XrFovf value) { XrViewConfigurationViewFovEPIC.nrecommendedFov(address(), value); return this; } - /** Passes the {@link XrViewConfigurationViewFovEPIC#recommendedFov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrViewConfigurationViewFovEPIC.Buffer recommendedFov(java.util.function.Consumer consumer) { consumer.accept(recommendedFov()); return this; } - /** Copies the specified {@link XrFovf} to the {@link XrViewConfigurationViewFovEPIC#maxMutableFov} field. */ - public XrViewConfigurationViewFovEPIC.Buffer maxMutableFov(XrFovf value) { XrViewConfigurationViewFovEPIC.nmaxMutableFov(address(), value); return this; } - /** Passes the {@link XrViewConfigurationViewFovEPIC#maxMutableFov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrViewConfigurationViewFovEPIC.Buffer maxMutableFov(java.util.function.Consumer consumer) { consumer.accept(maxMutableFov()); return this; } + + /** @return the value of the {@link XrViewConfigurationViewFovEPIC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrViewConfigurationViewFovEPIC.ntype(address()); } + /** @return the value of the {@link XrViewConfigurationViewFovEPIC#next} field. */ + @NativeType("void const *") + public long next() { return XrViewConfigurationViewFovEPIC.nnext(address()); } + /** @return a {@link XrFovf} view of the {@link XrViewConfigurationViewFovEPIC#recommendedFov} field. */ + public XrFovf recommendedFov() { return XrViewConfigurationViewFovEPIC.nrecommendedFov(address()); } + /** @return a {@link XrFovf} view of the {@link XrViewConfigurationViewFovEPIC#maxMutableFov} field. */ + public XrFovf maxMutableFov() { return XrViewConfigurationViewFovEPIC.nmaxMutableFov(address()); } + + /** Sets the specified value to the {@link XrViewConfigurationViewFovEPIC#type} field. */ + public XrViewConfigurationViewFovEPIC.Buffer type(@NativeType("XrStructureType") int value) { XrViewConfigurationViewFovEPIC.ntype(address(), value); return this; } + /** Sets the {@link EPICViewConfigurationFov#XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC} value to the {@link XrViewConfigurationViewFovEPIC#type} field. */ + public XrViewConfigurationViewFovEPIC.Buffer type$Default() { return type(EPICViewConfigurationFov.XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC); } + /** Sets the specified value to the {@link XrViewConfigurationViewFovEPIC#next} field. */ + public XrViewConfigurationViewFovEPIC.Buffer next(@NativeType("void const *") long value) { XrViewConfigurationViewFovEPIC.nnext(address(), value); return this; } + /** Copies the specified {@link XrFovf} to the {@link XrViewConfigurationViewFovEPIC#recommendedFov} field. */ + public XrViewConfigurationViewFovEPIC.Buffer recommendedFov(XrFovf value) { XrViewConfigurationViewFovEPIC.nrecommendedFov(address(), value); return this; } + /** Passes the {@link XrViewConfigurationViewFovEPIC#recommendedFov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrViewConfigurationViewFovEPIC.Buffer recommendedFov(java.util.function.Consumer consumer) { consumer.accept(recommendedFov()); return this; } + /** Copies the specified {@link XrFovf} to the {@link XrViewConfigurationViewFovEPIC#maxMutableFov} field. */ + public XrViewConfigurationViewFovEPIC.Buffer maxMutableFov(XrFovf value) { XrViewConfigurationViewFovEPIC.nmaxMutableFov(address(), value); return this; } + /** Passes the {@link XrViewConfigurationViewFovEPIC#maxMutableFov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrViewConfigurationViewFovEPIC.Buffer maxMutableFov(java.util.function.Consumer consumer) { consumer.accept(maxMutableFov()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewLocateFoveatedRenderingVARJO.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewLocateFoveatedRenderingVARJO.java index 84ab1cf89a..56a56cea07 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewLocateFoveatedRenderingVARJO.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewLocateFoveatedRenderingVARJO.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.*; + /** * Request foveated FoV. * @@ -42,8 +42,8 @@ * void const * {@link #next}; * XrBool32 {@link #foveatedRenderingActive}; * } - */ -public class XrViewLocateFoveatedRenderingVARJO extends Struct implements NativeResource { + */ +public class XrViewLocateFoveatedRenderingVARJO extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,32 +53,23 @@ public class XrViewLocateFoveatedRenderingVARJO extends Struct implements NativeResource { @@ -275,9 +266,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 XrViewLocateFoveatedRenderingVARJO#SIZEOF}, and its mark will be undefined.

        + * by {@link XrViewLocateFoveatedRenderingVARJO#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -302,25 +293,25 @@ protected Buffer self() { protected XrViewLocateFoveatedRenderingVARJO getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrViewLocateFoveatedRenderingVARJO#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrViewLocateFoveatedRenderingVARJO.ntype(address()); } - /** @return the value of the {@link XrViewLocateFoveatedRenderingVARJO#next} field. */ - @NativeType("void const *") - public long next() { return XrViewLocateFoveatedRenderingVARJO.nnext(address()); } - /** @return the value of the {@link XrViewLocateFoveatedRenderingVARJO#foveatedRenderingActive} field. */ - @NativeType("XrBool32") - public boolean foveatedRenderingActive() { return XrViewLocateFoveatedRenderingVARJO.nfoveatedRenderingActive(address()) != 0; } - - /** Sets the specified value to the {@link XrViewLocateFoveatedRenderingVARJO#type} field. */ - public XrViewLocateFoveatedRenderingVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrViewLocateFoveatedRenderingVARJO.ntype(address(), value); return this; } - /** Sets the {@link VARJOFoveatedRendering#XR_TYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJO TYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJO} value to the {@link XrViewLocateFoveatedRenderingVARJO#type} field. */ - public XrViewLocateFoveatedRenderingVARJO.Buffer type$Default() { return type(VARJOFoveatedRendering.XR_TYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJO); } - /** Sets the specified value to the {@link XrViewLocateFoveatedRenderingVARJO#next} field. */ - public XrViewLocateFoveatedRenderingVARJO.Buffer next(@NativeType("void const *") long value) { XrViewLocateFoveatedRenderingVARJO.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrViewLocateFoveatedRenderingVARJO#foveatedRenderingActive} field. */ - public XrViewLocateFoveatedRenderingVARJO.Buffer foveatedRenderingActive(@NativeType("XrBool32") boolean value) { XrViewLocateFoveatedRenderingVARJO.nfoveatedRenderingActive(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrViewLocateFoveatedRenderingVARJO#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrViewLocateFoveatedRenderingVARJO.ntype(address()); } + /** @return the value of the {@link XrViewLocateFoveatedRenderingVARJO#next} field. */ + @NativeType("void const *") + public long next() { return XrViewLocateFoveatedRenderingVARJO.nnext(address()); } + /** @return the value of the {@link XrViewLocateFoveatedRenderingVARJO#foveatedRenderingActive} field. */ + @NativeType("XrBool32") + public boolean foveatedRenderingActive() { return XrViewLocateFoveatedRenderingVARJO.nfoveatedRenderingActive(address()) != 0; } + + /** Sets the specified value to the {@link XrViewLocateFoveatedRenderingVARJO#type} field. */ + public XrViewLocateFoveatedRenderingVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrViewLocateFoveatedRenderingVARJO.ntype(address(), value); return this; } + /** Sets the {@link VARJOFoveatedRendering#XR_TYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJO TYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJO} value to the {@link XrViewLocateFoveatedRenderingVARJO#type} field. */ + public XrViewLocateFoveatedRenderingVARJO.Buffer type$Default() { return type(VARJOFoveatedRendering.XR_TYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJO); } + /** Sets the specified value to the {@link XrViewLocateFoveatedRenderingVARJO#next} field. */ + public XrViewLocateFoveatedRenderingVARJO.Buffer next(@NativeType("void const *") long value) { XrViewLocateFoveatedRenderingVARJO.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrViewLocateFoveatedRenderingVARJO#foveatedRenderingActive} field. */ + public XrViewLocateFoveatedRenderingVARJO.Buffer foveatedRenderingActive(@NativeType("XrBool32") boolean value) { XrViewLocateFoveatedRenderingVARJO.nfoveatedRenderingActive(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewLocateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewLocateInfo.java index c5610c845e..c38dd456a1 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewLocateInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewLocateInfo.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.*; + /** * Struct containing view locate information. * @@ -48,8 +48,8 @@ * XrTime {@link #displayTime}; * XrSpace {@link #space}; * } - */ -public class XrViewLocateInfo extends Struct implements NativeResource { + */ +public class XrViewLocateInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -59,38 +59,29 @@ public class XrViewLocateInfo extends Struct implements Native /** The struct member offsets. */ public static final int - TYPE, - NEXT, - VIEWCONFIGURATIONTYPE, - DISPLAYTIME, - SPACE; + TYPE, + NEXT, + VIEWCONFIGURATIONTYPE, + DISPLAYTIME, + SPACE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(8), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(8), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - VIEWCONFIGURATIONTYPE = layout.offsetof(2); - DISPLAYTIME = layout.offsetof(3); - SPACE = layout.offsetof(4); - } - - protected XrViewLocateInfo(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrViewLocateInfo create(long address, @Nullable ByteBuffer container) { - return new XrViewLocateInfo(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + VIEWCONFIGURATIONTYPE = layout.offsetof(2); + DISPLAYTIME = layout.offsetof(3); + SPACE = layout.offsetof(4); } /** @@ -105,51 +96,51 @@ public XrViewLocateInfo(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** {@code XrViewConfigurationType} to query for. */ - @NativeType("XrViewConfigurationType") - public int viewConfigurationType() { return nviewConfigurationType(address()); } - /** the time for which the view poses are predicted. */ - @NativeType("XrTime") - public long displayTime() { return ndisplayTime(address()); } - /** the {@code XrSpace} in which the {@code pose} in each {@link XrView} is expressed. */ - @NativeType("XrSpace") - public long space() { return nspace(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrViewLocateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_VIEW_LOCATE_INFO TYPE_VIEW_LOCATE_INFO} value to the {@code type} field. */ - public XrViewLocateInfo type$Default() { return type(XR10.XR_TYPE_VIEW_LOCATE_INFO); } - /** Sets the specified value to the {@code next} field. */ - public XrViewLocateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrViewLocateFoveatedRenderingVARJO} value to the {@code next} chain. */ - public XrViewLocateInfo next(XrViewLocateFoveatedRenderingVARJO value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #viewConfigurationType} field. */ - public XrViewLocateInfo viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { nviewConfigurationType(address(), value); return this; } - /** Sets the specified value to the {@link #displayTime} field. */ - public XrViewLocateInfo displayTime(@NativeType("XrTime") long value) { ndisplayTime(address(), value); return this; } - /** Sets the specified value to the {@link #space} field. */ - public XrViewLocateInfo space(XrSpace value) { nspace(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** {@code XrViewConfigurationType} to query for. */ + @NativeType("XrViewConfigurationType") + public int viewConfigurationType() { return nviewConfigurationType(address()); } + /** the time for which the view poses are predicted. */ + @NativeType("XrTime") + public long displayTime() { return ndisplayTime(address()); } + /** the {@code XrSpace} in which the {@code pose} in each {@link XrView} is expressed. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrViewLocateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_VIEW_LOCATE_INFO TYPE_VIEW_LOCATE_INFO} value to the {@code type} field. */ + public XrViewLocateInfo type$Default() { return type(XR10.XR_TYPE_VIEW_LOCATE_INFO); } + /** Sets the specified value to the {@code next} field. */ + public XrViewLocateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrViewLocateFoveatedRenderingVARJO} value to the {@code next} chain. */ + public XrViewLocateInfo next(XrViewLocateFoveatedRenderingVARJO value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #viewConfigurationType} field. */ + public XrViewLocateInfo viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { nviewConfigurationType(address(), value); return this; } + /** Sets the specified value to the {@link #displayTime} field. */ + public XrViewLocateInfo displayTime(@NativeType("XrTime") long value) { ndisplayTime(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrViewLocateInfo space(XrSpace value) { nspace(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrViewLocateInfo set( - int type, - long next, - int viewConfigurationType, - long displayTime, + int type, + long next, + int viewConfigurationType, + long displayTime, XrSpace space - ) { - type(type); - next(next); - viewConfigurationType(viewConfigurationType); - displayTime(displayTime); - space(space); + ) { + type(type); + next(next); + viewConfigurationType(viewConfigurationType); + displayTime(displayTime); + space(space); return this; } @@ -170,29 +161,29 @@ public XrViewLocateInfo set(XrViewLocateInfo src) { /** Returns a new {@code XrViewLocateInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrViewLocateInfo malloc() { - return new XrViewLocateInfo(nmemAllocChecked(SIZEOF), null); + return wrap(XrViewLocateInfo.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrViewLocateInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrViewLocateInfo calloc() { - return new XrViewLocateInfo(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrViewLocateInfo.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrViewLocateInfo} instance allocated with {@link BufferUtils}. */ public static XrViewLocateInfo create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrViewLocateInfo(memAddress(container), container); + return wrap(XrViewLocateInfo.class, memAddress(container), container); } /** Returns a new {@code XrViewLocateInfo} instance for the specified memory address. */ public static XrViewLocateInfo create(long address) { - return new XrViewLocateInfo(address, null); + return wrap(XrViewLocateInfo.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrViewLocateInfo createSafe(long address) { - return address == NULL ? null : new XrViewLocateInfo(address, null); + return address == NULL ? null : wrap(XrViewLocateInfo.class, address); } /** @@ -201,7 +192,7 @@ public static XrViewLocateInfo createSafe(long address) { * @param capacity the buffer capacity */ public static XrViewLocateInfo.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -210,7 +201,7 @@ public static XrViewLocateInfo.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrViewLocateInfo.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -220,7 +211,7 @@ public static XrViewLocateInfo.Buffer calloc(int capacity) { */ public static XrViewLocateInfo.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); } /** @@ -230,13 +221,13 @@ public static XrViewLocateInfo.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrViewLocateInfo.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 XrViewLocateInfo.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -245,7 +236,7 @@ public static XrViewLocateInfo.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrViewLocateInfo malloc(MemoryStack stack) { - return new XrViewLocateInfo(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrViewLocateInfo.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -254,7 +245,7 @@ public static XrViewLocateInfo malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrViewLocateInfo calloc(MemoryStack stack) { - return new XrViewLocateInfo(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrViewLocateInfo.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -264,7 +255,7 @@ public static XrViewLocateInfo calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrViewLocateInfo.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); } /** @@ -274,32 +265,32 @@ public static XrViewLocateInfo.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrViewLocateInfo.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 + XrViewLocateInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrViewLocateInfo.NEXT); } - /** Unsafe version of {@link #viewConfigurationType}. */ - public static int nviewConfigurationType(long struct) { return UNSAFE.getInt(null, struct + XrViewLocateInfo.VIEWCONFIGURATIONTYPE); } - /** Unsafe version of {@link #displayTime}. */ - public static long ndisplayTime(long struct) { return UNSAFE.getLong(null, struct + XrViewLocateInfo.DISPLAYTIME); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrViewLocateInfo.SPACE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViewLocateInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrViewLocateInfo.NEXT, value); } - /** Unsafe version of {@link #viewConfigurationType(int) viewConfigurationType}. */ - public static void nviewConfigurationType(long struct, int value) { UNSAFE.putInt(null, struct + XrViewLocateInfo.VIEWCONFIGURATIONTYPE, value); } - /** Unsafe version of {@link #displayTime(long) displayTime}. */ - public static void ndisplayTime(long struct, long value) { UNSAFE.putLong(null, struct + XrViewLocateInfo.DISPLAYTIME, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrViewLocateInfo.SPACE, value.address()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrViewLocateInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrViewLocateInfo.NEXT); } + /** Unsafe version of {@link #viewConfigurationType}. */ + public static int nviewConfigurationType(long struct) { return UNSAFE.getInt(null, struct + XrViewLocateInfo.VIEWCONFIGURATIONTYPE); } + /** Unsafe version of {@link #displayTime}. */ + public static long ndisplayTime(long struct) { return UNSAFE.getLong(null, struct + XrViewLocateInfo.DISPLAYTIME); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrViewLocateInfo.SPACE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViewLocateInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrViewLocateInfo.NEXT, value); } + /** Unsafe version of {@link #viewConfigurationType(int) viewConfigurationType}. */ + public static void nviewConfigurationType(long struct, int value) { UNSAFE.putInt(null, struct + XrViewLocateInfo.VIEWCONFIGURATIONTYPE, value); } + /** Unsafe version of {@link #displayTime(long) displayTime}. */ + public static void ndisplayTime(long struct, long value) { UNSAFE.putLong(null, struct + XrViewLocateInfo.DISPLAYTIME, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrViewLocateInfo.SPACE, value.address()); } /** * Validates pointer members that should not be {@code NULL}. @@ -308,9 +299,9 @@ public static XrViewLocateInfo.Buffer calloc(int capacity, MemoryStack stack) { */ public static void validate(long struct) { check(memGetAddress(struct + XrViewLocateInfo.SPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrViewLocateInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -320,9 +311,9 @@ public static class Buffer extends StructBuffer implem /** * Creates a new {@code XrViewLocateInfo.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 XrViewLocateInfo#SIZEOF}, and its mark will be undefined.

        + * by {@link XrViewLocateInfo#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -347,37 +338,37 @@ protected Buffer self() { protected XrViewLocateInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrViewLocateInfo.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrViewLocateInfo.nnext(address()); } - /** @return the value of the {@link XrViewLocateInfo#viewConfigurationType} field. */ - @NativeType("XrViewConfigurationType") - public int viewConfigurationType() { return XrViewLocateInfo.nviewConfigurationType(address()); } - /** @return the value of the {@link XrViewLocateInfo#displayTime} field. */ - @NativeType("XrTime") - public long displayTime() { return XrViewLocateInfo.ndisplayTime(address()); } - /** @return the value of the {@link XrViewLocateInfo#space} field. */ - @NativeType("XrSpace") - public long space() { return XrViewLocateInfo.nspace(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrViewLocateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrViewLocateInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_VIEW_LOCATE_INFO TYPE_VIEW_LOCATE_INFO} value to the {@code type} field. */ - public XrViewLocateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW_LOCATE_INFO); } - /** Sets the specified value to the {@code next} field. */ - public XrViewLocateInfo.Buffer next(@NativeType("void const *") long value) { XrViewLocateInfo.nnext(address(), value); return this; } - /** Prepends the specified {@link XrViewLocateFoveatedRenderingVARJO} value to the {@code next} chain. */ - public XrViewLocateInfo.Buffer next(XrViewLocateFoveatedRenderingVARJO value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrViewLocateInfo#viewConfigurationType} field. */ - public XrViewLocateInfo.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrViewLocateInfo.nviewConfigurationType(address(), value); return this; } - /** Sets the specified value to the {@link XrViewLocateInfo#displayTime} field. */ - public XrViewLocateInfo.Buffer displayTime(@NativeType("XrTime") long value) { XrViewLocateInfo.ndisplayTime(address(), value); return this; } - /** Sets the specified value to the {@link XrViewLocateInfo#space} field. */ - public XrViewLocateInfo.Buffer space(XrSpace value) { XrViewLocateInfo.nspace(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrViewLocateInfo.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrViewLocateInfo.nnext(address()); } + /** @return the value of the {@link XrViewLocateInfo#viewConfigurationType} field. */ + @NativeType("XrViewConfigurationType") + public int viewConfigurationType() { return XrViewLocateInfo.nviewConfigurationType(address()); } + /** @return the value of the {@link XrViewLocateInfo#displayTime} field. */ + @NativeType("XrTime") + public long displayTime() { return XrViewLocateInfo.ndisplayTime(address()); } + /** @return the value of the {@link XrViewLocateInfo#space} field. */ + @NativeType("XrSpace") + public long space() { return XrViewLocateInfo.nspace(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrViewLocateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrViewLocateInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_VIEW_LOCATE_INFO TYPE_VIEW_LOCATE_INFO} value to the {@code type} field. */ + public XrViewLocateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW_LOCATE_INFO); } + /** Sets the specified value to the {@code next} field. */ + public XrViewLocateInfo.Buffer next(@NativeType("void const *") long value) { XrViewLocateInfo.nnext(address(), value); return this; } + /** Prepends the specified {@link XrViewLocateFoveatedRenderingVARJO} value to the {@code next} chain. */ + public XrViewLocateInfo.Buffer next(XrViewLocateFoveatedRenderingVARJO value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrViewLocateInfo#viewConfigurationType} field. */ + public XrViewLocateInfo.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrViewLocateInfo.nviewConfigurationType(address(), value); return this; } + /** Sets the specified value to the {@link XrViewLocateInfo#displayTime} field. */ + public XrViewLocateInfo.Buffer displayTime(@NativeType("XrTime") long value) { XrViewLocateInfo.ndisplayTime(address(), value); return this; } + /** Sets the specified value to the {@link XrViewLocateInfo#space} field. */ + public XrViewLocateInfo.Buffer space(XrSpace value) { XrViewLocateInfo.nspace(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewState.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewState.java index ace9898579..6fbf23cd09 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewState.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewState.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.*; + /** * Struct containing additional view state. * @@ -42,8 +42,8 @@ * void * {@link #next}; * XrViewStateFlags {@link #viewStateFlags}; * } - */ -public class XrViewState extends Struct implements NativeResource { + */ +public class XrViewState extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,32 +53,23 @@ public class XrViewState extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - TYPE, - NEXT, - VIEWSTATEFLAGS; + TYPE, + NEXT, + VIEWSTATEFLAGS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - VIEWSTATEFLAGS = layout.offsetof(2); - } - - protected XrViewState(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrViewState create(long address, @Nullable ByteBuffer container) { - return new XrViewState(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + VIEWSTATEFLAGS = layout.offsetof(2); } /** @@ -93,35 +84,35 @@ public XrViewState(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 bitmask of {@code XrViewStateFlagBits} indicating state for all views. */ - @NativeType("XrViewStateFlags") - public long viewStateFlags() { return nviewStateFlags(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrViewState type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_VIEW_STATE TYPE_VIEW_STATE} value to the {@link #type} field. */ - public XrViewState type$Default() { return type(XR10.XR_TYPE_VIEW_STATE); } - /** Sets the specified value to the {@link #next} field. */ - public XrViewState next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #viewStateFlags} field. */ - public XrViewState viewStateFlags(@NativeType("XrViewStateFlags") long value) { nviewStateFlags(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 bitmask of {@code XrViewStateFlagBits} indicating state for all views. */ + @NativeType("XrViewStateFlags") + public long viewStateFlags() { return nviewStateFlags(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrViewState type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_VIEW_STATE TYPE_VIEW_STATE} value to the {@link #type} field. */ + public XrViewState type$Default() { return type(XR10.XR_TYPE_VIEW_STATE); } + /** Sets the specified value to the {@link #next} field. */ + public XrViewState next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #viewStateFlags} field. */ + public XrViewState viewStateFlags(@NativeType("XrViewStateFlags") long value) { nviewStateFlags(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrViewState set( - int type, - long next, + int type, + long next, long viewStateFlags - ) { - type(type); - next(next); - viewStateFlags(viewStateFlags); + ) { + type(type); + next(next); + viewStateFlags(viewStateFlags); return this; } @@ -142,29 +133,29 @@ public XrViewState set(XrViewState src) { /** Returns a new {@code XrViewState} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrViewState malloc() { - return new XrViewState(nmemAllocChecked(SIZEOF), null); + return wrap(XrViewState.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrViewState} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrViewState calloc() { - return new XrViewState(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrViewState.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrViewState} instance allocated with {@link BufferUtils}. */ public static XrViewState create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrViewState(memAddress(container), container); + return wrap(XrViewState.class, memAddress(container), container); } /** Returns a new {@code XrViewState} instance for the specified memory address. */ public static XrViewState create(long address) { - return new XrViewState(address, null); + return wrap(XrViewState.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrViewState createSafe(long address) { - return address == NULL ? null : new XrViewState(address, null); + return address == NULL ? null : wrap(XrViewState.class, address); } /** @@ -173,7 +164,7 @@ public static XrViewState createSafe(long address) { * @param capacity the buffer capacity */ public static XrViewState.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -182,7 +173,7 @@ public static XrViewState.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrViewState.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -192,7 +183,7 @@ public static XrViewState.Buffer calloc(int capacity) { */ public static XrViewState.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); } /** @@ -202,13 +193,13 @@ public static XrViewState.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrViewState.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 XrViewState.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -217,7 +208,7 @@ public static XrViewState.Buffer createSafe(long address, int capacity) { * @param stack the stack from which to allocate */ public static XrViewState malloc(MemoryStack stack) { - return new XrViewState(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrViewState.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -226,7 +217,7 @@ public static XrViewState malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrViewState calloc(MemoryStack stack) { - return new XrViewState(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrViewState.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -236,7 +227,7 @@ public static XrViewState calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrViewState.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); } /** @@ -246,26 +237,26 @@ public static XrViewState.Buffer malloc(int capacity, MemoryStack stack) { * @param capacity the buffer capacity */ public static XrViewState.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 + XrViewState.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrViewState.NEXT); } - /** Unsafe version of {@link #viewStateFlags}. */ - public static long nviewStateFlags(long struct) { return UNSAFE.getLong(null, struct + XrViewState.VIEWSTATEFLAGS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViewState.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrViewState.NEXT, value); } - /** Unsafe version of {@link #viewStateFlags(long) viewStateFlags}. */ - public static void nviewStateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrViewState.VIEWSTATEFLAGS, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrViewState.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrViewState.NEXT); } + /** Unsafe version of {@link #viewStateFlags}. */ + public static long nviewStateFlags(long struct) { return UNSAFE.getLong(null, struct + XrViewState.VIEWSTATEFLAGS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViewState.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrViewState.NEXT, value); } + /** Unsafe version of {@link #viewStateFlags(long) viewStateFlags}. */ + public static void nviewStateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrViewState.VIEWSTATEFLAGS, value); } + + // ----------------------------------- /** An array of {@link XrViewState} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -275,9 +266,9 @@ public static class Buffer extends StructBuffer implements /** * Creates a new {@code XrViewState.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 XrViewState#SIZEOF}, and its mark will be undefined.

        + * by {@link XrViewState#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -302,25 +293,25 @@ protected Buffer self() { protected XrViewState getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrViewState#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrViewState.ntype(address()); } - /** @return the value of the {@link XrViewState#next} field. */ - @NativeType("void *") - public long next() { return XrViewState.nnext(address()); } - /** @return the value of the {@link XrViewState#viewStateFlags} field. */ - @NativeType("XrViewStateFlags") - public long viewStateFlags() { return XrViewState.nviewStateFlags(address()); } - - /** Sets the specified value to the {@link XrViewState#type} field. */ - public XrViewState.Buffer type(@NativeType("XrStructureType") int value) { XrViewState.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_VIEW_STATE TYPE_VIEW_STATE} value to the {@link XrViewState#type} field. */ - public XrViewState.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW_STATE); } - /** Sets the specified value to the {@link XrViewState#next} field. */ - public XrViewState.Buffer next(@NativeType("void *") long value) { XrViewState.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrViewState#viewStateFlags} field. */ - public XrViewState.Buffer viewStateFlags(@NativeType("XrViewStateFlags") long value) { XrViewState.nviewStateFlags(address(), value); return this; } + + /** @return the value of the {@link XrViewState#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrViewState.ntype(address()); } + /** @return the value of the {@link XrViewState#next} field. */ + @NativeType("void *") + public long next() { return XrViewState.nnext(address()); } + /** @return the value of the {@link XrViewState#viewStateFlags} field. */ + @NativeType("XrViewStateFlags") + public long viewStateFlags() { return XrViewState.nviewStateFlags(address()); } + + /** Sets the specified value to the {@link XrViewState#type} field. */ + public XrViewState.Buffer type(@NativeType("XrStructureType") int value) { XrViewState.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_VIEW_STATE TYPE_VIEW_STATE} value to the {@link XrViewState#type} field. */ + public XrViewState.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW_STATE); } + /** Sets the specified value to the {@link XrViewState#next} field. */ + public XrViewState.Buffer next(@NativeType("void *") long value) { XrViewState.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrViewState#viewStateFlags} field. */ + public XrViewState.Buffer viewStateFlags(@NativeType("XrViewStateFlags") long value) { XrViewState.nviewStateFlags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVisibilityMaskKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVisibilityMaskKHR.java index dbfe993cb6..d1e84d73e5 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVisibilityMaskKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVisibilityMaskKHR.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.*; + /** * Visibility Mask. * @@ -45,8 +45,8 @@ * uint32_t {@link #indexCountOutput}; * uint32_t * {@link #indices}; * } - */ -public class XrVisibilityMaskKHR extends Struct implements NativeResource { + */ +public class XrVisibilityMaskKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,47 +56,38 @@ public class XrVisibilityMaskKHR extends Struct implements /** The struct member offsets. */ public static final int - TYPE, - NEXT, - VERTEXCAPACITYINPUT, - VERTEXCOUNTOUTPUT, - VERTICES, - INDEXCAPACITYINPUT, - INDEXCOUNTOUTPUT, - INDICES; + TYPE, + NEXT, + VERTEXCAPACITYINPUT, + VERTEXCOUNTOUTPUT, + VERTICES, + INDEXCAPACITYINPUT, + INDEXCOUNTOUTPUT, + INDICES; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - VERTEXCAPACITYINPUT = layout.offsetof(2); - VERTEXCOUNTOUTPUT = layout.offsetof(3); - VERTICES = layout.offsetof(4); - INDEXCAPACITYINPUT = layout.offsetof(5); - INDEXCOUNTOUTPUT = layout.offsetof(6); - INDICES = layout.offsetof(7); - } - - protected XrVisibilityMaskKHR(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrVisibilityMaskKHR create(long address, @Nullable ByteBuffer container) { - return new XrVisibilityMaskKHR(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + VERTEXCAPACITYINPUT = layout.offsetof(2); + VERTEXCOUNTOUTPUT = layout.offsetof(3); + VERTICES = layout.offsetof(4); + INDEXCAPACITYINPUT = layout.offsetof(5); + INDEXCOUNTOUTPUT = layout.offsetof(6); + INDICES = layout.offsetof(7); } /** @@ -111,72 +102,72 @@ public XrVisibilityMaskKHR(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()); } - /** the capacity of the {@code vertices} array, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int vertexCapacityInput() { return nvertexCapacityInput(address()); } - /** filled in by the runtime with the count of vertices written or the required capacity in the case that {@code vertexCapacityInput} or {@code indexCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int vertexCountOutput() { return nvertexCountOutput(address()); } - /** an array of vertices filled in by the runtime that specifies mask coordinates in the z=-1 plane of the rendered view—​i.e. one meter in front of the view. When rendering the mask for use in a projection layer, these vertices must be transformed by the application’s projection matrix used for the respective {@link XrCompositionLayerProjectionView}. */ - @Nullable - @NativeType("XrVector2f *") - public XrVector2f.Buffer vertices() { return nvertices(address()); } - /** the capacity of the {@code indices} array, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int indexCapacityInput() { return nindexCapacityInput(address()); } - /** filled in by the runtime with the count of indices written or the required capacity in the case that {@code vertexCapacityInput} or {@code indexCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int indexCountOutput() { return nindexCountOutput(address()); } - /** an array of indices filled in by the runtime, specifying the indices of the mask geometry in the {@code vertices} array. */ - @Nullable - @NativeType("uint32_t *") - public IntBuffer indices() { return nindices(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrVisibilityMaskKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRVisibilityMask#XR_TYPE_VISIBILITY_MASK_KHR TYPE_VISIBILITY_MASK_KHR} value to the {@link #type} field. */ - public XrVisibilityMaskKHR type$Default() { return type(KHRVisibilityMask.XR_TYPE_VISIBILITY_MASK_KHR); } - /** Sets the specified value to the {@link #next} field. */ - public XrVisibilityMaskKHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #vertexCapacityInput} field. */ - public XrVisibilityMaskKHR vertexCapacityInput(@NativeType("uint32_t") int value) { nvertexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #vertexCountOutput} field. */ - public XrVisibilityMaskKHR vertexCountOutput(@NativeType("uint32_t") int value) { nvertexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrVector2f.Buffer} to the {@link #vertices} field. */ - public XrVisibilityMaskKHR vertices(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { nvertices(address(), value); return this; } - /** Sets the specified value to the {@link #indexCapacityInput} field. */ - public XrVisibilityMaskKHR indexCapacityInput(@NativeType("uint32_t") int value) { nindexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #indexCountOutput} field. */ - public XrVisibilityMaskKHR indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link #indices} field. */ - public XrVisibilityMaskKHR indices(@Nullable @NativeType("uint32_t *") IntBuffer value) { nindices(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()); } + /** the capacity of the {@code vertices} array, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int vertexCapacityInput() { return nvertexCapacityInput(address()); } + /** filled in by the runtime with the count of vertices written or the required capacity in the case that {@code vertexCapacityInput} or {@code indexCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int vertexCountOutput() { return nvertexCountOutput(address()); } + /** an array of vertices filled in by the runtime that specifies mask coordinates in the z=-1 plane of the rendered view—​i.e. one meter in front of the view. When rendering the mask for use in a projection layer, these vertices must be transformed by the application’s projection matrix used for the respective {@link XrCompositionLayerProjectionView}. */ + @Nullable + @NativeType("XrVector2f *") + public XrVector2f.Buffer vertices() { return nvertices(address()); } + /** the capacity of the {@code indices} array, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return nindexCapacityInput(address()); } + /** filled in by the runtime with the count of indices written or the required capacity in the case that {@code vertexCapacityInput} or {@code indexCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int indexCountOutput() { return nindexCountOutput(address()); } + /** an array of indices filled in by the runtime, specifying the indices of the mask geometry in the {@code vertices} array. */ + @Nullable + @NativeType("uint32_t *") + public IntBuffer indices() { return nindices(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrVisibilityMaskKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRVisibilityMask#XR_TYPE_VISIBILITY_MASK_KHR TYPE_VISIBILITY_MASK_KHR} value to the {@link #type} field. */ + public XrVisibilityMaskKHR type$Default() { return type(KHRVisibilityMask.XR_TYPE_VISIBILITY_MASK_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrVisibilityMaskKHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #vertexCapacityInput} field. */ + public XrVisibilityMaskKHR vertexCapacityInput(@NativeType("uint32_t") int value) { nvertexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #vertexCountOutput} field. */ + public XrVisibilityMaskKHR vertexCountOutput(@NativeType("uint32_t") int value) { nvertexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrVector2f.Buffer} to the {@link #vertices} field. */ + public XrVisibilityMaskKHR vertices(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { nvertices(address(), value); return this; } + /** Sets the specified value to the {@link #indexCapacityInput} field. */ + public XrVisibilityMaskKHR indexCapacityInput(@NativeType("uint32_t") int value) { nindexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #indexCountOutput} field. */ + public XrVisibilityMaskKHR indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link #indices} field. */ + public XrVisibilityMaskKHR indices(@Nullable @NativeType("uint32_t *") IntBuffer value) { nindices(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrVisibilityMaskKHR set( - int type, - long next, - int vertexCapacityInput, - int vertexCountOutput, - @Nullable XrVector2f.Buffer vertices, - int indexCapacityInput, - int indexCountOutput, + int type, + long next, + int vertexCapacityInput, + int vertexCountOutput, + @Nullable XrVector2f.Buffer vertices, + int indexCapacityInput, + int indexCountOutput, @Nullable IntBuffer indices - ) { - type(type); - next(next); - vertexCapacityInput(vertexCapacityInput); - vertexCountOutput(vertexCountOutput); - vertices(vertices); - indexCapacityInput(indexCapacityInput); - indexCountOutput(indexCountOutput); - indices(indices); + ) { + type(type); + next(next); + vertexCapacityInput(vertexCapacityInput); + vertexCountOutput(vertexCountOutput); + vertices(vertices); + indexCapacityInput(indexCapacityInput); + indexCountOutput(indexCountOutput); + indices(indices); return this; } @@ -197,29 +188,29 @@ public XrVisibilityMaskKHR set(XrVisibilityMaskKHR src) { /** Returns a new {@code XrVisibilityMaskKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrVisibilityMaskKHR malloc() { - return new XrVisibilityMaskKHR(nmemAllocChecked(SIZEOF), null); + return wrap(XrVisibilityMaskKHR.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrVisibilityMaskKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrVisibilityMaskKHR calloc() { - return new XrVisibilityMaskKHR(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrVisibilityMaskKHR.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrVisibilityMaskKHR} instance allocated with {@link BufferUtils}. */ public static XrVisibilityMaskKHR create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrVisibilityMaskKHR(memAddress(container), container); + return wrap(XrVisibilityMaskKHR.class, memAddress(container), container); } /** Returns a new {@code XrVisibilityMaskKHR} instance for the specified memory address. */ public static XrVisibilityMaskKHR create(long address) { - return new XrVisibilityMaskKHR(address, null); + return wrap(XrVisibilityMaskKHR.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrVisibilityMaskKHR createSafe(long address) { - return address == NULL ? null : new XrVisibilityMaskKHR(address, null); + return address == NULL ? null : wrap(XrVisibilityMaskKHR.class, address); } /** @@ -228,7 +219,7 @@ public static XrVisibilityMaskKHR createSafe(long address) { * @param capacity the buffer capacity */ public static XrVisibilityMaskKHR.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -237,7 +228,7 @@ public static XrVisibilityMaskKHR.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrVisibilityMaskKHR.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -247,7 +238,7 @@ public static XrVisibilityMaskKHR.Buffer calloc(int capacity) { */ public static XrVisibilityMaskKHR.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); } /** @@ -257,13 +248,13 @@ public static XrVisibilityMaskKHR.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrVisibilityMaskKHR.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 XrVisibilityMaskKHR.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -272,7 +263,7 @@ public static XrVisibilityMaskKHR.Buffer createSafe(long address, int capacity) * @param stack the stack from which to allocate */ public static XrVisibilityMaskKHR malloc(MemoryStack stack) { - return new XrVisibilityMaskKHR(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrVisibilityMaskKHR.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -281,7 +272,7 @@ public static XrVisibilityMaskKHR malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrVisibilityMaskKHR calloc(MemoryStack stack) { - return new XrVisibilityMaskKHR(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrVisibilityMaskKHR.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -291,7 +282,7 @@ public static XrVisibilityMaskKHR calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrVisibilityMaskKHR.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); } /** @@ -301,46 +292,46 @@ public static XrVisibilityMaskKHR.Buffer malloc(int capacity, MemoryStack stack) * @param capacity the buffer capacity */ public static XrVisibilityMaskKHR.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 + XrVisibilityMaskKHR.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrVisibilityMaskKHR.NEXT); } - /** Unsafe version of {@link #vertexCapacityInput}. */ - public static int nvertexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrVisibilityMaskKHR.VERTEXCAPACITYINPUT); } - /** Unsafe version of {@link #vertexCountOutput}. */ - public static int nvertexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrVisibilityMaskKHR.VERTEXCOUNTOUTPUT); } - /** Unsafe version of {@link #vertices}. */ - @Nullable public static XrVector2f.Buffer nvertices(long struct) { return XrVector2f.createSafe(memGetAddress(struct + XrVisibilityMaskKHR.VERTICES), nvertexCapacityInput(struct)); } - /** Unsafe version of {@link #indexCapacityInput}. */ - public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrVisibilityMaskKHR.INDEXCAPACITYINPUT); } - /** Unsafe version of {@link #indexCountOutput}. */ - public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrVisibilityMaskKHR.INDEXCOUNTOUTPUT); } - /** Unsafe version of {@link #indices() indices}. */ - @Nullable public static IntBuffer nindices(long struct) { return memIntBufferSafe(memGetAddress(struct + XrVisibilityMaskKHR.INDICES), nindexCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrVisibilityMaskKHR.NEXT, value); } - /** Sets the specified value to the {@code vertexCapacityInput} field of the specified {@code struct}. */ - public static void nvertexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.VERTEXCAPACITYINPUT, value); } - /** Unsafe version of {@link #vertexCountOutput(int) vertexCountOutput}. */ - public static void nvertexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.VERTEXCOUNTOUTPUT, value); } - /** Unsafe version of {@link #vertices(XrVector2f.Buffer) vertices}. */ - public static void nvertices(long struct, @Nullable XrVector2f.Buffer value) { memPutAddress(struct + XrVisibilityMaskKHR.VERTICES, memAddressSafe(value)); if (value != null) { nvertexCapacityInput(struct, value.remaining()); } } - /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ - public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.INDEXCAPACITYINPUT, value); } - /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ - public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.INDEXCOUNTOUTPUT, value); } - /** Unsafe version of {@link #indices(IntBuffer) indices}. */ - public static void nindices(long struct, @Nullable IntBuffer value) { memPutAddress(struct + XrVisibilityMaskKHR.INDICES, memAddressSafe(value)); if (value != null) { nindexCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrVisibilityMaskKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrVisibilityMaskKHR.NEXT); } + /** Unsafe version of {@link #vertexCapacityInput}. */ + public static int nvertexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrVisibilityMaskKHR.VERTEXCAPACITYINPUT); } + /** Unsafe version of {@link #vertexCountOutput}. */ + public static int nvertexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrVisibilityMaskKHR.VERTEXCOUNTOUTPUT); } + /** Unsafe version of {@link #vertices}. */ + @Nullable public static XrVector2f.Buffer nvertices(long struct) { return XrVector2f.createSafe(memGetAddress(struct + XrVisibilityMaskKHR.VERTICES), nvertexCapacityInput(struct)); } + /** Unsafe version of {@link #indexCapacityInput}. */ + public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrVisibilityMaskKHR.INDEXCAPACITYINPUT); } + /** Unsafe version of {@link #indexCountOutput}. */ + public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrVisibilityMaskKHR.INDEXCOUNTOUTPUT); } + /** Unsafe version of {@link #indices() indices}. */ + @Nullable public static IntBuffer nindices(long struct) { return memIntBufferSafe(memGetAddress(struct + XrVisibilityMaskKHR.INDICES), nindexCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrVisibilityMaskKHR.NEXT, value); } + /** Sets the specified value to the {@code vertexCapacityInput} field of the specified {@code struct}. */ + public static void nvertexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.VERTEXCAPACITYINPUT, value); } + /** Unsafe version of {@link #vertexCountOutput(int) vertexCountOutput}. */ + public static void nvertexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.VERTEXCOUNTOUTPUT, value); } + /** Unsafe version of {@link #vertices(XrVector2f.Buffer) vertices}. */ + public static void nvertices(long struct, @Nullable XrVector2f.Buffer value) { memPutAddress(struct + XrVisibilityMaskKHR.VERTICES, memAddressSafe(value)); if (value != null) { nvertexCapacityInput(struct, value.remaining()); } } + /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ + public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.INDEXCAPACITYINPUT, value); } + /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ + public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.INDEXCOUNTOUTPUT, value); } + /** Unsafe version of {@link #indices(IntBuffer) indices}. */ + public static void nindices(long struct, @Nullable IntBuffer value) { memPutAddress(struct + XrVisibilityMaskKHR.INDICES, memAddressSafe(value)); if (value != null) { nindexCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrVisibilityMaskKHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -350,9 +341,9 @@ public static class Buffer extends StructBuffer imp /** * Creates a new {@code XrVisibilityMaskKHR.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 XrVisibilityMaskKHR#SIZEOF}, and its mark will be undefined.

        + * by {@link XrVisibilityMaskKHR#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -377,52 +368,52 @@ protected Buffer self() { protected XrVisibilityMaskKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrVisibilityMaskKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVisibilityMaskKHR.ntype(address()); } - /** @return the value of the {@link XrVisibilityMaskKHR#next} field. */ - @NativeType("void *") - public long next() { return XrVisibilityMaskKHR.nnext(address()); } - /** @return the value of the {@link XrVisibilityMaskKHR#vertexCapacityInput} field. */ - @NativeType("uint32_t") - public int vertexCapacityInput() { return XrVisibilityMaskKHR.nvertexCapacityInput(address()); } - /** @return the value of the {@link XrVisibilityMaskKHR#vertexCountOutput} field. */ - @NativeType("uint32_t") - public int vertexCountOutput() { return XrVisibilityMaskKHR.nvertexCountOutput(address()); } - /** @return a {@link XrVector2f.Buffer} view of the struct array pointed to by the {@link XrVisibilityMaskKHR#vertices} field. */ - @Nullable - @NativeType("XrVector2f *") - public XrVector2f.Buffer vertices() { return XrVisibilityMaskKHR.nvertices(address()); } - /** @return the value of the {@link XrVisibilityMaskKHR#indexCapacityInput} field. */ - @NativeType("uint32_t") - public int indexCapacityInput() { return XrVisibilityMaskKHR.nindexCapacityInput(address()); } - /** @return the value of the {@link XrVisibilityMaskKHR#indexCountOutput} field. */ - @NativeType("uint32_t") - public int indexCountOutput() { return XrVisibilityMaskKHR.nindexCountOutput(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrVisibilityMaskKHR#indices} field. */ - @Nullable - @NativeType("uint32_t *") - public IntBuffer indices() { return XrVisibilityMaskKHR.nindices(address()); } - - /** Sets the specified value to the {@link XrVisibilityMaskKHR#type} field. */ - public XrVisibilityMaskKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVisibilityMaskKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVisibilityMask#XR_TYPE_VISIBILITY_MASK_KHR TYPE_VISIBILITY_MASK_KHR} value to the {@link XrVisibilityMaskKHR#type} field. */ - public XrVisibilityMaskKHR.Buffer type$Default() { return type(KHRVisibilityMask.XR_TYPE_VISIBILITY_MASK_KHR); } - /** Sets the specified value to the {@link XrVisibilityMaskKHR#next} field. */ - public XrVisibilityMaskKHR.Buffer next(@NativeType("void *") long value) { XrVisibilityMaskKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrVisibilityMaskKHR#vertexCapacityInput} field. */ - public XrVisibilityMaskKHR.Buffer vertexCapacityInput(@NativeType("uint32_t") int value) { XrVisibilityMaskKHR.nvertexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrVisibilityMaskKHR#vertexCountOutput} field. */ - public XrVisibilityMaskKHR.Buffer vertexCountOutput(@NativeType("uint32_t") int value) { XrVisibilityMaskKHR.nvertexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrVector2f.Buffer} to the {@link XrVisibilityMaskKHR#vertices} field. */ - public XrVisibilityMaskKHR.Buffer vertices(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { XrVisibilityMaskKHR.nvertices(address(), value); return this; } - /** Sets the specified value to the {@link XrVisibilityMaskKHR#indexCapacityInput} field. */ - public XrVisibilityMaskKHR.Buffer indexCapacityInput(@NativeType("uint32_t") int value) { XrVisibilityMaskKHR.nindexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrVisibilityMaskKHR#indexCountOutput} field. */ - public XrVisibilityMaskKHR.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrVisibilityMaskKHR.nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrVisibilityMaskKHR#indices} field. */ - public XrVisibilityMaskKHR.Buffer indices(@Nullable @NativeType("uint32_t *") IntBuffer value) { XrVisibilityMaskKHR.nindices(address(), value); return this; } + + /** @return the value of the {@link XrVisibilityMaskKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrVisibilityMaskKHR.ntype(address()); } + /** @return the value of the {@link XrVisibilityMaskKHR#next} field. */ + @NativeType("void *") + public long next() { return XrVisibilityMaskKHR.nnext(address()); } + /** @return the value of the {@link XrVisibilityMaskKHR#vertexCapacityInput} field. */ + @NativeType("uint32_t") + public int vertexCapacityInput() { return XrVisibilityMaskKHR.nvertexCapacityInput(address()); } + /** @return the value of the {@link XrVisibilityMaskKHR#vertexCountOutput} field. */ + @NativeType("uint32_t") + public int vertexCountOutput() { return XrVisibilityMaskKHR.nvertexCountOutput(address()); } + /** @return a {@link XrVector2f.Buffer} view of the struct array pointed to by the {@link XrVisibilityMaskKHR#vertices} field. */ + @Nullable + @NativeType("XrVector2f *") + public XrVector2f.Buffer vertices() { return XrVisibilityMaskKHR.nvertices(address()); } + /** @return the value of the {@link XrVisibilityMaskKHR#indexCapacityInput} field. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return XrVisibilityMaskKHR.nindexCapacityInput(address()); } + /** @return the value of the {@link XrVisibilityMaskKHR#indexCountOutput} field. */ + @NativeType("uint32_t") + public int indexCountOutput() { return XrVisibilityMaskKHR.nindexCountOutput(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrVisibilityMaskKHR#indices} field. */ + @Nullable + @NativeType("uint32_t *") + public IntBuffer indices() { return XrVisibilityMaskKHR.nindices(address()); } + + /** Sets the specified value to the {@link XrVisibilityMaskKHR#type} field. */ + public XrVisibilityMaskKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVisibilityMaskKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVisibilityMask#XR_TYPE_VISIBILITY_MASK_KHR TYPE_VISIBILITY_MASK_KHR} value to the {@link XrVisibilityMaskKHR#type} field. */ + public XrVisibilityMaskKHR.Buffer type$Default() { return type(KHRVisibilityMask.XR_TYPE_VISIBILITY_MASK_KHR); } + /** Sets the specified value to the {@link XrVisibilityMaskKHR#next} field. */ + public XrVisibilityMaskKHR.Buffer next(@NativeType("void *") long value) { XrVisibilityMaskKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrVisibilityMaskKHR#vertexCapacityInput} field. */ + public XrVisibilityMaskKHR.Buffer vertexCapacityInput(@NativeType("uint32_t") int value) { XrVisibilityMaskKHR.nvertexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrVisibilityMaskKHR#vertexCountOutput} field. */ + public XrVisibilityMaskKHR.Buffer vertexCountOutput(@NativeType("uint32_t") int value) { XrVisibilityMaskKHR.nvertexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrVector2f.Buffer} to the {@link XrVisibilityMaskKHR#vertices} field. */ + public XrVisibilityMaskKHR.Buffer vertices(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { XrVisibilityMaskKHR.nvertices(address(), value); return this; } + /** Sets the specified value to the {@link XrVisibilityMaskKHR#indexCapacityInput} field. */ + public XrVisibilityMaskKHR.Buffer indexCapacityInput(@NativeType("uint32_t") int value) { XrVisibilityMaskKHR.nindexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrVisibilityMaskKHR#indexCountOutput} field. */ + public XrVisibilityMaskKHR.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrVisibilityMaskKHR.nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrVisibilityMaskKHR#indices} field. */ + public XrVisibilityMaskKHR.Buffer indices(@Nullable @NativeType("uint32_t *") IntBuffer value) { XrVisibilityMaskKHR.nindices(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVisualMeshComputeLodInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVisualMeshComputeLodInfoMSFT.java index fdbc0da2bc..2c1e2e23a9 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVisualMeshComputeLodInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVisualMeshComputeLodInfoMSFT.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.*; + /** * Visual mesh compute level of detail info. * @@ -39,8 +39,8 @@ * void const * {@link #next}; * XrMeshComputeLodMSFT {@link #lod}; * } - */ -public class XrVisualMeshComputeLodInfoMSFT extends Struct implements NativeResource { + */ +public class XrVisualMeshComputeLodInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,32 +50,23 @@ public class XrVisualMeshComputeLodInfoMSFT extends Struct 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 XrVisualMeshComputeLodInfoMSFT#SIZEOF}, and its mark will be undefined.

        + * by {@link XrVisualMeshComputeLodInfoMSFT#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 XrVisualMeshComputeLodInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrVisualMeshComputeLodInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVisualMeshComputeLodInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrVisualMeshComputeLodInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrVisualMeshComputeLodInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrVisualMeshComputeLodInfoMSFT#lod} field. */ - @NativeType("XrMeshComputeLodMSFT") - public int lod() { return XrVisualMeshComputeLodInfoMSFT.nlod(address()); } - - /** Sets the specified value to the {@link XrVisualMeshComputeLodInfoMSFT#type} field. */ - public XrVisualMeshComputeLodInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrVisualMeshComputeLodInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFT TYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFT} value to the {@link XrVisualMeshComputeLodInfoMSFT#type} field. */ - public XrVisualMeshComputeLodInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFT); } - /** Sets the specified value to the {@link XrVisualMeshComputeLodInfoMSFT#next} field. */ - public XrVisualMeshComputeLodInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrVisualMeshComputeLodInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrVisualMeshComputeLodInfoMSFT#lod} field. */ - public XrVisualMeshComputeLodInfoMSFT.Buffer lod(@NativeType("XrMeshComputeLodMSFT") int value) { XrVisualMeshComputeLodInfoMSFT.nlod(address(), value); return this; } + + /** @return the value of the {@link XrVisualMeshComputeLodInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrVisualMeshComputeLodInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrVisualMeshComputeLodInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrVisualMeshComputeLodInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrVisualMeshComputeLodInfoMSFT#lod} field. */ + @NativeType("XrMeshComputeLodMSFT") + public int lod() { return XrVisualMeshComputeLodInfoMSFT.nlod(address()); } + + /** Sets the specified value to the {@link XrVisualMeshComputeLodInfoMSFT#type} field. */ + public XrVisualMeshComputeLodInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrVisualMeshComputeLodInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFT TYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFT} value to the {@link XrVisualMeshComputeLodInfoMSFT#type} field. */ + public XrVisualMeshComputeLodInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFT); } + /** Sets the specified value to the {@link XrVisualMeshComputeLodInfoMSFT#next} field. */ + public XrVisualMeshComputeLodInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrVisualMeshComputeLodInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrVisualMeshComputeLodInfoMSFT#lod} field. */ + public XrVisualMeshComputeLodInfoMSFT.Buffer lod(@NativeType("XrMeshComputeLodMSFT") int value) { XrVisualMeshComputeLodInfoMSFT.nlod(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViveTrackerPathsHTCX.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViveTrackerPathsHTCX.java index da1b4f7473..54ee15244a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViveTrackerPathsHTCX.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViveTrackerPathsHTCX.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.*; + /** * Struct contains two paths of VIVE tracker. * @@ -43,8 +43,8 @@ * XrPath {@link #persistentPath}; * XrPath {@link #rolePath}; * } - */ -public class XrViveTrackerPathsHTCX extends Struct implements NativeResource { + */ +public class XrViveTrackerPathsHTCX extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,35 +54,26 @@ public class XrViveTrackerPathsHTCX extends Struct imple /** The struct member offsets. */ public static final int - TYPE, - NEXT, - PERSISTENTPATH, - ROLEPATH; + TYPE, + NEXT, + PERSISTENTPATH, + ROLEPATH; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - PERSISTENTPATH = layout.offsetof(2); - ROLEPATH = layout.offsetof(3); - } - - protected XrViveTrackerPathsHTCX(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrViveTrackerPathsHTCX create(long address, @Nullable ByteBuffer container) { - return new XrViveTrackerPathsHTCX(address, container); + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + PERSISTENTPATH = layout.offsetof(2); + ROLEPATH = layout.offsetof(3); } /** @@ -97,34 +88,34 @@ public XrViveTrackerPathsHTCX(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()); } - /** the unique path of the VIVE tracker which is persistent over the lifetime of the hardware. */ - @NativeType("XrPath") - public long persistentPath() { return npersistentPath(address()); } - /** the path of the VIVE tracker role. This may be {@link XR10#XR_NULL_PATH NULL_PATH} if the role is not assigned. */ - @NativeType("XrPath") - public long rolePath() { return nrolePath(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrViveTrackerPathsHTCX type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link HTCXViveTrackerInteraction#XR_TYPE_VIVE_TRACKER_PATHS_HTCX TYPE_VIVE_TRACKER_PATHS_HTCX} value to the {@link #type} field. */ - public XrViveTrackerPathsHTCX type$Default() { return type(HTCXViveTrackerInteraction.XR_TYPE_VIVE_TRACKER_PATHS_HTCX); } - /** Sets the specified value to the {@link #next} field. */ - public XrViveTrackerPathsHTCX 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 or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the unique path of the VIVE tracker which is persistent over the lifetime of the hardware. */ + @NativeType("XrPath") + public long persistentPath() { return npersistentPath(address()); } + /** the path of the VIVE tracker role. This may be {@link XR10#XR_NULL_PATH NULL_PATH} if the role is not assigned. */ + @NativeType("XrPath") + public long rolePath() { return nrolePath(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrViveTrackerPathsHTCX type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link HTCXViveTrackerInteraction#XR_TYPE_VIVE_TRACKER_PATHS_HTCX TYPE_VIVE_TRACKER_PATHS_HTCX} value to the {@link #type} field. */ + public XrViveTrackerPathsHTCX type$Default() { return type(HTCXViveTrackerInteraction.XR_TYPE_VIVE_TRACKER_PATHS_HTCX); } + /** Sets the specified value to the {@link #next} field. */ + public XrViveTrackerPathsHTCX next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrViveTrackerPathsHTCX set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -145,29 +136,29 @@ public XrViveTrackerPathsHTCX set(XrViveTrackerPathsHTCX src) { /** Returns a new {@code XrViveTrackerPathsHTCX} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrViveTrackerPathsHTCX malloc() { - return new XrViveTrackerPathsHTCX(nmemAllocChecked(SIZEOF), null); + return wrap(XrViveTrackerPathsHTCX.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrViveTrackerPathsHTCX} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrViveTrackerPathsHTCX calloc() { - return new XrViveTrackerPathsHTCX(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrViveTrackerPathsHTCX.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrViveTrackerPathsHTCX} instance allocated with {@link BufferUtils}. */ public static XrViveTrackerPathsHTCX create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrViveTrackerPathsHTCX(memAddress(container), container); + return wrap(XrViveTrackerPathsHTCX.class, memAddress(container), container); } /** Returns a new {@code XrViveTrackerPathsHTCX} instance for the specified memory address. */ public static XrViveTrackerPathsHTCX create(long address) { - return new XrViveTrackerPathsHTCX(address, null); + return wrap(XrViveTrackerPathsHTCX.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrViveTrackerPathsHTCX createSafe(long address) { - return address == NULL ? null : new XrViveTrackerPathsHTCX(address, null); + return address == NULL ? null : wrap(XrViveTrackerPathsHTCX.class, address); } /** @@ -176,7 +167,7 @@ public static XrViveTrackerPathsHTCX createSafe(long address) { * @param capacity the buffer capacity */ public static XrViveTrackerPathsHTCX.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -185,7 +176,7 @@ public static XrViveTrackerPathsHTCX.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrViveTrackerPathsHTCX.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -195,7 +186,7 @@ public static XrViveTrackerPathsHTCX.Buffer calloc(int capacity) { */ public static XrViveTrackerPathsHTCX.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); } /** @@ -205,13 +196,13 @@ public static XrViveTrackerPathsHTCX.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrViveTrackerPathsHTCX.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 XrViveTrackerPathsHTCX.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -220,7 +211,7 @@ public static XrViveTrackerPathsHTCX.Buffer createSafe(long address, int capacit * @param stack the stack from which to allocate */ public static XrViveTrackerPathsHTCX malloc(MemoryStack stack) { - return new XrViveTrackerPathsHTCX(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrViveTrackerPathsHTCX.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -229,7 +220,7 @@ public static XrViveTrackerPathsHTCX malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrViveTrackerPathsHTCX calloc(MemoryStack stack) { - return new XrViveTrackerPathsHTCX(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrViveTrackerPathsHTCX.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -239,7 +230,7 @@ public static XrViveTrackerPathsHTCX calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrViveTrackerPathsHTCX.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); } /** @@ -249,26 +240,26 @@ public static XrViveTrackerPathsHTCX.Buffer malloc(int capacity, MemoryStack sta * @param capacity the buffer capacity */ public static XrViveTrackerPathsHTCX.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 + XrViveTrackerPathsHTCX.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrViveTrackerPathsHTCX.NEXT); } - /** Unsafe version of {@link #persistentPath}. */ - public static long npersistentPath(long struct) { return UNSAFE.getLong(null, struct + XrViveTrackerPathsHTCX.PERSISTENTPATH); } - /** Unsafe version of {@link #rolePath}. */ - public static long nrolePath(long struct) { return UNSAFE.getLong(null, struct + XrViveTrackerPathsHTCX.ROLEPATH); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViveTrackerPathsHTCX.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrViveTrackerPathsHTCX.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrViveTrackerPathsHTCX.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrViveTrackerPathsHTCX.NEXT); } + /** Unsafe version of {@link #persistentPath}. */ + public static long npersistentPath(long struct) { return UNSAFE.getLong(null, struct + XrViveTrackerPathsHTCX.PERSISTENTPATH); } + /** Unsafe version of {@link #rolePath}. */ + public static long nrolePath(long struct) { return UNSAFE.getLong(null, struct + XrViveTrackerPathsHTCX.ROLEPATH); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViveTrackerPathsHTCX.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrViveTrackerPathsHTCX.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrViveTrackerPathsHTCX} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -278,9 +269,9 @@ public static class Buffer extends StructBuffer /** * Creates a new {@code XrViveTrackerPathsHTCX.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 XrViveTrackerPathsHTCX#SIZEOF}, and its mark will be undefined.

        + * by {@link XrViveTrackerPathsHTCX#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -305,26 +296,26 @@ protected Buffer self() { protected XrViveTrackerPathsHTCX getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrViveTrackerPathsHTCX#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrViveTrackerPathsHTCX.ntype(address()); } - /** @return the value of the {@link XrViveTrackerPathsHTCX#next} field. */ - @NativeType("void *") - public long next() { return XrViveTrackerPathsHTCX.nnext(address()); } - /** @return the value of the {@link XrViveTrackerPathsHTCX#persistentPath} field. */ - @NativeType("XrPath") - public long persistentPath() { return XrViveTrackerPathsHTCX.npersistentPath(address()); } - /** @return the value of the {@link XrViveTrackerPathsHTCX#rolePath} field. */ - @NativeType("XrPath") - public long rolePath() { return XrViveTrackerPathsHTCX.nrolePath(address()); } - - /** Sets the specified value to the {@link XrViveTrackerPathsHTCX#type} field. */ - public XrViveTrackerPathsHTCX.Buffer type(@NativeType("XrStructureType") int value) { XrViveTrackerPathsHTCX.ntype(address(), value); return this; } - /** Sets the {@link HTCXViveTrackerInteraction#XR_TYPE_VIVE_TRACKER_PATHS_HTCX TYPE_VIVE_TRACKER_PATHS_HTCX} value to the {@link XrViveTrackerPathsHTCX#type} field. */ - public XrViveTrackerPathsHTCX.Buffer type$Default() { return type(HTCXViveTrackerInteraction.XR_TYPE_VIVE_TRACKER_PATHS_HTCX); } - /** Sets the specified value to the {@link XrViveTrackerPathsHTCX#next} field. */ - public XrViveTrackerPathsHTCX.Buffer next(@NativeType("void *") long value) { XrViveTrackerPathsHTCX.nnext(address(), value); return this; } + + /** @return the value of the {@link XrViveTrackerPathsHTCX#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrViveTrackerPathsHTCX.ntype(address()); } + /** @return the value of the {@link XrViveTrackerPathsHTCX#next} field. */ + @NativeType("void *") + public long next() { return XrViveTrackerPathsHTCX.nnext(address()); } + /** @return the value of the {@link XrViveTrackerPathsHTCX#persistentPath} field. */ + @NativeType("XrPath") + public long persistentPath() { return XrViveTrackerPathsHTCX.npersistentPath(address()); } + /** @return the value of the {@link XrViveTrackerPathsHTCX#rolePath} field. */ + @NativeType("XrPath") + public long rolePath() { return XrViveTrackerPathsHTCX.nrolePath(address()); } + + /** Sets the specified value to the {@link XrViveTrackerPathsHTCX#type} field. */ + public XrViveTrackerPathsHTCX.Buffer type(@NativeType("XrStructureType") int value) { XrViveTrackerPathsHTCX.ntype(address(), value); return this; } + /** Sets the {@link HTCXViveTrackerInteraction#XR_TYPE_VIVE_TRACKER_PATHS_HTCX TYPE_VIVE_TRACKER_PATHS_HTCX} value to the {@link XrViveTrackerPathsHTCX#type} field. */ + public XrViveTrackerPathsHTCX.Buffer type$Default() { return type(HTCXViveTrackerInteraction.XR_TYPE_VIVE_TRACKER_PATHS_HTCX); } + /** Sets the specified value to the {@link XrViveTrackerPathsHTCX#next} field. */ + public XrViveTrackerPathsHTCX.Buffer next(@NativeType("void *") long value) { XrViveTrackerPathsHTCX.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanDeviceCreateInfoKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanDeviceCreateInfoKHR.java index 4cd684da13..daad2f42c0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanDeviceCreateInfoKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanDeviceCreateInfoKHR.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 org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * Vulkan Device Create Info. * @@ -55,8 +55,8 @@ * {@link VkDeviceCreateInfo VkDeviceCreateInfo} const * {@link #vulkanCreateInfo}; * {@link VkAllocationCallbacks VkAllocationCallbacks} const * {@link #vulkanAllocator}; * } - */ -public class XrVulkanDeviceCreateInfoKHR extends Struct implements NativeResource { + */ +public class XrVulkanDeviceCreateInfoKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -66,47 +66,38 @@ public class XrVulkanDeviceCreateInfoKHR extends Structmust match {@link KHRVulkanEnable#xrGetVulkanGraphicsDeviceKHR GetVulkanGraphicsDeviceKHR}. */ - @NativeType("VkPhysicalDevice") - public long vulkanPhysicalDevice() { return nvulkanPhysicalDevice(address()); } - /** the {@code VkDeviceCreateInfo} as specified by Vulkan. */ - @NativeType("VkDeviceCreateInfo const *") - public VkDeviceCreateInfo vulkanCreateInfo() { return nvulkanCreateInfo(address()); } - /** the {@code VkAllocationCallbacks} as specified by Vulkan. */ - @Nullable - @NativeType("VkAllocationCallbacks const *") - public VkAllocationCallbacks vulkanAllocator() { return nvulkanAllocator(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrVulkanDeviceCreateInfoKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR TYPE_VULKAN_DEVICE_CREATE_INFO_KHR} value to the {@code type} field. */ - public XrVulkanDeviceCreateInfoKHR type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR); } - /** Sets the specified value to the {@code next} field. */ - public XrVulkanDeviceCreateInfoKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #systemId} field. */ - public XrVulkanDeviceCreateInfoKHR systemId(@NativeType("XrSystemId") long value) { nsystemId(address(), value); return this; } - /** Sets the specified value to the {@link #createFlags} field. */ - public XrVulkanDeviceCreateInfoKHR createFlags(@NativeType("XrVulkanDeviceCreateFlagsKHR") long value) { ncreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link #pfnGetInstanceProcAddr} field. */ - public XrVulkanDeviceCreateInfoKHR pfnGetInstanceProcAddr(@NativeType("PFN_vkGetInstanceProcAddr") long value) { npfnGetInstanceProcAddr(address(), value); return this; } - /** Sets the specified value to the {@link #vulkanPhysicalDevice} field. */ - public XrVulkanDeviceCreateInfoKHR vulkanPhysicalDevice(VkPhysicalDevice value) { nvulkanPhysicalDevice(address(), value); return this; } - /** Sets the address of the specified {@link VkDeviceCreateInfo} to the {@link #vulkanCreateInfo} field. */ - public XrVulkanDeviceCreateInfoKHR vulkanCreateInfo(@NativeType("VkDeviceCreateInfo const *") VkDeviceCreateInfo value) { nvulkanCreateInfo(address(), value); return this; } - /** Sets the address of the specified {@link VkAllocationCallbacks} to the {@link #vulkanAllocator} field. */ - public XrVulkanDeviceCreateInfoKHR vulkanAllocator(@Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks value) { nvulkanAllocator(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an {@code XrSystemId} handle for the system which will be used to create a session. */ + @NativeType("XrSystemId") + public long systemId() { return nsystemId(address()); } + /** a bitmask of {@code XrVulkanDeviceCreateFlagBitsKHR} */ + @NativeType("XrVulkanDeviceCreateFlagsKHR") + public long createFlags() { return ncreateFlags(address()); } + /** a function pointer to {@code vkGetInstanceProcAddr} or a compatible entry point. */ + @NativeType("PFN_vkGetInstanceProcAddr") + public long pfnGetInstanceProcAddr() { return npfnGetInstanceProcAddr(address()); } + /** must match {@link KHRVulkanEnable#xrGetVulkanGraphicsDeviceKHR GetVulkanGraphicsDeviceKHR}. */ + @NativeType("VkPhysicalDevice") + public long vulkanPhysicalDevice() { return nvulkanPhysicalDevice(address()); } + /** the {@code VkDeviceCreateInfo} as specified by Vulkan. */ + @NativeType("VkDeviceCreateInfo const *") + public VkDeviceCreateInfo vulkanCreateInfo() { return nvulkanCreateInfo(address()); } + /** the {@code VkAllocationCallbacks} as specified by Vulkan. */ + @Nullable + @NativeType("VkAllocationCallbacks const *") + public VkAllocationCallbacks vulkanAllocator() { return nvulkanAllocator(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrVulkanDeviceCreateInfoKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR TYPE_VULKAN_DEVICE_CREATE_INFO_KHR} value to the {@code type} field. */ + public XrVulkanDeviceCreateInfoKHR type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR); } + /** Sets the specified value to the {@code next} field. */ + public XrVulkanDeviceCreateInfoKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #systemId} field. */ + public XrVulkanDeviceCreateInfoKHR systemId(@NativeType("XrSystemId") long value) { nsystemId(address(), value); return this; } + /** Sets the specified value to the {@link #createFlags} field. */ + public XrVulkanDeviceCreateInfoKHR createFlags(@NativeType("XrVulkanDeviceCreateFlagsKHR") long value) { ncreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link #pfnGetInstanceProcAddr} field. */ + public XrVulkanDeviceCreateInfoKHR pfnGetInstanceProcAddr(@NativeType("PFN_vkGetInstanceProcAddr") long value) { npfnGetInstanceProcAddr(address(), value); return this; } + /** Sets the specified value to the {@link #vulkanPhysicalDevice} field. */ + public XrVulkanDeviceCreateInfoKHR vulkanPhysicalDevice(VkPhysicalDevice value) { nvulkanPhysicalDevice(address(), value); return this; } + /** Sets the address of the specified {@link VkDeviceCreateInfo} to the {@link #vulkanCreateInfo} field. */ + public XrVulkanDeviceCreateInfoKHR vulkanCreateInfo(@NativeType("VkDeviceCreateInfo const *") VkDeviceCreateInfo value) { nvulkanCreateInfo(address(), value); return this; } + /** Sets the address of the specified {@link VkAllocationCallbacks} to the {@link #vulkanAllocator} field. */ + public XrVulkanDeviceCreateInfoKHR vulkanAllocator(@Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks value) { nvulkanAllocator(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrVulkanDeviceCreateInfoKHR set( - int type, - long next, - long systemId, - long createFlags, - long pfnGetInstanceProcAddr, - VkPhysicalDevice vulkanPhysicalDevice, - VkDeviceCreateInfo vulkanCreateInfo, + int type, + long next, + long systemId, + long createFlags, + long pfnGetInstanceProcAddr, + VkPhysicalDevice vulkanPhysicalDevice, + VkDeviceCreateInfo vulkanCreateInfo, @Nullable VkAllocationCallbacks vulkanAllocator - ) { - type(type); - next(next); - systemId(systemId); - createFlags(createFlags); - pfnGetInstanceProcAddr(pfnGetInstanceProcAddr); - vulkanPhysicalDevice(vulkanPhysicalDevice); - vulkanCreateInfo(vulkanCreateInfo); - vulkanAllocator(vulkanAllocator); + ) { + type(type); + next(next); + systemId(systemId); + createFlags(createFlags); + pfnGetInstanceProcAddr(pfnGetInstanceProcAddr); + vulkanPhysicalDevice(vulkanPhysicalDevice); + vulkanCreateInfo(vulkanCreateInfo); + vulkanAllocator(vulkanAllocator); return this; } @@ -206,29 +197,29 @@ public XrVulkanDeviceCreateInfoKHR set(XrVulkanDeviceCreateInfoKHR src) { /** Returns a new {@code XrVulkanDeviceCreateInfoKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrVulkanDeviceCreateInfoKHR malloc() { - return new XrVulkanDeviceCreateInfoKHR(nmemAllocChecked(SIZEOF), null); + return wrap(XrVulkanDeviceCreateInfoKHR.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrVulkanDeviceCreateInfoKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrVulkanDeviceCreateInfoKHR calloc() { - return new XrVulkanDeviceCreateInfoKHR(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrVulkanDeviceCreateInfoKHR.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrVulkanDeviceCreateInfoKHR} instance allocated with {@link BufferUtils}. */ public static XrVulkanDeviceCreateInfoKHR create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrVulkanDeviceCreateInfoKHR(memAddress(container), container); + return wrap(XrVulkanDeviceCreateInfoKHR.class, memAddress(container), container); } /** Returns a new {@code XrVulkanDeviceCreateInfoKHR} instance for the specified memory address. */ public static XrVulkanDeviceCreateInfoKHR create(long address) { - return new XrVulkanDeviceCreateInfoKHR(address, null); + return wrap(XrVulkanDeviceCreateInfoKHR.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrVulkanDeviceCreateInfoKHR createSafe(long address) { - return address == NULL ? null : new XrVulkanDeviceCreateInfoKHR(address, null); + return address == NULL ? null : wrap(XrVulkanDeviceCreateInfoKHR.class, address); } /** @@ -237,7 +228,7 @@ public static XrVulkanDeviceCreateInfoKHR createSafe(long address) { * @param capacity the buffer capacity */ public static XrVulkanDeviceCreateInfoKHR.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -246,7 +237,7 @@ public static XrVulkanDeviceCreateInfoKHR.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrVulkanDeviceCreateInfoKHR.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -256,7 +247,7 @@ public static XrVulkanDeviceCreateInfoKHR.Buffer calloc(int capacity) { */ public static XrVulkanDeviceCreateInfoKHR.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); } /** @@ -266,13 +257,13 @@ public static XrVulkanDeviceCreateInfoKHR.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrVulkanDeviceCreateInfoKHR.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 XrVulkanDeviceCreateInfoKHR.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -281,7 +272,7 @@ public static XrVulkanDeviceCreateInfoKHR.Buffer createSafe(long address, int ca * @param stack the stack from which to allocate */ public static XrVulkanDeviceCreateInfoKHR malloc(MemoryStack stack) { - return new XrVulkanDeviceCreateInfoKHR(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrVulkanDeviceCreateInfoKHR.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -290,7 +281,7 @@ public static XrVulkanDeviceCreateInfoKHR malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrVulkanDeviceCreateInfoKHR calloc(MemoryStack stack) { - return new XrVulkanDeviceCreateInfoKHR(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrVulkanDeviceCreateInfoKHR.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -300,7 +291,7 @@ public static XrVulkanDeviceCreateInfoKHR calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrVulkanDeviceCreateInfoKHR.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); } /** @@ -310,44 +301,44 @@ public static XrVulkanDeviceCreateInfoKHR.Buffer malloc(int capacity, MemoryStac * @param capacity the buffer capacity */ public static XrVulkanDeviceCreateInfoKHR.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 + XrVulkanDeviceCreateInfoKHR.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.NEXT); } - /** Unsafe version of {@link #systemId}. */ - public static long nsystemId(long struct) { return UNSAFE.getLong(null, struct + XrVulkanDeviceCreateInfoKHR.SYSTEMID); } - /** Unsafe version of {@link #createFlags}. */ - public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrVulkanDeviceCreateInfoKHR.CREATEFLAGS); } - /** Unsafe version of {@link #pfnGetInstanceProcAddr}. */ - public static long npfnGetInstanceProcAddr(long struct) { return memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.PFNGETINSTANCEPROCADDR); } - /** Unsafe version of {@link #vulkanPhysicalDevice}. */ - public static long nvulkanPhysicalDevice(long struct) { return memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANPHYSICALDEVICE); } - /** Unsafe version of {@link #vulkanCreateInfo}. */ - public static VkDeviceCreateInfo nvulkanCreateInfo(long struct) { return VkDeviceCreateInfo.create(memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANCREATEINFO)); } - /** Unsafe version of {@link #vulkanAllocator}. */ - @Nullable public static VkAllocationCallbacks nvulkanAllocator(long struct) { return VkAllocationCallbacks.createSafe(memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANALLOCATOR)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVulkanDeviceCreateInfoKHR.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.NEXT, value); } - /** Unsafe version of {@link #systemId(long) systemId}. */ - public static void nsystemId(long struct, long value) { UNSAFE.putLong(null, struct + XrVulkanDeviceCreateInfoKHR.SYSTEMID, value); } - /** Unsafe version of {@link #createFlags(long) createFlags}. */ - public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrVulkanDeviceCreateInfoKHR.CREATEFLAGS, value); } - /** Unsafe version of {@link #pfnGetInstanceProcAddr(long) pfnGetInstanceProcAddr}. */ - public static void npfnGetInstanceProcAddr(long struct, long value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.PFNGETINSTANCEPROCADDR, check(value)); } - /** Unsafe version of {@link #vulkanPhysicalDevice(VkPhysicalDevice) vulkanPhysicalDevice}. */ - public static void nvulkanPhysicalDevice(long struct, VkPhysicalDevice value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANPHYSICALDEVICE, value.address()); } - /** Unsafe version of {@link #vulkanCreateInfo(VkDeviceCreateInfo) vulkanCreateInfo}. */ - public static void nvulkanCreateInfo(long struct, VkDeviceCreateInfo value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANCREATEINFO, value.address()); } - /** Unsafe version of {@link #vulkanAllocator(VkAllocationCallbacks) vulkanAllocator}. */ - public static void nvulkanAllocator(long struct, @Nullable VkAllocationCallbacks value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANALLOCATOR, memAddressSafe(value)); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrVulkanDeviceCreateInfoKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.NEXT); } + /** Unsafe version of {@link #systemId}. */ + public static long nsystemId(long struct) { return UNSAFE.getLong(null, struct + XrVulkanDeviceCreateInfoKHR.SYSTEMID); } + /** Unsafe version of {@link #createFlags}. */ + public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrVulkanDeviceCreateInfoKHR.CREATEFLAGS); } + /** Unsafe version of {@link #pfnGetInstanceProcAddr}. */ + public static long npfnGetInstanceProcAddr(long struct) { return memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.PFNGETINSTANCEPROCADDR); } + /** Unsafe version of {@link #vulkanPhysicalDevice}. */ + public static long nvulkanPhysicalDevice(long struct) { return memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANPHYSICALDEVICE); } + /** Unsafe version of {@link #vulkanCreateInfo}. */ + public static VkDeviceCreateInfo nvulkanCreateInfo(long struct) { return VkDeviceCreateInfo.create(memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANCREATEINFO)); } + /** Unsafe version of {@link #vulkanAllocator}. */ + @Nullable public static VkAllocationCallbacks nvulkanAllocator(long struct) { return VkAllocationCallbacks.createSafe(memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANALLOCATOR)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVulkanDeviceCreateInfoKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.NEXT, value); } + /** Unsafe version of {@link #systemId(long) systemId}. */ + public static void nsystemId(long struct, long value) { UNSAFE.putLong(null, struct + XrVulkanDeviceCreateInfoKHR.SYSTEMID, value); } + /** Unsafe version of {@link #createFlags(long) createFlags}. */ + public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrVulkanDeviceCreateInfoKHR.CREATEFLAGS, value); } + /** Unsafe version of {@link #pfnGetInstanceProcAddr(long) pfnGetInstanceProcAddr}. */ + public static void npfnGetInstanceProcAddr(long struct, long value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.PFNGETINSTANCEPROCADDR, check(value)); } + /** Unsafe version of {@link #vulkanPhysicalDevice(VkPhysicalDevice) vulkanPhysicalDevice}. */ + public static void nvulkanPhysicalDevice(long struct, VkPhysicalDevice value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANPHYSICALDEVICE, value.address()); } + /** Unsafe version of {@link #vulkanCreateInfo(VkDeviceCreateInfo) vulkanCreateInfo}. */ + public static void nvulkanCreateInfo(long struct, VkDeviceCreateInfo value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANCREATEINFO, value.address()); } + /** Unsafe version of {@link #vulkanAllocator(VkAllocationCallbacks) vulkanAllocator}. */ + public static void nvulkanAllocator(long struct, @Nullable VkAllocationCallbacks value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANALLOCATOR, memAddressSafe(value)); } /** * Validates pointer members that should not be {@code NULL}. @@ -360,9 +351,9 @@ public static void validate(long struct) { long vulkanCreateInfo = memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANCREATEINFO); check(vulkanCreateInfo); VkDeviceCreateInfo.validate(vulkanCreateInfo); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrVulkanDeviceCreateInfoKHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -372,9 +363,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 XrVulkanDeviceCreateInfoKHR#SIZEOF}, and its mark will be undefined.

        + * by {@link XrVulkanDeviceCreateInfoKHR#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -399,51 +390,51 @@ protected Buffer self() { protected XrVulkanDeviceCreateInfoKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVulkanDeviceCreateInfoKHR.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrVulkanDeviceCreateInfoKHR.nnext(address()); } - /** @return the value of the {@link XrVulkanDeviceCreateInfoKHR#systemId} field. */ - @NativeType("XrSystemId") - public long systemId() { return XrVulkanDeviceCreateInfoKHR.nsystemId(address()); } - /** @return the value of the {@link XrVulkanDeviceCreateInfoKHR#createFlags} field. */ - @NativeType("XrVulkanDeviceCreateFlagsKHR") - public long createFlags() { return XrVulkanDeviceCreateInfoKHR.ncreateFlags(address()); } - /** @return the value of the {@link XrVulkanDeviceCreateInfoKHR#pfnGetInstanceProcAddr} field. */ - @NativeType("PFN_vkGetInstanceProcAddr") - public long pfnGetInstanceProcAddr() { return XrVulkanDeviceCreateInfoKHR.npfnGetInstanceProcAddr(address()); } - /** @return the value of the {@link XrVulkanDeviceCreateInfoKHR#vulkanPhysicalDevice} field. */ - @NativeType("VkPhysicalDevice") - public long vulkanPhysicalDevice() { return XrVulkanDeviceCreateInfoKHR.nvulkanPhysicalDevice(address()); } - /** @return a {@link VkDeviceCreateInfo} view of the struct pointed to by the {@link XrVulkanDeviceCreateInfoKHR#vulkanCreateInfo} field. */ - @NativeType("VkDeviceCreateInfo const *") - public VkDeviceCreateInfo vulkanCreateInfo() { return XrVulkanDeviceCreateInfoKHR.nvulkanCreateInfo(address()); } - /** @return a {@link VkAllocationCallbacks} view of the struct pointed to by the {@link XrVulkanDeviceCreateInfoKHR#vulkanAllocator} field. */ - @Nullable - @NativeType("VkAllocationCallbacks const *") - public VkAllocationCallbacks vulkanAllocator() { return XrVulkanDeviceCreateInfoKHR.nvulkanAllocator(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrVulkanDeviceCreateInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanDeviceCreateInfoKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR TYPE_VULKAN_DEVICE_CREATE_INFO_KHR} value to the {@code type} field. */ - public XrVulkanDeviceCreateInfoKHR.Buffer type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR); } - /** Sets the specified value to the {@code next} field. */ - public XrVulkanDeviceCreateInfoKHR.Buffer next(@NativeType("void const *") long value) { XrVulkanDeviceCreateInfoKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanDeviceCreateInfoKHR#systemId} field. */ - public XrVulkanDeviceCreateInfoKHR.Buffer systemId(@NativeType("XrSystemId") long value) { XrVulkanDeviceCreateInfoKHR.nsystemId(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanDeviceCreateInfoKHR#createFlags} field. */ - public XrVulkanDeviceCreateInfoKHR.Buffer createFlags(@NativeType("XrVulkanDeviceCreateFlagsKHR") long value) { XrVulkanDeviceCreateInfoKHR.ncreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanDeviceCreateInfoKHR#pfnGetInstanceProcAddr} field. */ - public XrVulkanDeviceCreateInfoKHR.Buffer pfnGetInstanceProcAddr(@NativeType("PFN_vkGetInstanceProcAddr") long value) { XrVulkanDeviceCreateInfoKHR.npfnGetInstanceProcAddr(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanDeviceCreateInfoKHR#vulkanPhysicalDevice} field. */ - public XrVulkanDeviceCreateInfoKHR.Buffer vulkanPhysicalDevice(VkPhysicalDevice value) { XrVulkanDeviceCreateInfoKHR.nvulkanPhysicalDevice(address(), value); return this; } - /** Sets the address of the specified {@link VkDeviceCreateInfo} to the {@link XrVulkanDeviceCreateInfoKHR#vulkanCreateInfo} field. */ - public XrVulkanDeviceCreateInfoKHR.Buffer vulkanCreateInfo(@NativeType("VkDeviceCreateInfo const *") VkDeviceCreateInfo value) { XrVulkanDeviceCreateInfoKHR.nvulkanCreateInfo(address(), value); return this; } - /** Sets the address of the specified {@link VkAllocationCallbacks} to the {@link XrVulkanDeviceCreateInfoKHR#vulkanAllocator} field. */ - public XrVulkanDeviceCreateInfoKHR.Buffer vulkanAllocator(@Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks value) { XrVulkanDeviceCreateInfoKHR.nvulkanAllocator(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrVulkanDeviceCreateInfoKHR.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrVulkanDeviceCreateInfoKHR.nnext(address()); } + /** @return the value of the {@link XrVulkanDeviceCreateInfoKHR#systemId} field. */ + @NativeType("XrSystemId") + public long systemId() { return XrVulkanDeviceCreateInfoKHR.nsystemId(address()); } + /** @return the value of the {@link XrVulkanDeviceCreateInfoKHR#createFlags} field. */ + @NativeType("XrVulkanDeviceCreateFlagsKHR") + public long createFlags() { return XrVulkanDeviceCreateInfoKHR.ncreateFlags(address()); } + /** @return the value of the {@link XrVulkanDeviceCreateInfoKHR#pfnGetInstanceProcAddr} field. */ + @NativeType("PFN_vkGetInstanceProcAddr") + public long pfnGetInstanceProcAddr() { return XrVulkanDeviceCreateInfoKHR.npfnGetInstanceProcAddr(address()); } + /** @return the value of the {@link XrVulkanDeviceCreateInfoKHR#vulkanPhysicalDevice} field. */ + @NativeType("VkPhysicalDevice") + public long vulkanPhysicalDevice() { return XrVulkanDeviceCreateInfoKHR.nvulkanPhysicalDevice(address()); } + /** @return a {@link VkDeviceCreateInfo} view of the struct pointed to by the {@link XrVulkanDeviceCreateInfoKHR#vulkanCreateInfo} field. */ + @NativeType("VkDeviceCreateInfo const *") + public VkDeviceCreateInfo vulkanCreateInfo() { return XrVulkanDeviceCreateInfoKHR.nvulkanCreateInfo(address()); } + /** @return a {@link VkAllocationCallbacks} view of the struct pointed to by the {@link XrVulkanDeviceCreateInfoKHR#vulkanAllocator} field. */ + @Nullable + @NativeType("VkAllocationCallbacks const *") + public VkAllocationCallbacks vulkanAllocator() { return XrVulkanDeviceCreateInfoKHR.nvulkanAllocator(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrVulkanDeviceCreateInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanDeviceCreateInfoKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR TYPE_VULKAN_DEVICE_CREATE_INFO_KHR} value to the {@code type} field. */ + public XrVulkanDeviceCreateInfoKHR.Buffer type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR); } + /** Sets the specified value to the {@code next} field. */ + public XrVulkanDeviceCreateInfoKHR.Buffer next(@NativeType("void const *") long value) { XrVulkanDeviceCreateInfoKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanDeviceCreateInfoKHR#systemId} field. */ + public XrVulkanDeviceCreateInfoKHR.Buffer systemId(@NativeType("XrSystemId") long value) { XrVulkanDeviceCreateInfoKHR.nsystemId(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanDeviceCreateInfoKHR#createFlags} field. */ + public XrVulkanDeviceCreateInfoKHR.Buffer createFlags(@NativeType("XrVulkanDeviceCreateFlagsKHR") long value) { XrVulkanDeviceCreateInfoKHR.ncreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanDeviceCreateInfoKHR#pfnGetInstanceProcAddr} field. */ + public XrVulkanDeviceCreateInfoKHR.Buffer pfnGetInstanceProcAddr(@NativeType("PFN_vkGetInstanceProcAddr") long value) { XrVulkanDeviceCreateInfoKHR.npfnGetInstanceProcAddr(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanDeviceCreateInfoKHR#vulkanPhysicalDevice} field. */ + public XrVulkanDeviceCreateInfoKHR.Buffer vulkanPhysicalDevice(VkPhysicalDevice value) { XrVulkanDeviceCreateInfoKHR.nvulkanPhysicalDevice(address(), value); return this; } + /** Sets the address of the specified {@link VkDeviceCreateInfo} to the {@link XrVulkanDeviceCreateInfoKHR#vulkanCreateInfo} field. */ + public XrVulkanDeviceCreateInfoKHR.Buffer vulkanCreateInfo(@NativeType("VkDeviceCreateInfo const *") VkDeviceCreateInfo value) { XrVulkanDeviceCreateInfoKHR.nvulkanCreateInfo(address(), value); return this; } + /** Sets the address of the specified {@link VkAllocationCallbacks} to the {@link XrVulkanDeviceCreateInfoKHR#vulkanAllocator} field. */ + public XrVulkanDeviceCreateInfoKHR.Buffer vulkanAllocator(@Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks value) { XrVulkanDeviceCreateInfoKHR.nvulkanAllocator(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanGraphicsDeviceGetInfoKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanGraphicsDeviceGetInfoKHR.java index 776c625fd8..4b8ed58b52 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanGraphicsDeviceGetInfoKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanGraphicsDeviceGetInfoKHR.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 org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * Vulkan Graphics Device Get Info. * @@ -43,8 +43,8 @@ * XrSystemId {@link #systemId}; * VkInstance {@link #vulkanInstance}; * } - */ -public class XrVulkanGraphicsDeviceGetInfoKHR extends Struct implements NativeResource { + */ +public class XrVulkanGraphicsDeviceGetInfoKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,35 +54,26 @@ public class XrVulkanGraphicsDeviceGetInfoKHR extends Struct implements NativeResource { @@ -299,9 +290,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 XrVulkanGraphicsDeviceGetInfoKHR#SIZEOF}, and its mark will be undefined.

        + * by {@link XrVulkanGraphicsDeviceGetInfoKHR#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -326,30 +317,30 @@ protected Buffer self() { protected XrVulkanGraphicsDeviceGetInfoKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVulkanGraphicsDeviceGetInfoKHR.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrVulkanGraphicsDeviceGetInfoKHR.nnext(address()); } - /** @return the value of the {@link XrVulkanGraphicsDeviceGetInfoKHR#systemId} field. */ - @NativeType("XrSystemId") - public long systemId() { return XrVulkanGraphicsDeviceGetInfoKHR.nsystemId(address()); } - /** @return the value of the {@link XrVulkanGraphicsDeviceGetInfoKHR#vulkanInstance} field. */ - @NativeType("VkInstance") - public long vulkanInstance() { return XrVulkanGraphicsDeviceGetInfoKHR.nvulkanInstance(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrVulkanGraphicsDeviceGetInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanGraphicsDeviceGetInfoKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR} value to the {@code type} field. */ - public XrVulkanGraphicsDeviceGetInfoKHR.Buffer type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR); } - /** Sets the specified value to the {@code next} field. */ - public XrVulkanGraphicsDeviceGetInfoKHR.Buffer next(@NativeType("void const *") long value) { XrVulkanGraphicsDeviceGetInfoKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanGraphicsDeviceGetInfoKHR#systemId} field. */ - public XrVulkanGraphicsDeviceGetInfoKHR.Buffer systemId(@NativeType("XrSystemId") long value) { XrVulkanGraphicsDeviceGetInfoKHR.nsystemId(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanGraphicsDeviceGetInfoKHR#vulkanInstance} field. */ - public XrVulkanGraphicsDeviceGetInfoKHR.Buffer vulkanInstance(VkInstance value) { XrVulkanGraphicsDeviceGetInfoKHR.nvulkanInstance(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrVulkanGraphicsDeviceGetInfoKHR.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrVulkanGraphicsDeviceGetInfoKHR.nnext(address()); } + /** @return the value of the {@link XrVulkanGraphicsDeviceGetInfoKHR#systemId} field. */ + @NativeType("XrSystemId") + public long systemId() { return XrVulkanGraphicsDeviceGetInfoKHR.nsystemId(address()); } + /** @return the value of the {@link XrVulkanGraphicsDeviceGetInfoKHR#vulkanInstance} field. */ + @NativeType("VkInstance") + public long vulkanInstance() { return XrVulkanGraphicsDeviceGetInfoKHR.nvulkanInstance(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrVulkanGraphicsDeviceGetInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanGraphicsDeviceGetInfoKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR} value to the {@code type} field. */ + public XrVulkanGraphicsDeviceGetInfoKHR.Buffer type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR); } + /** Sets the specified value to the {@code next} field. */ + public XrVulkanGraphicsDeviceGetInfoKHR.Buffer next(@NativeType("void const *") long value) { XrVulkanGraphicsDeviceGetInfoKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanGraphicsDeviceGetInfoKHR#systemId} field. */ + public XrVulkanGraphicsDeviceGetInfoKHR.Buffer systemId(@NativeType("XrSystemId") long value) { XrVulkanGraphicsDeviceGetInfoKHR.nsystemId(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanGraphicsDeviceGetInfoKHR#vulkanInstance} field. */ + public XrVulkanGraphicsDeviceGetInfoKHR.Buffer vulkanInstance(VkInstance value) { XrVulkanGraphicsDeviceGetInfoKHR.nvulkanInstance(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanInstanceCreateInfoKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanInstanceCreateInfoKHR.java index aec1631553..1e8bd24a7a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanInstanceCreateInfoKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanInstanceCreateInfoKHR.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 org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * Vulkan Instance Create Info. * @@ -49,8 +49,8 @@ * {@link VkInstanceCreateInfo VkInstanceCreateInfo} const * {@link #vulkanCreateInfo}; * {@link VkAllocationCallbacks VkAllocationCallbacks} const * {@link #vulkanAllocator}; * } - */ -public class XrVulkanInstanceCreateInfoKHR extends Struct implements NativeResource { + */ +public class XrVulkanInstanceCreateInfoKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -60,44 +60,35 @@ public class XrVulkanInstanceCreateInfoKHR extends Struct{@code VkInstanceCreateInfo} as specified by Vulkan. */ - @NativeType("VkInstanceCreateInfo const *") - public VkInstanceCreateInfo vulkanCreateInfo() { return nvulkanCreateInfo(address()); } - /** the {@code VkAllocationCallbacks} as specified by Vulkan. */ - @Nullable - @NativeType("VkAllocationCallbacks const *") - public VkAllocationCallbacks vulkanAllocator() { return nvulkanAllocator(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrVulkanInstanceCreateInfoKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR} value to the {@link #type} field. */ - public XrVulkanInstanceCreateInfoKHR type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR); } - /** Sets the specified value to the {@link #next} field. */ - public XrVulkanInstanceCreateInfoKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #systemId} field. */ - public XrVulkanInstanceCreateInfoKHR systemId(@NativeType("XrSystemId") long value) { nsystemId(address(), value); return this; } - /** Sets the specified value to the {@link #createFlags} field. */ - public XrVulkanInstanceCreateInfoKHR createFlags(@NativeType("XrVulkanInstanceCreateFlagsKHR") long value) { ncreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link #pfnGetInstanceProcAddr} field. */ - public XrVulkanInstanceCreateInfoKHR pfnGetInstanceProcAddr(@NativeType("PFN_vkGetInstanceProcAddr") long value) { npfnGetInstanceProcAddr(address(), value); return this; } - /** Sets the address of the specified {@link VkInstanceCreateInfo} to the {@link #vulkanCreateInfo} field. */ - public XrVulkanInstanceCreateInfoKHR vulkanCreateInfo(@NativeType("VkInstanceCreateInfo const *") VkInstanceCreateInfo value) { nvulkanCreateInfo(address(), value); return this; } - /** Sets the address of the specified {@link VkAllocationCallbacks} to the {@link #vulkanAllocator} field. */ - public XrVulkanInstanceCreateInfoKHR vulkanAllocator(@Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks value) { nvulkanAllocator(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 XrSystemId} handle for the system which will be used to create a session. */ + @NativeType("XrSystemId") + public long systemId() { return nsystemId(address()); } + /** a bitmask of {@code XrVulkanInstanceCreateFlagBitsKHR} */ + @NativeType("XrVulkanInstanceCreateFlagsKHR") + public long createFlags() { return ncreateFlags(address()); } + /** a function pointer to {@code vkGetInstanceProcAddr} or a compatible entry point. */ + @NativeType("PFN_vkGetInstanceProcAddr") + public long pfnGetInstanceProcAddr() { return npfnGetInstanceProcAddr(address()); } + /** the {@code VkInstanceCreateInfo} as specified by Vulkan. */ + @NativeType("VkInstanceCreateInfo const *") + public VkInstanceCreateInfo vulkanCreateInfo() { return nvulkanCreateInfo(address()); } + /** the {@code VkAllocationCallbacks} as specified by Vulkan. */ + @Nullable + @NativeType("VkAllocationCallbacks const *") + public VkAllocationCallbacks vulkanAllocator() { return nvulkanAllocator(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrVulkanInstanceCreateInfoKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR} value to the {@link #type} field. */ + public XrVulkanInstanceCreateInfoKHR type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrVulkanInstanceCreateInfoKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #systemId} field. */ + public XrVulkanInstanceCreateInfoKHR systemId(@NativeType("XrSystemId") long value) { nsystemId(address(), value); return this; } + /** Sets the specified value to the {@link #createFlags} field. */ + public XrVulkanInstanceCreateInfoKHR createFlags(@NativeType("XrVulkanInstanceCreateFlagsKHR") long value) { ncreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link #pfnGetInstanceProcAddr} field. */ + public XrVulkanInstanceCreateInfoKHR pfnGetInstanceProcAddr(@NativeType("PFN_vkGetInstanceProcAddr") long value) { npfnGetInstanceProcAddr(address(), value); return this; } + /** Sets the address of the specified {@link VkInstanceCreateInfo} to the {@link #vulkanCreateInfo} field. */ + public XrVulkanInstanceCreateInfoKHR vulkanCreateInfo(@NativeType("VkInstanceCreateInfo const *") VkInstanceCreateInfo value) { nvulkanCreateInfo(address(), value); return this; } + /** Sets the address of the specified {@link VkAllocationCallbacks} to the {@link #vulkanAllocator} field. */ + public XrVulkanInstanceCreateInfoKHR vulkanAllocator(@Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks value) { nvulkanAllocator(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrVulkanInstanceCreateInfoKHR set( - int type, - long next, - long systemId, - long createFlags, - long pfnGetInstanceProcAddr, - VkInstanceCreateInfo vulkanCreateInfo, + int type, + long next, + long systemId, + long createFlags, + long pfnGetInstanceProcAddr, + VkInstanceCreateInfo vulkanCreateInfo, @Nullable VkAllocationCallbacks vulkanAllocator - ) { - type(type); - next(next); - systemId(systemId); - createFlags(createFlags); - pfnGetInstanceProcAddr(pfnGetInstanceProcAddr); - vulkanCreateInfo(vulkanCreateInfo); - vulkanAllocator(vulkanAllocator); + ) { + type(type); + next(next); + systemId(systemId); + createFlags(createFlags); + pfnGetInstanceProcAddr(pfnGetInstanceProcAddr); + vulkanCreateInfo(vulkanCreateInfo); + vulkanAllocator(vulkanAllocator); return this; } @@ -190,29 +181,29 @@ public XrVulkanInstanceCreateInfoKHR set(XrVulkanInstanceCreateInfoKHR src) { /** Returns a new {@code XrVulkanInstanceCreateInfoKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrVulkanInstanceCreateInfoKHR malloc() { - return new XrVulkanInstanceCreateInfoKHR(nmemAllocChecked(SIZEOF), null); + return wrap(XrVulkanInstanceCreateInfoKHR.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code XrVulkanInstanceCreateInfoKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrVulkanInstanceCreateInfoKHR calloc() { - return new XrVulkanInstanceCreateInfoKHR(nmemCallocChecked(1, SIZEOF), null); + return wrap(XrVulkanInstanceCreateInfoKHR.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code XrVulkanInstanceCreateInfoKHR} instance allocated with {@link BufferUtils}. */ public static XrVulkanInstanceCreateInfoKHR create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrVulkanInstanceCreateInfoKHR(memAddress(container), container); + return wrap(XrVulkanInstanceCreateInfoKHR.class, memAddress(container), container); } /** Returns a new {@code XrVulkanInstanceCreateInfoKHR} instance for the specified memory address. */ public static XrVulkanInstanceCreateInfoKHR create(long address) { - return new XrVulkanInstanceCreateInfoKHR(address, null); + return wrap(XrVulkanInstanceCreateInfoKHR.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static XrVulkanInstanceCreateInfoKHR createSafe(long address) { - return address == NULL ? null : new XrVulkanInstanceCreateInfoKHR(address, null); + return address == NULL ? null : wrap(XrVulkanInstanceCreateInfoKHR.class, address); } /** @@ -221,7 +212,7 @@ public static XrVulkanInstanceCreateInfoKHR createSafe(long address) { * @param capacity the buffer capacity */ public static XrVulkanInstanceCreateInfoKHR.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** @@ -230,7 +221,7 @@ public static XrVulkanInstanceCreateInfoKHR.Buffer malloc(int capacity) { * @param capacity the buffer capacity */ public static XrVulkanInstanceCreateInfoKHR.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** @@ -240,7 +231,7 @@ public static XrVulkanInstanceCreateInfoKHR.Buffer calloc(int capacity) { */ public static XrVulkanInstanceCreateInfoKHR.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); } /** @@ -250,13 +241,13 @@ public static XrVulkanInstanceCreateInfoKHR.Buffer create(int capacity) { * @param capacity the buffer capacity */ public static XrVulkanInstanceCreateInfoKHR.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 XrVulkanInstanceCreateInfoKHR.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); + return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** @@ -265,7 +256,7 @@ public static XrVulkanInstanceCreateInfoKHR.Buffer createSafe(long address, int * @param stack the stack from which to allocate */ public static XrVulkanInstanceCreateInfoKHR malloc(MemoryStack stack) { - return new XrVulkanInstanceCreateInfoKHR(stack.nmalloc(ALIGNOF, SIZEOF), null); + return wrap(XrVulkanInstanceCreateInfoKHR.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** @@ -274,7 +265,7 @@ public static XrVulkanInstanceCreateInfoKHR malloc(MemoryStack stack) { * @param stack the stack from which to allocate */ public static XrVulkanInstanceCreateInfoKHR calloc(MemoryStack stack) { - return new XrVulkanInstanceCreateInfoKHR(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + return wrap(XrVulkanInstanceCreateInfoKHR.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** @@ -284,7 +275,7 @@ public static XrVulkanInstanceCreateInfoKHR calloc(MemoryStack stack) { * @param capacity the buffer capacity */ public static XrVulkanInstanceCreateInfoKHR.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); } /** @@ -294,40 +285,40 @@ public static XrVulkanInstanceCreateInfoKHR.Buffer malloc(int capacity, MemorySt * @param capacity the buffer capacity */ public static XrVulkanInstanceCreateInfoKHR.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 + XrVulkanInstanceCreateInfoKHR.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrVulkanInstanceCreateInfoKHR.NEXT); } - /** Unsafe version of {@link #systemId}. */ - public static long nsystemId(long struct) { return UNSAFE.getLong(null, struct + XrVulkanInstanceCreateInfoKHR.SYSTEMID); } - /** Unsafe version of {@link #createFlags}. */ - public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrVulkanInstanceCreateInfoKHR.CREATEFLAGS); } - /** Unsafe version of {@link #pfnGetInstanceProcAddr}. */ - public static long npfnGetInstanceProcAddr(long struct) { return memGetAddress(struct + XrVulkanInstanceCreateInfoKHR.PFNGETINSTANCEPROCADDR); } - /** Unsafe version of {@link #vulkanCreateInfo}. */ - public static VkInstanceCreateInfo nvulkanCreateInfo(long struct) { return VkInstanceCreateInfo.create(memGetAddress(struct + XrVulkanInstanceCreateInfoKHR.VULKANCREATEINFO)); } - /** Unsafe version of {@link #vulkanAllocator}. */ - @Nullable public static VkAllocationCallbacks nvulkanAllocator(long struct) { return VkAllocationCallbacks.createSafe(memGetAddress(struct + XrVulkanInstanceCreateInfoKHR.VULKANALLOCATOR)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVulkanInstanceCreateInfoKHR.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrVulkanInstanceCreateInfoKHR.NEXT, value); } - /** Unsafe version of {@link #systemId(long) systemId}. */ - public static void nsystemId(long struct, long value) { UNSAFE.putLong(null, struct + XrVulkanInstanceCreateInfoKHR.SYSTEMID, value); } - /** Unsafe version of {@link #createFlags(long) createFlags}. */ - public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrVulkanInstanceCreateInfoKHR.CREATEFLAGS, value); } - /** Unsafe version of {@link #pfnGetInstanceProcAddr(long) pfnGetInstanceProcAddr}. */ - public static void npfnGetInstanceProcAddr(long struct, long value) { memPutAddress(struct + XrVulkanInstanceCreateInfoKHR.PFNGETINSTANCEPROCADDR, check(value)); } - /** Unsafe version of {@link #vulkanCreateInfo(VkInstanceCreateInfo) vulkanCreateInfo}. */ - public static void nvulkanCreateInfo(long struct, VkInstanceCreateInfo value) { memPutAddress(struct + XrVulkanInstanceCreateInfoKHR.VULKANCREATEINFO, value.address()); } - /** Unsafe version of {@link #vulkanAllocator(VkAllocationCallbacks) vulkanAllocator}. */ - public static void nvulkanAllocator(long struct, @Nullable VkAllocationCallbacks value) { memPutAddress(struct + XrVulkanInstanceCreateInfoKHR.VULKANALLOCATOR, memAddressSafe(value)); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrVulkanInstanceCreateInfoKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrVulkanInstanceCreateInfoKHR.NEXT); } + /** Unsafe version of {@link #systemId}. */ + public static long nsystemId(long struct) { return UNSAFE.getLong(null, struct + XrVulkanInstanceCreateInfoKHR.SYSTEMID); } + /** Unsafe version of {@link #createFlags}. */ + public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrVulkanInstanceCreateInfoKHR.CREATEFLAGS); } + /** Unsafe version of {@link #pfnGetInstanceProcAddr}. */ + public static long npfnGetInstanceProcAddr(long struct) { return memGetAddress(struct + XrVulkanInstanceCreateInfoKHR.PFNGETINSTANCEPROCADDR); } + /** Unsafe version of {@link #vulkanCreateInfo}. */ + public static VkInstanceCreateInfo nvulkanCreateInfo(long struct) { return VkInstanceCreateInfo.create(memGetAddress(struct + XrVulkanInstanceCreateInfoKHR.VULKANCREATEINFO)); } + /** Unsafe version of {@link #vulkanAllocator}. */ + @Nullable public static VkAllocationCallbacks nvulkanAllocator(long struct) { return VkAllocationCallbacks.createSafe(memGetAddress(struct + XrVulkanInstanceCreateInfoKHR.VULKANALLOCATOR)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVulkanInstanceCreateInfoKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrVulkanInstanceCreateInfoKHR.NEXT, value); } + /** Unsafe version of {@link #systemId(long) systemId}. */ + public static void nsystemId(long struct, long value) { UNSAFE.putLong(null, struct + XrVulkanInstanceCreateInfoKHR.SYSTEMID, value); } + /** Unsafe version of {@link #createFlags(long) createFlags}. */ + public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrVulkanInstanceCreateInfoKHR.CREATEFLAGS, value); } + /** Unsafe version of {@link #pfnGetInstanceProcAddr(long) pfnGetInstanceProcAddr}. */ + public static void npfnGetInstanceProcAddr(long struct, long value) { memPutAddress(struct + XrVulkanInstanceCreateInfoKHR.PFNGETINSTANCEPROCADDR, check(value)); } + /** Unsafe version of {@link #vulkanCreateInfo(VkInstanceCreateInfo) vulkanCreateInfo}. */ + public static void nvulkanCreateInfo(long struct, VkInstanceCreateInfo value) { memPutAddress(struct + XrVulkanInstanceCreateInfoKHR.VULKANCREATEINFO, value.address()); } + /** Unsafe version of {@link #vulkanAllocator(VkAllocationCallbacks) vulkanAllocator}. */ + public static void nvulkanAllocator(long struct, @Nullable VkAllocationCallbacks value) { memPutAddress(struct + XrVulkanInstanceCreateInfoKHR.VULKANALLOCATOR, memAddressSafe(value)); } /** * Validates pointer members that should not be {@code NULL}. @@ -339,9 +330,9 @@ public static void validate(long struct) { long vulkanCreateInfo = memGetAddress(struct + XrVulkanInstanceCreateInfoKHR.VULKANCREATEINFO); check(vulkanCreateInfo); VkInstanceCreateInfo.validate(vulkanCreateInfo); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrVulkanInstanceCreateInfoKHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -351,9 +342,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 XrVulkanInstanceCreateInfoKHR#SIZEOF}, and its mark will be undefined.

        + * by {@link XrVulkanInstanceCreateInfoKHR#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -378,46 +369,46 @@ protected Buffer self() { protected XrVulkanInstanceCreateInfoKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVulkanInstanceCreateInfoKHR.ntype(address()); } - /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrVulkanInstanceCreateInfoKHR.nnext(address()); } - /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#systemId} field. */ - @NativeType("XrSystemId") - public long systemId() { return XrVulkanInstanceCreateInfoKHR.nsystemId(address()); } - /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#createFlags} field. */ - @NativeType("XrVulkanInstanceCreateFlagsKHR") - public long createFlags() { return XrVulkanInstanceCreateInfoKHR.ncreateFlags(address()); } - /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#pfnGetInstanceProcAddr} field. */ - @NativeType("PFN_vkGetInstanceProcAddr") - public long pfnGetInstanceProcAddr() { return XrVulkanInstanceCreateInfoKHR.npfnGetInstanceProcAddr(address()); } - /** @return a {@link VkInstanceCreateInfo} view of the struct pointed to by the {@link XrVulkanInstanceCreateInfoKHR#vulkanCreateInfo} field. */ - @NativeType("VkInstanceCreateInfo const *") - public VkInstanceCreateInfo vulkanCreateInfo() { return XrVulkanInstanceCreateInfoKHR.nvulkanCreateInfo(address()); } - /** @return a {@link VkAllocationCallbacks} view of the struct pointed to by the {@link XrVulkanInstanceCreateInfoKHR#vulkanAllocator} field. */ - @Nullable - @NativeType("VkAllocationCallbacks const *") - public VkAllocationCallbacks vulkanAllocator() { return XrVulkanInstanceCreateInfoKHR.nvulkanAllocator(address()); } - - /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#type} field. */ - public XrVulkanInstanceCreateInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanInstanceCreateInfoKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR} value to the {@link XrVulkanInstanceCreateInfoKHR#type} field. */ - public XrVulkanInstanceCreateInfoKHR.Buffer type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR); } - /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#next} field. */ - public XrVulkanInstanceCreateInfoKHR.Buffer next(@NativeType("void const *") long value) { XrVulkanInstanceCreateInfoKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#systemId} field. */ - public XrVulkanInstanceCreateInfoKHR.Buffer systemId(@NativeType("XrSystemId") long value) { XrVulkanInstanceCreateInfoKHR.nsystemId(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#createFlags} field. */ - public XrVulkanInstanceCreateInfoKHR.Buffer createFlags(@NativeType("XrVulkanInstanceCreateFlagsKHR") long value) { XrVulkanInstanceCreateInfoKHR.ncreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#pfnGetInstanceProcAddr} field. */ - public XrVulkanInstanceCreateInfoKHR.Buffer pfnGetInstanceProcAddr(@NativeType("PFN_vkGetInstanceProcAddr") long value) { XrVulkanInstanceCreateInfoKHR.npfnGetInstanceProcAddr(address(), value); return this; } - /** Sets the address of the specified {@link VkInstanceCreateInfo} to the {@link XrVulkanInstanceCreateInfoKHR#vulkanCreateInfo} field. */ - public XrVulkanInstanceCreateInfoKHR.Buffer vulkanCreateInfo(@NativeType("VkInstanceCreateInfo const *") VkInstanceCreateInfo value) { XrVulkanInstanceCreateInfoKHR.nvulkanCreateInfo(address(), value); return this; } - /** Sets the address of the specified {@link VkAllocationCallbacks} to the {@link XrVulkanInstanceCreateInfoKHR#vulkanAllocator} field. */ - public XrVulkanInstanceCreateInfoKHR.Buffer vulkanAllocator(@Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks value) { XrVulkanInstanceCreateInfoKHR.nvulkanAllocator(address(), value); return this; } + + /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrVulkanInstanceCreateInfoKHR.ntype(address()); } + /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrVulkanInstanceCreateInfoKHR.nnext(address()); } + /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#systemId} field. */ + @NativeType("XrSystemId") + public long systemId() { return XrVulkanInstanceCreateInfoKHR.nsystemId(address()); } + /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#createFlags} field. */ + @NativeType("XrVulkanInstanceCreateFlagsKHR") + public long createFlags() { return XrVulkanInstanceCreateInfoKHR.ncreateFlags(address()); } + /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#pfnGetInstanceProcAddr} field. */ + @NativeType("PFN_vkGetInstanceProcAddr") + public long pfnGetInstanceProcAddr() { return XrVulkanInstanceCreateInfoKHR.npfnGetInstanceProcAddr(address()); } + /** @return a {@link VkInstanceCreateInfo} view of the struct pointed to by the {@link XrVulkanInstanceCreateInfoKHR#vulkanCreateInfo} field. */ + @NativeType("VkInstanceCreateInfo const *") + public VkInstanceCreateInfo vulkanCreateInfo() { return XrVulkanInstanceCreateInfoKHR.nvulkanCreateInfo(address()); } + /** @return a {@link VkAllocationCallbacks} view of the struct pointed to by the {@link XrVulkanInstanceCreateInfoKHR#vulkanAllocator} field. */ + @Nullable + @NativeType("VkAllocationCallbacks const *") + public VkAllocationCallbacks vulkanAllocator() { return XrVulkanInstanceCreateInfoKHR.nvulkanAllocator(address()); } + + /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#type} field. */ + public XrVulkanInstanceCreateInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanInstanceCreateInfoKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR} value to the {@link XrVulkanInstanceCreateInfoKHR#type} field. */ + public XrVulkanInstanceCreateInfoKHR.Buffer type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR); } + /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#next} field. */ + public XrVulkanInstanceCreateInfoKHR.Buffer next(@NativeType("void const *") long value) { XrVulkanInstanceCreateInfoKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#systemId} field. */ + public XrVulkanInstanceCreateInfoKHR.Buffer systemId(@NativeType("XrSystemId") long value) { XrVulkanInstanceCreateInfoKHR.nsystemId(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#createFlags} field. */ + public XrVulkanInstanceCreateInfoKHR.Buffer createFlags(@NativeType("XrVulkanInstanceCreateFlagsKHR") long value) { XrVulkanInstanceCreateInfoKHR.ncreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#pfnGetInstanceProcAddr} field. */ + public XrVulkanInstanceCreateInfoKHR.Buffer pfnGetInstanceProcAddr(@NativeType("PFN_vkGetInstanceProcAddr") long value) { XrVulkanInstanceCreateInfoKHR.npfnGetInstanceProcAddr(address(), value); return this; } + /** Sets the address of the specified {@link VkInstanceCreateInfo} to the {@link XrVulkanInstanceCreateInfoKHR#vulkanCreateInfo} field. */ + public XrVulkanInstanceCreateInfoKHR.Buffer vulkanCreateInfo(@NativeType("VkInstanceCreateInfo const *") VkInstanceCreateInfo value) { XrVulkanInstanceCreateInfoKHR.nvulkanCreateInfo(address(), value); return this; } + /** Sets the address of the specified {@link VkAllocationCallbacks} to the {@link XrVulkanInstanceCreateInfoKHR#vulkanAllocator} field. */ + public XrVulkanInstanceCreateInfoKHR.Buffer vulkanAllocator(@Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks value) { XrVulkanInstanceCreateInfoKHR.nvulkanAllocator(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanSwapchainCreateInfoMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanSwapchainCreateInfoMETA.java index c7d64e958f..3dd044bffc 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanSwapchainCreateInfoMETA.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanSwapchainCreateInfoMETA.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 org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * Debug utils object name info. * @@ -43,8 +43,8 @@ * VkImageCreateFlags {@link #additionalCreateFlags}; * VkImageUsageFlags {@link #additionalUsageFlags}; * } - */ -public class XrVulkanSwapchainCreateInfoMETA extends Struct implements NativeResource { + */ +public class XrVulkanSwapchainCreateInfoMETA extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,35 +54,26 @@ public class XrVulkanSwapchainCreateInfoMETA extends Struct implements NativeResource { @@ -290,9 +281,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 XrVulkanSwapchainCreateInfoMETA#SIZEOF}, and its mark will be undefined.

        + * by {@link XrVulkanSwapchainCreateInfoMETA#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -317,30 +308,30 @@ protected Buffer self() { protected XrVulkanSwapchainCreateInfoMETA getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrVulkanSwapchainCreateInfoMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVulkanSwapchainCreateInfoMETA.ntype(address()); } - /** @return the value of the {@link XrVulkanSwapchainCreateInfoMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrVulkanSwapchainCreateInfoMETA.nnext(address()); } - /** @return the value of the {@link XrVulkanSwapchainCreateInfoMETA#additionalCreateFlags} field. */ - @NativeType("VkImageCreateFlags") - public int additionalCreateFlags() { return XrVulkanSwapchainCreateInfoMETA.nadditionalCreateFlags(address()); } - /** @return the value of the {@link XrVulkanSwapchainCreateInfoMETA#additionalUsageFlags} field. */ - @NativeType("VkImageUsageFlags") - public int additionalUsageFlags() { return XrVulkanSwapchainCreateInfoMETA.nadditionalUsageFlags(address()); } - - /** Sets the specified value to the {@link XrVulkanSwapchainCreateInfoMETA#type} field. */ - public XrVulkanSwapchainCreateInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanSwapchainCreateInfoMETA.ntype(address(), value); return this; } - /** Sets the {@link METAVulkanSwapchainCreateInfo#XR_TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META} value to the {@link XrVulkanSwapchainCreateInfoMETA#type} field. */ - public XrVulkanSwapchainCreateInfoMETA.Buffer type$Default() { return type(METAVulkanSwapchainCreateInfo.XR_TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META); } - /** Sets the specified value to the {@link XrVulkanSwapchainCreateInfoMETA#next} field. */ - public XrVulkanSwapchainCreateInfoMETA.Buffer next(@NativeType("void const *") long value) { XrVulkanSwapchainCreateInfoMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanSwapchainCreateInfoMETA#additionalCreateFlags} field. */ - public XrVulkanSwapchainCreateInfoMETA.Buffer additionalCreateFlags(@NativeType("VkImageCreateFlags") int value) { XrVulkanSwapchainCreateInfoMETA.nadditionalCreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanSwapchainCreateInfoMETA#additionalUsageFlags} field. */ - public XrVulkanSwapchainCreateInfoMETA.Buffer additionalUsageFlags(@NativeType("VkImageUsageFlags") int value) { XrVulkanSwapchainCreateInfoMETA.nadditionalUsageFlags(address(), value); return this; } + + /** @return the value of the {@link XrVulkanSwapchainCreateInfoMETA#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrVulkanSwapchainCreateInfoMETA.ntype(address()); } + /** @return the value of the {@link XrVulkanSwapchainCreateInfoMETA#next} field. */ + @NativeType("void const *") + public long next() { return XrVulkanSwapchainCreateInfoMETA.nnext(address()); } + /** @return the value of the {@link XrVulkanSwapchainCreateInfoMETA#additionalCreateFlags} field. */ + @NativeType("VkImageCreateFlags") + public int additionalCreateFlags() { return XrVulkanSwapchainCreateInfoMETA.nadditionalCreateFlags(address()); } + /** @return the value of the {@link XrVulkanSwapchainCreateInfoMETA#additionalUsageFlags} field. */ + @NativeType("VkImageUsageFlags") + public int additionalUsageFlags() { return XrVulkanSwapchainCreateInfoMETA.nadditionalUsageFlags(address()); } + + /** Sets the specified value to the {@link XrVulkanSwapchainCreateInfoMETA#type} field. */ + public XrVulkanSwapchainCreateInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanSwapchainCreateInfoMETA.ntype(address(), value); return this; } + /** Sets the {@link METAVulkanSwapchainCreateInfo#XR_TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META} value to the {@link XrVulkanSwapchainCreateInfoMETA#type} field. */ + public XrVulkanSwapchainCreateInfoMETA.Buffer type$Default() { return type(METAVulkanSwapchainCreateInfo.XR_TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META); } + /** Sets the specified value to the {@link XrVulkanSwapchainCreateInfoMETA#next} field. */ + public XrVulkanSwapchainCreateInfoMETA.Buffer next(@NativeType("void const *") long value) { XrVulkanSwapchainCreateInfoMETA.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanSwapchainCreateInfoMETA#additionalCreateFlags} field. */ + public XrVulkanSwapchainCreateInfoMETA.Buffer additionalCreateFlags(@NativeType("VkImageCreateFlags") int value) { XrVulkanSwapchainCreateInfoMETA.nadditionalCreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanSwapchainCreateInfoMETA#additionalUsageFlags} field. */ + public XrVulkanSwapchainCreateInfoMETA.Buffer additionalUsageFlags(@NativeType("VkImageUsageFlags") int value) { XrVulkanSwapchainCreateInfoMETA.nadditionalUsageFlags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanSwapchainFormatListCreateInfoKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanSwapchainFormatListCreateInfoKHR.java index c00b2e7a4b..6e5ed20b34 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanSwapchainFormatListCreateInfoKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanSwapchainFormatListCreateInfoKHR.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 org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * A list of Vulkan view formats. * @@ -43,8 +43,8 @@ * uint32_t {@link #viewFormatCount}; * VkFormat const * {@link #viewFormats}; * } - */ -public class XrVulkanSwapchainFormatListCreateInfoKHR extends Struct implements NativeResource { + */ +public class XrVulkanSwapchainFormatListCreateInfoKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,35 +54,26 @@ public class XrVulkanSwapchainFormatListCreateInfoKHR extends Struct implements NativeResource { @@ -298,9 +289,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 XrVulkanSwapchainFormatListCreateInfoKHR#SIZEOF}, and its mark will be undefined.

        + * by {@link XrVulkanSwapchainFormatListCreateInfoKHR#SIZEOF}, and its mark will be undefined. * *

        The created buffer instance holds a strong reference to the container object.

        */ @@ -325,29 +316,29 @@ protected Buffer self() { protected XrVulkanSwapchainFormatListCreateInfoKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrVulkanSwapchainFormatListCreateInfoKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVulkanSwapchainFormatListCreateInfoKHR.ntype(address()); } - /** @return the value of the {@link XrVulkanSwapchainFormatListCreateInfoKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrVulkanSwapchainFormatListCreateInfoKHR.nnext(address()); } - /** @return the value of the {@link XrVulkanSwapchainFormatListCreateInfoKHR#viewFormatCount} field. */ - @NativeType("uint32_t") - public int viewFormatCount() { return XrVulkanSwapchainFormatListCreateInfoKHR.nviewFormatCount(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrVulkanSwapchainFormatListCreateInfoKHR#viewFormats} field. */ - @Nullable - @NativeType("VkFormat const *") - public IntBuffer viewFormats() { return XrVulkanSwapchainFormatListCreateInfoKHR.nviewFormats(address()); } - - /** Sets the specified value to the {@link XrVulkanSwapchainFormatListCreateInfoKHR#type} field. */ - public XrVulkanSwapchainFormatListCreateInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanSwapchainFormatListCreateInfoKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanSwapchainFormatList#XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR} value to the {@link XrVulkanSwapchainFormatListCreateInfoKHR#type} field. */ - public XrVulkanSwapchainFormatListCreateInfoKHR.Buffer type$Default() { return type(KHRVulkanSwapchainFormatList.XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR); } - /** Sets the specified value to the {@link XrVulkanSwapchainFormatListCreateInfoKHR#next} field. */ - public XrVulkanSwapchainFormatListCreateInfoKHR.Buffer next(@NativeType("void const *") long value) { XrVulkanSwapchainFormatListCreateInfoKHR.nnext(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrVulkanSwapchainFormatListCreateInfoKHR#viewFormats} field. */ - public XrVulkanSwapchainFormatListCreateInfoKHR.Buffer viewFormats(@Nullable @NativeType("VkFormat const *") IntBuffer value) { XrVulkanSwapchainFormatListCreateInfoKHR.nviewFormats(address(), value); return this; } + + /** @return the value of the {@link XrVulkanSwapchainFormatListCreateInfoKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrVulkanSwapchainFormatListCreateInfoKHR.ntype(address()); } + /** @return the value of the {@link XrVulkanSwapchainFormatListCreateInfoKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrVulkanSwapchainFormatListCreateInfoKHR.nnext(address()); } + /** @return the value of the {@link XrVulkanSwapchainFormatListCreateInfoKHR#viewFormatCount} field. */ + @NativeType("uint32_t") + public int viewFormatCount() { return XrVulkanSwapchainFormatListCreateInfoKHR.nviewFormatCount(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrVulkanSwapchainFormatListCreateInfoKHR#viewFormats} field. */ + @Nullable + @NativeType("VkFormat const *") + public IntBuffer viewFormats() { return XrVulkanSwapchainFormatListCreateInfoKHR.nviewFormats(address()); } + + /** Sets the specified value to the {@link XrVulkanSwapchainFormatListCreateInfoKHR#type} field. */ + public XrVulkanSwapchainFormatListCreateInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanSwapchainFormatListCreateInfoKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanSwapchainFormatList#XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR} value to the {@link XrVulkanSwapchainFormatListCreateInfoKHR#type} field. */ + public XrVulkanSwapchainFormatListCreateInfoKHR.Buffer type$Default() { return type(KHRVulkanSwapchainFormatList.XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR); } + /** Sets the specified value to the {@link XrVulkanSwapchainFormatListCreateInfoKHR#next} field. */ + public XrVulkanSwapchainFormatListCreateInfoKHR.Buffer next(@NativeType("void const *") long value) { XrVulkanSwapchainFormatListCreateInfoKHR.nnext(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrVulkanSwapchainFormatListCreateInfoKHR#viewFormats} field. */ + public XrVulkanSwapchainFormatListCreateInfoKHR.Buffer viewFormats(@Nullable @NativeType("VkFormat const *") IntBuffer value) { XrVulkanSwapchainFormatListCreateInfoKHR.nviewFormats(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/package-info.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/package-info.java index cedfa39158..6f67e46f9a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/package-info.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/package-info.java @@ -3,13 +3,13 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to OpenXR. * *

        OpenXR is a royalty-free, open standard that provides high-performance access to Augmented Reality (AR) and Virtual Reality (VR)—collectively known as * XR—platforms and devices.

        - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.openxr; - + diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/ExtensionTypes.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/ExtensionTypes.kt index b330354128..5a72a90c2e 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/ExtensionTypes.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/ExtensionTypes.kt @@ -203,7 +203,7 @@ val XrInstanceCreateInfoAndroidKHR = struct(Module.OPENXR, "XrInstanceCreateInfo
        Valid Usage (Implicit)
        • The {@link KHRAndroidCreateInstance XR_KHR_android_create_instance} extension must be enabled prior to using ##XrInstanceCreateInfoAndroidKHR
        • -
        • {@code type} must be #TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR
        • +
        • {@code type} must be TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR
        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
        • {@code applicationVM} must be a pointer value
        • {@code applicationActivity} must be a pointer value
        • @@ -213,7 +213,7 @@ val XrInstanceCreateInfoAndroidKHR = struct(Module.OPENXR, "XrInstanceCreateInfo #CreateInstance(), #DestroyInstance() """ - Expression("#TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR")..XrStructureType("type", "the {@code XrStructureType} of this structure.") + Expression("TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR")..XrStructureType("type", "the {@code XrStructureType} of this structure.") nullable..opaque_const_p("next", "{@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.") opaque_p("applicationVM", "a pointer to the JNI’s opaque {@code JavaVM} structure, cast to a void pointer.") opaque_p("applicationActivity", "a JNI reference to an {@code android.app.Activity} that will drive the session lifecycle of this instance, cast to a void pointer.") @@ -2519,7 +2519,7 @@ val XrLoaderInitInfoBaseHeaderKHR = struct(Module.OPENXR, "XrLoaderInitInfoBaseH
          Valid Usage (Implicit)
          • The {@link KHRLoaderInit XR_KHR_loader_init} extension must be enabled prior to using ##XrLoaderInitInfoBaseHeaderKHR
          • -
          • {@code type} must be #TYPE_LOADER_INIT_INFO_ANDROID_KHR
          • +
          • {@code type} must be TYPE_LOADER_INIT_INFO_ANDROID_KHR
          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
          @@ -2539,7 +2539,7 @@ val XrLoaderInitInfoAndroidKHR = struct(Module.OPENXR, "XrLoaderInitInfoAndroidK
          Valid Usage (Implicit)
          • The {@link KHRLoaderInitAndroid XR_KHR_loader_init_android} extension must be enabled prior to using ##XrLoaderInitInfoAndroidKHR
          • -
          • {@code type} must be #TYPE_LOADER_INIT_INFO_ANDROID_KHR
          • +
          • {@code type} must be TYPE_LOADER_INIT_INFO_ANDROID_KHR
          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
          • {@code applicationVM} must be a pointer value
          • {@code applicationContext} must be a pointer value
          • @@ -2549,7 +2549,7 @@ val XrLoaderInitInfoAndroidKHR = struct(Module.OPENXR, "XrLoaderInitInfoAndroidK #InitializeLoaderKHR() """ - Expression("#TYPE_LOADER_INIT_INFO_ANDROID_KHR")..XrStructureType("type", "the {@code XrStructureType} of this structure.") + Expression("TYPE_LOADER_INIT_INFO_ANDROID_KHR")..XrStructureType("type", "the {@code XrStructureType} of this structure.") nullable..opaque_const_p("next", "{@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.") opaque_p("applicationVM", "a pointer to the JNI’s opaque {@code JavaVM} structure, cast to a void pointer.") opaque_p("applicationContext", "a JNI reference to an {@code android.content.Context} associated with the application, cast to a void pointer.")