From 178dc3eefdcf84a59347ba29efe6b2b94f2b4d20 Mon Sep 17 00:00:00 2001 From: The Judge Date: Fri, 18 Oct 2024 15:36:53 -0700 Subject: [PATCH] Try again --- .../org/lwjgl/openxr/EXTPlaneDetection.java | 641 ------------ .../java/org/lwjgl/openxr/FBScene.java | 408 -------- .../lwjgl/openxr/METAPassthroughColorLut.java | 286 ------ .../openxr/METAPassthroughPreferences.java | 110 --- .../org/lwjgl/openxr/METAVirtualKeyboard.java | 911 ------------------ ...EventDataVirtualKeyboardBackspaceMETA.java | 338 ------- ...ventDataVirtualKeyboardCommitTextMETA.java | 375 ------- .../XrEventDataVirtualKeyboardEnterMETA.java | 338 ------- .../XrEventDataVirtualKeyboardHiddenMETA.java | 338 ------- .../XrEventDataVirtualKeyboardShownMETA.java | 338 ------- .../XrPassthroughColorLutCreateInfoMETA.java | 388 -------- .../openxr/XrPassthroughColorLutDataMETA.java | 298 ------ .../openxr/XrPassthroughColorLutMETA.java | 29 - .../XrPassthroughColorLutUpdateInfoMETA.java | 339 ------- ...assthroughColorMapInterpolatedLutMETA.java | 379 -------- .../openxr/XrPassthroughColorMapLutMETA.java | 356 ------- .../openxr/XrPassthroughPreferencesMETA.java | 321 ------ .../openxr/XrPlaneDetectorBeginInfoEXT.java | 522 ---------- .../openxr/XrPlaneDetectorCreateInfoEXT.java | 328 ------- .../org/lwjgl/openxr/XrPlaneDetectorEXT.java | 29 - .../openxr/XrPlaneDetectorGetInfoEXT.java | 354 ------- .../openxr/XrPlaneDetectorLocationEXT.java | 450 --------- .../openxr/XrPlaneDetectorLocationsEXT.java | 366 ------- .../XrPlaneDetectorPolygonBufferEXT.java | 366 ------- .../org/lwjgl/openxr/XrSemanticLabelsFB.java | 370 ------- .../openxr/XrSemanticLabelsSupportInfoFB.java | 368 ------- .../XrSystemPlaneDetectionPropertiesEXT.java | 315 ------ ...XrSystemVirtualKeyboardPropertiesMETA.java | 319 ------ .../XrVirtualKeyboardAnimationStateMETA.java | 341 ------- .../XrVirtualKeyboardCreateInfoMETA.java | 309 ------ .../XrVirtualKeyboardInputInfoMETA.java | 390 -------- .../XrVirtualKeyboardLocationInfoMETA.java | 399 -------- .../lwjgl/openxr/XrVirtualKeyboardMETA.java | 29 - ...rtualKeyboardModelAnimationStatesMETA.java | 366 ------- ...ualKeyboardModelVisibilitySetInfoMETA.java | 323 ------- .../XrVirtualKeyboardSpaceCreateInfoMETA.java | 381 -------- ...tualKeyboardTextContextChangeInfoMETA.java | 345 ------- .../XrVirtualKeyboardTextureDataMETA.java | 406 -------- 38 files changed, 13269 deletions(-) delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPlaneDetection.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBScene.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAPassthroughColorLut.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAPassthroughPreferences.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAVirtualKeyboard.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardBackspaceMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardCommitTextMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardEnterMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardHiddenMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardShownMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorLutCreateInfoMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorLutDataMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorLutMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorLutUpdateInfoMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapInterpolatedLutMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapLutMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughPreferencesMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorBeginInfoEXT.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorCreateInfoEXT.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorEXT.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorGetInfoEXT.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorLocationEXT.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorLocationsEXT.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorPolygonBufferEXT.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSemanticLabelsFB.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSemanticLabelsSupportInfoFB.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPlaneDetectionPropertiesEXT.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemVirtualKeyboardPropertiesMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardAnimationStateMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardCreateInfoMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardInputInfoMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardLocationInfoMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardModelAnimationStatesMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardModelVisibilitySetInfoMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardSpaceCreateInfoMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardTextContextChangeInfoMETA.java delete mode 100644 modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardTextureDataMETA.java diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPlaneDetection.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPlaneDetection.java deleted file mode 100644 index 26d086aa54..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPlaneDetection.java +++ /dev/null @@ -1,641 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.*; - -/** - * The XR_EXT_plane_detection extension. - * - *

This extension enables applications to detect planes in the scene.

- */ -public class EXTPlaneDetection { - - /** The extension specification version. */ - public static final int XR_EXT_plane_detection_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_EXT_PLANE_DETECTION_EXTENSION_NAME = "XR_EXT_plane_detection"; - - /** - * Extends {@code XrResult}. - * - *
Enum values:
- * - * - */ - public static final int - XR_ERROR_SPACE_NOT_LOCATABLE_EXT = -1000429000, - XR_ERROR_PLANE_DETECTION_PERMISSION_DENIED_EXT = -1000429001; - - /** Extends {@code XrObjectType}. */ - public static final int XR_OBJECT_TYPE_PLANE_DETECTOR_EXT = 1000429000; - - /** - * Extends {@code XrStructureType}. - * - *
Enum values:
- * - * - */ - public static final int - XR_TYPE_PLANE_DETECTOR_CREATE_INFO_EXT = 1000429001, - XR_TYPE_PLANE_DETECTOR_BEGIN_INFO_EXT = 1000429002, - XR_TYPE_PLANE_DETECTOR_GET_INFO_EXT = 1000429003, - XR_TYPE_PLANE_DETECTOR_LOCATIONS_EXT = 1000429004, - XR_TYPE_PLANE_DETECTOR_LOCATION_EXT = 1000429005, - XR_TYPE_PLANE_DETECTOR_POLYGON_BUFFER_EXT = 1000429006, - XR_TYPE_SYSTEM_PLANE_DETECTION_PROPERTIES_EXT = 1000429007; - - /** - * XrPlaneDetectionCapabilityFlagBitsEXT - Feature Flag Bits - * - *
Description
- * - *

The flag bits have the following meanings:

- * - *
Flag Descriptions
- * - * - */ - public static final int - XR_PLANE_DETECTION_CAPABILITY_PLANE_DETECTION_BIT_EXT = 0x1, - XR_PLANE_DETECTION_CAPABILITY_PLANE_HOLES_BIT_EXT = 0x2, - XR_PLANE_DETECTION_CAPABILITY_SEMANTIC_CEILING_BIT_EXT = 0x4, - XR_PLANE_DETECTION_CAPABILITY_SEMANTIC_FLOOR_BIT_EXT = 0x8, - XR_PLANE_DETECTION_CAPABILITY_SEMANTIC_WALL_BIT_EXT = 0x10, - XR_PLANE_DETECTION_CAPABILITY_SEMANTIC_PLATFORM_BIT_EXT = 0x20, - XR_PLANE_DETECTION_CAPABILITY_ORIENTATION_BIT_EXT = 0x40; - - /** - * XrPlaneDetectorFlagBitsEXT - Plane Detector flags - * - *
Description
- * - *

The flag bits have the following meanings:

- * - *
Flag Descriptions
- * - * - */ - public static final int XR_PLANE_DETECTOR_ENABLE_CONTOUR_BIT_EXT = 0x1; - - /** - * XrPlaneDetectorOrientationEXT - Orientation of the detected plane (upward, downward…​) - * - *
Description
- * - *

The enums have the following meanings:

- * - * - * - * - * - * - * - * - * - *
EnumDescription
{@link #XR_PLANE_DETECTOR_ORIENTATION_HORIZONTAL_UPWARD_EXT PLANE_DETECTOR_ORIENTATION_HORIZONTAL_UPWARD_EXT}The detected plane is horizontal and faces upward (e.g. floor).
{@link #XR_PLANE_DETECTOR_ORIENTATION_HORIZONTAL_DOWNWARD_EXT PLANE_DETECTOR_ORIENTATION_HORIZONTAL_DOWNWARD_EXT}The detected plane is horizontal and faces downward (e.g. ceiling).
{@link #XR_PLANE_DETECTOR_ORIENTATION_VERTICAL_EXT PLANE_DETECTOR_ORIENTATION_VERTICAL_EXT}The detected plane is vertical (e.g. wall).
{@link #XR_PLANE_DETECTOR_ORIENTATION_ARBITRARY_EXT PLANE_DETECTOR_ORIENTATION_ARBITRARY_EXT}The detected plane has an arbitrary, non-vertical and non-horizontal orientation.
- * - *
See Also
- * - *

{@link XrPlaneDetectorBeginInfoEXT}, {@link XrPlaneDetectorLocationEXT}, {@link #xrGetPlaneDetectionsEXT GetPlaneDetectionsEXT}

- */ - public static final int - XR_PLANE_DETECTOR_ORIENTATION_HORIZONTAL_UPWARD_EXT = 0, - XR_PLANE_DETECTOR_ORIENTATION_HORIZONTAL_DOWNWARD_EXT = 1, - XR_PLANE_DETECTOR_ORIENTATION_VERTICAL_EXT = 2, - XR_PLANE_DETECTOR_ORIENTATION_ARBITRARY_EXT = 3; - - /** - * XrPlaneDetectorSemanticTypeEXT - Type of the detected plane (upward, downward…​) - * - *
Description
- * - *

The enums have the following meanings:

- * - * - * - * - * - * - * - * - * - * - *
EnumDescription
{@link #XR_PLANE_DETECTOR_SEMANTIC_TYPE_UNDEFINED_EXT PLANE_DETECTOR_SEMANTIC_TYPE_UNDEFINED_EXT}The runtime was unable to classify this plane.
{@link #XR_PLANE_DETECTOR_SEMANTIC_TYPE_CEILING_EXT PLANE_DETECTOR_SEMANTIC_TYPE_CEILING_EXT}The detected plane is a ceiling.
{@link #XR_PLANE_DETECTOR_SEMANTIC_TYPE_FLOOR_EXT PLANE_DETECTOR_SEMANTIC_TYPE_FLOOR_EXT}The detected plane is a floor.
{@link #XR_PLANE_DETECTOR_SEMANTIC_TYPE_WALL_EXT PLANE_DETECTOR_SEMANTIC_TYPE_WALL_EXT}The detected plane is a wall.
{@link #XR_PLANE_DETECTOR_SEMANTIC_TYPE_PLATFORM_EXT PLANE_DETECTOR_SEMANTIC_TYPE_PLATFORM_EXT}The detected plane is a platform, like a table.
- * - *
See Also
- * - *

{@link XrPlaneDetectorBeginInfoEXT}, {@link XrPlaneDetectorLocationEXT}, {@link #xrGetPlaneDetectionsEXT GetPlaneDetectionsEXT}

- */ - public static final int - XR_PLANE_DETECTOR_SEMANTIC_TYPE_UNDEFINED_EXT = 0, - XR_PLANE_DETECTOR_SEMANTIC_TYPE_CEILING_EXT = 1, - XR_PLANE_DETECTOR_SEMANTIC_TYPE_FLOOR_EXT = 2, - XR_PLANE_DETECTOR_SEMANTIC_TYPE_WALL_EXT = 3, - XR_PLANE_DETECTOR_SEMANTIC_TYPE_PLATFORM_EXT = 4; - - /** - * XrPlaneDetectionStateEXT - Plane Detection State - * - *
Enumerant Descriptions
- * - * - * - *
See Also
- * - *

{@link #xrGetPlaneDetectionStateEXT GetPlaneDetectionStateEXT}, {@link #xrGetPlaneDetectionsEXT GetPlaneDetectionsEXT}

- */ - public static final int - XR_PLANE_DETECTION_STATE_NONE_EXT = 0, - XR_PLANE_DETECTION_STATE_PENDING_EXT = 1, - XR_PLANE_DETECTION_STATE_DONE_EXT = 2, - XR_PLANE_DETECTION_STATE_ERROR_EXT = 3, - XR_PLANE_DETECTION_STATE_FATAL_EXT = 4; - - protected EXTPlaneDetection() { - throw new UnsupportedOperationException(); - } - - // --- [ xrCreatePlaneDetectorEXT ] --- - - /** Unsafe version of: {@link #xrCreatePlaneDetectorEXT CreatePlaneDetectorEXT} */ - public static int nxrCreatePlaneDetectorEXT(XrSession session, long createInfo, long planeDetector) { - long __functionAddress = session.getCapabilities().xrCreatePlaneDetectorEXT; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), createInfo, planeDetector, __functionAddress); - } - - /** - * Create a plane detection handle. - * - *
C Specification
- * - *

The {@link #xrCreatePlaneDetectorEXT CreatePlaneDetectorEXT} function is defined as:

- * - *

-     * XrResult xrCreatePlaneDetectorEXT(
-     *     XrSession                                   session,
-     *     const XrPlaneDetectorCreateInfoEXT*         createInfo,
-     *     XrPlaneDetectorEXT*                         planeDetector);
- * - *
Description
- * - *

An application creates an {@code XrPlaneDetectorEXT} handle using {@link #xrCreatePlaneDetectorEXT CreatePlaneDetectorEXT} function.

- * - *

If the system does not support plane detection, the runtime must return {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED} from {@link #xrCreatePlaneDetectorEXT CreatePlaneDetectorEXT}.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link XR10#XR_ERROR_OUT_OF_MEMORY ERROR_OUT_OF_MEMORY}
  • - *
  • {@link XR10#XR_ERROR_LIMIT_REACHED ERROR_LIMIT_REACHED}
  • - *
  • {@link #XR_ERROR_PLANE_DETECTION_PERMISSION_DENIED_EXT ERROR_PLANE_DETECTION_PERMISSION_DENIED_EXT}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - *
See Also
- * - *

{@link XrPlaneDetectorCreateInfoEXT}, {@link #xrBeginPlaneDetectionEXT BeginPlaneDetectionEXT}, {@link #xrDestroyPlaneDetectorEXT DestroyPlaneDetectorEXT}

- * - * @param session an {@code XrSession} in which the plane detection will be active. - * @param createInfo the {@link XrPlaneDetectorCreateInfoEXT} used to specify the plane detection. - * @param planeDetector the returned {@code XrPlaneDetectorEXT} handle. - */ - @NativeType("XrResult") - public static int xrCreatePlaneDetectorEXT(XrSession session, @NativeType("XrPlaneDetectorCreateInfoEXT const *") XrPlaneDetectorCreateInfoEXT createInfo, @NativeType("XrPlaneDetectorEXT *") PointerBuffer planeDetector) { - if (CHECKS) { - check(planeDetector, 1); - } - return nxrCreatePlaneDetectorEXT(session, createInfo.address(), memAddress(planeDetector)); - } - - // --- [ xrDestroyPlaneDetectorEXT ] --- - - /** - * Destroy a plane detection handle. - * - *
C Specification
- * - *

The {@link #xrDestroyPlaneDetectorEXT DestroyPlaneDetectorEXT} function is defined as:

- * - *

-     * XrResult xrDestroyPlaneDetectorEXT(
-     *     XrPlaneDetectorEXT                          planeDetector);
- * - *
Description
- * - *

{@link #xrDestroyPlaneDetectorEXT DestroyPlaneDetectorEXT} function releases the {@code planeDetector} and the underlying resources when finished with plane detection experiences.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Thread Safety
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
- *
- * - *
See Also
- * - *

{@link #xrCreatePlaneDetectorEXT CreatePlaneDetectorEXT}

- * - * @param planeDetector an {@code XrPlaneDetectorEXT} previously created by {@link #xrCreatePlaneDetectorEXT CreatePlaneDetectorEXT}. - */ - @NativeType("XrResult") - public static int xrDestroyPlaneDetectorEXT(XrPlaneDetectorEXT planeDetector) { - long __functionAddress = planeDetector.getCapabilities().xrDestroyPlaneDetectorEXT; - if (CHECKS) { - check(__functionAddress); - } - return callPI(planeDetector.address(), __functionAddress); - } - - // --- [ xrBeginPlaneDetectionEXT ] --- - - /** Unsafe version of: {@link #xrBeginPlaneDetectionEXT BeginPlaneDetectionEXT} */ - public static int nxrBeginPlaneDetectionEXT(XrPlaneDetectorEXT planeDetector, long beginInfo) { - long __functionAddress = planeDetector.getCapabilities().xrBeginPlaneDetectionEXT; - if (CHECKS) { - check(__functionAddress); - XrPlaneDetectorBeginInfoEXT.validate(beginInfo); - } - return callPPI(planeDetector.address(), beginInfo, __functionAddress); - } - - /** - * Detect planes. - * - *
C Specification
- * - *

The {@link #xrBeginPlaneDetectionEXT BeginPlaneDetectionEXT} function is defined as:

- * - *

-     * XrResult xrBeginPlaneDetectionEXT(
-     *     XrPlaneDetectorEXT                          planeDetector,
-     *     const XrPlaneDetectorBeginInfoEXT*          beginInfo);
- * - *
Description
- * - *

The {@link #xrBeginPlaneDetectionEXT BeginPlaneDetectionEXT} function begins the detection of planes in the scene. Detecting planes in a scene is an asynchronous operation. {@link #xrGetPlaneDetectionStateEXT GetPlaneDetectionStateEXT} can be used to determine if the query has finished. Once it has finished the results may be retrieved via {@link #xrGetPlaneDetectionsEXT GetPlaneDetectionsEXT}. If a detection has already been started on a plane detector handle, calling {@link #xrBeginPlaneDetectionEXT BeginPlaneDetectionEXT} again on the same handle will cancel the operation in progress and start a new detection with the new filter parameters.

- * - *

The bounding volume is resolved and fixed relative to LOCAL space at the time of the call to {@link #xrBeginPlaneDetectionEXT BeginPlaneDetectionEXT} using {@link XrPlaneDetectorBeginInfoEXT}{@code ::baseSpace}, {@link XrPlaneDetectorBeginInfoEXT}{@code ::time}, {@link XrPlaneDetectorBeginInfoEXT}{@code ::boundingBoxPose} and {@link XrPlaneDetectorBeginInfoEXT}{@code ::boundingBoxExtent}. The runtime must resolve the location defined by {@code baseSpace} at the time of the call. The {@link XrPlaneDetectorBeginInfoEXT}{@code ::boundingBoxPose} is the pose of the center of the box defined by {@link XrPlaneDetectorBeginInfoEXT}{@code ::boundingBoxExtent}.

- * - *

The runtime must return {@link #XR_ERROR_SPACE_NOT_LOCATABLE_EXT ERROR_SPACE_NOT_LOCATABLE_EXT} if the {@code baseSpace} is not locatable at the time of the call.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link XR10#XR_ERROR_TIME_INVALID ERROR_TIME_INVALID}
  • - *
  • {@link #XR_ERROR_SPACE_NOT_LOCATABLE_EXT ERROR_SPACE_NOT_LOCATABLE_EXT}
  • - *
  • {@link XR10#XR_ERROR_POSE_INVALID ERROR_POSE_INVALID}
  • - *
- *
- * - *
See Also
- * - *

{@link XrPlaneDetectorBeginInfoEXT}, {@link XrPlaneDetectorGetInfoEXT}, {@link #xrGetPlaneDetectionsEXT GetPlaneDetectionsEXT}

- * - * @param planeDetector an {@code XrPlaneDetectorEXT} previously created by {@link #xrCreatePlaneDetectorEXT CreatePlaneDetectorEXT}. - * @param beginInfo a pointer to {@link XrPlaneDetectorBeginInfoEXT} containing plane detection parameters. - */ - @NativeType("XrResult") - public static int xrBeginPlaneDetectionEXT(XrPlaneDetectorEXT planeDetector, @NativeType("XrPlaneDetectorBeginInfoEXT const *") XrPlaneDetectorBeginInfoEXT beginInfo) { - return nxrBeginPlaneDetectionEXT(planeDetector, beginInfo.address()); - } - - // --- [ xrGetPlaneDetectionStateEXT ] --- - - /** Unsafe version of: {@link #xrGetPlaneDetectionStateEXT GetPlaneDetectionStateEXT} */ - public static int nxrGetPlaneDetectionStateEXT(XrPlaneDetectorEXT planeDetector, long state) { - long __functionAddress = planeDetector.getCapabilities().xrGetPlaneDetectionStateEXT; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(planeDetector.address(), state, __functionAddress); - } - - /** - * Get the state of the plane detection pass. - * - *
C Specification
- * - *

The {@link #xrGetPlaneDetectionStateEXT GetPlaneDetectionStateEXT} function is defined as:

- * - *

-     * XrResult xrGetPlaneDetectionStateEXT(
-     *     XrPlaneDetectorEXT                          planeDetector,
-     *     XrPlaneDetectionStateEXT*                   state);
- * - *
Description
- * - *

The {@link #xrGetPlaneDetectionStateEXT GetPlaneDetectionStateEXT} function retrieves the state of the plane query and must be called before calling {@link #xrGetPlaneDetectionsEXT GetPlaneDetectionsEXT}.

- * - *

If the plane detection has not yet finished {@code state} must be {@link #XR_PLANE_DETECTION_STATE_PENDING_EXT PLANE_DETECTION_STATE_PENDING_EXT}. If the plane detection has finished {@code state} must be {@link #XR_PLANE_DETECTION_STATE_DONE_EXT PLANE_DETECTION_STATE_DONE_EXT}. If no plane detection was previously started {@link #XR_PLANE_DETECTION_STATE_NONE_EXT PLANE_DETECTION_STATE_NONE_EXT} must be returned. For all three states the function must return {@link XR10#XR_SUCCESS SUCCESS}.

- * - *

When a query error occurs the function must return {@link XR10#XR_SUCCESS SUCCESS} and the appropriate error state value must be set.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
- *
- * - *
See Also
- * - *

{@link #xrBeginPlaneDetectionEXT BeginPlaneDetectionEXT}

- * - * @param planeDetector an {@code XrPlaneDetectorEXT} previously created by {@link #xrCreatePlaneDetectorEXT CreatePlaneDetectorEXT}. - * @param state a pointer to {@code XrPlaneDetectionStateEXT}. - */ - @NativeType("XrResult") - public static int xrGetPlaneDetectionStateEXT(XrPlaneDetectorEXT planeDetector, @NativeType("XrPlaneDetectionStateEXT *") IntBuffer state) { - if (CHECKS) { - check(state, 1); - } - return nxrGetPlaneDetectionStateEXT(planeDetector, memAddress(state)); - } - - // --- [ xrGetPlaneDetectionsEXT ] --- - - /** Unsafe version of: {@link #xrGetPlaneDetectionsEXT GetPlaneDetectionsEXT} */ - public static int nxrGetPlaneDetectionsEXT(XrPlaneDetectorEXT planeDetector, long info, long locations) { - long __functionAddress = planeDetector.getCapabilities().xrGetPlaneDetectionsEXT; - if (CHECKS) { - check(__functionAddress); - XrPlaneDetectorGetInfoEXT.validate(info); - } - return callPPPI(planeDetector.address(), info, locations, __functionAddress); - } - - /** - * Get the detected planes. - * - *
C Specification
- * - *

The {@link #xrGetPlaneDetectionsEXT GetPlaneDetectionsEXT} function is defined as:

- * - *

-     * XrResult xrGetPlaneDetectionsEXT(
-     *     XrPlaneDetectorEXT                          planeDetector,
-     *     const XrPlaneDetectorGetInfoEXT*            info,
-     *     XrPlaneDetectorLocationsEXT*                locations);
- * - *
Description
- * - *

{@link #xrGetPlaneDetectionsEXT GetPlaneDetectionsEXT} must return {@link XR10#XR_ERROR_CALL_ORDER_INVALID ERROR_CALL_ORDER_INVALID} if the detector state reported by {@link #xrGetPlaneDetectionStateEXT GetPlaneDetectionStateEXT} is not {@link #XR_PLANE_DETECTION_STATE_DONE_EXT PLANE_DETECTION_STATE_DONE_EXT} for the current query started by {@link #xrBeginPlaneDetectionEXT BeginPlaneDetectionEXT}.

- * - *

If the {@link XrPlaneDetectorGetInfoEXT}::baseSpace is not locatable {@link #XR_ERROR_SPACE_NOT_LOCATABLE_EXT ERROR_SPACE_NOT_LOCATABLE_EXT} must be returned.

- * - *

Once {@link #xrBeginPlaneDetectionEXT BeginPlaneDetectionEXT} is called again, the previous results for that handle are no longer available. The application should cache them before calling {@link #xrBeginPlaneDetectionEXT BeginPlaneDetectionEXT} again if it needs access to that data while waiting for updated detection results.

- * - *

Upon the completion of a detection cycle ({@link #xrBeginPlaneDetectionEXT BeginPlaneDetectionEXT}, {@link #xrGetPlaneDetectionStateEXT GetPlaneDetectionStateEXT} to {@link #xrGetPlaneDetectionsEXT GetPlaneDetectionsEXT}) the runtime must keep a snapshot of the plane data and no data may be modified. Calling {@link #xrGetPlaneDetectionsEXT GetPlaneDetectionsEXT} multiple times with the same baseSpace and time must return the same plane pose data.

- * - *

The current snapshot, if any, must be discarded upon calling {@link #xrBeginPlaneDetectionEXT BeginPlaneDetectionEXT}.

- * - *

If the {@link XrEventDataReferenceSpaceChangePending} is queued and the changeTime elapsed while the application is holding cached data the application may use the event data to adjusted poses accordingly.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link XR10#XR_ERROR_TIME_INVALID ERROR_TIME_INVALID}
  • - *
  • {@link #XR_ERROR_SPACE_NOT_LOCATABLE_EXT ERROR_SPACE_NOT_LOCATABLE_EXT}
  • - *
  • {@link XR10#XR_ERROR_CALL_ORDER_INVALID ERROR_CALL_ORDER_INVALID}
  • - *
- *
- * - *
See Also
- * - *

{@link XrPlaneDetectorGetInfoEXT}, {@link XrPlaneDetectorLocationsEXT}, {@link #xrBeginPlaneDetectionEXT BeginPlaneDetectionEXT}

- * - * @param planeDetector an {@code XrPlaneDetectorEXT} previously created by {@link #xrCreatePlaneDetectorEXT CreatePlaneDetectorEXT}. - * @param info a pointer to {@link XrPlaneDetectorGetInfoEXT}. - * @param locations a pointer to {@link XrPlaneDetectorLocationsEXT} receiving the returned plane locations. - */ - @NativeType("XrResult") - public static int xrGetPlaneDetectionsEXT(XrPlaneDetectorEXT planeDetector, @NativeType("XrPlaneDetectorGetInfoEXT const *") XrPlaneDetectorGetInfoEXT info, @NativeType("XrPlaneDetectorLocationsEXT *") XrPlaneDetectorLocationsEXT locations) { - return nxrGetPlaneDetectionsEXT(planeDetector, info.address(), locations.address()); - } - - // --- [ xrGetPlanePolygonBufferEXT ] --- - - /** Unsafe version of: {@link #xrGetPlanePolygonBufferEXT GetPlanePolygonBufferEXT} */ - public static int nxrGetPlanePolygonBufferEXT(XrPlaneDetectorEXT planeDetector, long planeId, int polygonBufferIndex, long polygonBuffer) { - long __functionAddress = planeDetector.getCapabilities().xrGetPlanePolygonBufferEXT; - if (CHECKS) { - check(__functionAddress); - } - return callPJPI(planeDetector.address(), planeId, polygonBufferIndex, polygonBuffer, __functionAddress); - } - - /** - * Gets the plane. - * - *
C Specification
- * - *

The {@link #xrGetPlanePolygonBufferEXT GetPlanePolygonBufferEXT} function is defined as:

- * - *

-     * XrResult xrGetPlanePolygonBufferEXT(
-     *     XrPlaneDetectorEXT                          planeDetector,
-     *     uint64_t                                    planeId,
-     *     uint32_t                                    polygonBufferIndex,
-     *     XrPlaneDetectorPolygonBufferEXT*            polygonBuffer);
- * - *
Description
- * - *

The {@link #xrGetPlanePolygonBufferEXT GetPlanePolygonBufferEXT} function retrieves the plane’s polygon buffer for the given {@code planeId} and {@code polygonBufferIndex}. Calling {@link #xrGetPlanePolygonBufferEXT GetPlanePolygonBufferEXT} with {@code polygonBufferIndex} equal to 0 must return the outside contour, if available. Calls with non-zero indices less than {@link XrPlaneDetectorLocationEXT}{@code ::polygonBufferCount} must return polygons corresponding to holes in the plane. This feature may not be supported by all runtimes, check the {@link XrSystemPlaneDetectionPropertiesEXT}{@code ::supportedFeatures} for support.

- * - *

Outside contour polygon vertices must be ordered in counter clockwise order. Vertices of holes must be ordered in clockwise order. The right-hand rule is used to determine the direction of the normal of this plane. The polygon contour data is relative to the pose of the plane and coplanar with it.

- * - *

This function only retrieves polygons, which means that it needs to be converted to a regular mesh to be rendered.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
- *
- * - *
See Also
- * - *

{@link XrPlaneDetectorPolygonBufferEXT}, {@link #xrGetPlaneDetectionsEXT GetPlaneDetectionsEXT}

- * - * @param planeDetector an {@code XrPlaneDetectorEXT} previously created by {@link #xrCreatePlaneDetectorEXT CreatePlaneDetectorEXT}. - * @param planeId the {@link XrPlaneDetectorLocationEXT}{@code ::planeId}. - * @param polygonBufferIndex the index of the polygon contour buffer to retrieve. This must be a number from 0 to {@link XrPlaneDetectorLocationEXT}:polygonBufferCount -1. Index 0 retrieves the outside contour, larger indexes retrieve holes in the plane. - * @param polygonBuffer a pointer to {@link XrPlaneDetectorPolygonBufferEXT} receiving the returned plane polygon buffer. - */ - @NativeType("XrResult") - public static int xrGetPlanePolygonBufferEXT(XrPlaneDetectorEXT planeDetector, @NativeType("uint64_t") long planeId, @NativeType("uint32_t") int polygonBufferIndex, @NativeType("XrPlaneDetectorPolygonBufferEXT *") XrPlaneDetectorPolygonBufferEXT polygonBuffer) { - return nxrGetPlanePolygonBufferEXT(planeDetector, planeId, polygonBufferIndex, polygonBuffer.address()); - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBScene.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBScene.java deleted file mode 100644 index 8853a51299..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBScene.java +++ /dev/null @@ -1,408 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.*; - -/** - * The XR_FB_scene extension. - * - *

This extension expands on the concept of spatial entities to include a way for a spatial entity to represent rooms, objects, or other boundaries in a scene.

- * - *

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 FBScene { - - /** The extension specification version. */ - public static final int XR_FB_scene_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_SCENE_EXTENSION_NAME = "XR_FB_scene"; - - /** - * Extends {@code XrStructureType}. - * - *
Enum values:
- * - * - */ - public static final int - XR_TYPE_SEMANTIC_LABELS_FB = 1000175000, - XR_TYPE_ROOM_LAYOUT_FB = 1000175001, - XR_TYPE_BOUNDARY_2D_FB = 1000175002; - - protected FBScene() { - throw new UnsupportedOperationException(); - } - - // --- [ xrGetSpaceBoundingBox2DFB ] --- - - /** Unsafe version of: {@link #xrGetSpaceBoundingBox2DFB GetSpaceBoundingBox2DFB} */ - public static int nxrGetSpaceBoundingBox2DFB(XrSession session, XrSpace space, long boundingBox2DOutput) { - long __functionAddress = session.getCapabilities().xrGetSpaceBoundingBox2DFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), space.address(), boundingBox2DOutput, __functionAddress); - } - - /** - * Gets the 2D bounding box for a spatial entity. - * - *
C Specification
- * - *

The {@link #xrGetSpaceBoundingBox2DFB GetSpaceBoundingBox2DFB} function is defined as:

- * - *

-     * XrResult xrGetSpaceBoundingBox2DFB(
-     *     XrSession                                   session,
-     *     XrSpace                                     space,
-     *     XrRect2Df*                                  boundingBox2DOutput);
- * - *
Description
- * - *

Gets the 2D bounding box for a spatial entity with the {@link FBSpatialEntity#XR_SPACE_COMPONENT_TYPE_BOUNDED_2D_FB SPACE_COMPONENT_TYPE_BOUNDED_2D_FB} component type enabled.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link FBSpatialEntity#XR_ERROR_SPACE_COMPONENT_NOT_ENABLED_FB ERROR_SPACE_COMPONENT_NOT_ENABLED_FB}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - *
See Also
- * - *

{@link XrRect2Df}

- * - * @param session a handle to an {@code XrSession}. - * @param space the {@code XrSpace} handle to the spatial entity. - * @param boundingBox2DOutput an output parameter pointing to the structure containing the 2D bounding box for {@code space}. - */ - @NativeType("XrResult") - public static int xrGetSpaceBoundingBox2DFB(XrSession session, XrSpace space, @NativeType("XrRect2Df *") XrRect2Df boundingBox2DOutput) { - return nxrGetSpaceBoundingBox2DFB(session, space, boundingBox2DOutput.address()); - } - - // --- [ xrGetSpaceBoundingBox3DFB ] --- - - /** Unsafe version of: {@link #xrGetSpaceBoundingBox3DFB GetSpaceBoundingBox3DFB} */ - public static int nxrGetSpaceBoundingBox3DFB(XrSession session, XrSpace space, long boundingBox3DOutput) { - long __functionAddress = session.getCapabilities().xrGetSpaceBoundingBox3DFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), space.address(), boundingBox3DOutput, __functionAddress); - } - - /** - * Gets the 3D bounding box for a spatial entity. - * - *
C Specification
- * - *

The {@link #xrGetSpaceBoundingBox3DFB GetSpaceBoundingBox3DFB} function is defined as:

- * - *

-     * XrResult xrGetSpaceBoundingBox3DFB(
-     *     XrSession                                   session,
-     *     XrSpace                                     space,
-     *     XrRect3DfFB*                                boundingBox3DOutput);
- * - *
Description
- * - *

Gets the 3D bounding box for a spatial entity with the {@link FBSpatialEntity#XR_SPACE_COMPONENT_TYPE_BOUNDED_3D_FB SPACE_COMPONENT_TYPE_BOUNDED_3D_FB} component type enabled.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link FBSpatialEntity#XR_ERROR_SPACE_COMPONENT_NOT_ENABLED_FB ERROR_SPACE_COMPONENT_NOT_ENABLED_FB}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - *
See Also
- * - *

{@link XrRect3DfFB}

- * - * @param session a handle to an {@code XrSession}. - * @param space the {@code XrSpace} handle to the spatial entity. - * @param boundingBox3DOutput an output parameter pointing to the structure containing the 3D bounding box for {@code space}. - */ - @NativeType("XrResult") - public static int xrGetSpaceBoundingBox3DFB(XrSession session, XrSpace space, @NativeType("XrRect3DfFB *") XrRect3DfFB boundingBox3DOutput) { - return nxrGetSpaceBoundingBox3DFB(session, space, boundingBox3DOutput.address()); - } - - // --- [ xrGetSpaceSemanticLabelsFB ] --- - - /** Unsafe version of: {@link #xrGetSpaceSemanticLabelsFB GetSpaceSemanticLabelsFB} */ - public static int nxrGetSpaceSemanticLabelsFB(XrSession session, XrSpace space, long semanticLabelsOutput) { - long __functionAddress = session.getCapabilities().xrGetSpaceSemanticLabelsFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), space.address(), semanticLabelsOutput, __functionAddress); - } - - /** - * Gets the semantic labels for a spatial entity. - * - *
C Specification
- * - *

The {@link #xrGetSpaceSemanticLabelsFB GetSpaceSemanticLabelsFB} function is defined as:

- * - *

-     * XrResult xrGetSpaceSemanticLabelsFB(
-     *     XrSession                                   session,
-     *     XrSpace                                     space,
-     *     XrSemanticLabelsFB*                         semanticLabelsOutput);
- * - *
Description
- * - *

Gets the semantic labels for a spatial entity with the {@link FBSpatialEntity#XR_SPACE_COMPONENT_TYPE_SEMANTIC_LABELS_FB SPACE_COMPONENT_TYPE_SEMANTIC_LABELS_FB} component type enabled.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link FBSpatialEntity#XR_ERROR_SPACE_COMPONENT_NOT_ENABLED_FB ERROR_SPACE_COMPONENT_NOT_ENABLED_FB}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - *
See Also
- * - *

{@link XrSemanticLabelsFB}

- * - * @param session a handle to an {@code XrSession}. - * @param space the {@code XrSpace} handle to the spatial entity. - * @param semanticLabelsOutput an output parameter pointing to the structure containing the {@link XrSemanticLabelsFB} for {@code space}. - */ - @NativeType("XrResult") - public static int xrGetSpaceSemanticLabelsFB(XrSession session, XrSpace space, @NativeType("XrSemanticLabelsFB *") XrSemanticLabelsFB semanticLabelsOutput) { - return nxrGetSpaceSemanticLabelsFB(session, space, semanticLabelsOutput.address()); - } - - // --- [ xrGetSpaceBoundary2DFB ] --- - - /** Unsafe version of: {@link #xrGetSpaceBoundary2DFB GetSpaceBoundary2DFB} */ - public static int nxrGetSpaceBoundary2DFB(XrSession session, XrSpace space, long boundary2DOutput) { - long __functionAddress = session.getCapabilities().xrGetSpaceBoundary2DFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), space.address(), boundary2DOutput, __functionAddress); - } - - /** - * Gets the 2D boundary for a spatial entity. - * - *
C Specification
- * - *

The {@link #xrGetSpaceBoundary2DFB GetSpaceBoundary2DFB} function is defined as:

- * - *

-     * XrResult xrGetSpaceBoundary2DFB(
-     *     XrSession                                   session,
-     *     XrSpace                                     space,
-     *     XrBoundary2DFB*                             boundary2DOutput);
- * - *
Description
- * - *

Gets the 2D boundary, specified by vertices, for a spatial entity with the {@link FBSpatialEntity#XR_SPACE_COMPONENT_TYPE_BOUNDED_2D_FB SPACE_COMPONENT_TYPE_BOUNDED_2D_FB} component type enabled.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link FBSpatialEntity#XR_ERROR_SPACE_COMPONENT_NOT_ENABLED_FB ERROR_SPACE_COMPONENT_NOT_ENABLED_FB}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - *
See Also
- * - *

{@link XrBoundary2DFB}

- * - * @param session a handle to an {@code XrSession}. - * @param space the {@code XrSpace} handle to the spatial entity. - * @param boundary2DOutput an output parameter pointing to the structure containing the {@link XrBoundary2DFB} for {@code space}. - */ - @NativeType("XrResult") - public static int xrGetSpaceBoundary2DFB(XrSession session, XrSpace space, @NativeType("XrBoundary2DFB *") XrBoundary2DFB boundary2DOutput) { - return nxrGetSpaceBoundary2DFB(session, space, boundary2DOutput.address()); - } - - // --- [ xrGetSpaceRoomLayoutFB ] --- - - /** Unsafe version of: {@link #xrGetSpaceRoomLayoutFB GetSpaceRoomLayoutFB} */ - public static int nxrGetSpaceRoomLayoutFB(XrSession session, XrSpace space, long roomLayoutOutput) { - long __functionAddress = session.getCapabilities().xrGetSpaceRoomLayoutFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), space.address(), roomLayoutOutput, __functionAddress); - } - - /** - * Gets the room layout for a spatial entity. - * - *
C Specification
- * - *

The {@link #xrGetSpaceRoomLayoutFB GetSpaceRoomLayoutFB} function is defined as:

- * - *

-     * XrResult xrGetSpaceRoomLayoutFB(
-     *     XrSession                                   session,
-     *     XrSpace                                     space,
-     *     XrRoomLayoutFB*                             roomLayoutOutput);
- * - *
Description
- * - *

Gets the room layout, specified by UUIDs for each surface, for a spatial entity with the {@link FBSpatialEntity#XR_SPACE_COMPONENT_TYPE_ROOM_LAYOUT_FB SPACE_COMPONENT_TYPE_ROOM_LAYOUT_FB} component type enabled.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link FBSpatialEntity#XR_ERROR_SPACE_COMPONENT_NOT_ENABLED_FB ERROR_SPACE_COMPONENT_NOT_ENABLED_FB}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - *
See Also
- * - *

{@link XrRoomLayoutFB}

- * - * @param session a handle to an {@code XrSession}. - * @param space the {@code XrSpace} handle to the spatial entity. - * @param roomLayoutOutput an output parameter pointing to the structure containing the {@link XrRoomLayoutFB} for {@code space}. - */ - @NativeType("XrResult") - public static int xrGetSpaceRoomLayoutFB(XrSession session, XrSpace space, @NativeType("XrRoomLayoutFB *") XrRoomLayoutFB roomLayoutOutput) { - return nxrGetSpaceRoomLayoutFB(session, space, roomLayoutOutput.address()); - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAPassthroughColorLut.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAPassthroughColorLut.java deleted file mode 100644 index 4a747cc003..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAPassthroughColorLut.java +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.*; - -/** - * The XR_META_passthrough_color_lut extension. - * - *

This extension adds the capability to define and apply RGB to RGB(A) color look-up tables (LUTs) to passthrough layers created using {@link FBPassthrough XR_FB_passthrough}.

- * - *

Color LUTs are 3-dimensional arrays which map each input color to a different output color. When applied to a Passthrough layer, the runtime must transform Passthrough camera images according to this map before display. Color LUTs may be used to achieve effects such as color grading, level control, color filtering, or chroma keying.

- * - *

Color LUTs must be created using {@link #xrCreatePassthroughColorLutMETA CreatePassthroughColorLutMETA} before they can be applied to a Passthrough layer in a call to {@link FBPassthrough#xrPassthroughLayerSetStyleFB PassthroughLayerSetStyleFB} (as a part of {@link XrPassthroughColorMapLutMETA} or {@link XrPassthroughColorMapInterpolatedLutMETA}). A color LUT may be applied to multiple Passthrough layers simultaneously.

- */ -public class METAPassthroughColorLut { - - /** The extension specification version. */ - public static final int XR_META_passthrough_color_lut_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_META_PASSTHROUGH_COLOR_LUT_EXTENSION_NAME = "XR_META_passthrough_color_lut"; - - /** - * Extends {@code XrStructureType}. - * - *
Enum values:
- * - * - */ - public static final int - XR_TYPE_SYSTEM_PASSTHROUGH_COLOR_LUT_PROPERTIES_META = 1000266000, - XR_TYPE_PASSTHROUGH_COLOR_LUT_CREATE_INFO_META = 1000266001, - XR_TYPE_PASSTHROUGH_COLOR_LUT_UPDATE_INFO_META = 1000266002, - XR_TYPE_PASSTHROUGH_COLOR_MAP_LUT_META = 1000266100, - XR_TYPE_PASSTHROUGH_COLOR_MAP_INTERPOLATED_LUT_META = 1000266101; - - /** Extends {@code XrObjectType}. */ - public static final int XR_OBJECT_TYPE_PASSTHROUGH_COLOR_LUT_META = 1000266000; - - /** Extends {@code XrResult}. */ - public static final int XR_ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META = -1000266000; - - /** - * XrPassthroughColorLutChannelsMETA - Color channels - * - *
See Also
- * - *

{@link XrPassthroughColorLutCreateInfoMETA}

- * - *
Enum values:
- * - * - */ - public static final int - XR_PASSTHROUGH_COLOR_LUT_CHANNELS_RGB_META = 1, - XR_PASSTHROUGH_COLOR_LUT_CHANNELS_RGBA_META = 2; - - protected METAPassthroughColorLut() { - throw new UnsupportedOperationException(); - } - - // --- [ xrCreatePassthroughColorLutMETA ] --- - - /** Unsafe version of: {@link #xrCreatePassthroughColorLutMETA CreatePassthroughColorLutMETA} */ - public static int nxrCreatePassthroughColorLutMETA(XrPassthroughFB passthrough, long createInfo, long colorLut) { - long __functionAddress = passthrough.getCapabilities().xrCreatePassthroughColorLutMETA; - if (CHECKS) { - check(__functionAddress); - XrPassthroughColorLutCreateInfoMETA.validate(createInfo); - } - return callPPPI(passthrough.address(), createInfo, colorLut, __functionAddress); - } - - /** - * Create a passthrough color LUT. - * - *
C Specification
- * - *

The {@link #xrCreatePassthroughColorLutMETA CreatePassthroughColorLutMETA} function is defined as:

- * - *

-     * XrResult xrCreatePassthroughColorLutMETA(
-     *     XrPassthroughFB                             passthrough,
-     *     const XrPassthroughColorLutCreateInfoMETA*  createInfo,
-     *     XrPassthroughColorLutMETA*                  colorLut);
- * - *
Description
- * - *

Creates a passthrough color LUT. The resulting {@code XrPassthroughColorLutMETA} may be referenced in {@link XrPassthroughColorMapLutMETA} and {@link XrPassthroughColorMapInterpolatedLutMETA} in subsequent calls to {@link FBPassthrough#xrPassthroughLayerSetStyleFB PassthroughLayerSetStyleFB}.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link XR10#XR_ERROR_OUT_OF_MEMORY ERROR_OUT_OF_MEMORY}
  • - *
  • {@link XR10#XR_ERROR_LIMIT_REACHED ERROR_LIMIT_REACHED}
  • - *
  • {@link #XR_ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - *
See Also
- * - *

{@link XrPassthroughColorLutCreateInfoMETA}

- * - * @param passthrough the {@code XrPassthroughFB} this color LUT is created for. - * @param createInfo the {@link XrPassthroughColorLutCreateInfoMETA}. - * @param colorLut the resulting {@code XrPassthroughColorLutMETA}. - */ - @NativeType("XrResult") - public static int xrCreatePassthroughColorLutMETA(XrPassthroughFB passthrough, @NativeType("XrPassthroughColorLutCreateInfoMETA const *") XrPassthroughColorLutCreateInfoMETA createInfo, @NativeType("XrPassthroughColorLutMETA *") PointerBuffer colorLut) { - if (CHECKS) { - check(colorLut, 1); - } - return nxrCreatePassthroughColorLutMETA(passthrough, createInfo.address(), memAddress(colorLut)); - } - - // --- [ xrDestroyPassthroughColorLutMETA ] --- - - /** - * Destroy a passthrough color LUT. - * - *
C Specification
- * - *

The {@link #xrDestroyPassthroughColorLutMETA DestroyPassthroughColorLutMETA} function is defined as:

- * - *

-     * XrResult xrDestroyPassthroughColorLutMETA(
-     *     XrPassthroughColorLutMETA                   colorLut);
- * - *
Description
- * - *

Destroys a passthrough color LUT. If the color LUT is still in use (i.e. if for at least one passthrough layer, {@link FBPassthrough#xrPassthroughLayerSetStyleFB PassthroughLayerSetStyleFB} has last been called with an instance of {@link XrPassthroughColorMapLutMETA} or {@link XrPassthroughColorMapInterpolatedLutMETA} in the next chain that references this color LUT), the runtime must retain the color LUT data and continue applying it to the affected passthrough layer until a different style is applied.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Thread Safety
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - * @param colorLut the {@code XrPassthroughColorLutMETA} to be destroyed. - */ - @NativeType("XrResult") - public static int xrDestroyPassthroughColorLutMETA(XrPassthroughColorLutMETA colorLut) { - long __functionAddress = colorLut.getCapabilities().xrDestroyPassthroughColorLutMETA; - if (CHECKS) { - check(__functionAddress); - } - return callPI(colorLut.address(), __functionAddress); - } - - // --- [ xrUpdatePassthroughColorLutMETA ] --- - - /** Unsafe version of: {@link #xrUpdatePassthroughColorLutMETA UpdatePassthroughColorLutMETA} */ - public static int nxrUpdatePassthroughColorLutMETA(XrPassthroughColorLutMETA colorLut, long updateInfo) { - long __functionAddress = colorLut.getCapabilities().xrUpdatePassthroughColorLutMETA; - if (CHECKS) { - check(__functionAddress); - XrPassthroughColorLutUpdateInfoMETA.validate(updateInfo); - } - return callPPI(colorLut.address(), updateInfo, __functionAddress); - } - - /** - * Update a passthrough color LUT. - * - *
C Specification
- * - *

The {@link #xrUpdatePassthroughColorLutMETA UpdatePassthroughColorLutMETA} function is defined as:

- * - *

-     * XrResult xrUpdatePassthroughColorLutMETA(
-     *     XrPassthroughColorLutMETA                   colorLut,
-     *     const XrPassthroughColorLutUpdateInfoMETA*  updateInfo);
- * - *
Description
- * - *

Updates the LUT data of a passthrough color LUT. The data type of the color LUT (resolution and channels) is immutable. The provided data in this call must therefore match the data type specified at creation time. Specifically, {@code bufferSize} of the new data must be equal to the {@code bufferSize} specified during creation. Otherwise, the runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}.

- * - *

The runtime must reflect changes to color LUT data on all Passthrough layers the color LUT is currently applied to.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link #XR_ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - *
See Also
- * - *

{@link XrPassthroughColorLutUpdateInfoMETA}

- * - * @param colorLut the {@code XrPassthroughColorLutMETA} to be updated. - * @param updateInfo the {@link XrPassthroughColorLutUpdateInfoMETA}. - */ - @NativeType("XrResult") - public static int xrUpdatePassthroughColorLutMETA(XrPassthroughColorLutMETA colorLut, @NativeType("XrPassthroughColorLutUpdateInfoMETA const *") XrPassthroughColorLutUpdateInfoMETA updateInfo) { - return nxrUpdatePassthroughColorLutMETA(colorLut, updateInfo.address()); - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAPassthroughPreferences.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAPassthroughPreferences.java deleted file mode 100644 index 1297c70e3c..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAPassthroughPreferences.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.*; - -/** - * The XR_META_passthrough_preferences extension. - * - *

This extension provides applications with access to system preferences concerning passthrough. For more information on how applications can control the display of passthrough, see {@link FBPassthrough XR_FB_passthrough}.

- */ -public class METAPassthroughPreferences { - - /** The extension specification version. */ - public static final int XR_META_passthrough_preferences_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_META_PASSTHROUGH_PREFERENCES_EXTENSION_NAME = "XR_META_passthrough_preferences"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_PASSTHROUGH_PREFERENCES_META = 1000217000; - - /** - * XrPassthroughPreferenceFlagBitsMETA - XrPassthroughPreferenceFlagBitsMETA - * - *
Flag Descriptions
- * - * - */ - public static final int XR_PASSTHROUGH_PREFERENCE_DEFAULT_TO_ACTIVE_BIT_META = 0x1; - - protected METAPassthroughPreferences() { - throw new UnsupportedOperationException(); - } - - // --- [ xrGetPassthroughPreferencesMETA ] --- - - /** Unsafe version of: {@link #xrGetPassthroughPreferencesMETA GetPassthroughPreferencesMETA} */ - public static int nxrGetPassthroughPreferencesMETA(XrSession session, long preferences) { - long __functionAddress = session.getCapabilities().xrGetPassthroughPreferencesMETA; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(session.address(), preferences, __functionAddress); - } - - /** - * Get passthrough preferences. - * - *
C Specification
- * - *

The {@link #xrGetPassthroughPreferencesMETA GetPassthroughPreferencesMETA} function is defined as:

- * - *

-     * XrResult xrGetPassthroughPreferencesMETA(
-     *     XrSession                                   session,
-     *     XrPassthroughPreferencesMETA*               preferences);
- * - *
Description
- * - *

An application can call {@link #xrGetPassthroughPreferencesMETA GetPassthroughPreferencesMETA} to retrieve passthrough-related preferences from the system.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
- *
- * - *
See Also
- * - *

{@link XrPassthroughPreferencesMETA}

- * - * @param session the {@code XrSession}. - * @param preferences points to an instance of {@link XrPassthroughPreferencesMETA} structure, that will be filled with returned information - */ - @NativeType("XrResult") - public static int xrGetPassthroughPreferencesMETA(XrSession session, @NativeType("XrPassthroughPreferencesMETA *") XrPassthroughPreferencesMETA preferences) { - return nxrGetPassthroughPreferencesMETA(session, preferences.address()); - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAVirtualKeyboard.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAVirtualKeyboard.java deleted file mode 100644 index 6276e7fae2..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAVirtualKeyboard.java +++ /dev/null @@ -1,911 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.*; - -/** - * The XR_META_virtual_keyboard extension. - * - *

The virtual keyboard extension provides a system-driven localized keyboard that the application has full control over in terms of positioning and rendering.

- * - *

This is achieved by giving the application the data required to drive rendering and animation of the keyboard in response to interaction data passed from the application to the runtime.

- * - *

This approach is an alternative to a potential system keyboard overlay solution and provides a keyboard that can seamlessly blend into the application environment, since it is rendered by the same system, and avoids input focus issues that might come with a system overlay.

- * - *

The API is also designed to work with custom hand and/or controller models in various games and applications.

- */ -public class METAVirtualKeyboard { - - /** The extension specification version. */ - public static final int XR_META_virtual_keyboard_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_META_VIRTUAL_KEYBOARD_EXTENSION_NAME = "XR_META_virtual_keyboard"; - - /** XR_MAX_VIRTUAL_KEYBOARD_COMMIT_TEXT_SIZE_META */ - public static final int XR_MAX_VIRTUAL_KEYBOARD_COMMIT_TEXT_SIZE_META = 3992; - - /** Extends {@code XrObjectType}. */ - public static final int XR_OBJECT_TYPE_VIRTUAL_KEYBOARD_META = 1000219000; - - /** - * Extends {@code XrStructureType}. - * - *
Enum values:
- * - * - */ - public static final int - XR_TYPE_SYSTEM_VIRTUAL_KEYBOARD_PROPERTIES_META = 1000219001, - XR_TYPE_VIRTUAL_KEYBOARD_CREATE_INFO_META = 1000219002, - XR_TYPE_VIRTUAL_KEYBOARD_SPACE_CREATE_INFO_META = 1000219003, - XR_TYPE_VIRTUAL_KEYBOARD_LOCATION_INFO_META = 1000219004, - XR_TYPE_VIRTUAL_KEYBOARD_MODEL_VISIBILITY_SET_INFO_META = 1000219005, - XR_TYPE_VIRTUAL_KEYBOARD_ANIMATION_STATE_META = 1000219006, - XR_TYPE_VIRTUAL_KEYBOARD_MODEL_ANIMATION_STATES_META = 1000219007, - XR_TYPE_VIRTUAL_KEYBOARD_TEXTURE_DATA_META = 1000219009, - XR_TYPE_VIRTUAL_KEYBOARD_INPUT_INFO_META = 1000219010, - XR_TYPE_VIRTUAL_KEYBOARD_TEXT_CONTEXT_CHANGE_INFO_META = 1000219011, - XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_COMMIT_TEXT_META = 1000219014, - XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_BACKSPACE_META = 1000219015, - XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_ENTER_META = 1000219016, - XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_SHOWN_META = 1000219017, - XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_HIDDEN_META = 1000219018; - - /** - * XrVirtualKeyboardLocationTypeMETA - Enum describing keyboard placement types - * - *
Enumerant Descriptions
- * - * - * - *
See Also
- * - *

{@link XrVirtualKeyboardLocationInfoMETA}, {@link XrVirtualKeyboardSpaceCreateInfoMETA}

- */ - public static final int - XR_VIRTUAL_KEYBOARD_LOCATION_TYPE_CUSTOM_META = 0, - XR_VIRTUAL_KEYBOARD_LOCATION_TYPE_FAR_META = 1, - XR_VIRTUAL_KEYBOARD_LOCATION_TYPE_DIRECT_META = 2; - - /** - * XrVirtualKeyboardInputSourceMETA - Enum describing keyboard input source types - * - *
Description
- * - * - * - * - * - * - * - * - * - * - * - * - * - *
EnumDescription
{@link #XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_RAY_LEFT_META VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_RAY_LEFT_META}Left controller ray.
{@link #XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_RAY_RIGHT_META VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_RAY_RIGHT_META}Right controller ray.
{@link #XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_RAY_LEFT_META VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_RAY_LEFT_META}Left hand ray.
{@link #XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_RAY_RIGHT_META VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_RAY_RIGHT_META}Right hand ray.
{@link #XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_DIRECT_LEFT_META VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_DIRECT_LEFT_META}Left controller direct touch.
{@link #XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_DIRECT_RIGHT_META VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_DIRECT_RIGHT_META}Right controller direct touch.
{@link #XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_DIRECT_INDEX_TIP_LEFT_META VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_DIRECT_INDEX_TIP_LEFT_META}Left hand direct touch.
{@link #XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_DIRECT_INDEX_TIP_RIGHT_META VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_DIRECT_INDEX_TIP_RIGHT_META}Right hand direct touch.
- * - *
See Also
- * - *

{@link XrVirtualKeyboardInputInfoMETA}

- */ - public static final int - XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_RAY_LEFT_META = 1, - XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_RAY_RIGHT_META = 2, - XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_RAY_LEFT_META = 3, - XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_RAY_RIGHT_META = 4, - XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_DIRECT_LEFT_META = 5, - XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_DIRECT_RIGHT_META = 6, - XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_DIRECT_INDEX_TIP_LEFT_META = 7, - XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_DIRECT_INDEX_TIP_RIGHT_META = 8; - - /** - * XrVirtualKeyboardInputStateFlagBitsMETA - XrVirtualKeyboardInputStateFlagBitsMETA - * - *
Flag Descriptions
- * - * - */ - public static final int XR_VIRTUAL_KEYBOARD_INPUT_STATE_PRESSED_BIT_META = 0x1; - - protected METAVirtualKeyboard() { - throw new UnsupportedOperationException(); - } - - // --- [ xrCreateVirtualKeyboardMETA ] --- - - /** Unsafe version of: {@link #xrCreateVirtualKeyboardMETA CreateVirtualKeyboardMETA} */ - public static int nxrCreateVirtualKeyboardMETA(XrSession session, long createInfo, long keyboard) { - long __functionAddress = session.getCapabilities().xrCreateVirtualKeyboardMETA; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), createInfo, keyboard, __functionAddress); - } - - /** - * Create a virtual keyboard. - * - *
C Specification
- * - *

The {@link #xrCreateVirtualKeyboardMETA CreateVirtualKeyboardMETA} function is defined as:

- * - *

-     * XrResult xrCreateVirtualKeyboardMETA(
-     *     XrSession                                   session,
-     *     const XrVirtualKeyboardCreateInfoMETA*      createInfo,
-     *     XrVirtualKeyboardMETA*                      keyboard);
- * - *
Description
- * - *

{@link #xrCreateVirtualKeyboardMETA CreateVirtualKeyboardMETA} creates an {@code XrVirtualKeyboardMETA} handle and establishes a keyboard within the runtime {@code XrSession}. The returned virtual keyboard handle may be subsequently used in API calls.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link XR10#XR_ERROR_OUT_OF_MEMORY ERROR_OUT_OF_MEMORY}
  • - *
  • {@link XR10#XR_ERROR_LIMIT_REACHED ERROR_LIMIT_REACHED}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - *
See Also
- * - *

{@link XrVirtualKeyboardCreateInfoMETA}

- * - * @param session the {@code XrSession}. - * @param createInfo the {@link XrVirtualKeyboardCreateInfoMETA}. - * @param keyboard the returned {@code XrVirtualKeyboardMETA}. - */ - @NativeType("XrResult") - public static int xrCreateVirtualKeyboardMETA(XrSession session, @NativeType("XrVirtualKeyboardCreateInfoMETA const *") XrVirtualKeyboardCreateInfoMETA createInfo, @NativeType("XrVirtualKeyboardMETA *") PointerBuffer keyboard) { - if (CHECKS) { - check(keyboard, 1); - } - return nxrCreateVirtualKeyboardMETA(session, createInfo.address(), memAddress(keyboard)); - } - - // --- [ xrDestroyVirtualKeyboardMETA ] --- - - /** - * Destroy a virtual keyboard. - * - *
C Specification
- * - *

The {@link #xrDestroyVirtualKeyboardMETA DestroyVirtualKeyboardMETA} function is defined as:

- * - *

-     * XrResult xrDestroyVirtualKeyboardMETA(
-     *     XrVirtualKeyboardMETA                       keyboard);
- * - *
Valid Usage (Implicit)
- * - * - * - *
Thread Safety
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - * @param keyboard the {@code XrVirtualKeyboardMETA} handle to the keyboard to destroy. - */ - @NativeType("XrResult") - public static int xrDestroyVirtualKeyboardMETA(XrVirtualKeyboardMETA keyboard) { - long __functionAddress = keyboard.getCapabilities().xrDestroyVirtualKeyboardMETA; - if (CHECKS) { - check(__functionAddress); - } - return callPI(keyboard.address(), __functionAddress); - } - - // --- [ xrCreateVirtualKeyboardSpaceMETA ] --- - - /** Unsafe version of: {@link #xrCreateVirtualKeyboardSpaceMETA CreateVirtualKeyboardSpaceMETA} */ - public static int nxrCreateVirtualKeyboardSpaceMETA(XrSession session, XrVirtualKeyboardMETA keyboard, long createInfo, long keyboardSpace) { - long __functionAddress = session.getCapabilities().xrCreateVirtualKeyboardSpaceMETA; - if (CHECKS) { - check(__functionAddress); - XrVirtualKeyboardSpaceCreateInfoMETA.validate(createInfo); - } - return callPPPPI(session.address(), keyboard.address(), createInfo, keyboardSpace, __functionAddress); - } - - /** - * Create a virtual keyboard space. - * - *
C Specification
- * - *

The {@link #xrCreateVirtualKeyboardSpaceMETA CreateVirtualKeyboardSpaceMETA} function is defined as:

- * - *

-     * XrResult xrCreateVirtualKeyboardSpaceMETA(
-     *     XrSession                                   session,
-     *     XrVirtualKeyboardMETA                       keyboard,
-     *     const XrVirtualKeyboardSpaceCreateInfoMETA* createInfo,
-     *     XrSpace*                                    keyboardSpace);
- * - *
Description
- * - *

Creates an {@code XrSpace} handle and places the keyboard in this space. The returned space handle may be subsequently used in API calls.

- * - *

Once placed, the application should query the keyboard’s location each frame using {@link XR10#xrLocateSpace LocateSpace}. It is important to do this every frame as the runtime is in control of the keyboard’s movement.

- * - *

The runtime must return {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID} if {@code session} is different than what is used to create {@code keyboard}.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link XR10#XR_ERROR_OUT_OF_MEMORY ERROR_OUT_OF_MEMORY}
  • - *
  • {@link XR10#XR_ERROR_LIMIT_REACHED ERROR_LIMIT_REACHED}
  • - *
  • {@link XR10#XR_ERROR_POSE_INVALID ERROR_POSE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - *
See Also
- * - *

{@link XrVirtualKeyboardSpaceCreateInfoMETA}

- * - * @param session the {@code XrSession}. - * @param keyboard the {@code XrVirtualKeyboardMETA} handle. - * @param createInfo the {@link XrVirtualKeyboardSpaceCreateInfoMETA}. - * @param keyboardSpace the returned space handle. - */ - @NativeType("XrResult") - public static int xrCreateVirtualKeyboardSpaceMETA(XrSession session, XrVirtualKeyboardMETA keyboard, @NativeType("XrVirtualKeyboardSpaceCreateInfoMETA const *") XrVirtualKeyboardSpaceCreateInfoMETA createInfo, @NativeType("XrSpace *") PointerBuffer keyboardSpace) { - if (CHECKS) { - check(keyboardSpace, 1); - } - return nxrCreateVirtualKeyboardSpaceMETA(session, keyboard, createInfo.address(), memAddress(keyboardSpace)); - } - - // --- [ xrSuggestVirtualKeyboardLocationMETA ] --- - - /** Unsafe version of: {@link #xrSuggestVirtualKeyboardLocationMETA SuggestVirtualKeyboardLocationMETA} */ - public static int nxrSuggestVirtualKeyboardLocationMETA(XrVirtualKeyboardMETA keyboard, long locationInfo) { - long __functionAddress = keyboard.getCapabilities().xrSuggestVirtualKeyboardLocationMETA; - if (CHECKS) { - check(__functionAddress); - XrVirtualKeyboardLocationInfoMETA.validate(locationInfo); - } - return callPPI(keyboard.address(), locationInfo, __functionAddress); - } - - /** - * Suggest a virtual keyboard location. - * - *
C Specification
- * - *

The {@link #xrSuggestVirtualKeyboardLocationMETA SuggestVirtualKeyboardLocationMETA} function is defined as:

- * - *

-     * XrResult xrSuggestVirtualKeyboardLocationMETA(
-     *     XrVirtualKeyboardMETA                       keyboard,
-     *     const XrVirtualKeyboardLocationInfoMETA*    locationInfo);
- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link XR10#XR_ERROR_POSE_INVALID ERROR_POSE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - *
See Also
- * - *

{@link XrVirtualKeyboardLocationInfoMETA}

- * - * @param keyboard the {@code XrVirtualKeyboardMETA} handle. - * @param locationInfo the desired {@link XrVirtualKeyboardLocationInfoMETA}. - */ - @NativeType("XrResult") - public static int xrSuggestVirtualKeyboardLocationMETA(XrVirtualKeyboardMETA keyboard, @NativeType("XrVirtualKeyboardLocationInfoMETA const *") XrVirtualKeyboardLocationInfoMETA locationInfo) { - return nxrSuggestVirtualKeyboardLocationMETA(keyboard, locationInfo.address()); - } - - // --- [ xrGetVirtualKeyboardScaleMETA ] --- - - /** Unsafe version of: {@link #xrGetVirtualKeyboardScaleMETA GetVirtualKeyboardScaleMETA} */ - public static int nxrGetVirtualKeyboardScaleMETA(XrVirtualKeyboardMETA keyboard, long scale) { - long __functionAddress = keyboard.getCapabilities().xrGetVirtualKeyboardScaleMETA; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(keyboard.address(), scale, __functionAddress); - } - - /** - * Get virtual keyboard scale. - * - *
C Specification
- * - *

The {@link #xrGetVirtualKeyboardScaleMETA GetVirtualKeyboardScaleMETA} function is defined as:

- * - *

-     * XrResult xrGetVirtualKeyboardScaleMETA(
-     *     XrVirtualKeyboardMETA                       keyboard,
-     *     float*                                      scale);
- * - *
Description
- * - *

With both the pose and scale, the application has all the information to draw the virtual keyboard render model.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - * @param keyboard the {@code XrVirtualKeyboardMETA} handle. - * @param scale a float value of the current scale of the keyboard. - */ - @NativeType("XrResult") - public static int xrGetVirtualKeyboardScaleMETA(XrVirtualKeyboardMETA keyboard, @NativeType("float *") FloatBuffer scale) { - if (CHECKS) { - check(scale, 1); - } - return nxrGetVirtualKeyboardScaleMETA(keyboard, memAddress(scale)); - } - - // --- [ xrSetVirtualKeyboardModelVisibilityMETA ] --- - - /** Unsafe version of: {@link #xrSetVirtualKeyboardModelVisibilityMETA SetVirtualKeyboardModelVisibilityMETA} */ - public static int nxrSetVirtualKeyboardModelVisibilityMETA(XrVirtualKeyboardMETA keyboard, long modelVisibility) { - long __functionAddress = keyboard.getCapabilities().xrSetVirtualKeyboardModelVisibilityMETA; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(keyboard.address(), modelVisibility, __functionAddress); - } - - /** - * Set virtual keyboard model visibility. - * - *
C Specification
- * - *

The {@link #xrSetVirtualKeyboardModelVisibilityMETA SetVirtualKeyboardModelVisibilityMETA} function is defined as:

- * - *

-     * XrResult xrSetVirtualKeyboardModelVisibilityMETA(
-     *     XrVirtualKeyboardMETA                       keyboard,
-     *     const XrVirtualKeyboardModelVisibilitySetInfoMETA* modelVisibility);
- * - *
Description
- * - *

Note that the runtime has final control of the model visibility. The runtime may also change the visible state in certain situations. To get the actual visibility state of the render model, the application should wait for the {@link XrEventDataVirtualKeyboardShownMETA} and {@link XrEventDataVirtualKeyboardHiddenMETA} events.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - *
See Also
- * - *

{@link XrVirtualKeyboardModelVisibilitySetInfoMETA}

- * - * @param keyboard the {@code XrVirtualKeyboardMETA} handle. - * @param modelVisibility the {@link XrVirtualKeyboardModelVisibilitySetInfoMETA}. - */ - @NativeType("XrResult") - public static int xrSetVirtualKeyboardModelVisibilityMETA(XrVirtualKeyboardMETA keyboard, @NativeType("XrVirtualKeyboardModelVisibilitySetInfoMETA const *") XrVirtualKeyboardModelVisibilitySetInfoMETA modelVisibility) { - return nxrSetVirtualKeyboardModelVisibilityMETA(keyboard, modelVisibility.address()); - } - - // --- [ xrGetVirtualKeyboardModelAnimationStatesMETA ] --- - - /** Unsafe version of: {@link #xrGetVirtualKeyboardModelAnimationStatesMETA GetVirtualKeyboardModelAnimationStatesMETA} */ - public static int nxrGetVirtualKeyboardModelAnimationStatesMETA(XrVirtualKeyboardMETA keyboard, long animationStates) { - long __functionAddress = keyboard.getCapabilities().xrGetVirtualKeyboardModelAnimationStatesMETA; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(keyboard.address(), animationStates, __functionAddress); - } - - /** - * Get model animation states. - * - *
C Specification
- * - *

The {@link #xrGetVirtualKeyboardModelAnimationStatesMETA GetVirtualKeyboardModelAnimationStatesMETA} function is defined as:

- * - *

-     * XrResult xrGetVirtualKeyboardModelAnimationStatesMETA(
-     *     XrVirtualKeyboardMETA                       keyboard,
-     *     XrVirtualKeyboardModelAnimationStatesMETA*  animationStates);
- * - *
Description
- * - *

This function follows the two-call idiom for filling the {@code states} array in the {@link XrVirtualKeyboardModelAnimationStatesMETA} structure. Note that new animations may be added after the runtime processes inputs from {@link #xrSendVirtualKeyboardInputMETA SendVirtualKeyboardInputMETA}. Therefore, after sending new keyboard inputs the application should query the buffer size again before getting any animation data.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link XR10#XR_ERROR_SIZE_INSUFFICIENT ERROR_SIZE_INSUFFICIENT}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - *
See Also
- * - *

{@link XrVirtualKeyboardModelAnimationStatesMETA}

- * - * @param keyboard the {@code XrVirtualKeyboardMETA} handle. - * @param animationStates the {@link XrVirtualKeyboardModelAnimationStatesMETA}. - */ - @NativeType("XrResult") - public static int xrGetVirtualKeyboardModelAnimationStatesMETA(XrVirtualKeyboardMETA keyboard, @NativeType("XrVirtualKeyboardModelAnimationStatesMETA *") XrVirtualKeyboardModelAnimationStatesMETA animationStates) { - return nxrGetVirtualKeyboardModelAnimationStatesMETA(keyboard, animationStates.address()); - } - - // --- [ xrGetVirtualKeyboardDirtyTexturesMETA ] --- - - /** - * Unsafe version of: {@link #xrGetVirtualKeyboardDirtyTexturesMETA GetVirtualKeyboardDirtyTexturesMETA} - * - * @param textureIdCapacityInput the capacity of the {@code textureIds} array, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrGetVirtualKeyboardDirtyTexturesMETA(XrVirtualKeyboardMETA keyboard, int textureIdCapacityInput, long textureIdCountOutput, long textureIds) { - long __functionAddress = keyboard.getCapabilities().xrGetVirtualKeyboardDirtyTexturesMETA; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(keyboard.address(), textureIdCapacityInput, textureIdCountOutput, textureIds, __functionAddress); - } - - /** - * Get model textures that are dirty. - * - *
C Specification
- * - *

The {@link #xrGetVirtualKeyboardDirtyTexturesMETA GetVirtualKeyboardDirtyTexturesMETA} function is defined as:

- * - *

-     * XrResult xrGetVirtualKeyboardDirtyTexturesMETA(
-     *     XrVirtualKeyboardMETA                       keyboard,
-     *     uint32_t                                    textureIdCapacityInput,
-     *     uint32_t*                                   textureIdCountOutput,
-     *     uint64_t*                                   textureIds);
- * - *
Description
- * - *

This function follows the two-call idiom for filling the {@code textureIds} array. Note that new texture data may be added after the runtime processes inputs from {@link #xrSendVirtualKeyboardInputMETA SendVirtualKeyboardInputMETA}. Therefore, after sending new keyboard inputs the application should query the buffer size again before getting any texture data.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link XR10#XR_ERROR_SIZE_INSUFFICIENT ERROR_SIZE_INSUFFICIENT}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - * @param keyboard the {@code XrVirtualKeyboardMETA} handle. - * @param textureIdCountOutput filled in by the runtime with the count of texture IDs written or the required capacity in the case that {@code textureIdCapacityInput} is insufficient. - * @param textureIds the array of texture IDs that need to be updated. - */ - @NativeType("XrResult") - public static int xrGetVirtualKeyboardDirtyTexturesMETA(XrVirtualKeyboardMETA keyboard, @NativeType("uint32_t *") IntBuffer textureIdCountOutput, @Nullable @NativeType("uint64_t *") LongBuffer textureIds) { - if (CHECKS) { - check(textureIdCountOutput, 1); - } - return nxrGetVirtualKeyboardDirtyTexturesMETA(keyboard, remainingSafe(textureIds), memAddress(textureIdCountOutput), memAddressSafe(textureIds)); - } - - // --- [ xrGetVirtualKeyboardTextureDataMETA ] --- - - /** Unsafe version of: {@link #xrGetVirtualKeyboardTextureDataMETA GetVirtualKeyboardTextureDataMETA} */ - public static int nxrGetVirtualKeyboardTextureDataMETA(XrVirtualKeyboardMETA keyboard, long textureId, long textureData) { - long __functionAddress = keyboard.getCapabilities().xrGetVirtualKeyboardTextureDataMETA; - if (CHECKS) { - check(__functionAddress); - } - return callPJPI(keyboard.address(), textureId, textureData, __functionAddress); - } - - /** - * Get the data to update a model texture. - * - *
C Specification
- * - *

The {@link #xrGetVirtualKeyboardTextureDataMETA GetVirtualKeyboardTextureDataMETA} function is defined as:

- * - *

-     * XrResult xrGetVirtualKeyboardTextureDataMETA(
-     *     XrVirtualKeyboardMETA                       keyboard,
-     *     uint64_t                                    textureId,
-     *     XrVirtualKeyboardTextureDataMETA*           textureData);
- * - *
Description
- * - *

This function follows the two-call idiom for filling the {@code textureBytes} array in the {@link XrVirtualKeyboardTextureDataMETA} structure. Note that new texture data may be added after the runtime processes inputs from {@link #xrSendVirtualKeyboardInputMETA SendVirtualKeyboardInputMETA}. Therefore, after sending new keyboard inputs the application should query the buffer size again before getting any texture data.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link XR10#XR_ERROR_SIZE_INSUFFICIENT ERROR_SIZE_INSUFFICIENT}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - *
See Also
- * - *

{@link XrVirtualKeyboardTextureDataMETA}

- * - * @param keyboard the {@code XrVirtualKeyboardMETA} handle. - * @param textureId the ID of the texture that the application is querying data for. - * @param textureData the returned {@link XrVirtualKeyboardTextureDataMETA}. - */ - @NativeType("XrResult") - public static int xrGetVirtualKeyboardTextureDataMETA(XrVirtualKeyboardMETA keyboard, @NativeType("uint64_t") long textureId, @NativeType("XrVirtualKeyboardTextureDataMETA *") XrVirtualKeyboardTextureDataMETA textureData) { - return nxrGetVirtualKeyboardTextureDataMETA(keyboard, textureId, textureData.address()); - } - - // --- [ xrSendVirtualKeyboardInputMETA ] --- - - /** Unsafe version of: {@link #xrSendVirtualKeyboardInputMETA SendVirtualKeyboardInputMETA} */ - public static int nxrSendVirtualKeyboardInputMETA(XrVirtualKeyboardMETA keyboard, long info, long interactorRootPose) { - long __functionAddress = keyboard.getCapabilities().xrSendVirtualKeyboardInputMETA; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(keyboard.address(), info, interactorRootPose, __functionAddress); - } - - /** - * Send virtual keyboard input. - * - *
C Specification
- * - *

The {@link #xrSendVirtualKeyboardInputMETA SendVirtualKeyboardInputMETA} function is defined as:

- * - *

-     * XrResult xrSendVirtualKeyboardInputMETA(
-     *     XrVirtualKeyboardMETA                       keyboard,
-     *     const XrVirtualKeyboardInputInfoMETA*       info,
-     *     XrPosef*                                    interactorRootPose);
- * - *
Description
- * - *

The application can use values like a pointer pose as the {@code inputPoseInSpace} for {@code XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_RAY_*} or {@code XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_RAY_*} input sources, a point on a controller model for {@code XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_DIRECT_*} input sources and the hand index tip pose for {@code XR_VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_DIRECT_INDEX_TIP_*}. Different input poses can be used to accommodate application specific controller or hand models.

- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link XR10#XR_ERROR_POSE_INVALID ERROR_POSE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - *
See Also
- * - *

{@link XrPosef}, {@link XrVirtualKeyboardInputInfoMETA}

- * - * @param keyboard the {@code XrVirtualKeyboardMETA} handle. - * @param info the {@link XrVirtualKeyboardInputInfoMETA} detailing the input being sent to the runtime. - * @param interactorRootPose an {@link XrPosef} defining the root pose of the input source. The runtime may modify this value to aid keyboard input perception. - */ - @NativeType("XrResult") - public static int xrSendVirtualKeyboardInputMETA(XrVirtualKeyboardMETA keyboard, @NativeType("XrVirtualKeyboardInputInfoMETA const *") XrVirtualKeyboardInputInfoMETA info, @NativeType("XrPosef *") XrPosef interactorRootPose) { - return nxrSendVirtualKeyboardInputMETA(keyboard, info.address(), interactorRootPose.address()); - } - - // --- [ xrChangeVirtualKeyboardTextContextMETA ] --- - - /** Unsafe version of: {@link #xrChangeVirtualKeyboardTextContextMETA ChangeVirtualKeyboardTextContextMETA} */ - public static int nxrChangeVirtualKeyboardTextContextMETA(XrVirtualKeyboardMETA keyboard, long changeInfo) { - long __functionAddress = keyboard.getCapabilities().xrChangeVirtualKeyboardTextContextMETA; - if (CHECKS) { - check(__functionAddress); - XrVirtualKeyboardTextContextChangeInfoMETA.validate(changeInfo); - } - return callPPI(keyboard.address(), changeInfo, __functionAddress); - } - - /** - * Change virtual keyboard text context. - * - *
C Specification
- * - *

The {@link #xrChangeVirtualKeyboardTextContextMETA ChangeVirtualKeyboardTextContextMETA} function is defined as:

- * - *

-     * XrResult xrChangeVirtualKeyboardTextContextMETA(
-     *     XrVirtualKeyboardMETA                       keyboard,
-     *     const XrVirtualKeyboardTextContextChangeInfoMETA* changeInfo);
- * - *
Valid Usage (Implicit)
- * - * - * - *
Return Codes
- * - *
- *
On success, this command returns
- *
    - *
  • {@link XR10#XR_SUCCESS SUCCESS}
  • - *
  • {@link XR10#XR_SESSION_LOSS_PENDING SESSION_LOSS_PENDING}
  • - *
- *
On failure, this command returns
- *
    - *
  • {@link XR10#XR_ERROR_FUNCTION_UNSUPPORTED ERROR_FUNCTION_UNSUPPORTED}
  • - *
  • {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_RUNTIME_FAILURE ERROR_RUNTIME_FAILURE}
  • - *
  • {@link XR10#XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
  • - *
  • {@link XR10#XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}
  • - *
  • {@link XR10#XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}
  • - *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • - *
- *
- * - *
See Also
- * - *

{@link XrVirtualKeyboardTextContextChangeInfoMETA}

- * - * @param keyboard the {@code XrVirtualKeyboardMETA} handle. - */ - @NativeType("XrResult") - public static int xrChangeVirtualKeyboardTextContextMETA(XrVirtualKeyboardMETA keyboard, @NativeType("XrVirtualKeyboardTextContextChangeInfoMETA const *") XrVirtualKeyboardTextContextChangeInfoMETA changeInfo) { - return nxrChangeVirtualKeyboardTextContextMETA(keyboard, changeInfo.address()); - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardBackspaceMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardBackspaceMETA.java deleted file mode 100644 index fc09054b2d..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardBackspaceMETA.java +++ /dev/null @@ -1,338 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Backspace key event. - * - *
Description
- * - *

The {@link XrEventDataVirtualKeyboardBackspaceMETA} event must be sent by the runtime when the [Backspace] key is pressed. The application should update the text field that the keyboard is editing.

- * - *
Valid Usage (Implicit)
- * - * - * - *
See Also
- * - *

{@link XR10#xrPollEvent PollEvent}

- * - *

Layout

- * - *

- * struct XrEventDataVirtualKeyboardBackspaceMETA {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     XrVirtualKeyboardMETA {@link #keyboard};
- * }
- */ -public class XrEventDataVirtualKeyboardBackspaceMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - KEYBOARD; - - static { - 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); - KEYBOARD = layout.offsetof(2); - } - - protected XrEventDataVirtualKeyboardBackspaceMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrEventDataVirtualKeyboardBackspaceMETA create(long address, @Nullable ByteBuffer container) { - return new XrEventDataVirtualKeyboardBackspaceMETA(address, container); - } - - /** - * Creates a {@code XrEventDataVirtualKeyboardBackspaceMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrEventDataVirtualKeyboardBackspaceMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 XrVirtualKeyboardMETA} this event belongs to. */ - @NativeType("XrVirtualKeyboardMETA") - public long keyboard() { return nkeyboard(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrEventDataVirtualKeyboardBackspaceMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_BACKSPACE_META TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_BACKSPACE_META} value to the {@link #type} field. */ - public XrEventDataVirtualKeyboardBackspaceMETA type$Default() { return type(METAVirtualKeyboard.XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_BACKSPACE_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrEventDataVirtualKeyboardBackspaceMETA next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #keyboard} field. */ - public XrEventDataVirtualKeyboardBackspaceMETA keyboard(XrVirtualKeyboardMETA value) { nkeyboard(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrEventDataVirtualKeyboardBackspaceMETA set( - int type, - long next, - XrVirtualKeyboardMETA keyboard - ) { - type(type); - next(next); - keyboard(keyboard); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrEventDataVirtualKeyboardBackspaceMETA set(XrEventDataVirtualKeyboardBackspaceMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrEventDataVirtualKeyboardBackspaceMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrEventDataVirtualKeyboardBackspaceMETA malloc() { - return new XrEventDataVirtualKeyboardBackspaceMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrEventDataVirtualKeyboardBackspaceMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrEventDataVirtualKeyboardBackspaceMETA calloc() { - return new XrEventDataVirtualKeyboardBackspaceMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrEventDataVirtualKeyboardBackspaceMETA} instance allocated with {@link BufferUtils}. */ - public static XrEventDataVirtualKeyboardBackspaceMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrEventDataVirtualKeyboardBackspaceMETA(memAddress(container), container); - } - - /** Returns a new {@code XrEventDataVirtualKeyboardBackspaceMETA} instance for the specified memory address. */ - public static XrEventDataVirtualKeyboardBackspaceMETA create(long address) { - return new XrEventDataVirtualKeyboardBackspaceMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrEventDataVirtualKeyboardBackspaceMETA createSafe(long address) { - return address == NULL ? null : new XrEventDataVirtualKeyboardBackspaceMETA(address, null); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardBackspaceMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardBackspaceMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardBackspaceMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardBackspaceMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardBackspaceMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardBackspaceMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrEventDataVirtualKeyboardBackspaceMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardBackspaceMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrEventDataVirtualKeyboardBackspaceMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrEventDataVirtualKeyboardBackspaceMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrEventDataVirtualKeyboardBackspaceMETA malloc(MemoryStack stack) { - return new XrEventDataVirtualKeyboardBackspaceMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrEventDataVirtualKeyboardBackspaceMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrEventDataVirtualKeyboardBackspaceMETA calloc(MemoryStack stack) { - return new XrEventDataVirtualKeyboardBackspaceMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardBackspaceMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardBackspaceMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardBackspaceMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardBackspaceMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEventDataVirtualKeyboardBackspaceMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrEventDataVirtualKeyboardBackspaceMETA.NEXT); } - /** Unsafe version of {@link #keyboard}. */ - public static long nkeyboard(long struct) { return memGetAddress(struct + XrEventDataVirtualKeyboardBackspaceMETA.KEYBOARD); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEventDataVirtualKeyboardBackspaceMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrEventDataVirtualKeyboardBackspaceMETA.NEXT, value); } - /** Unsafe version of {@link #keyboard(XrVirtualKeyboardMETA) keyboard}. */ - public static void nkeyboard(long struct, XrVirtualKeyboardMETA value) { memPutAddress(struct + XrEventDataVirtualKeyboardBackspaceMETA.KEYBOARD, value.address()); } - - /** - * Validates pointer members that should not be {@code NULL}. - * - * @param struct the struct to validate - */ - public static void validate(long struct) { - check(memGetAddress(struct + XrEventDataVirtualKeyboardBackspaceMETA.KEYBOARD)); - } - - // ----------------------------------- - - /** An array of {@link XrEventDataVirtualKeyboardBackspaceMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrEventDataVirtualKeyboardBackspaceMETA ELEMENT_FACTORY = XrEventDataVirtualKeyboardBackspaceMETA.create(-1L); - - /** - * Creates a new {@code XrEventDataVirtualKeyboardBackspaceMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrEventDataVirtualKeyboardBackspaceMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrEventDataVirtualKeyboardBackspaceMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrEventDataVirtualKeyboardBackspaceMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataVirtualKeyboardBackspaceMETA.ntype(address()); } - /** @return the value of the {@link XrEventDataVirtualKeyboardBackspaceMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataVirtualKeyboardBackspaceMETA.nnext(address()); } - /** @return the value of the {@link XrEventDataVirtualKeyboardBackspaceMETA#keyboard} field. */ - @NativeType("XrVirtualKeyboardMETA") - public long keyboard() { return XrEventDataVirtualKeyboardBackspaceMETA.nkeyboard(address()); } - - /** Sets the specified value to the {@link XrEventDataVirtualKeyboardBackspaceMETA#type} field. */ - public XrEventDataVirtualKeyboardBackspaceMETA.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataVirtualKeyboardBackspaceMETA.ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_BACKSPACE_META TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_BACKSPACE_META} value to the {@link XrEventDataVirtualKeyboardBackspaceMETA#type} field. */ - public XrEventDataVirtualKeyboardBackspaceMETA.Buffer type$Default() { return type(METAVirtualKeyboard.XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_BACKSPACE_META); } - /** Sets the specified value to the {@link XrEventDataVirtualKeyboardBackspaceMETA#next} field. */ - public XrEventDataVirtualKeyboardBackspaceMETA.Buffer next(@NativeType("void const *") long value) { XrEventDataVirtualKeyboardBackspaceMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrEventDataVirtualKeyboardBackspaceMETA#keyboard} field. */ - public XrEventDataVirtualKeyboardBackspaceMETA.Buffer keyboard(XrVirtualKeyboardMETA value) { XrEventDataVirtualKeyboardBackspaceMETA.nkeyboard(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardCommitTextMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardCommitTextMETA.java deleted file mode 100644 index 71f01110f7..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardCommitTextMETA.java +++ /dev/null @@ -1,375 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.METAVirtualKeyboard.*; - -/** - * Commit text event. - * - *
Description
- * - *

The {@link XrEventDataVirtualKeyboardCommitTextMETA} event must be sent by the runtime when a character or string is input by the keyboard. The application should append to the text field that the keyboard is editing.

- * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to using {@link XrEventDataVirtualKeyboardCommitTextMETA}
  • - *
  • {@code type} must be {@link METAVirtualKeyboard#XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_COMMIT_TEXT_META TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_COMMIT_TEXT_META}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • {@code keyboard} must be a valid {@code XrVirtualKeyboardMETA} handle
  • - *
  • {@code text} must be a null-terminated UTF-8 string whose length is less than or equal to {@link METAVirtualKeyboard#XR_MAX_VIRTUAL_KEYBOARD_COMMIT_TEXT_SIZE_META MAX_VIRTUAL_KEYBOARD_COMMIT_TEXT_SIZE_META}
  • - *
- * - *
See Also
- * - *

{@link XR10#xrPollEvent PollEvent}

- * - *

Layout

- * - *

- * struct XrEventDataVirtualKeyboardCommitTextMETA {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     XrVirtualKeyboardMETA {@link #keyboard};
- *     char {@link #text}[XR_MAX_VIRTUAL_KEYBOARD_COMMIT_TEXT_SIZE_META];
- * }
- */ -public class XrEventDataVirtualKeyboardCommitTextMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - KEYBOARD, - TEXT; - - static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __array(1, XR_MAX_VIRTUAL_KEYBOARD_COMMIT_TEXT_SIZE_META) - ); - - SIZEOF = layout.getSize(); - ALIGNOF = layout.getAlignment(); - - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - KEYBOARD = layout.offsetof(2); - TEXT = layout.offsetof(3); - } - - protected XrEventDataVirtualKeyboardCommitTextMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrEventDataVirtualKeyboardCommitTextMETA create(long address, @Nullable ByteBuffer container) { - return new XrEventDataVirtualKeyboardCommitTextMETA(address, container); - } - - /** - * Creates a {@code XrEventDataVirtualKeyboardCommitTextMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrEventDataVirtualKeyboardCommitTextMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 XrVirtualKeyboardMETA} this event belongs to. */ - @NativeType("XrVirtualKeyboardMETA") - public long keyboard() { return nkeyboard(address()); } - /** the text string input by the keyboard. */ - @NativeType("char[XR_MAX_VIRTUAL_KEYBOARD_COMMIT_TEXT_SIZE_META]") - public ByteBuffer text() { return ntext(address()); } - /** the text string input by the keyboard. */ - @NativeType("char[XR_MAX_VIRTUAL_KEYBOARD_COMMIT_TEXT_SIZE_META]") - public String textString() { return ntextString(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrEventDataVirtualKeyboardCommitTextMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_COMMIT_TEXT_META TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_COMMIT_TEXT_META} value to the {@link #type} field. */ - public XrEventDataVirtualKeyboardCommitTextMETA type$Default() { return type(METAVirtualKeyboard.XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_COMMIT_TEXT_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrEventDataVirtualKeyboardCommitTextMETA next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #keyboard} field. */ - public XrEventDataVirtualKeyboardCommitTextMETA keyboard(XrVirtualKeyboardMETA value) { nkeyboard(address(), value); return this; } - /** Copies the specified encoded string to the {@link #text} field. */ - public XrEventDataVirtualKeyboardCommitTextMETA text(@NativeType("char[XR_MAX_VIRTUAL_KEYBOARD_COMMIT_TEXT_SIZE_META]") ByteBuffer value) { ntext(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrEventDataVirtualKeyboardCommitTextMETA set( - int type, - long next, - XrVirtualKeyboardMETA keyboard, - ByteBuffer text - ) { - type(type); - next(next); - keyboard(keyboard); - text(text); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrEventDataVirtualKeyboardCommitTextMETA set(XrEventDataVirtualKeyboardCommitTextMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrEventDataVirtualKeyboardCommitTextMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrEventDataVirtualKeyboardCommitTextMETA malloc() { - return new XrEventDataVirtualKeyboardCommitTextMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrEventDataVirtualKeyboardCommitTextMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrEventDataVirtualKeyboardCommitTextMETA calloc() { - return new XrEventDataVirtualKeyboardCommitTextMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrEventDataVirtualKeyboardCommitTextMETA} instance allocated with {@link BufferUtils}. */ - public static XrEventDataVirtualKeyboardCommitTextMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrEventDataVirtualKeyboardCommitTextMETA(memAddress(container), container); - } - - /** Returns a new {@code XrEventDataVirtualKeyboardCommitTextMETA} instance for the specified memory address. */ - public static XrEventDataVirtualKeyboardCommitTextMETA create(long address) { - return new XrEventDataVirtualKeyboardCommitTextMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrEventDataVirtualKeyboardCommitTextMETA createSafe(long address) { - return address == NULL ? null : new XrEventDataVirtualKeyboardCommitTextMETA(address, null); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardCommitTextMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardCommitTextMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardCommitTextMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardCommitTextMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardCommitTextMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardCommitTextMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrEventDataVirtualKeyboardCommitTextMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardCommitTextMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrEventDataVirtualKeyboardCommitTextMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrEventDataVirtualKeyboardCommitTextMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrEventDataVirtualKeyboardCommitTextMETA malloc(MemoryStack stack) { - return new XrEventDataVirtualKeyboardCommitTextMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrEventDataVirtualKeyboardCommitTextMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrEventDataVirtualKeyboardCommitTextMETA calloc(MemoryStack stack) { - return new XrEventDataVirtualKeyboardCommitTextMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardCommitTextMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardCommitTextMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardCommitTextMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardCommitTextMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEventDataVirtualKeyboardCommitTextMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrEventDataVirtualKeyboardCommitTextMETA.NEXT); } - /** Unsafe version of {@link #keyboard}. */ - public static long nkeyboard(long struct) { return memGetAddress(struct + XrEventDataVirtualKeyboardCommitTextMETA.KEYBOARD); } - /** Unsafe version of {@link #text}. */ - public static ByteBuffer ntext(long struct) { return memByteBuffer(struct + XrEventDataVirtualKeyboardCommitTextMETA.TEXT, XR_MAX_VIRTUAL_KEYBOARD_COMMIT_TEXT_SIZE_META); } - /** Unsafe version of {@link #textString}. */ - public static String ntextString(long struct) { return memUTF8(struct + XrEventDataVirtualKeyboardCommitTextMETA.TEXT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEventDataVirtualKeyboardCommitTextMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrEventDataVirtualKeyboardCommitTextMETA.NEXT, value); } - /** Unsafe version of {@link #keyboard(XrVirtualKeyboardMETA) keyboard}. */ - public static void nkeyboard(long struct, XrVirtualKeyboardMETA value) { memPutAddress(struct + XrEventDataVirtualKeyboardCommitTextMETA.KEYBOARD, value.address()); } - /** Unsafe version of {@link #text(ByteBuffer) text}. */ - public static void ntext(long struct, ByteBuffer value) { - if (CHECKS) { - checkNT1(value); - checkGT(value, XR_MAX_VIRTUAL_KEYBOARD_COMMIT_TEXT_SIZE_META); - } - memCopy(memAddress(value), struct + XrEventDataVirtualKeyboardCommitTextMETA.TEXT, value.remaining()); - } - - /** - * Validates pointer members that should not be {@code NULL}. - * - * @param struct the struct to validate - */ - public static void validate(long struct) { - check(memGetAddress(struct + XrEventDataVirtualKeyboardCommitTextMETA.KEYBOARD)); - } - - // ----------------------------------- - - /** An array of {@link XrEventDataVirtualKeyboardCommitTextMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrEventDataVirtualKeyboardCommitTextMETA ELEMENT_FACTORY = XrEventDataVirtualKeyboardCommitTextMETA.create(-1L); - - /** - * Creates a new {@code XrEventDataVirtualKeyboardCommitTextMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrEventDataVirtualKeyboardCommitTextMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrEventDataVirtualKeyboardCommitTextMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrEventDataVirtualKeyboardCommitTextMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataVirtualKeyboardCommitTextMETA.ntype(address()); } - /** @return the value of the {@link XrEventDataVirtualKeyboardCommitTextMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataVirtualKeyboardCommitTextMETA.nnext(address()); } - /** @return the value of the {@link XrEventDataVirtualKeyboardCommitTextMETA#keyboard} field. */ - @NativeType("XrVirtualKeyboardMETA") - public long keyboard() { return XrEventDataVirtualKeyboardCommitTextMETA.nkeyboard(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrEventDataVirtualKeyboardCommitTextMETA#text} field. */ - @NativeType("char[XR_MAX_VIRTUAL_KEYBOARD_COMMIT_TEXT_SIZE_META]") - public ByteBuffer text() { return XrEventDataVirtualKeyboardCommitTextMETA.ntext(address()); } - /** @return the null-terminated string stored in the {@link XrEventDataVirtualKeyboardCommitTextMETA#text} field. */ - @NativeType("char[XR_MAX_VIRTUAL_KEYBOARD_COMMIT_TEXT_SIZE_META]") - public String textString() { return XrEventDataVirtualKeyboardCommitTextMETA.ntextString(address()); } - - /** Sets the specified value to the {@link XrEventDataVirtualKeyboardCommitTextMETA#type} field. */ - public XrEventDataVirtualKeyboardCommitTextMETA.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataVirtualKeyboardCommitTextMETA.ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_COMMIT_TEXT_META TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_COMMIT_TEXT_META} value to the {@link XrEventDataVirtualKeyboardCommitTextMETA#type} field. */ - public XrEventDataVirtualKeyboardCommitTextMETA.Buffer type$Default() { return type(METAVirtualKeyboard.XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_COMMIT_TEXT_META); } - /** Sets the specified value to the {@link XrEventDataVirtualKeyboardCommitTextMETA#next} field. */ - public XrEventDataVirtualKeyboardCommitTextMETA.Buffer next(@NativeType("void const *") long value) { XrEventDataVirtualKeyboardCommitTextMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrEventDataVirtualKeyboardCommitTextMETA#keyboard} field. */ - public XrEventDataVirtualKeyboardCommitTextMETA.Buffer keyboard(XrVirtualKeyboardMETA value) { XrEventDataVirtualKeyboardCommitTextMETA.nkeyboard(address(), value); return this; } - /** Copies the specified encoded string to the {@link XrEventDataVirtualKeyboardCommitTextMETA#text} field. */ - public XrEventDataVirtualKeyboardCommitTextMETA.Buffer text(@NativeType("char[XR_MAX_VIRTUAL_KEYBOARD_COMMIT_TEXT_SIZE_META]") ByteBuffer value) { XrEventDataVirtualKeyboardCommitTextMETA.ntext(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardEnterMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardEnterMETA.java deleted file mode 100644 index f080001540..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardEnterMETA.java +++ /dev/null @@ -1,338 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Enter key event. - * - *
Description
- * - *

The {@link XrEventDataVirtualKeyboardEnterMETA} event must be sent by the runtime when the [Enter] key is pressed. The application should respond accordingly (e.g. newline, accept, etc).

- * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to using {@link XrEventDataVirtualKeyboardEnterMETA}
  • - *
  • {@code type} must be {@link METAVirtualKeyboard#XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_ENTER_META TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_ENTER_META}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • {@code keyboard} must be a valid {@code XrVirtualKeyboardMETA} handle
  • - *
- * - *
See Also
- * - *

{@link XR10#xrPollEvent PollEvent}

- * - *

Layout

- * - *

- * struct XrEventDataVirtualKeyboardEnterMETA {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     XrVirtualKeyboardMETA {@link #keyboard};
- * }
- */ -public class XrEventDataVirtualKeyboardEnterMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - KEYBOARD; - - static { - 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); - KEYBOARD = layout.offsetof(2); - } - - protected XrEventDataVirtualKeyboardEnterMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrEventDataVirtualKeyboardEnterMETA create(long address, @Nullable ByteBuffer container) { - return new XrEventDataVirtualKeyboardEnterMETA(address, container); - } - - /** - * Creates a {@code XrEventDataVirtualKeyboardEnterMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrEventDataVirtualKeyboardEnterMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 XrVirtualKeyboardMETA} this event belongs to. */ - @NativeType("XrVirtualKeyboardMETA") - public long keyboard() { return nkeyboard(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrEventDataVirtualKeyboardEnterMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_ENTER_META TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_ENTER_META} value to the {@link #type} field. */ - public XrEventDataVirtualKeyboardEnterMETA type$Default() { return type(METAVirtualKeyboard.XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_ENTER_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrEventDataVirtualKeyboardEnterMETA next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #keyboard} field. */ - public XrEventDataVirtualKeyboardEnterMETA keyboard(XrVirtualKeyboardMETA value) { nkeyboard(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrEventDataVirtualKeyboardEnterMETA set( - int type, - long next, - XrVirtualKeyboardMETA keyboard - ) { - type(type); - next(next); - keyboard(keyboard); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrEventDataVirtualKeyboardEnterMETA set(XrEventDataVirtualKeyboardEnterMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrEventDataVirtualKeyboardEnterMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrEventDataVirtualKeyboardEnterMETA malloc() { - return new XrEventDataVirtualKeyboardEnterMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrEventDataVirtualKeyboardEnterMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrEventDataVirtualKeyboardEnterMETA calloc() { - return new XrEventDataVirtualKeyboardEnterMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrEventDataVirtualKeyboardEnterMETA} instance allocated with {@link BufferUtils}. */ - public static XrEventDataVirtualKeyboardEnterMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrEventDataVirtualKeyboardEnterMETA(memAddress(container), container); - } - - /** Returns a new {@code XrEventDataVirtualKeyboardEnterMETA} instance for the specified memory address. */ - public static XrEventDataVirtualKeyboardEnterMETA create(long address) { - return new XrEventDataVirtualKeyboardEnterMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrEventDataVirtualKeyboardEnterMETA createSafe(long address) { - return address == NULL ? null : new XrEventDataVirtualKeyboardEnterMETA(address, null); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardEnterMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardEnterMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardEnterMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardEnterMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardEnterMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardEnterMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrEventDataVirtualKeyboardEnterMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardEnterMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrEventDataVirtualKeyboardEnterMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrEventDataVirtualKeyboardEnterMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrEventDataVirtualKeyboardEnterMETA malloc(MemoryStack stack) { - return new XrEventDataVirtualKeyboardEnterMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrEventDataVirtualKeyboardEnterMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrEventDataVirtualKeyboardEnterMETA calloc(MemoryStack stack) { - return new XrEventDataVirtualKeyboardEnterMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardEnterMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardEnterMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardEnterMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardEnterMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEventDataVirtualKeyboardEnterMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrEventDataVirtualKeyboardEnterMETA.NEXT); } - /** Unsafe version of {@link #keyboard}. */ - public static long nkeyboard(long struct) { return memGetAddress(struct + XrEventDataVirtualKeyboardEnterMETA.KEYBOARD); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEventDataVirtualKeyboardEnterMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrEventDataVirtualKeyboardEnterMETA.NEXT, value); } - /** Unsafe version of {@link #keyboard(XrVirtualKeyboardMETA) keyboard}. */ - public static void nkeyboard(long struct, XrVirtualKeyboardMETA value) { memPutAddress(struct + XrEventDataVirtualKeyboardEnterMETA.KEYBOARD, value.address()); } - - /** - * Validates pointer members that should not be {@code NULL}. - * - * @param struct the struct to validate - */ - public static void validate(long struct) { - check(memGetAddress(struct + XrEventDataVirtualKeyboardEnterMETA.KEYBOARD)); - } - - // ----------------------------------- - - /** An array of {@link XrEventDataVirtualKeyboardEnterMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrEventDataVirtualKeyboardEnterMETA ELEMENT_FACTORY = XrEventDataVirtualKeyboardEnterMETA.create(-1L); - - /** - * Creates a new {@code XrEventDataVirtualKeyboardEnterMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrEventDataVirtualKeyboardEnterMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrEventDataVirtualKeyboardEnterMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrEventDataVirtualKeyboardEnterMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataVirtualKeyboardEnterMETA.ntype(address()); } - /** @return the value of the {@link XrEventDataVirtualKeyboardEnterMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataVirtualKeyboardEnterMETA.nnext(address()); } - /** @return the value of the {@link XrEventDataVirtualKeyboardEnterMETA#keyboard} field. */ - @NativeType("XrVirtualKeyboardMETA") - public long keyboard() { return XrEventDataVirtualKeyboardEnterMETA.nkeyboard(address()); } - - /** Sets the specified value to the {@link XrEventDataVirtualKeyboardEnterMETA#type} field. */ - public XrEventDataVirtualKeyboardEnterMETA.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataVirtualKeyboardEnterMETA.ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_ENTER_META TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_ENTER_META} value to the {@link XrEventDataVirtualKeyboardEnterMETA#type} field. */ - public XrEventDataVirtualKeyboardEnterMETA.Buffer type$Default() { return type(METAVirtualKeyboard.XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_ENTER_META); } - /** Sets the specified value to the {@link XrEventDataVirtualKeyboardEnterMETA#next} field. */ - public XrEventDataVirtualKeyboardEnterMETA.Buffer next(@NativeType("void const *") long value) { XrEventDataVirtualKeyboardEnterMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrEventDataVirtualKeyboardEnterMETA#keyboard} field. */ - public XrEventDataVirtualKeyboardEnterMETA.Buffer keyboard(XrVirtualKeyboardMETA value) { XrEventDataVirtualKeyboardEnterMETA.nkeyboard(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardHiddenMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardHiddenMETA.java deleted file mode 100644 index 133854a1be..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardHiddenMETA.java +++ /dev/null @@ -1,338 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Keyboard hidden event. - * - *
Description
- * - *

The {@link XrEventDataVirtualKeyboardHiddenMETA} event must be sent when the keyboard render model is hidden by the runtime (via animation). The application should update its state accordingly (e.g. update UI, resume simulation, etc).

- * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to using {@link XrEventDataVirtualKeyboardHiddenMETA}
  • - *
  • {@code type} must be {@link METAVirtualKeyboard#XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_HIDDEN_META TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_HIDDEN_META}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • {@code keyboard} must be a valid {@code XrVirtualKeyboardMETA} handle
  • - *
- * - *
See Also
- * - *

{@link XR10#xrPollEvent PollEvent}

- * - *

Layout

- * - *

- * struct XrEventDataVirtualKeyboardHiddenMETA {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     XrVirtualKeyboardMETA {@link #keyboard};
- * }
- */ -public class XrEventDataVirtualKeyboardHiddenMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - KEYBOARD; - - static { - 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); - KEYBOARD = layout.offsetof(2); - } - - protected XrEventDataVirtualKeyboardHiddenMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrEventDataVirtualKeyboardHiddenMETA create(long address, @Nullable ByteBuffer container) { - return new XrEventDataVirtualKeyboardHiddenMETA(address, container); - } - - /** - * Creates a {@code XrEventDataVirtualKeyboardHiddenMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrEventDataVirtualKeyboardHiddenMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 XrVirtualKeyboardMETA} this event belongs to. */ - @NativeType("XrVirtualKeyboardMETA") - public long keyboard() { return nkeyboard(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrEventDataVirtualKeyboardHiddenMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_HIDDEN_META TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_HIDDEN_META} value to the {@link #type} field. */ - public XrEventDataVirtualKeyboardHiddenMETA type$Default() { return type(METAVirtualKeyboard.XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_HIDDEN_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrEventDataVirtualKeyboardHiddenMETA next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #keyboard} field. */ - public XrEventDataVirtualKeyboardHiddenMETA keyboard(XrVirtualKeyboardMETA value) { nkeyboard(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrEventDataVirtualKeyboardHiddenMETA set( - int type, - long next, - XrVirtualKeyboardMETA keyboard - ) { - type(type); - next(next); - keyboard(keyboard); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrEventDataVirtualKeyboardHiddenMETA set(XrEventDataVirtualKeyboardHiddenMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrEventDataVirtualKeyboardHiddenMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrEventDataVirtualKeyboardHiddenMETA malloc() { - return new XrEventDataVirtualKeyboardHiddenMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrEventDataVirtualKeyboardHiddenMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrEventDataVirtualKeyboardHiddenMETA calloc() { - return new XrEventDataVirtualKeyboardHiddenMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrEventDataVirtualKeyboardHiddenMETA} instance allocated with {@link BufferUtils}. */ - public static XrEventDataVirtualKeyboardHiddenMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrEventDataVirtualKeyboardHiddenMETA(memAddress(container), container); - } - - /** Returns a new {@code XrEventDataVirtualKeyboardHiddenMETA} instance for the specified memory address. */ - public static XrEventDataVirtualKeyboardHiddenMETA create(long address) { - return new XrEventDataVirtualKeyboardHiddenMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrEventDataVirtualKeyboardHiddenMETA createSafe(long address) { - return address == NULL ? null : new XrEventDataVirtualKeyboardHiddenMETA(address, null); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardHiddenMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardHiddenMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardHiddenMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardHiddenMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardHiddenMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardHiddenMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrEventDataVirtualKeyboardHiddenMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardHiddenMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrEventDataVirtualKeyboardHiddenMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrEventDataVirtualKeyboardHiddenMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrEventDataVirtualKeyboardHiddenMETA malloc(MemoryStack stack) { - return new XrEventDataVirtualKeyboardHiddenMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrEventDataVirtualKeyboardHiddenMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrEventDataVirtualKeyboardHiddenMETA calloc(MemoryStack stack) { - return new XrEventDataVirtualKeyboardHiddenMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardHiddenMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardHiddenMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardHiddenMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardHiddenMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEventDataVirtualKeyboardHiddenMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrEventDataVirtualKeyboardHiddenMETA.NEXT); } - /** Unsafe version of {@link #keyboard}. */ - public static long nkeyboard(long struct) { return memGetAddress(struct + XrEventDataVirtualKeyboardHiddenMETA.KEYBOARD); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEventDataVirtualKeyboardHiddenMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrEventDataVirtualKeyboardHiddenMETA.NEXT, value); } - /** Unsafe version of {@link #keyboard(XrVirtualKeyboardMETA) keyboard}. */ - public static void nkeyboard(long struct, XrVirtualKeyboardMETA value) { memPutAddress(struct + XrEventDataVirtualKeyboardHiddenMETA.KEYBOARD, value.address()); } - - /** - * Validates pointer members that should not be {@code NULL}. - * - * @param struct the struct to validate - */ - public static void validate(long struct) { - check(memGetAddress(struct + XrEventDataVirtualKeyboardHiddenMETA.KEYBOARD)); - } - - // ----------------------------------- - - /** An array of {@link XrEventDataVirtualKeyboardHiddenMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrEventDataVirtualKeyboardHiddenMETA ELEMENT_FACTORY = XrEventDataVirtualKeyboardHiddenMETA.create(-1L); - - /** - * Creates a new {@code XrEventDataVirtualKeyboardHiddenMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrEventDataVirtualKeyboardHiddenMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrEventDataVirtualKeyboardHiddenMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrEventDataVirtualKeyboardHiddenMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataVirtualKeyboardHiddenMETA.ntype(address()); } - /** @return the value of the {@link XrEventDataVirtualKeyboardHiddenMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataVirtualKeyboardHiddenMETA.nnext(address()); } - /** @return the value of the {@link XrEventDataVirtualKeyboardHiddenMETA#keyboard} field. */ - @NativeType("XrVirtualKeyboardMETA") - public long keyboard() { return XrEventDataVirtualKeyboardHiddenMETA.nkeyboard(address()); } - - /** Sets the specified value to the {@link XrEventDataVirtualKeyboardHiddenMETA#type} field. */ - public XrEventDataVirtualKeyboardHiddenMETA.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataVirtualKeyboardHiddenMETA.ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_HIDDEN_META TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_HIDDEN_META} value to the {@link XrEventDataVirtualKeyboardHiddenMETA#type} field. */ - public XrEventDataVirtualKeyboardHiddenMETA.Buffer type$Default() { return type(METAVirtualKeyboard.XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_HIDDEN_META); } - /** Sets the specified value to the {@link XrEventDataVirtualKeyboardHiddenMETA#next} field. */ - public XrEventDataVirtualKeyboardHiddenMETA.Buffer next(@NativeType("void const *") long value) { XrEventDataVirtualKeyboardHiddenMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrEventDataVirtualKeyboardHiddenMETA#keyboard} field. */ - public XrEventDataVirtualKeyboardHiddenMETA.Buffer keyboard(XrVirtualKeyboardMETA value) { XrEventDataVirtualKeyboardHiddenMETA.nkeyboard(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardShownMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardShownMETA.java deleted file mode 100644 index df383af8bf..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVirtualKeyboardShownMETA.java +++ /dev/null @@ -1,338 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Keyboard shown event. - * - *
Description
- * - *

The {@link XrEventDataVirtualKeyboardShownMETA} event must be sent when the runtime has shown the keyboard render model (via animation). The application should update its state accordingly (e.g. update UI, pause simulation, etc).

- * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to using {@link XrEventDataVirtualKeyboardShownMETA}
  • - *
  • {@code type} must be {@link METAVirtualKeyboard#XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_SHOWN_META TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_SHOWN_META}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • {@code keyboard} must be a valid {@code XrVirtualKeyboardMETA} handle
  • - *
- * - *
See Also
- * - *

{@link XR10#xrPollEvent PollEvent}

- * - *

Layout

- * - *

- * struct XrEventDataVirtualKeyboardShownMETA {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     XrVirtualKeyboardMETA {@link #keyboard};
- * }
- */ -public class XrEventDataVirtualKeyboardShownMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - KEYBOARD; - - static { - 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); - KEYBOARD = layout.offsetof(2); - } - - protected XrEventDataVirtualKeyboardShownMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrEventDataVirtualKeyboardShownMETA create(long address, @Nullable ByteBuffer container) { - return new XrEventDataVirtualKeyboardShownMETA(address, container); - } - - /** - * Creates a {@code XrEventDataVirtualKeyboardShownMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrEventDataVirtualKeyboardShownMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 XrVirtualKeyboardMETA} this event belongs to. */ - @NativeType("XrVirtualKeyboardMETA") - public long keyboard() { return nkeyboard(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrEventDataVirtualKeyboardShownMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_SHOWN_META TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_SHOWN_META} value to the {@link #type} field. */ - public XrEventDataVirtualKeyboardShownMETA type$Default() { return type(METAVirtualKeyboard.XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_SHOWN_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrEventDataVirtualKeyboardShownMETA next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #keyboard} field. */ - public XrEventDataVirtualKeyboardShownMETA keyboard(XrVirtualKeyboardMETA value) { nkeyboard(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrEventDataVirtualKeyboardShownMETA set( - int type, - long next, - XrVirtualKeyboardMETA keyboard - ) { - type(type); - next(next); - keyboard(keyboard); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrEventDataVirtualKeyboardShownMETA set(XrEventDataVirtualKeyboardShownMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrEventDataVirtualKeyboardShownMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrEventDataVirtualKeyboardShownMETA malloc() { - return new XrEventDataVirtualKeyboardShownMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrEventDataVirtualKeyboardShownMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrEventDataVirtualKeyboardShownMETA calloc() { - return new XrEventDataVirtualKeyboardShownMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrEventDataVirtualKeyboardShownMETA} instance allocated with {@link BufferUtils}. */ - public static XrEventDataVirtualKeyboardShownMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrEventDataVirtualKeyboardShownMETA(memAddress(container), container); - } - - /** Returns a new {@code XrEventDataVirtualKeyboardShownMETA} instance for the specified memory address. */ - public static XrEventDataVirtualKeyboardShownMETA create(long address) { - return new XrEventDataVirtualKeyboardShownMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrEventDataVirtualKeyboardShownMETA createSafe(long address) { - return address == NULL ? null : new XrEventDataVirtualKeyboardShownMETA(address, null); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardShownMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardShownMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardShownMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardShownMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardShownMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardShownMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrEventDataVirtualKeyboardShownMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardShownMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrEventDataVirtualKeyboardShownMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrEventDataVirtualKeyboardShownMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrEventDataVirtualKeyboardShownMETA malloc(MemoryStack stack) { - return new XrEventDataVirtualKeyboardShownMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrEventDataVirtualKeyboardShownMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrEventDataVirtualKeyboardShownMETA calloc(MemoryStack stack) { - return new XrEventDataVirtualKeyboardShownMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardShownMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardShownMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrEventDataVirtualKeyboardShownMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrEventDataVirtualKeyboardShownMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEventDataVirtualKeyboardShownMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrEventDataVirtualKeyboardShownMETA.NEXT); } - /** Unsafe version of {@link #keyboard}. */ - public static long nkeyboard(long struct) { return memGetAddress(struct + XrEventDataVirtualKeyboardShownMETA.KEYBOARD); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEventDataVirtualKeyboardShownMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrEventDataVirtualKeyboardShownMETA.NEXT, value); } - /** Unsafe version of {@link #keyboard(XrVirtualKeyboardMETA) keyboard}. */ - public static void nkeyboard(long struct, XrVirtualKeyboardMETA value) { memPutAddress(struct + XrEventDataVirtualKeyboardShownMETA.KEYBOARD, value.address()); } - - /** - * Validates pointer members that should not be {@code NULL}. - * - * @param struct the struct to validate - */ - public static void validate(long struct) { - check(memGetAddress(struct + XrEventDataVirtualKeyboardShownMETA.KEYBOARD)); - } - - // ----------------------------------- - - /** An array of {@link XrEventDataVirtualKeyboardShownMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrEventDataVirtualKeyboardShownMETA ELEMENT_FACTORY = XrEventDataVirtualKeyboardShownMETA.create(-1L); - - /** - * Creates a new {@code XrEventDataVirtualKeyboardShownMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrEventDataVirtualKeyboardShownMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrEventDataVirtualKeyboardShownMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrEventDataVirtualKeyboardShownMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataVirtualKeyboardShownMETA.ntype(address()); } - /** @return the value of the {@link XrEventDataVirtualKeyboardShownMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataVirtualKeyboardShownMETA.nnext(address()); } - /** @return the value of the {@link XrEventDataVirtualKeyboardShownMETA#keyboard} field. */ - @NativeType("XrVirtualKeyboardMETA") - public long keyboard() { return XrEventDataVirtualKeyboardShownMETA.nkeyboard(address()); } - - /** Sets the specified value to the {@link XrEventDataVirtualKeyboardShownMETA#type} field. */ - public XrEventDataVirtualKeyboardShownMETA.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataVirtualKeyboardShownMETA.ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_SHOWN_META TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_SHOWN_META} value to the {@link XrEventDataVirtualKeyboardShownMETA#type} field. */ - public XrEventDataVirtualKeyboardShownMETA.Buffer type$Default() { return type(METAVirtualKeyboard.XR_TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_SHOWN_META); } - /** Sets the specified value to the {@link XrEventDataVirtualKeyboardShownMETA#next} field. */ - public XrEventDataVirtualKeyboardShownMETA.Buffer next(@NativeType("void const *") long value) { XrEventDataVirtualKeyboardShownMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrEventDataVirtualKeyboardShownMETA#keyboard} field. */ - public XrEventDataVirtualKeyboardShownMETA.Buffer keyboard(XrVirtualKeyboardMETA value) { XrEventDataVirtualKeyboardShownMETA.nkeyboard(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorLutCreateInfoMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorLutCreateInfoMETA.java deleted file mode 100644 index 0115b3887e..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorLutCreateInfoMETA.java +++ /dev/null @@ -1,388 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Passthrough color LUT creation info. - * - *
Description
- * - *

{@code resolution} must be a power of 2, otherwise the runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}. The runtime may impose a limit on the maximum supported resolution, which is indicated in {@link XrSystemPassthroughColorLutPropertiesMETA}. If {@code resolution} exceeds that limit, the runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}.

- * - *

{@code data} contains a 3-dimensional array which defines an output color for each RGB input color. The input color is scaled to be in the range [0, resolution]. For an RGBA LUT, the RGBA tuple of output colors for an input color (Rin, Gin, Bin) is found in the four bytes starting at the offset 4 * (Rin + Gin * resolution + Bin * resolution2). For an RGB LUT, the RGB tuple of output colors for an input color (Rin, Gin, Bin) is found in the three bytes starting at the offset 3 * (Rin + Gin * resolution + Bin * resolution2).

- * - *

Color LUT data must be specified and interpreted in sRGB color space.

- * - *

Runtimes must employ trilinear interpolation of neighboring color values if the resolution of the color LUT is smaller than the bit depth of the input colors.

- * - *

The value of {@code bufferSize} in {@code data} must be equal to resolution3 * bytesPerElement, where bytesPerElement is either 3 or 4 depending on {@code channels}. Otherwise, the runtime must return {@link METAPassthroughColorLut#XR_ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META}.

- * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAPassthroughColorLut XR_META_passthrough_color_lut} extension must be enabled prior to using {@link XrPassthroughColorLutCreateInfoMETA}
  • - *
  • {@code type} must be {@link METAPassthroughColorLut#XR_TYPE_PASSTHROUGH_COLOR_LUT_CREATE_INFO_META TYPE_PASSTHROUGH_COLOR_LUT_CREATE_INFO_META}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • {@code channels} must be a valid {@code XrPassthroughColorLutChannelsMETA} value
  • - *
  • {@code data} must be a valid {@link XrPassthroughColorLutDataMETA} structure
  • - *
- * - *
See Also
- * - *

{@link XrPassthroughColorLutDataMETA}, {@link METAPassthroughColorLut#xrCreatePassthroughColorLutMETA CreatePassthroughColorLutMETA}

- * - *

Layout

- * - *

- * struct XrPassthroughColorLutCreateInfoMETA {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     XrPassthroughColorLutChannelsMETA {@link #channels};
- *     uint32_t {@link #resolution};
- *     {@link XrPassthroughColorLutDataMETA XrPassthroughColorLutDataMETA} {@link #data};
- * }
- */ -public class XrPassthroughColorLutCreateInfoMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - CHANNELS, - RESOLUTION, - DATA; - - static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(XrPassthroughColorLutDataMETA.SIZEOF, XrPassthroughColorLutDataMETA.ALIGNOF) - ); - - SIZEOF = layout.getSize(); - ALIGNOF = layout.getAlignment(); - - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - CHANNELS = layout.offsetof(2); - RESOLUTION = layout.offsetof(3); - DATA = layout.offsetof(4); - } - - protected XrPassthroughColorLutCreateInfoMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrPassthroughColorLutCreateInfoMETA create(long address, @Nullable ByteBuffer container) { - return new XrPassthroughColorLutCreateInfoMETA(address, container); - } - - /** - * Creates a {@code XrPassthroughColorLutCreateInfoMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrPassthroughColorLutCreateInfoMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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()); } - /** defines the color channels expected in one LUT element. The number of bytes expected per LUT element is 3 for {@link METAPassthroughColorLut#XR_PASSTHROUGH_COLOR_LUT_CHANNELS_RGB_META PASSTHROUGH_COLOR_LUT_CHANNELS_RGB_META} and 4 for {@link METAPassthroughColorLut#XR_PASSTHROUGH_COLOR_LUT_CHANNELS_RGBA_META PASSTHROUGH_COLOR_LUT_CHANNELS_RGBA_META}. */ - @NativeType("XrPassthroughColorLutChannelsMETA") - public int channels() { return nchannels(address()); } - /** the number of LUT elements per input channel. The total number of elements in the LUT is resolution3. */ - @NativeType("uint32_t") - public int resolution() { return nresolution(address()); } - /** contains the data the LUT is initialized with. */ - public XrPassthroughColorLutDataMETA data() { return ndata(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrPassthroughColorLutCreateInfoMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAPassthroughColorLut#XR_TYPE_PASSTHROUGH_COLOR_LUT_CREATE_INFO_META TYPE_PASSTHROUGH_COLOR_LUT_CREATE_INFO_META} value to the {@link #type} field. */ - public XrPassthroughColorLutCreateInfoMETA type$Default() { return type(METAPassthroughColorLut.XR_TYPE_PASSTHROUGH_COLOR_LUT_CREATE_INFO_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrPassthroughColorLutCreateInfoMETA next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #channels} field. */ - public XrPassthroughColorLutCreateInfoMETA channels(@NativeType("XrPassthroughColorLutChannelsMETA") int value) { nchannels(address(), value); return this; } - /** Sets the specified value to the {@link #resolution} field. */ - public XrPassthroughColorLutCreateInfoMETA resolution(@NativeType("uint32_t") int value) { nresolution(address(), value); return this; } - /** Copies the specified {@link XrPassthroughColorLutDataMETA} to the {@link #data} field. */ - public XrPassthroughColorLutCreateInfoMETA data(XrPassthroughColorLutDataMETA value) { ndata(address(), value); return this; } - /** Passes the {@link #data} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughColorLutCreateInfoMETA data(java.util.function.Consumer consumer) { consumer.accept(data()); return this; } - - /** Initializes this struct with the specified values. */ - public XrPassthroughColorLutCreateInfoMETA set( - int type, - long next, - int channels, - int resolution, - XrPassthroughColorLutDataMETA data - ) { - type(type); - next(next); - channels(channels); - resolution(resolution); - data(data); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrPassthroughColorLutCreateInfoMETA set(XrPassthroughColorLutCreateInfoMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrPassthroughColorLutCreateInfoMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrPassthroughColorLutCreateInfoMETA malloc() { - return new XrPassthroughColorLutCreateInfoMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrPassthroughColorLutCreateInfoMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrPassthroughColorLutCreateInfoMETA calloc() { - return new XrPassthroughColorLutCreateInfoMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrPassthroughColorLutCreateInfoMETA} instance allocated with {@link BufferUtils}. */ - public static XrPassthroughColorLutCreateInfoMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrPassthroughColorLutCreateInfoMETA(memAddress(container), container); - } - - /** Returns a new {@code XrPassthroughColorLutCreateInfoMETA} instance for the specified memory address. */ - public static XrPassthroughColorLutCreateInfoMETA create(long address) { - return new XrPassthroughColorLutCreateInfoMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPassthroughColorLutCreateInfoMETA createSafe(long address) { - return address == NULL ? null : new XrPassthroughColorLutCreateInfoMETA(address, null); - } - - /** - * Returns a new {@link XrPassthroughColorLutCreateInfoMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPassthroughColorLutCreateInfoMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrPassthroughColorLutCreateInfoMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPassthroughColorLutCreateInfoMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPassthroughColorLutCreateInfoMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrPassthroughColorLutCreateInfoMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrPassthroughColorLutCreateInfoMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrPassthroughColorLutCreateInfoMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPassthroughColorLutCreateInfoMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrPassthroughColorLutCreateInfoMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrPassthroughColorLutCreateInfoMETA malloc(MemoryStack stack) { - return new XrPassthroughColorLutCreateInfoMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrPassthroughColorLutCreateInfoMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrPassthroughColorLutCreateInfoMETA calloc(MemoryStack stack) { - return new XrPassthroughColorLutCreateInfoMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrPassthroughColorLutCreateInfoMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPassthroughColorLutCreateInfoMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPassthroughColorLutCreateInfoMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPassthroughColorLutCreateInfoMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughColorLutCreateInfoMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughColorLutCreateInfoMETA.NEXT); } - /** Unsafe version of {@link #channels}. */ - public static int nchannels(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughColorLutCreateInfoMETA.CHANNELS); } - /** Unsafe version of {@link #resolution}. */ - public static int nresolution(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughColorLutCreateInfoMETA.RESOLUTION); } - /** Unsafe version of {@link #data}. */ - public static XrPassthroughColorLutDataMETA ndata(long struct) { return XrPassthroughColorLutDataMETA.create(struct + XrPassthroughColorLutCreateInfoMETA.DATA); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughColorLutCreateInfoMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughColorLutCreateInfoMETA.NEXT, value); } - /** Unsafe version of {@link #channels(int) channels}. */ - public static void nchannels(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughColorLutCreateInfoMETA.CHANNELS, value); } - /** Unsafe version of {@link #resolution(int) resolution}. */ - public static void nresolution(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughColorLutCreateInfoMETA.RESOLUTION, value); } - /** Unsafe version of {@link #data(XrPassthroughColorLutDataMETA) data}. */ - public static void ndata(long struct, XrPassthroughColorLutDataMETA value) { memCopy(value.address(), struct + XrPassthroughColorLutCreateInfoMETA.DATA, XrPassthroughColorLutDataMETA.SIZEOF); } - - /** - * Validates pointer members that should not be {@code NULL}. - * - * @param struct the struct to validate - */ - public static void validate(long struct) { - XrPassthroughColorLutDataMETA.validate(struct + XrPassthroughColorLutCreateInfoMETA.DATA); - } - - // ----------------------------------- - - /** An array of {@link XrPassthroughColorLutCreateInfoMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrPassthroughColorLutCreateInfoMETA ELEMENT_FACTORY = XrPassthroughColorLutCreateInfoMETA.create(-1L); - - /** - * Creates a new {@code XrPassthroughColorLutCreateInfoMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrPassthroughColorLutCreateInfoMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrPassthroughColorLutCreateInfoMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrPassthroughColorLutCreateInfoMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughColorLutCreateInfoMETA.ntype(address()); } - /** @return the value of the {@link XrPassthroughColorLutCreateInfoMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughColorLutCreateInfoMETA.nnext(address()); } - /** @return the value of the {@link XrPassthroughColorLutCreateInfoMETA#channels} field. */ - @NativeType("XrPassthroughColorLutChannelsMETA") - public int channels() { return XrPassthroughColorLutCreateInfoMETA.nchannels(address()); } - /** @return the value of the {@link XrPassthroughColorLutCreateInfoMETA#resolution} field. */ - @NativeType("uint32_t") - public int resolution() { return XrPassthroughColorLutCreateInfoMETA.nresolution(address()); } - /** @return a {@link XrPassthroughColorLutDataMETA} view of the {@link XrPassthroughColorLutCreateInfoMETA#data} field. */ - public XrPassthroughColorLutDataMETA data() { return XrPassthroughColorLutCreateInfoMETA.ndata(address()); } - - /** Sets the specified value to the {@link XrPassthroughColorLutCreateInfoMETA#type} field. */ - public XrPassthroughColorLutCreateInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughColorLutCreateInfoMETA.ntype(address(), value); return this; } - /** Sets the {@link METAPassthroughColorLut#XR_TYPE_PASSTHROUGH_COLOR_LUT_CREATE_INFO_META TYPE_PASSTHROUGH_COLOR_LUT_CREATE_INFO_META} value to the {@link XrPassthroughColorLutCreateInfoMETA#type} field. */ - public XrPassthroughColorLutCreateInfoMETA.Buffer type$Default() { return type(METAPassthroughColorLut.XR_TYPE_PASSTHROUGH_COLOR_LUT_CREATE_INFO_META); } - /** Sets the specified value to the {@link XrPassthroughColorLutCreateInfoMETA#next} field. */ - public XrPassthroughColorLutCreateInfoMETA.Buffer next(@NativeType("void const *") long value) { XrPassthroughColorLutCreateInfoMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughColorLutCreateInfoMETA#channels} field. */ - public XrPassthroughColorLutCreateInfoMETA.Buffer channels(@NativeType("XrPassthroughColorLutChannelsMETA") int value) { XrPassthroughColorLutCreateInfoMETA.nchannels(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughColorLutCreateInfoMETA#resolution} field. */ - public XrPassthroughColorLutCreateInfoMETA.Buffer resolution(@NativeType("uint32_t") int value) { XrPassthroughColorLutCreateInfoMETA.nresolution(address(), value); return this; } - /** Copies the specified {@link XrPassthroughColorLutDataMETA} to the {@link XrPassthroughColorLutCreateInfoMETA#data} field. */ - public XrPassthroughColorLutCreateInfoMETA.Buffer data(XrPassthroughColorLutDataMETA value) { XrPassthroughColorLutCreateInfoMETA.ndata(address(), value); return this; } - /** Passes the {@link XrPassthroughColorLutCreateInfoMETA#data} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughColorLutCreateInfoMETA.Buffer data(java.util.function.Consumer consumer) { consumer.accept(data()); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorLutDataMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorLutDataMETA.java deleted file mode 100644 index 7cba21a978..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorLutDataMETA.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Passthrough color LUT data. - * - *
Description
- * - *

{@link XrPassthroughColorLutDataMETA} defines the LUT data for a color LUT. This structure is used when creating and updating color LUTs.

- * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAPassthroughColorLut XR_META_passthrough_color_lut} extension must be enabled prior to using {@link XrPassthroughColorLutDataMETA}
  • - *
  • {@code buffer} must be a pointer to an array of {@code bufferSize} {@code uint8_t} values
  • - *
  • The {@code bufferSize} parameter must be greater than 0
  • - *
- * - *
See Also
- * - *

{@link XrPassthroughColorLutCreateInfoMETA}, {@link XrPassthroughColorLutUpdateInfoMETA}

- * - *

Layout

- * - *

- * struct XrPassthroughColorLutDataMETA {
- *     uint32_t {@link #bufferSize};
- *     uint8_t const * {@link #buffer};
- * }
- */ -public class XrPassthroughColorLutDataMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - BUFFERSIZE, - BUFFER; - - static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE) - ); - - SIZEOF = layout.getSize(); - ALIGNOF = layout.getAlignment(); - - BUFFERSIZE = layout.offsetof(0); - BUFFER = layout.offsetof(1); - } - - protected XrPassthroughColorLutDataMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrPassthroughColorLutDataMETA create(long address, @Nullable ByteBuffer container) { - return new XrPassthroughColorLutDataMETA(address, container); - } - - /** - * Creates a {@code XrPassthroughColorLutDataMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrPassthroughColorLutDataMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @Override - public int sizeof() { return SIZEOF; } - - /** the number of bytes contained in the buffer data. */ - @NativeType("uint32_t") - public int bufferSize() { return nbufferSize(address()); } - /** a pointer to a memory block of {@code bufferSize} bytes that contains the LUT data. */ - @NativeType("uint8_t const *") - public ByteBuffer buffer() { return nbuffer(address()); } - - /** Sets the address of the specified {@link ByteBuffer} to the {@link #buffer} field. */ - public XrPassthroughColorLutDataMETA buffer(@NativeType("uint8_t const *") ByteBuffer value) { nbuffer(address(), value); return this; } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrPassthroughColorLutDataMETA set(XrPassthroughColorLutDataMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrPassthroughColorLutDataMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrPassthroughColorLutDataMETA malloc() { - return new XrPassthroughColorLutDataMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrPassthroughColorLutDataMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrPassthroughColorLutDataMETA calloc() { - return new XrPassthroughColorLutDataMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrPassthroughColorLutDataMETA} instance allocated with {@link BufferUtils}. */ - public static XrPassthroughColorLutDataMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrPassthroughColorLutDataMETA(memAddress(container), container); - } - - /** Returns a new {@code XrPassthroughColorLutDataMETA} instance for the specified memory address. */ - public static XrPassthroughColorLutDataMETA create(long address) { - return new XrPassthroughColorLutDataMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPassthroughColorLutDataMETA createSafe(long address) { - return address == NULL ? null : new XrPassthroughColorLutDataMETA(address, null); - } - - /** - * Returns a new {@link XrPassthroughColorLutDataMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPassthroughColorLutDataMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrPassthroughColorLutDataMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPassthroughColorLutDataMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPassthroughColorLutDataMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrPassthroughColorLutDataMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrPassthroughColorLutDataMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrPassthroughColorLutDataMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPassthroughColorLutDataMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrPassthroughColorLutDataMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrPassthroughColorLutDataMETA malloc(MemoryStack stack) { - return new XrPassthroughColorLutDataMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrPassthroughColorLutDataMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrPassthroughColorLutDataMETA calloc(MemoryStack stack) { - return new XrPassthroughColorLutDataMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrPassthroughColorLutDataMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPassthroughColorLutDataMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPassthroughColorLutDataMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPassthroughColorLutDataMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #bufferSize}. */ - public static int nbufferSize(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughColorLutDataMETA.BUFFERSIZE); } - /** Unsafe version of {@link #buffer() buffer}. */ - public static ByteBuffer nbuffer(long struct) { return memByteBuffer(memGetAddress(struct + XrPassthroughColorLutDataMETA.BUFFER), nbufferSize(struct)); } - - /** 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 + XrPassthroughColorLutDataMETA.BUFFERSIZE, value); } - /** Unsafe version of {@link #buffer(ByteBuffer) buffer}. */ - public static void nbuffer(long struct, ByteBuffer value) { memPutAddress(struct + XrPassthroughColorLutDataMETA.BUFFER, memAddress(value)); nbufferSize(struct, value.remaining()); } - - /** - * Validates pointer members that should not be {@code NULL}. - * - * @param struct the struct to validate - */ - public static void validate(long struct) { - check(memGetAddress(struct + XrPassthroughColorLutDataMETA.BUFFER)); - } - - // ----------------------------------- - - /** An array of {@link XrPassthroughColorLutDataMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrPassthroughColorLutDataMETA ELEMENT_FACTORY = XrPassthroughColorLutDataMETA.create(-1L); - - /** - * Creates a new {@code XrPassthroughColorLutDataMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrPassthroughColorLutDataMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrPassthroughColorLutDataMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrPassthroughColorLutDataMETA#bufferSize} field. */ - @NativeType("uint32_t") - public int bufferSize() { return XrPassthroughColorLutDataMETA.nbufferSize(address()); } - /** @return a {@link ByteBuffer} view of the data pointed to by the {@link XrPassthroughColorLutDataMETA#buffer} field. */ - @NativeType("uint8_t const *") - public ByteBuffer buffer() { return XrPassthroughColorLutDataMETA.nbuffer(address()); } - - /** Sets the address of the specified {@link ByteBuffer} to the {@link XrPassthroughColorLutDataMETA#buffer} field. */ - public XrPassthroughColorLutDataMETA.Buffer buffer(@NativeType("uint8_t const *") ByteBuffer value) { XrPassthroughColorLutDataMETA.nbuffer(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorLutMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorLutMETA.java deleted file mode 100644 index 3ac6294127..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorLutMETA.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * MACHINE GENERATED FILE, DO NOT EDIT - */ -package org.lwjgl.openxr; - -/** Wraps an {@code XrPassthroughColorLutMETA} handle. */ -public class XrPassthroughColorLutMETA extends DispatchableHandle { - - private final XrPassthroughFB passthroughFB; - - /** - * Creates an {@code XrPassthroughColorLutMETA} using the specified native handle and {@code XrPassthroughFB}. - * - * @param handle the native {@code XrPassthroughColorLutMETA} handle - * @param passthroughFB the {@code XrPassthroughFB} from which {@code handle} was created - */ - public XrPassthroughColorLutMETA(long handle, XrPassthroughFB passthroughFB) { - super(handle, passthroughFB.getCapabilities()); - this.passthroughFB = passthroughFB; - } - - /** Returns the {@code XrPassthroughFB} from which this handle was created. */ - public XrPassthroughFB getPassthroughFB() { - return passthroughFB; - } - -} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorLutUpdateInfoMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorLutUpdateInfoMETA.java deleted file mode 100644 index cb1b6b9a55..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorLutUpdateInfoMETA.java +++ /dev/null @@ -1,339 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Passthrough color LUT update info. - * - *
Description
- * - *

The LUT data may be updated for an existing color LUT, while channels and resolution remain constant after creation. Hence, the value of {@code bufferSize} in {@code data} must be equal to the buffer size specified at creation. Otherwise, the runtime must return {@link METAPassthroughColorLut#XR_ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META}.

- * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAPassthroughColorLut XR_META_passthrough_color_lut} extension must be enabled prior to using {@link XrPassthroughColorLutUpdateInfoMETA}
  • - *
  • {@code type} must be {@link METAPassthroughColorLut#XR_TYPE_PASSTHROUGH_COLOR_LUT_UPDATE_INFO_META TYPE_PASSTHROUGH_COLOR_LUT_UPDATE_INFO_META}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • {@code data} must be a valid {@link XrPassthroughColorLutDataMETA} structure
  • - *
- * - *
See Also
- * - *

{@link XrPassthroughColorLutDataMETA}, {@link METAPassthroughColorLut#xrUpdatePassthroughColorLutMETA UpdatePassthroughColorLutMETA}

- * - *

Layout

- * - *

- * struct XrPassthroughColorLutUpdateInfoMETA {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     {@link XrPassthroughColorLutDataMETA XrPassthroughColorLutDataMETA} {@link #data};
- * }
- */ -public class XrPassthroughColorLutUpdateInfoMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - DATA; - - static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(XrPassthroughColorLutDataMETA.SIZEOF, XrPassthroughColorLutDataMETA.ALIGNOF) - ); - - SIZEOF = layout.getSize(); - ALIGNOF = layout.getAlignment(); - - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - DATA = layout.offsetof(2); - } - - protected XrPassthroughColorLutUpdateInfoMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrPassthroughColorLutUpdateInfoMETA create(long address, @Nullable ByteBuffer container) { - return new XrPassthroughColorLutUpdateInfoMETA(address, container); - } - - /** - * Creates a {@code XrPassthroughColorLutUpdateInfoMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrPassthroughColorLutUpdateInfoMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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()); } - /** contains the updated LUT data. */ - public XrPassthroughColorLutDataMETA data() { return ndata(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrPassthroughColorLutUpdateInfoMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAPassthroughColorLut#XR_TYPE_PASSTHROUGH_COLOR_LUT_UPDATE_INFO_META TYPE_PASSTHROUGH_COLOR_LUT_UPDATE_INFO_META} value to the {@link #type} field. */ - public XrPassthroughColorLutUpdateInfoMETA type$Default() { return type(METAPassthroughColorLut.XR_TYPE_PASSTHROUGH_COLOR_LUT_UPDATE_INFO_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrPassthroughColorLutUpdateInfoMETA next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Copies the specified {@link XrPassthroughColorLutDataMETA} to the {@link #data} field. */ - public XrPassthroughColorLutUpdateInfoMETA data(XrPassthroughColorLutDataMETA value) { ndata(address(), value); return this; } - /** Passes the {@link #data} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughColorLutUpdateInfoMETA data(java.util.function.Consumer consumer) { consumer.accept(data()); return this; } - - /** Initializes this struct with the specified values. */ - public XrPassthroughColorLutUpdateInfoMETA set( - int type, - long next, - XrPassthroughColorLutDataMETA data - ) { - type(type); - next(next); - data(data); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrPassthroughColorLutUpdateInfoMETA set(XrPassthroughColorLutUpdateInfoMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrPassthroughColorLutUpdateInfoMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrPassthroughColorLutUpdateInfoMETA malloc() { - return new XrPassthroughColorLutUpdateInfoMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrPassthroughColorLutUpdateInfoMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrPassthroughColorLutUpdateInfoMETA calloc() { - return new XrPassthroughColorLutUpdateInfoMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrPassthroughColorLutUpdateInfoMETA} instance allocated with {@link BufferUtils}. */ - public static XrPassthroughColorLutUpdateInfoMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrPassthroughColorLutUpdateInfoMETA(memAddress(container), container); - } - - /** Returns a new {@code XrPassthroughColorLutUpdateInfoMETA} instance for the specified memory address. */ - public static XrPassthroughColorLutUpdateInfoMETA create(long address) { - return new XrPassthroughColorLutUpdateInfoMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPassthroughColorLutUpdateInfoMETA createSafe(long address) { - return address == NULL ? null : new XrPassthroughColorLutUpdateInfoMETA(address, null); - } - - /** - * Returns a new {@link XrPassthroughColorLutUpdateInfoMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPassthroughColorLutUpdateInfoMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrPassthroughColorLutUpdateInfoMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPassthroughColorLutUpdateInfoMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPassthroughColorLutUpdateInfoMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrPassthroughColorLutUpdateInfoMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrPassthroughColorLutUpdateInfoMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrPassthroughColorLutUpdateInfoMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPassthroughColorLutUpdateInfoMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrPassthroughColorLutUpdateInfoMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrPassthroughColorLutUpdateInfoMETA malloc(MemoryStack stack) { - return new XrPassthroughColorLutUpdateInfoMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrPassthroughColorLutUpdateInfoMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrPassthroughColorLutUpdateInfoMETA calloc(MemoryStack stack) { - return new XrPassthroughColorLutUpdateInfoMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrPassthroughColorLutUpdateInfoMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPassthroughColorLutUpdateInfoMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPassthroughColorLutUpdateInfoMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPassthroughColorLutUpdateInfoMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughColorLutUpdateInfoMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughColorLutUpdateInfoMETA.NEXT); } - /** Unsafe version of {@link #data}. */ - public static XrPassthroughColorLutDataMETA ndata(long struct) { return XrPassthroughColorLutDataMETA.create(struct + XrPassthroughColorLutUpdateInfoMETA.DATA); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughColorLutUpdateInfoMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughColorLutUpdateInfoMETA.NEXT, value); } - /** Unsafe version of {@link #data(XrPassthroughColorLutDataMETA) data}. */ - public static void ndata(long struct, XrPassthroughColorLutDataMETA value) { memCopy(value.address(), struct + XrPassthroughColorLutUpdateInfoMETA.DATA, XrPassthroughColorLutDataMETA.SIZEOF); } - - /** - * Validates pointer members that should not be {@code NULL}. - * - * @param struct the struct to validate - */ - public static void validate(long struct) { - XrPassthroughColorLutDataMETA.validate(struct + XrPassthroughColorLutUpdateInfoMETA.DATA); - } - - // ----------------------------------- - - /** An array of {@link XrPassthroughColorLutUpdateInfoMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrPassthroughColorLutUpdateInfoMETA ELEMENT_FACTORY = XrPassthroughColorLutUpdateInfoMETA.create(-1L); - - /** - * Creates a new {@code XrPassthroughColorLutUpdateInfoMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrPassthroughColorLutUpdateInfoMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrPassthroughColorLutUpdateInfoMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrPassthroughColorLutUpdateInfoMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughColorLutUpdateInfoMETA.ntype(address()); } - /** @return the value of the {@link XrPassthroughColorLutUpdateInfoMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughColorLutUpdateInfoMETA.nnext(address()); } - /** @return a {@link XrPassthroughColorLutDataMETA} view of the {@link XrPassthroughColorLutUpdateInfoMETA#data} field. */ - public XrPassthroughColorLutDataMETA data() { return XrPassthroughColorLutUpdateInfoMETA.ndata(address()); } - - /** Sets the specified value to the {@link XrPassthroughColorLutUpdateInfoMETA#type} field. */ - public XrPassthroughColorLutUpdateInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughColorLutUpdateInfoMETA.ntype(address(), value); return this; } - /** Sets the {@link METAPassthroughColorLut#XR_TYPE_PASSTHROUGH_COLOR_LUT_UPDATE_INFO_META TYPE_PASSTHROUGH_COLOR_LUT_UPDATE_INFO_META} value to the {@link XrPassthroughColorLutUpdateInfoMETA#type} field. */ - public XrPassthroughColorLutUpdateInfoMETA.Buffer type$Default() { return type(METAPassthroughColorLut.XR_TYPE_PASSTHROUGH_COLOR_LUT_UPDATE_INFO_META); } - /** Sets the specified value to the {@link XrPassthroughColorLutUpdateInfoMETA#next} field. */ - public XrPassthroughColorLutUpdateInfoMETA.Buffer next(@NativeType("void const *") long value) { XrPassthroughColorLutUpdateInfoMETA.nnext(address(), value); return this; } - /** Copies the specified {@link XrPassthroughColorLutDataMETA} to the {@link XrPassthroughColorLutUpdateInfoMETA#data} field. */ - public XrPassthroughColorLutUpdateInfoMETA.Buffer data(XrPassthroughColorLutDataMETA value) { XrPassthroughColorLutUpdateInfoMETA.ndata(address(), value); return this; } - /** Passes the {@link XrPassthroughColorLutUpdateInfoMETA#data} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughColorLutUpdateInfoMETA.Buffer data(java.util.function.Consumer consumer) { consumer.accept(data()); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapInterpolatedLutMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapInterpolatedLutMETA.java deleted file mode 100644 index 4b1d84b441..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapInterpolatedLutMETA.java +++ /dev/null @@ -1,379 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * A color map defined by the interpolation between two LUTs. - * - *
Description
- * - *

{@link XrPassthroughColorMapInterpolatedLutMETA} lets applications apply the interpolation between two color LUTs to a passthrough layer. Applications may use this feature to smoothly transition between two color LUTs. Other Passthrough style elements (such as edges) must not be affected by color LUTs.

- * - *

The blend between {@code sourceColorLut} and {@code targetColorLut} is computed as (1 - weight) * sourceColorLut[Cin] + weight * targetColorLut[Cin].

- * - *

{@link XrPassthroughColorMapInterpolatedLutMETA} is provided in the {@code next} chain of {@link XrPassthroughStyleFB} when calling {@link FBPassthrough#xrPassthroughLayerSetStyleFB PassthroughLayerSetStyleFB}. Subsequent calls to {@link FBPassthrough#xrPassthroughLayerSetStyleFB PassthroughLayerSetStyleFB} with {@link XrPassthroughColorMapInterpolatedLutMETA} in the next chain update the color LUT for that layer. Subsequent calls to {@link FBPassthrough#xrPassthroughLayerSetStyleFB PassthroughLayerSetStyleFB} without this {@link XrPassthroughColorMapInterpolatedLutMETA} (or {@link XrPassthroughColorMapLutMETA}) in the next chain disable color LUTs for that layer.

- * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAPassthroughColorLut XR_META_passthrough_color_lut} extension must be enabled prior to using {@link XrPassthroughColorMapInterpolatedLutMETA}
  • - *
  • {@code type} must be {@link METAPassthroughColorLut#XR_TYPE_PASSTHROUGH_COLOR_MAP_INTERPOLATED_LUT_META TYPE_PASSTHROUGH_COLOR_MAP_INTERPOLATED_LUT_META}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • {@code sourceColorLut} must be a valid {@code XrPassthroughColorLutMETA} handle
  • - *
  • {@code targetColorLut} must be a valid {@code XrPassthroughColorLutMETA} handle
  • - *
  • Both of {@code sourceColorLut} and {@code targetColorLut} must have been created, allocated, or retrieved from the same {@code XrPassthroughFB}
  • - *
- * - *

Layout

- * - *

- * struct XrPassthroughColorMapInterpolatedLutMETA {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     XrPassthroughColorLutMETA {@link #sourceColorLut};
- *     XrPassthroughColorLutMETA {@link #targetColorLut};
- *     float {@link #weight};
- * }
- */ -public class XrPassthroughColorMapInterpolatedLutMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - SOURCECOLORLUT, - TARGETCOLORLUT, - WEIGHT; - - static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(4) - ); - - SIZEOF = layout.getSize(); - ALIGNOF = layout.getAlignment(); - - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - SOURCECOLORLUT = layout.offsetof(2); - TARGETCOLORLUT = layout.offsetof(3); - WEIGHT = layout.offsetof(4); - } - - protected XrPassthroughColorMapInterpolatedLutMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrPassthroughColorMapInterpolatedLutMETA create(long address, @Nullable ByteBuffer container) { - return new XrPassthroughColorMapInterpolatedLutMETA(address, container); - } - - /** - * Creates a {@code XrPassthroughColorMapInterpolatedLutMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrPassthroughColorMapInterpolatedLutMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 initial {@code XrPassthroughColorLutMETA}. */ - @NativeType("XrPassthroughColorLutMETA") - public long sourceColorLut() { return nsourceColorLut(address()); } - /** the final {@code XrPassthroughColorLutMETA}. */ - @NativeType("XrPassthroughColorLutMETA") - public long targetColorLut() { return ntargetColorLut(address()); } - /** a factor in the range [0, 1] which defines the linear blend between the initial and the final color LUT. */ - public float weight() { return nweight(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrPassthroughColorMapInterpolatedLutMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAPassthroughColorLut#XR_TYPE_PASSTHROUGH_COLOR_MAP_INTERPOLATED_LUT_META TYPE_PASSTHROUGH_COLOR_MAP_INTERPOLATED_LUT_META} value to the {@link #type} field. */ - public XrPassthroughColorMapInterpolatedLutMETA type$Default() { return type(METAPassthroughColorLut.XR_TYPE_PASSTHROUGH_COLOR_MAP_INTERPOLATED_LUT_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrPassthroughColorMapInterpolatedLutMETA next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #sourceColorLut} field. */ - public XrPassthroughColorMapInterpolatedLutMETA sourceColorLut(XrPassthroughColorLutMETA value) { nsourceColorLut(address(), value); return this; } - /** Sets the specified value to the {@link #targetColorLut} field. */ - public XrPassthroughColorMapInterpolatedLutMETA targetColorLut(XrPassthroughColorLutMETA value) { ntargetColorLut(address(), value); return this; } - /** Sets the specified value to the {@link #weight} field. */ - public XrPassthroughColorMapInterpolatedLutMETA weight(float value) { nweight(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrPassthroughColorMapInterpolatedLutMETA set( - int type, - long next, - XrPassthroughColorLutMETA sourceColorLut, - XrPassthroughColorLutMETA targetColorLut, - float weight - ) { - type(type); - next(next); - sourceColorLut(sourceColorLut); - targetColorLut(targetColorLut); - weight(weight); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrPassthroughColorMapInterpolatedLutMETA set(XrPassthroughColorMapInterpolatedLutMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrPassthroughColorMapInterpolatedLutMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrPassthroughColorMapInterpolatedLutMETA malloc() { - return new XrPassthroughColorMapInterpolatedLutMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrPassthroughColorMapInterpolatedLutMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrPassthroughColorMapInterpolatedLutMETA calloc() { - return new XrPassthroughColorMapInterpolatedLutMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrPassthroughColorMapInterpolatedLutMETA} instance allocated with {@link BufferUtils}. */ - public static XrPassthroughColorMapInterpolatedLutMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrPassthroughColorMapInterpolatedLutMETA(memAddress(container), container); - } - - /** Returns a new {@code XrPassthroughColorMapInterpolatedLutMETA} instance for the specified memory address. */ - public static XrPassthroughColorMapInterpolatedLutMETA create(long address) { - return new XrPassthroughColorMapInterpolatedLutMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPassthroughColorMapInterpolatedLutMETA createSafe(long address) { - return address == NULL ? null : new XrPassthroughColorMapInterpolatedLutMETA(address, null); - } - - /** - * Returns a new {@link XrPassthroughColorMapInterpolatedLutMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPassthroughColorMapInterpolatedLutMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrPassthroughColorMapInterpolatedLutMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPassthroughColorMapInterpolatedLutMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPassthroughColorMapInterpolatedLutMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrPassthroughColorMapInterpolatedLutMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrPassthroughColorMapInterpolatedLutMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrPassthroughColorMapInterpolatedLutMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPassthroughColorMapInterpolatedLutMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrPassthroughColorMapInterpolatedLutMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrPassthroughColorMapInterpolatedLutMETA malloc(MemoryStack stack) { - return new XrPassthroughColorMapInterpolatedLutMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrPassthroughColorMapInterpolatedLutMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrPassthroughColorMapInterpolatedLutMETA calloc(MemoryStack stack) { - return new XrPassthroughColorMapInterpolatedLutMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrPassthroughColorMapInterpolatedLutMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPassthroughColorMapInterpolatedLutMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPassthroughColorMapInterpolatedLutMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPassthroughColorMapInterpolatedLutMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughColorMapInterpolatedLutMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughColorMapInterpolatedLutMETA.NEXT); } - /** Unsafe version of {@link #sourceColorLut}. */ - public static long nsourceColorLut(long struct) { return memGetAddress(struct + XrPassthroughColorMapInterpolatedLutMETA.SOURCECOLORLUT); } - /** Unsafe version of {@link #targetColorLut}. */ - public static long ntargetColorLut(long struct) { return memGetAddress(struct + XrPassthroughColorMapInterpolatedLutMETA.TARGETCOLORLUT); } - /** Unsafe version of {@link #weight}. */ - public static float nweight(long struct) { return UNSAFE.getFloat(null, struct + XrPassthroughColorMapInterpolatedLutMETA.WEIGHT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughColorMapInterpolatedLutMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughColorMapInterpolatedLutMETA.NEXT, value); } - /** Unsafe version of {@link #sourceColorLut(XrPassthroughColorLutMETA) sourceColorLut}. */ - public static void nsourceColorLut(long struct, XrPassthroughColorLutMETA value) { memPutAddress(struct + XrPassthroughColorMapInterpolatedLutMETA.SOURCECOLORLUT, value.address()); } - /** Unsafe version of {@link #targetColorLut(XrPassthroughColorLutMETA) targetColorLut}. */ - public static void ntargetColorLut(long struct, XrPassthroughColorLutMETA value) { memPutAddress(struct + XrPassthroughColorMapInterpolatedLutMETA.TARGETCOLORLUT, value.address()); } - /** Unsafe version of {@link #weight(float) weight}. */ - public static void nweight(long struct, float value) { UNSAFE.putFloat(null, struct + XrPassthroughColorMapInterpolatedLutMETA.WEIGHT, value); } - - /** - * Validates pointer members that should not be {@code NULL}. - * - * @param struct the struct to validate - */ - public static void validate(long struct) { - check(memGetAddress(struct + XrPassthroughColorMapInterpolatedLutMETA.SOURCECOLORLUT)); - check(memGetAddress(struct + XrPassthroughColorMapInterpolatedLutMETA.TARGETCOLORLUT)); - } - - // ----------------------------------- - - /** An array of {@link XrPassthroughColorMapInterpolatedLutMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrPassthroughColorMapInterpolatedLutMETA ELEMENT_FACTORY = XrPassthroughColorMapInterpolatedLutMETA.create(-1L); - - /** - * Creates a new {@code XrPassthroughColorMapInterpolatedLutMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrPassthroughColorMapInterpolatedLutMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrPassthroughColorMapInterpolatedLutMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrPassthroughColorMapInterpolatedLutMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughColorMapInterpolatedLutMETA.ntype(address()); } - /** @return the value of the {@link XrPassthroughColorMapInterpolatedLutMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughColorMapInterpolatedLutMETA.nnext(address()); } - /** @return the value of the {@link XrPassthroughColorMapInterpolatedLutMETA#sourceColorLut} field. */ - @NativeType("XrPassthroughColorLutMETA") - public long sourceColorLut() { return XrPassthroughColorMapInterpolatedLutMETA.nsourceColorLut(address()); } - /** @return the value of the {@link XrPassthroughColorMapInterpolatedLutMETA#targetColorLut} field. */ - @NativeType("XrPassthroughColorLutMETA") - public long targetColorLut() { return XrPassthroughColorMapInterpolatedLutMETA.ntargetColorLut(address()); } - /** @return the value of the {@link XrPassthroughColorMapInterpolatedLutMETA#weight} field. */ - public float weight() { return XrPassthroughColorMapInterpolatedLutMETA.nweight(address()); } - - /** Sets the specified value to the {@link XrPassthroughColorMapInterpolatedLutMETA#type} field. */ - public XrPassthroughColorMapInterpolatedLutMETA.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughColorMapInterpolatedLutMETA.ntype(address(), value); return this; } - /** Sets the {@link METAPassthroughColorLut#XR_TYPE_PASSTHROUGH_COLOR_MAP_INTERPOLATED_LUT_META TYPE_PASSTHROUGH_COLOR_MAP_INTERPOLATED_LUT_META} value to the {@link XrPassthroughColorMapInterpolatedLutMETA#type} field. */ - public XrPassthroughColorMapInterpolatedLutMETA.Buffer type$Default() { return type(METAPassthroughColorLut.XR_TYPE_PASSTHROUGH_COLOR_MAP_INTERPOLATED_LUT_META); } - /** Sets the specified value to the {@link XrPassthroughColorMapInterpolatedLutMETA#next} field. */ - public XrPassthroughColorMapInterpolatedLutMETA.Buffer next(@NativeType("void const *") long value) { XrPassthroughColorMapInterpolatedLutMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughColorMapInterpolatedLutMETA#sourceColorLut} field. */ - public XrPassthroughColorMapInterpolatedLutMETA.Buffer sourceColorLut(XrPassthroughColorLutMETA value) { XrPassthroughColorMapInterpolatedLutMETA.nsourceColorLut(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughColorMapInterpolatedLutMETA#targetColorLut} field. */ - public XrPassthroughColorMapInterpolatedLutMETA.Buffer targetColorLut(XrPassthroughColorLutMETA value) { XrPassthroughColorMapInterpolatedLutMETA.ntargetColorLut(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughColorMapInterpolatedLutMETA#weight} field. */ - public XrPassthroughColorMapInterpolatedLutMETA.Buffer weight(float value) { XrPassthroughColorMapInterpolatedLutMETA.nweight(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapLutMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapLutMETA.java deleted file mode 100644 index 61467edf34..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapLutMETA.java +++ /dev/null @@ -1,356 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * A color map defined by a LUT. - * - *
Description
- * - *

{@link XrPassthroughColorMapLutMETA} lets applications apply a color LUT to a passthrough layer. Other Passthrough style elements (such as edges) must not be affected by color LUTs.

- * - *

Applications may use {@code weight} to efficiently blend between the original colors and the mapped colors. The blend is computed as (1 - weight) * Cin + weight * colorLut[Cin].

- * - *

{@link XrPassthroughColorMapLutMETA} is provided in the {@code next} chain of {@link XrPassthroughStyleFB} when calling {@link FBPassthrough#xrPassthroughLayerSetStyleFB PassthroughLayerSetStyleFB}. Subsequent calls to {@link FBPassthrough#xrPassthroughLayerSetStyleFB PassthroughLayerSetStyleFB} with {@link XrPassthroughColorMapLutMETA} in the {@code next} chain update the color LUT for that layer. Subsequent calls to {@link FBPassthrough#xrPassthroughLayerSetStyleFB PassthroughLayerSetStyleFB} without this {@link XrPassthroughColorMapLutMETA} (or {@link XrPassthroughColorMapInterpolatedLutMETA}) in the next chain disable color LUTs for that layer.

- * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAPassthroughColorLut XR_META_passthrough_color_lut} extension must be enabled prior to using {@link XrPassthroughColorMapLutMETA}
  • - *
  • {@code type} must be {@link METAPassthroughColorLut#XR_TYPE_PASSTHROUGH_COLOR_MAP_LUT_META TYPE_PASSTHROUGH_COLOR_MAP_LUT_META}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • {@code colorLut} must be a valid {@code XrPassthroughColorLutMETA} handle
  • - *
- * - *

Layout

- * - *

- * struct XrPassthroughColorMapLutMETA {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     XrPassthroughColorLutMETA {@link #colorLut};
- *     float {@link #weight};
- * }
- */ -public class XrPassthroughColorMapLutMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - COLORLUT, - WEIGHT; - - static { - 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); - COLORLUT = layout.offsetof(2); - WEIGHT = layout.offsetof(3); - } - - protected XrPassthroughColorMapLutMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrPassthroughColorMapLutMETA create(long address, @Nullable ByteBuffer container) { - return new XrPassthroughColorMapLutMETA(address, container); - } - - /** - * Creates a {@code XrPassthroughColorMapLutMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrPassthroughColorMapLutMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 XrPassthroughColorLutMETA}. */ - @NativeType("XrPassthroughColorLutMETA") - public long colorLut() { return ncolorLut(address()); } - /** a factor in the range [0, 1] which defines the linear blend between the original and the mapped colors for the output color. */ - public float weight() { return nweight(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrPassthroughColorMapLutMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAPassthroughColorLut#XR_TYPE_PASSTHROUGH_COLOR_MAP_LUT_META TYPE_PASSTHROUGH_COLOR_MAP_LUT_META} value to the {@link #type} field. */ - public XrPassthroughColorMapLutMETA type$Default() { return type(METAPassthroughColorLut.XR_TYPE_PASSTHROUGH_COLOR_MAP_LUT_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrPassthroughColorMapLutMETA next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #colorLut} field. */ - public XrPassthroughColorMapLutMETA colorLut(XrPassthroughColorLutMETA value) { ncolorLut(address(), value); return this; } - /** Sets the specified value to the {@link #weight} field. */ - public XrPassthroughColorMapLutMETA weight(float value) { nweight(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrPassthroughColorMapLutMETA set( - int type, - long next, - XrPassthroughColorLutMETA colorLut, - float weight - ) { - type(type); - next(next); - colorLut(colorLut); - weight(weight); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrPassthroughColorMapLutMETA set(XrPassthroughColorMapLutMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrPassthroughColorMapLutMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrPassthroughColorMapLutMETA malloc() { - return new XrPassthroughColorMapLutMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrPassthroughColorMapLutMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrPassthroughColorMapLutMETA calloc() { - return new XrPassthroughColorMapLutMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrPassthroughColorMapLutMETA} instance allocated with {@link BufferUtils}. */ - public static XrPassthroughColorMapLutMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrPassthroughColorMapLutMETA(memAddress(container), container); - } - - /** Returns a new {@code XrPassthroughColorMapLutMETA} instance for the specified memory address. */ - public static XrPassthroughColorMapLutMETA create(long address) { - return new XrPassthroughColorMapLutMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPassthroughColorMapLutMETA createSafe(long address) { - return address == NULL ? null : new XrPassthroughColorMapLutMETA(address, null); - } - - /** - * Returns a new {@link XrPassthroughColorMapLutMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPassthroughColorMapLutMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrPassthroughColorMapLutMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPassthroughColorMapLutMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPassthroughColorMapLutMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrPassthroughColorMapLutMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrPassthroughColorMapLutMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrPassthroughColorMapLutMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPassthroughColorMapLutMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrPassthroughColorMapLutMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrPassthroughColorMapLutMETA malloc(MemoryStack stack) { - return new XrPassthroughColorMapLutMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrPassthroughColorMapLutMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrPassthroughColorMapLutMETA calloc(MemoryStack stack) { - return new XrPassthroughColorMapLutMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrPassthroughColorMapLutMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPassthroughColorMapLutMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPassthroughColorMapLutMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPassthroughColorMapLutMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughColorMapLutMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughColorMapLutMETA.NEXT); } - /** Unsafe version of {@link #colorLut}. */ - public static long ncolorLut(long struct) { return memGetAddress(struct + XrPassthroughColorMapLutMETA.COLORLUT); } - /** Unsafe version of {@link #weight}. */ - public static float nweight(long struct) { return UNSAFE.getFloat(null, struct + XrPassthroughColorMapLutMETA.WEIGHT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughColorMapLutMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughColorMapLutMETA.NEXT, value); } - /** Unsafe version of {@link #colorLut(XrPassthroughColorLutMETA) colorLut}. */ - public static void ncolorLut(long struct, XrPassthroughColorLutMETA value) { memPutAddress(struct + XrPassthroughColorMapLutMETA.COLORLUT, value.address()); } - /** Unsafe version of {@link #weight(float) weight}. */ - public static void nweight(long struct, float value) { UNSAFE.putFloat(null, struct + XrPassthroughColorMapLutMETA.WEIGHT, value); } - - /** - * Validates pointer members that should not be {@code NULL}. - * - * @param struct the struct to validate - */ - public static void validate(long struct) { - check(memGetAddress(struct + XrPassthroughColorMapLutMETA.COLORLUT)); - } - - // ----------------------------------- - - /** An array of {@link XrPassthroughColorMapLutMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrPassthroughColorMapLutMETA ELEMENT_FACTORY = XrPassthroughColorMapLutMETA.create(-1L); - - /** - * Creates a new {@code XrPassthroughColorMapLutMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrPassthroughColorMapLutMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrPassthroughColorMapLutMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrPassthroughColorMapLutMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughColorMapLutMETA.ntype(address()); } - /** @return the value of the {@link XrPassthroughColorMapLutMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughColorMapLutMETA.nnext(address()); } - /** @return the value of the {@link XrPassthroughColorMapLutMETA#colorLut} field. */ - @NativeType("XrPassthroughColorLutMETA") - public long colorLut() { return XrPassthroughColorMapLutMETA.ncolorLut(address()); } - /** @return the value of the {@link XrPassthroughColorMapLutMETA#weight} field. */ - public float weight() { return XrPassthroughColorMapLutMETA.nweight(address()); } - - /** Sets the specified value to the {@link XrPassthroughColorMapLutMETA#type} field. */ - public XrPassthroughColorMapLutMETA.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughColorMapLutMETA.ntype(address(), value); return this; } - /** Sets the {@link METAPassthroughColorLut#XR_TYPE_PASSTHROUGH_COLOR_MAP_LUT_META TYPE_PASSTHROUGH_COLOR_MAP_LUT_META} value to the {@link XrPassthroughColorMapLutMETA#type} field. */ - public XrPassthroughColorMapLutMETA.Buffer type$Default() { return type(METAPassthroughColorLut.XR_TYPE_PASSTHROUGH_COLOR_MAP_LUT_META); } - /** Sets the specified value to the {@link XrPassthroughColorMapLutMETA#next} field. */ - public XrPassthroughColorMapLutMETA.Buffer next(@NativeType("void const *") long value) { XrPassthroughColorMapLutMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughColorMapLutMETA#colorLut} field. */ - public XrPassthroughColorMapLutMETA.Buffer colorLut(XrPassthroughColorLutMETA value) { XrPassthroughColorMapLutMETA.ncolorLut(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughColorMapLutMETA#weight} field. */ - public XrPassthroughColorMapLutMETA.Buffer weight(float value) { XrPassthroughColorMapLutMETA.nweight(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughPreferencesMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughPreferencesMETA.java deleted file mode 100644 index 69235452da..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughPreferencesMETA.java +++ /dev/null @@ -1,321 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Passthrough preferences. - * - *
Description
- * - *

The runtime must populate the {@link XrPassthroughPreferencesMETA} structure with the relevant information when the app calls {@link METAPassthroughPreferences#xrGetPassthroughPreferencesMETA GetPassthroughPreferencesMETA}.

- * - *

Presence of the bit flag {@link METAPassthroughPreferences#XR_PASSTHROUGH_PREFERENCE_DEFAULT_TO_ACTIVE_BIT_META PASSTHROUGH_PREFERENCE_DEFAULT_TO_ACTIVE_BIT_META} does not indicate a guarantee that applications can enable and use passthrough in practice. The runtime may impose restrictions on passthrough usage (e.g. based on hardware availability or permission models) independently of the state of this flag bit. Apps should test for this flag explicitly, as more flag bits may be introduced in the future.

- * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAPassthroughPreferences XR_META_passthrough_preferences} extension must be enabled prior to using {@link XrPassthroughPreferencesMETA}
  • - *
  • {@code type} must be {@link METAPassthroughPreferences#XR_TYPE_PASSTHROUGH_PREFERENCES_META TYPE_PASSTHROUGH_PREFERENCES_META}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
- * - *
See Also
- * - *

{@link METAPassthroughPreferences#xrGetPassthroughPreferencesMETA GetPassthroughPreferencesMETA}

- * - *

Layout

- * - *

- * struct XrPassthroughPreferencesMETA {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     XrPassthroughPreferenceFlagsMETA {@link #flags};
- * }
- */ -public class XrPassthroughPreferencesMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - FLAGS; - - static { - 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 XrPassthroughPreferencesMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrPassthroughPreferencesMETA create(long address, @Nullable ByteBuffer container) { - return new XrPassthroughPreferencesMETA(address, container); - } - - /** - * Creates a {@code XrPassthroughPreferencesMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrPassthroughPreferencesMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 bitmask of {@code XrPassthroughPreferenceFlagBitsMETA} describing boolean passthrough preferences. */ - @NativeType("XrPassthroughPreferenceFlagsMETA") - public long flags() { return nflags(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrPassthroughPreferencesMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAPassthroughPreferences#XR_TYPE_PASSTHROUGH_PREFERENCES_META TYPE_PASSTHROUGH_PREFERENCES_META} value to the {@link #type} field. */ - public XrPassthroughPreferencesMETA type$Default() { return type(METAPassthroughPreferences.XR_TYPE_PASSTHROUGH_PREFERENCES_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrPassthroughPreferencesMETA next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrPassthroughPreferencesMETA set( - int type, - long next - ) { - type(type); - next(next); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrPassthroughPreferencesMETA set(XrPassthroughPreferencesMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrPassthroughPreferencesMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrPassthroughPreferencesMETA malloc() { - return new XrPassthroughPreferencesMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrPassthroughPreferencesMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrPassthroughPreferencesMETA calloc() { - return new XrPassthroughPreferencesMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrPassthroughPreferencesMETA} instance allocated with {@link BufferUtils}. */ - public static XrPassthroughPreferencesMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrPassthroughPreferencesMETA(memAddress(container), container); - } - - /** Returns a new {@code XrPassthroughPreferencesMETA} instance for the specified memory address. */ - public static XrPassthroughPreferencesMETA create(long address) { - return new XrPassthroughPreferencesMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPassthroughPreferencesMETA createSafe(long address) { - return address == NULL ? null : new XrPassthroughPreferencesMETA(address, null); - } - - /** - * Returns a new {@link XrPassthroughPreferencesMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPassthroughPreferencesMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrPassthroughPreferencesMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPassthroughPreferencesMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPassthroughPreferencesMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrPassthroughPreferencesMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrPassthroughPreferencesMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrPassthroughPreferencesMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPassthroughPreferencesMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrPassthroughPreferencesMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrPassthroughPreferencesMETA malloc(MemoryStack stack) { - return new XrPassthroughPreferencesMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrPassthroughPreferencesMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrPassthroughPreferencesMETA calloc(MemoryStack stack) { - return new XrPassthroughPreferencesMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrPassthroughPreferencesMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPassthroughPreferencesMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPassthroughPreferencesMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPassthroughPreferencesMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughPreferencesMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughPreferencesMETA.NEXT); } - /** Unsafe version of {@link #flags}. */ - public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrPassthroughPreferencesMETA.FLAGS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughPreferencesMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughPreferencesMETA.NEXT, value); } - - // ----------------------------------- - - /** An array of {@link XrPassthroughPreferencesMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrPassthroughPreferencesMETA ELEMENT_FACTORY = XrPassthroughPreferencesMETA.create(-1L); - - /** - * Creates a new {@code XrPassthroughPreferencesMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrPassthroughPreferencesMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrPassthroughPreferencesMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrPassthroughPreferencesMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughPreferencesMETA.ntype(address()); } - /** @return the value of the {@link XrPassthroughPreferencesMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughPreferencesMETA.nnext(address()); } - /** @return the value of the {@link XrPassthroughPreferencesMETA#flags} field. */ - @NativeType("XrPassthroughPreferenceFlagsMETA") - public long flags() { return XrPassthroughPreferencesMETA.nflags(address()); } - - /** Sets the specified value to the {@link XrPassthroughPreferencesMETA#type} field. */ - public XrPassthroughPreferencesMETA.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughPreferencesMETA.ntype(address(), value); return this; } - /** Sets the {@link METAPassthroughPreferences#XR_TYPE_PASSTHROUGH_PREFERENCES_META TYPE_PASSTHROUGH_PREFERENCES_META} value to the {@link XrPassthroughPreferencesMETA#type} field. */ - public XrPassthroughPreferencesMETA.Buffer type$Default() { return type(METAPassthroughPreferences.XR_TYPE_PASSTHROUGH_PREFERENCES_META); } - /** Sets the specified value to the {@link XrPassthroughPreferencesMETA#next} field. */ - public XrPassthroughPreferencesMETA.Buffer next(@NativeType("void const *") long value) { XrPassthroughPreferencesMETA.nnext(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorBeginInfoEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorBeginInfoEXT.java deleted file mode 100644 index c4775bcb19..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorBeginInfoEXT.java +++ /dev/null @@ -1,522 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Describes the information to detect planes. - * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link EXTPlaneDetection XR_EXT_plane_detection} extension must be enabled prior to using {@link XrPlaneDetectorBeginInfoEXT}
  • - *
  • {@code type} must be {@link EXTPlaneDetection#XR_TYPE_PLANE_DETECTOR_BEGIN_INFO_EXT TYPE_PLANE_DETECTOR_BEGIN_INFO_EXT}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • {@code baseSpace} must be a valid {@code XrSpace} handle
  • - *
  • If {@code orientationCount} is not 0, {@code orientations} must be a pointer to an array of {@code orientationCount} valid {@code XrPlaneDetectorOrientationEXT} values
  • - *
  • If {@code semanticTypeCount} is not 0, {@code semanticTypes} must be a pointer to an array of {@code semanticTypeCount} valid {@code XrPlaneDetectorSemanticTypeEXT} values
  • - *
- * - *
See Also
- * - *

{@link XrExtent3DfEXT}, {@link XrPosef}, {@link EXTPlaneDetection#xrBeginPlaneDetectionEXT BeginPlaneDetectionEXT}

- * - *

Layout

- * - *

- * struct XrPlaneDetectorBeginInfoEXT {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     XrSpace {@link #baseSpace};
- *     XrTime {@link #time};
- *     uint32_t {@link #orientationCount};
- *     XrPlaneDetectorOrientationEXT const * {@link #orientations};
- *     uint32_t {@link #semanticTypeCount};
- *     XrPlaneDetectorSemanticTypeEXT const * {@link #semanticTypes};
- *     uint32_t {@link #maxPlanes};
- *     float {@link #minArea};
- *     {@link XrPosef XrPosef} {@link #boundingBoxPose};
- *     {@link XrExtent3DfEXT XrExtent3DfEXT} {@link #boundingBoxExtent};
- * }
- */ -public class XrPlaneDetectorBeginInfoEXT extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - BASESPACE, - TIME, - ORIENTATIONCOUNT, - ORIENTATIONS, - SEMANTICTYPECOUNT, - SEMANTICTYPES, - MAXPLANES, - MINAREA, - BOUNDINGBOXPOSE, - BOUNDINGBOXEXTENT; - - static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(8), - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), - __member(XrExtent3DfEXT.SIZEOF, XrExtent3DfEXT.ALIGNOF) - ); - - SIZEOF = layout.getSize(); - ALIGNOF = layout.getAlignment(); - - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - BASESPACE = layout.offsetof(2); - TIME = layout.offsetof(3); - ORIENTATIONCOUNT = layout.offsetof(4); - ORIENTATIONS = layout.offsetof(5); - SEMANTICTYPECOUNT = layout.offsetof(6); - SEMANTICTYPES = layout.offsetof(7); - MAXPLANES = layout.offsetof(8); - MINAREA = layout.offsetof(9); - BOUNDINGBOXPOSE = layout.offsetof(10); - BOUNDINGBOXEXTENT = layout.offsetof(11); - } - - protected XrPlaneDetectorBeginInfoEXT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrPlaneDetectorBeginInfoEXT create(long address, @Nullable ByteBuffer container) { - return new XrPlaneDetectorBeginInfoEXT(address, container); - } - - /** - * Creates a {@code XrPlaneDetectorBeginInfoEXT} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrPlaneDetectorBeginInfoEXT(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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} that the {@code boundingBox} is defined in. */ - @NativeType("XrSpace") - public long baseSpace() { return nbaseSpace(address()); } - /** an {@code XrTime} at which to detect the planes. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - /** the number of elements in the {@code orientations}. */ - @NativeType("uint32_t") - public int orientationCount() { return norientationCount(address()); } - /** an array of {@code XrPlaneDetectorOrientationEXT}. If this field is null no orientation filtering is applied. If any orientations are present only planes with any of the orientation listed are returned. */ - @Nullable - @NativeType("XrPlaneDetectorOrientationEXT const *") - public IntBuffer orientations() { return norientations(address()); } - /** the number of elements in the {@code semanticTypes}. */ - @NativeType("uint32_t") - public int semanticTypeCount() { return nsemanticTypeCount(address()); } - /** an array of {@code XrPlaneDetectorSemanticTypeEXT}. If this field is null no semantic type filtering is applied. If any semantic types are present only planes with matching semantic types are returned. */ - @Nullable - @NativeType("XrPlaneDetectorSemanticTypeEXT const *") - public IntBuffer semanticTypes() { return nsemanticTypes(address()); } - /** the maximum number of planes the runtime may return. This number must be larger than 0. If the number is 0 the runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}. */ - @NativeType("uint32_t") - public int maxPlanes() { return nmaxPlanes(address()); } - /** the minimum area in square meters a plane must have to be returned. A runtime may have a lower limit under which planes are not detected regardless of {@code minArea} and silently drop planes lower than the internal minimum. */ - public float minArea() { return nminArea(address()); } - /** the pose of the center of the bounding box of the volume to use for detection in {@code baseSpace}. */ - public XrPosef boundingBoxPose() { return nboundingBoxPose(address()); } - /** the extent of the bounding box to use for detection. If any part of a plane falls within the bounding box it should be considered for inclusion subject to the other filters. This means that planes may extend beyond the bounding box. A runtime may have an upper limit on the detection range and silently clip the results to that internally. */ - public XrExtent3DfEXT boundingBoxExtent() { return nboundingBoxExtent(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrPlaneDetectorBeginInfoEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTPlaneDetection#XR_TYPE_PLANE_DETECTOR_BEGIN_INFO_EXT TYPE_PLANE_DETECTOR_BEGIN_INFO_EXT} value to the {@link #type} field. */ - public XrPlaneDetectorBeginInfoEXT type$Default() { return type(EXTPlaneDetection.XR_TYPE_PLANE_DETECTOR_BEGIN_INFO_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrPlaneDetectorBeginInfoEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #baseSpace} field. */ - public XrPlaneDetectorBeginInfoEXT baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrPlaneDetectorBeginInfoEXT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } - /** Sets the specified value to the {@link #orientationCount} field. */ - public XrPlaneDetectorBeginInfoEXT orientationCount(@NativeType("uint32_t") int value) { norientationCount(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link #orientations} field. */ - public XrPlaneDetectorBeginInfoEXT orientations(@Nullable @NativeType("XrPlaneDetectorOrientationEXT const *") IntBuffer value) { norientations(address(), value); return this; } - /** Sets the specified value to the {@link #semanticTypeCount} field. */ - public XrPlaneDetectorBeginInfoEXT semanticTypeCount(@NativeType("uint32_t") int value) { nsemanticTypeCount(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link #semanticTypes} field. */ - public XrPlaneDetectorBeginInfoEXT semanticTypes(@Nullable @NativeType("XrPlaneDetectorSemanticTypeEXT const *") IntBuffer value) { nsemanticTypes(address(), value); return this; } - /** Sets the specified value to the {@link #maxPlanes} field. */ - public XrPlaneDetectorBeginInfoEXT maxPlanes(@NativeType("uint32_t") int value) { nmaxPlanes(address(), value); return this; } - /** Sets the specified value to the {@link #minArea} field. */ - public XrPlaneDetectorBeginInfoEXT minArea(float value) { nminArea(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link #boundingBoxPose} field. */ - public XrPlaneDetectorBeginInfoEXT boundingBoxPose(XrPosef value) { nboundingBoxPose(address(), value); return this; } - /** Passes the {@link #boundingBoxPose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPlaneDetectorBeginInfoEXT boundingBoxPose(java.util.function.Consumer consumer) { consumer.accept(boundingBoxPose()); return this; } - /** Copies the specified {@link XrExtent3DfEXT} to the {@link #boundingBoxExtent} field. */ - public XrPlaneDetectorBeginInfoEXT boundingBoxExtent(XrExtent3DfEXT value) { nboundingBoxExtent(address(), value); return this; } - /** Passes the {@link #boundingBoxExtent} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPlaneDetectorBeginInfoEXT boundingBoxExtent(java.util.function.Consumer consumer) { consumer.accept(boundingBoxExtent()); return this; } - - /** Initializes this struct with the specified values. */ - public XrPlaneDetectorBeginInfoEXT set( - int type, - long next, - XrSpace baseSpace, - long time, - int orientationCount, - @Nullable IntBuffer orientations, - int semanticTypeCount, - @Nullable IntBuffer semanticTypes, - int maxPlanes, - float minArea, - XrPosef boundingBoxPose, - XrExtent3DfEXT boundingBoxExtent - ) { - type(type); - next(next); - baseSpace(baseSpace); - time(time); - orientationCount(orientationCount); - orientations(orientations); - semanticTypeCount(semanticTypeCount); - semanticTypes(semanticTypes); - maxPlanes(maxPlanes); - minArea(minArea); - boundingBoxPose(boundingBoxPose); - boundingBoxExtent(boundingBoxExtent); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrPlaneDetectorBeginInfoEXT set(XrPlaneDetectorBeginInfoEXT src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrPlaneDetectorBeginInfoEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrPlaneDetectorBeginInfoEXT malloc() { - return new XrPlaneDetectorBeginInfoEXT(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrPlaneDetectorBeginInfoEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrPlaneDetectorBeginInfoEXT calloc() { - return new XrPlaneDetectorBeginInfoEXT(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrPlaneDetectorBeginInfoEXT} instance allocated with {@link BufferUtils}. */ - public static XrPlaneDetectorBeginInfoEXT create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrPlaneDetectorBeginInfoEXT(memAddress(container), container); - } - - /** Returns a new {@code XrPlaneDetectorBeginInfoEXT} instance for the specified memory address. */ - public static XrPlaneDetectorBeginInfoEXT create(long address) { - return new XrPlaneDetectorBeginInfoEXT(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPlaneDetectorBeginInfoEXT createSafe(long address) { - return address == NULL ? null : new XrPlaneDetectorBeginInfoEXT(address, null); - } - - /** - * Returns a new {@link XrPlaneDetectorBeginInfoEXT.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorBeginInfoEXT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrPlaneDetectorBeginInfoEXT.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorBeginInfoEXT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPlaneDetectorBeginInfoEXT.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorBeginInfoEXT.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrPlaneDetectorBeginInfoEXT.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorBeginInfoEXT.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPlaneDetectorBeginInfoEXT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrPlaneDetectorBeginInfoEXT} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrPlaneDetectorBeginInfoEXT malloc(MemoryStack stack) { - return new XrPlaneDetectorBeginInfoEXT(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrPlaneDetectorBeginInfoEXT} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrPlaneDetectorBeginInfoEXT calloc(MemoryStack stack) { - return new XrPlaneDetectorBeginInfoEXT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrPlaneDetectorBeginInfoEXT.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorBeginInfoEXT.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPlaneDetectorBeginInfoEXT.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorBeginInfoEXT.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPlaneDetectorBeginInfoEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPlaneDetectorBeginInfoEXT.NEXT); } - /** Unsafe version of {@link #baseSpace}. */ - public static long nbaseSpace(long struct) { return memGetAddress(struct + XrPlaneDetectorBeginInfoEXT.BASESPACE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrPlaneDetectorBeginInfoEXT.TIME); } - /** Unsafe version of {@link #orientationCount}. */ - public static int norientationCount(long struct) { return UNSAFE.getInt(null, struct + XrPlaneDetectorBeginInfoEXT.ORIENTATIONCOUNT); } - /** Unsafe version of {@link #orientations() orientations}. */ - @Nullable public static IntBuffer norientations(long struct) { return memIntBufferSafe(memGetAddress(struct + XrPlaneDetectorBeginInfoEXT.ORIENTATIONS), norientationCount(struct)); } - /** Unsafe version of {@link #semanticTypeCount}. */ - public static int nsemanticTypeCount(long struct) { return UNSAFE.getInt(null, struct + XrPlaneDetectorBeginInfoEXT.SEMANTICTYPECOUNT); } - /** Unsafe version of {@link #semanticTypes() semanticTypes}. */ - @Nullable public static IntBuffer nsemanticTypes(long struct) { return memIntBufferSafe(memGetAddress(struct + XrPlaneDetectorBeginInfoEXT.SEMANTICTYPES), nsemanticTypeCount(struct)); } - /** Unsafe version of {@link #maxPlanes}. */ - public static int nmaxPlanes(long struct) { return UNSAFE.getInt(null, struct + XrPlaneDetectorBeginInfoEXT.MAXPLANES); } - /** Unsafe version of {@link #minArea}. */ - public static float nminArea(long struct) { return UNSAFE.getFloat(null, struct + XrPlaneDetectorBeginInfoEXT.MINAREA); } - /** Unsafe version of {@link #boundingBoxPose}. */ - public static XrPosef nboundingBoxPose(long struct) { return XrPosef.create(struct + XrPlaneDetectorBeginInfoEXT.BOUNDINGBOXPOSE); } - /** Unsafe version of {@link #boundingBoxExtent}. */ - public static XrExtent3DfEXT nboundingBoxExtent(long struct) { return XrExtent3DfEXT.create(struct + XrPlaneDetectorBeginInfoEXT.BOUNDINGBOXEXTENT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPlaneDetectorBeginInfoEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPlaneDetectorBeginInfoEXT.NEXT, value); } - /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ - public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrPlaneDetectorBeginInfoEXT.BASESPACE, value.address()); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrPlaneDetectorBeginInfoEXT.TIME, value); } - /** Sets the specified value to the {@code orientationCount} field of the specified {@code struct}. */ - public static void norientationCount(long struct, int value) { UNSAFE.putInt(null, struct + XrPlaneDetectorBeginInfoEXT.ORIENTATIONCOUNT, value); } - /** Unsafe version of {@link #orientations(IntBuffer) orientations}. */ - public static void norientations(long struct, @Nullable IntBuffer value) { memPutAddress(struct + XrPlaneDetectorBeginInfoEXT.ORIENTATIONS, memAddressSafe(value)); if (value != null) { norientationCount(struct, value.remaining()); } } - /** Sets the specified value to the {@code semanticTypeCount} field of the specified {@code struct}. */ - public static void nsemanticTypeCount(long struct, int value) { UNSAFE.putInt(null, struct + XrPlaneDetectorBeginInfoEXT.SEMANTICTYPECOUNT, value); } - /** Unsafe version of {@link #semanticTypes(IntBuffer) semanticTypes}. */ - public static void nsemanticTypes(long struct, @Nullable IntBuffer value) { memPutAddress(struct + XrPlaneDetectorBeginInfoEXT.SEMANTICTYPES, memAddressSafe(value)); if (value != null) { nsemanticTypeCount(struct, value.remaining()); } } - /** Unsafe version of {@link #maxPlanes(int) maxPlanes}. */ - public static void nmaxPlanes(long struct, int value) { UNSAFE.putInt(null, struct + XrPlaneDetectorBeginInfoEXT.MAXPLANES, value); } - /** Unsafe version of {@link #minArea(float) minArea}. */ - public static void nminArea(long struct, float value) { UNSAFE.putFloat(null, struct + XrPlaneDetectorBeginInfoEXT.MINAREA, value); } - /** Unsafe version of {@link #boundingBoxPose(XrPosef) boundingBoxPose}. */ - public static void nboundingBoxPose(long struct, XrPosef value) { memCopy(value.address(), struct + XrPlaneDetectorBeginInfoEXT.BOUNDINGBOXPOSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #boundingBoxExtent(XrExtent3DfEXT) boundingBoxExtent}. */ - public static void nboundingBoxExtent(long struct, XrExtent3DfEXT value) { memCopy(value.address(), struct + XrPlaneDetectorBeginInfoEXT.BOUNDINGBOXEXTENT, XrExtent3DfEXT.SIZEOF); } - - /** - * Validates pointer members that should not be {@code NULL}. - * - * @param struct the struct to validate - */ - public static void validate(long struct) { - check(memGetAddress(struct + XrPlaneDetectorBeginInfoEXT.BASESPACE)); - } - - // ----------------------------------- - - /** An array of {@link XrPlaneDetectorBeginInfoEXT} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrPlaneDetectorBeginInfoEXT ELEMENT_FACTORY = XrPlaneDetectorBeginInfoEXT.create(-1L); - - /** - * Creates a new {@code XrPlaneDetectorBeginInfoEXT.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrPlaneDetectorBeginInfoEXT#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrPlaneDetectorBeginInfoEXT getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrPlaneDetectorBeginInfoEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPlaneDetectorBeginInfoEXT.ntype(address()); } - /** @return the value of the {@link XrPlaneDetectorBeginInfoEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrPlaneDetectorBeginInfoEXT.nnext(address()); } - /** @return the value of the {@link XrPlaneDetectorBeginInfoEXT#baseSpace} field. */ - @NativeType("XrSpace") - public long baseSpace() { return XrPlaneDetectorBeginInfoEXT.nbaseSpace(address()); } - /** @return the value of the {@link XrPlaneDetectorBeginInfoEXT#time} field. */ - @NativeType("XrTime") - public long time() { return XrPlaneDetectorBeginInfoEXT.ntime(address()); } - /** @return the value of the {@link XrPlaneDetectorBeginInfoEXT#orientationCount} field. */ - @NativeType("uint32_t") - public int orientationCount() { return XrPlaneDetectorBeginInfoEXT.norientationCount(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrPlaneDetectorBeginInfoEXT#orientations} field. */ - @Nullable - @NativeType("XrPlaneDetectorOrientationEXT const *") - public IntBuffer orientations() { return XrPlaneDetectorBeginInfoEXT.norientations(address()); } - /** @return the value of the {@link XrPlaneDetectorBeginInfoEXT#semanticTypeCount} field. */ - @NativeType("uint32_t") - public int semanticTypeCount() { return XrPlaneDetectorBeginInfoEXT.nsemanticTypeCount(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrPlaneDetectorBeginInfoEXT#semanticTypes} field. */ - @Nullable - @NativeType("XrPlaneDetectorSemanticTypeEXT const *") - public IntBuffer semanticTypes() { return XrPlaneDetectorBeginInfoEXT.nsemanticTypes(address()); } - /** @return the value of the {@link XrPlaneDetectorBeginInfoEXT#maxPlanes} field. */ - @NativeType("uint32_t") - public int maxPlanes() { return XrPlaneDetectorBeginInfoEXT.nmaxPlanes(address()); } - /** @return the value of the {@link XrPlaneDetectorBeginInfoEXT#minArea} field. */ - public float minArea() { return XrPlaneDetectorBeginInfoEXT.nminArea(address()); } - /** @return a {@link XrPosef} view of the {@link XrPlaneDetectorBeginInfoEXT#boundingBoxPose} field. */ - public XrPosef boundingBoxPose() { return XrPlaneDetectorBeginInfoEXT.nboundingBoxPose(address()); } - /** @return a {@link XrExtent3DfEXT} view of the {@link XrPlaneDetectorBeginInfoEXT#boundingBoxExtent} field. */ - public XrExtent3DfEXT boundingBoxExtent() { return XrPlaneDetectorBeginInfoEXT.nboundingBoxExtent(address()); } - - /** Sets the specified value to the {@link XrPlaneDetectorBeginInfoEXT#type} field. */ - public XrPlaneDetectorBeginInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrPlaneDetectorBeginInfoEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTPlaneDetection#XR_TYPE_PLANE_DETECTOR_BEGIN_INFO_EXT TYPE_PLANE_DETECTOR_BEGIN_INFO_EXT} value to the {@link XrPlaneDetectorBeginInfoEXT#type} field. */ - public XrPlaneDetectorBeginInfoEXT.Buffer type$Default() { return type(EXTPlaneDetection.XR_TYPE_PLANE_DETECTOR_BEGIN_INFO_EXT); } - /** Sets the specified value to the {@link XrPlaneDetectorBeginInfoEXT#next} field. */ - public XrPlaneDetectorBeginInfoEXT.Buffer next(@NativeType("void const *") long value) { XrPlaneDetectorBeginInfoEXT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPlaneDetectorBeginInfoEXT#baseSpace} field. */ - public XrPlaneDetectorBeginInfoEXT.Buffer baseSpace(XrSpace value) { XrPlaneDetectorBeginInfoEXT.nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link XrPlaneDetectorBeginInfoEXT#time} field. */ - public XrPlaneDetectorBeginInfoEXT.Buffer time(@NativeType("XrTime") long value) { XrPlaneDetectorBeginInfoEXT.ntime(address(), value); return this; } - /** Sets the specified value to the {@link XrPlaneDetectorBeginInfoEXT#orientationCount} field. */ - public XrPlaneDetectorBeginInfoEXT.Buffer orientationCount(@NativeType("uint32_t") int value) { XrPlaneDetectorBeginInfoEXT.norientationCount(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrPlaneDetectorBeginInfoEXT#orientations} field. */ - public XrPlaneDetectorBeginInfoEXT.Buffer orientations(@Nullable @NativeType("XrPlaneDetectorOrientationEXT const *") IntBuffer value) { XrPlaneDetectorBeginInfoEXT.norientations(address(), value); return this; } - /** Sets the specified value to the {@link XrPlaneDetectorBeginInfoEXT#semanticTypeCount} field. */ - public XrPlaneDetectorBeginInfoEXT.Buffer semanticTypeCount(@NativeType("uint32_t") int value) { XrPlaneDetectorBeginInfoEXT.nsemanticTypeCount(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrPlaneDetectorBeginInfoEXT#semanticTypes} field. */ - public XrPlaneDetectorBeginInfoEXT.Buffer semanticTypes(@Nullable @NativeType("XrPlaneDetectorSemanticTypeEXT const *") IntBuffer value) { XrPlaneDetectorBeginInfoEXT.nsemanticTypes(address(), value); return this; } - /** Sets the specified value to the {@link XrPlaneDetectorBeginInfoEXT#maxPlanes} field. */ - public XrPlaneDetectorBeginInfoEXT.Buffer maxPlanes(@NativeType("uint32_t") int value) { XrPlaneDetectorBeginInfoEXT.nmaxPlanes(address(), value); return this; } - /** Sets the specified value to the {@link XrPlaneDetectorBeginInfoEXT#minArea} field. */ - public XrPlaneDetectorBeginInfoEXT.Buffer minArea(float value) { XrPlaneDetectorBeginInfoEXT.nminArea(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrPlaneDetectorBeginInfoEXT#boundingBoxPose} field. */ - public XrPlaneDetectorBeginInfoEXT.Buffer boundingBoxPose(XrPosef value) { XrPlaneDetectorBeginInfoEXT.nboundingBoxPose(address(), value); return this; } - /** Passes the {@link XrPlaneDetectorBeginInfoEXT#boundingBoxPose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPlaneDetectorBeginInfoEXT.Buffer boundingBoxPose(java.util.function.Consumer consumer) { consumer.accept(boundingBoxPose()); return this; } - /** Copies the specified {@link XrExtent3DfEXT} to the {@link XrPlaneDetectorBeginInfoEXT#boundingBoxExtent} field. */ - public XrPlaneDetectorBeginInfoEXT.Buffer boundingBoxExtent(XrExtent3DfEXT value) { XrPlaneDetectorBeginInfoEXT.nboundingBoxExtent(address(), value); return this; } - /** Passes the {@link XrPlaneDetectorBeginInfoEXT#boundingBoxExtent} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPlaneDetectorBeginInfoEXT.Buffer boundingBoxExtent(java.util.function.Consumer consumer) { consumer.accept(boundingBoxExtent()); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorCreateInfoEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorCreateInfoEXT.java deleted file mode 100644 index 69546cab28..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorCreateInfoEXT.java +++ /dev/null @@ -1,328 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Information to create a plane detection handle. - * - *
Description
- * - *

The {@link XrPlaneDetectorCreateInfoEXT} structure describes the information to create an {@code XrPlaneDetectorEXT} handle.

- * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link EXTPlaneDetection XR_EXT_plane_detection} extension must be enabled prior to using {@link XrPlaneDetectorCreateInfoEXT}
  • - *
  • {@code type} must be {@link EXTPlaneDetection#XR_TYPE_PLANE_DETECTOR_CREATE_INFO_EXT TYPE_PLANE_DETECTOR_CREATE_INFO_EXT}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • {@code flags} must be 0 or a valid combination of {@code XrPlaneDetectorFlagBitsEXT} values
  • - *
- * - *
See Also
- * - *

{@link EXTPlaneDetection#xrCreatePlaneDetectorEXT CreatePlaneDetectorEXT}

- * - *

Layout

- * - *

- * struct XrPlaneDetectorCreateInfoEXT {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     XrPlaneDetectorFlagsEXT {@link #flags};
- * }
- */ -public class XrPlaneDetectorCreateInfoEXT extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - FLAGS; - - static { - 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 XrPlaneDetectorCreateInfoEXT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrPlaneDetectorCreateInfoEXT create(long address, @Nullable ByteBuffer container) { - return new XrPlaneDetectorCreateInfoEXT(address, container); - } - - /** - * Creates a {@code XrPlaneDetectorCreateInfoEXT} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrPlaneDetectorCreateInfoEXT(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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()); } - /** must be a valid combination of {@code XrPlaneDetectorFlagsEXT} flags or zero. */ - @NativeType("XrPlaneDetectorFlagsEXT") - public long flags() { return nflags(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrPlaneDetectorCreateInfoEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTPlaneDetection#XR_TYPE_PLANE_DETECTOR_CREATE_INFO_EXT TYPE_PLANE_DETECTOR_CREATE_INFO_EXT} value to the {@link #type} field. */ - public XrPlaneDetectorCreateInfoEXT type$Default() { return type(EXTPlaneDetection.XR_TYPE_PLANE_DETECTOR_CREATE_INFO_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrPlaneDetectorCreateInfoEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #flags} field. */ - public XrPlaneDetectorCreateInfoEXT flags(@NativeType("XrPlaneDetectorFlagsEXT") long value) { nflags(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrPlaneDetectorCreateInfoEXT set( - int type, - long next, - long flags - ) { - type(type); - next(next); - flags(flags); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrPlaneDetectorCreateInfoEXT set(XrPlaneDetectorCreateInfoEXT src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrPlaneDetectorCreateInfoEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrPlaneDetectorCreateInfoEXT malloc() { - return new XrPlaneDetectorCreateInfoEXT(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrPlaneDetectorCreateInfoEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrPlaneDetectorCreateInfoEXT calloc() { - return new XrPlaneDetectorCreateInfoEXT(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrPlaneDetectorCreateInfoEXT} instance allocated with {@link BufferUtils}. */ - public static XrPlaneDetectorCreateInfoEXT create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrPlaneDetectorCreateInfoEXT(memAddress(container), container); - } - - /** Returns a new {@code XrPlaneDetectorCreateInfoEXT} instance for the specified memory address. */ - public static XrPlaneDetectorCreateInfoEXT create(long address) { - return new XrPlaneDetectorCreateInfoEXT(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPlaneDetectorCreateInfoEXT createSafe(long address) { - return address == NULL ? null : new XrPlaneDetectorCreateInfoEXT(address, null); - } - - /** - * Returns a new {@link XrPlaneDetectorCreateInfoEXT.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorCreateInfoEXT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrPlaneDetectorCreateInfoEXT.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorCreateInfoEXT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPlaneDetectorCreateInfoEXT.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorCreateInfoEXT.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrPlaneDetectorCreateInfoEXT.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorCreateInfoEXT.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPlaneDetectorCreateInfoEXT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrPlaneDetectorCreateInfoEXT} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrPlaneDetectorCreateInfoEXT malloc(MemoryStack stack) { - return new XrPlaneDetectorCreateInfoEXT(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrPlaneDetectorCreateInfoEXT} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrPlaneDetectorCreateInfoEXT calloc(MemoryStack stack) { - return new XrPlaneDetectorCreateInfoEXT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrPlaneDetectorCreateInfoEXT.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorCreateInfoEXT.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPlaneDetectorCreateInfoEXT.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorCreateInfoEXT.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPlaneDetectorCreateInfoEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPlaneDetectorCreateInfoEXT.NEXT); } - /** Unsafe version of {@link #flags}. */ - public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrPlaneDetectorCreateInfoEXT.FLAGS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPlaneDetectorCreateInfoEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPlaneDetectorCreateInfoEXT.NEXT, value); } - /** Unsafe version of {@link #flags(long) flags}. */ - public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrPlaneDetectorCreateInfoEXT.FLAGS, value); } - - // ----------------------------------- - - /** An array of {@link XrPlaneDetectorCreateInfoEXT} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrPlaneDetectorCreateInfoEXT ELEMENT_FACTORY = XrPlaneDetectorCreateInfoEXT.create(-1L); - - /** - * Creates a new {@code XrPlaneDetectorCreateInfoEXT.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrPlaneDetectorCreateInfoEXT#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrPlaneDetectorCreateInfoEXT getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrPlaneDetectorCreateInfoEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPlaneDetectorCreateInfoEXT.ntype(address()); } - /** @return the value of the {@link XrPlaneDetectorCreateInfoEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrPlaneDetectorCreateInfoEXT.nnext(address()); } - /** @return the value of the {@link XrPlaneDetectorCreateInfoEXT#flags} field. */ - @NativeType("XrPlaneDetectorFlagsEXT") - public long flags() { return XrPlaneDetectorCreateInfoEXT.nflags(address()); } - - /** Sets the specified value to the {@link XrPlaneDetectorCreateInfoEXT#type} field. */ - public XrPlaneDetectorCreateInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrPlaneDetectorCreateInfoEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTPlaneDetection#XR_TYPE_PLANE_DETECTOR_CREATE_INFO_EXT TYPE_PLANE_DETECTOR_CREATE_INFO_EXT} value to the {@link XrPlaneDetectorCreateInfoEXT#type} field. */ - public XrPlaneDetectorCreateInfoEXT.Buffer type$Default() { return type(EXTPlaneDetection.XR_TYPE_PLANE_DETECTOR_CREATE_INFO_EXT); } - /** Sets the specified value to the {@link XrPlaneDetectorCreateInfoEXT#next} field. */ - public XrPlaneDetectorCreateInfoEXT.Buffer next(@NativeType("void const *") long value) { XrPlaneDetectorCreateInfoEXT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPlaneDetectorCreateInfoEXT#flags} field. */ - public XrPlaneDetectorCreateInfoEXT.Buffer flags(@NativeType("XrPlaneDetectorFlagsEXT") long value) { XrPlaneDetectorCreateInfoEXT.nflags(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorEXT.java deleted file mode 100644 index 617a50fc5f..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorEXT.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * MACHINE GENERATED FILE, DO NOT EDIT - */ -package org.lwjgl.openxr; - -/** Wraps an {@code XrPlaneDetectorEXT} handle. */ -public class XrPlaneDetectorEXT extends DispatchableHandle { - - private final XrSession session; - - /** - * Creates an {@code XrPlaneDetectorEXT} using the specified native handle and {@code XrSession}. - * - * @param handle the native {@code XrPlaneDetectorEXT} handle - * @param session the {@code XrSession} from which {@code handle} was created - */ - public XrPlaneDetectorEXT(long handle, XrSession session) { - super(handle, session.getCapabilities()); - this.session = session; - } - - /** Returns the {@code XrSession} from which this handle was created. */ - public XrSession getSession() { - return session; - } - -} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorGetInfoEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorGetInfoEXT.java deleted file mode 100644 index 185f5f7521..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorGetInfoEXT.java +++ /dev/null @@ -1,354 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Contains the plane retrieval information. - * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link EXTPlaneDetection XR_EXT_plane_detection} extension must be enabled prior to using {@link XrPlaneDetectorGetInfoEXT}
  • - *
  • {@code type} must be {@link EXTPlaneDetection#XR_TYPE_PLANE_DETECTOR_GET_INFO_EXT TYPE_PLANE_DETECTOR_GET_INFO_EXT}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • {@code baseSpace} must be a valid {@code XrSpace} handle
  • - *
- * - *
See Also
- * - *

{@link EXTPlaneDetection#xrGetPlaneDetectionsEXT GetPlaneDetectionsEXT}

- * - *

Layout

- * - *

- * struct XrPlaneDetectorGetInfoEXT {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     XrSpace {@link #baseSpace};
- *     XrTime {@link #time};
- * }
- */ -public class XrPlaneDetectorGetInfoEXT extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - BASESPACE, - TIME; - - static { - 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 XrPlaneDetectorGetInfoEXT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrPlaneDetectorGetInfoEXT create(long address, @Nullable ByteBuffer container) { - return new XrPlaneDetectorGetInfoEXT(address, container); - } - - /** - * Creates a {@code XrPlaneDetectorGetInfoEXT} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrPlaneDetectorGetInfoEXT(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 plane pose will be relative to this {@code XrSpace} at {@code time}. */ - @NativeType("XrSpace") - public long baseSpace() { return nbaseSpace(address()); } - /** the {@code XrTime} at which to evaluate the coordinates relative to the {@code baseSpace}. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrPlaneDetectorGetInfoEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTPlaneDetection#XR_TYPE_PLANE_DETECTOR_GET_INFO_EXT TYPE_PLANE_DETECTOR_GET_INFO_EXT} value to the {@link #type} field. */ - public XrPlaneDetectorGetInfoEXT type$Default() { return type(EXTPlaneDetection.XR_TYPE_PLANE_DETECTOR_GET_INFO_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrPlaneDetectorGetInfoEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #baseSpace} field. */ - public XrPlaneDetectorGetInfoEXT baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrPlaneDetectorGetInfoEXT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrPlaneDetectorGetInfoEXT set( - int type, - long next, - XrSpace baseSpace, - long time - ) { - type(type); - next(next); - baseSpace(baseSpace); - time(time); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrPlaneDetectorGetInfoEXT set(XrPlaneDetectorGetInfoEXT src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrPlaneDetectorGetInfoEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrPlaneDetectorGetInfoEXT malloc() { - return new XrPlaneDetectorGetInfoEXT(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrPlaneDetectorGetInfoEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrPlaneDetectorGetInfoEXT calloc() { - return new XrPlaneDetectorGetInfoEXT(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrPlaneDetectorGetInfoEXT} instance allocated with {@link BufferUtils}. */ - public static XrPlaneDetectorGetInfoEXT create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrPlaneDetectorGetInfoEXT(memAddress(container), container); - } - - /** Returns a new {@code XrPlaneDetectorGetInfoEXT} instance for the specified memory address. */ - public static XrPlaneDetectorGetInfoEXT create(long address) { - return new XrPlaneDetectorGetInfoEXT(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPlaneDetectorGetInfoEXT createSafe(long address) { - return address == NULL ? null : new XrPlaneDetectorGetInfoEXT(address, null); - } - - /** - * Returns a new {@link XrPlaneDetectorGetInfoEXT.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorGetInfoEXT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrPlaneDetectorGetInfoEXT.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorGetInfoEXT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPlaneDetectorGetInfoEXT.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorGetInfoEXT.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrPlaneDetectorGetInfoEXT.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorGetInfoEXT.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPlaneDetectorGetInfoEXT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrPlaneDetectorGetInfoEXT} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrPlaneDetectorGetInfoEXT malloc(MemoryStack stack) { - return new XrPlaneDetectorGetInfoEXT(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrPlaneDetectorGetInfoEXT} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrPlaneDetectorGetInfoEXT calloc(MemoryStack stack) { - return new XrPlaneDetectorGetInfoEXT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrPlaneDetectorGetInfoEXT.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorGetInfoEXT.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPlaneDetectorGetInfoEXT.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorGetInfoEXT.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPlaneDetectorGetInfoEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPlaneDetectorGetInfoEXT.NEXT); } - /** Unsafe version of {@link #baseSpace}. */ - public static long nbaseSpace(long struct) { return memGetAddress(struct + XrPlaneDetectorGetInfoEXT.BASESPACE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrPlaneDetectorGetInfoEXT.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPlaneDetectorGetInfoEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPlaneDetectorGetInfoEXT.NEXT, value); } - /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ - public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrPlaneDetectorGetInfoEXT.BASESPACE, value.address()); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrPlaneDetectorGetInfoEXT.TIME, value); } - - /** - * Validates pointer members that should not be {@code NULL}. - * - * @param struct the struct to validate - */ - public static void validate(long struct) { - check(memGetAddress(struct + XrPlaneDetectorGetInfoEXT.BASESPACE)); - } - - // ----------------------------------- - - /** An array of {@link XrPlaneDetectorGetInfoEXT} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrPlaneDetectorGetInfoEXT ELEMENT_FACTORY = XrPlaneDetectorGetInfoEXT.create(-1L); - - /** - * Creates a new {@code XrPlaneDetectorGetInfoEXT.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrPlaneDetectorGetInfoEXT#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrPlaneDetectorGetInfoEXT getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrPlaneDetectorGetInfoEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPlaneDetectorGetInfoEXT.ntype(address()); } - /** @return the value of the {@link XrPlaneDetectorGetInfoEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrPlaneDetectorGetInfoEXT.nnext(address()); } - /** @return the value of the {@link XrPlaneDetectorGetInfoEXT#baseSpace} field. */ - @NativeType("XrSpace") - public long baseSpace() { return XrPlaneDetectorGetInfoEXT.nbaseSpace(address()); } - /** @return the value of the {@link XrPlaneDetectorGetInfoEXT#time} field. */ - @NativeType("XrTime") - public long time() { return XrPlaneDetectorGetInfoEXT.ntime(address()); } - - /** Sets the specified value to the {@link XrPlaneDetectorGetInfoEXT#type} field. */ - public XrPlaneDetectorGetInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrPlaneDetectorGetInfoEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTPlaneDetection#XR_TYPE_PLANE_DETECTOR_GET_INFO_EXT TYPE_PLANE_DETECTOR_GET_INFO_EXT} value to the {@link XrPlaneDetectorGetInfoEXT#type} field. */ - public XrPlaneDetectorGetInfoEXT.Buffer type$Default() { return type(EXTPlaneDetection.XR_TYPE_PLANE_DETECTOR_GET_INFO_EXT); } - /** Sets the specified value to the {@link XrPlaneDetectorGetInfoEXT#next} field. */ - public XrPlaneDetectorGetInfoEXT.Buffer next(@NativeType("void const *") long value) { XrPlaneDetectorGetInfoEXT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPlaneDetectorGetInfoEXT#baseSpace} field. */ - public XrPlaneDetectorGetInfoEXT.Buffer baseSpace(XrSpace value) { XrPlaneDetectorGetInfoEXT.nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link XrPlaneDetectorGetInfoEXT#time} field. */ - public XrPlaneDetectorGetInfoEXT.Buffer time(@NativeType("XrTime") long value) { XrPlaneDetectorGetInfoEXT.ntime(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorLocationEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorLocationEXT.java deleted file mode 100644 index f808cc4fa4..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorLocationEXT.java +++ /dev/null @@ -1,450 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Describes the location of a plane. - * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link EXTPlaneDetection XR_EXT_plane_detection} extension must be enabled prior to using {@link XrPlaneDetectorLocationEXT}
  • - *
  • {@code type} must be {@link EXTPlaneDetection#XR_TYPE_PLANE_DETECTOR_LOCATION_EXT TYPE_PLANE_DETECTOR_LOCATION_EXT}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • {@code locationFlags} must be 0 or a valid combination of {@code XrSpaceLocationFlagBits} values
  • - *
  • If {@code orientation} is not 0, {@code orientation} must be a valid {@code XrPlaneDetectorOrientationEXT} value
  • - *
  • If {@code semanticType} is not 0, {@code semanticType} must be a valid {@code XrPlaneDetectorSemanticTypeEXT} value
  • - *
- * - *
See Also
- * - *

{@link XrExtent2Df}, {@link XrPlaneDetectorLocationsEXT}, {@link XrPosef}, {@link EXTPlaneDetection#xrGetPlaneDetectionsEXT GetPlaneDetectionsEXT}

- * - *

Layout

- * - *

- * struct XrPlaneDetectorLocationEXT {
- *     XrStructureType type;
- *     void * next;
- *     uint64_t {@link #planeId};
- *     XrSpaceLocationFlags {@link #locationFlags};
- *     {@link XrPosef XrPosef} {@link #pose};
- *     {@link XrExtent2Df XrExtent2Df} extents;
- *     XrPlaneDetectorOrientationEXT {@link #orientation};
- *     XrPlaneDetectorSemanticTypeEXT {@link #semanticType};
- *     uint32_t {@link #polygonBufferCount};
- * }
- */ -public class XrPlaneDetectorLocationEXT extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - PLANEID, - LOCATIONFLAGS, - POSE, - EXTENTS, - ORIENTATION, - SEMANTICTYPE, - POLYGONBUFFERCOUNT; - - static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(8), - __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), - __member(XrExtent2Df.SIZEOF, XrExtent2Df.ALIGNOF), - __member(4), - __member(4), - __member(4) - ); - - SIZEOF = layout.getSize(); - ALIGNOF = layout.getAlignment(); - - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - PLANEID = layout.offsetof(2); - LOCATIONFLAGS = layout.offsetof(3); - POSE = layout.offsetof(4); - EXTENTS = layout.offsetof(5); - ORIENTATION = layout.offsetof(6); - SEMANTICTYPE = layout.offsetof(7); - POLYGONBUFFERCOUNT = layout.offsetof(8); - } - - protected XrPlaneDetectorLocationEXT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrPlaneDetectorLocationEXT create(long address, @Nullable ByteBuffer container) { - return new XrPlaneDetectorLocationEXT(address, container); - } - - /** - * Creates a {@code XrPlaneDetectorLocationEXT} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrPlaneDetectorLocationEXT(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 *") - public long next() { return nnext(address()); } - /** a {@code uint64_t} unique identifier of the plane. The planeId should remain the same for the duration of the {@code XrPlaneDetectorEXT} handle for a physical plane. A runtime on occasion may assign a different id to the same physical plane, for example when several planes merge into one plane. {@code planeId} must remain valid until the next call to {@link EXTPlaneDetection#xrBeginPlaneDetectionEXT BeginPlaneDetectionEXT} or {@link EXTPlaneDetection#xrDestroyPlaneDetectorEXT DestroyPlaneDetectorEXT}. This id is used by {@link EXTPlaneDetection#xrGetPlanePolygonBufferEXT GetPlanePolygonBufferEXT}. */ - @NativeType("uint64_t") - public long planeId() { return nplaneId(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 a plane within the reference frame of the corresponding {@link XrPlaneDetectorGetInfoEXT}{@code ::baseSpace}. */ - public XrPosef pose() { return npose(address()); } - /** @return a {@link XrExtent2Df} view of the {@code extents} field. */ - public XrExtent2Df extents() { return nextents(address()); } - /** the detected orientation of the plane. */ - @NativeType("XrPlaneDetectorOrientationEXT") - public int orientation() { return norientation(address()); } - /** {@code semanticType} {@code XrPlaneDetectorSemanticTypeEXT} type of the plane. */ - @NativeType("XrPlaneDetectorSemanticTypeEXT") - public int semanticType() { return nsemanticType(address()); } - /** the number of polygon buffers associated with this plane. If this is zero no polygon buffer was generated. The first polygon buffer is always the outside contour. If contours are requested with {@link EXTPlaneDetection#XR_PLANE_DETECTOR_ENABLE_CONTOUR_BIT_EXT PLANE_DETECTOR_ENABLE_CONTOUR_BIT_EXT} this value must always be at least 1. */ - @NativeType("uint32_t") - public int polygonBufferCount() { return npolygonBufferCount(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrPlaneDetectorLocationEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTPlaneDetection#XR_TYPE_PLANE_DETECTOR_LOCATION_EXT TYPE_PLANE_DETECTOR_LOCATION_EXT} value to the {@code type} field. */ - public XrPlaneDetectorLocationEXT type$Default() { return type(EXTPlaneDetection.XR_TYPE_PLANE_DETECTOR_LOCATION_EXT); } - /** Sets the specified value to the {@code next} field. */ - public XrPlaneDetectorLocationEXT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #planeId} field. */ - public XrPlaneDetectorLocationEXT planeId(@NativeType("uint64_t") long value) { nplaneId(address(), value); return this; } - /** Sets the specified value to the {@link #locationFlags} field. */ - public XrPlaneDetectorLocationEXT locationFlags(@NativeType("XrSpaceLocationFlags") long value) { nlocationFlags(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrPlaneDetectorLocationEXT pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPlaneDetectorLocationEXT pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrExtent2Df} to the {@code extents} field. */ - public XrPlaneDetectorLocationEXT extents(XrExtent2Df value) { nextents(address(), value); return this; } - /** Passes the {@code extents} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPlaneDetectorLocationEXT extents(java.util.function.Consumer consumer) { consumer.accept(extents()); return this; } - /** Sets the specified value to the {@link #orientation} field. */ - public XrPlaneDetectorLocationEXT orientation(@NativeType("XrPlaneDetectorOrientationEXT") int value) { norientation(address(), value); return this; } - /** Sets the specified value to the {@link #semanticType} field. */ - public XrPlaneDetectorLocationEXT semanticType(@NativeType("XrPlaneDetectorSemanticTypeEXT") int value) { nsemanticType(address(), value); return this; } - /** Sets the specified value to the {@link #polygonBufferCount} field. */ - public XrPlaneDetectorLocationEXT polygonBufferCount(@NativeType("uint32_t") int value) { npolygonBufferCount(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrPlaneDetectorLocationEXT set( - int type, - long next, - long planeId, - long locationFlags, - XrPosef pose, - XrExtent2Df extents, - int orientation, - int semanticType, - int polygonBufferCount - ) { - type(type); - next(next); - planeId(planeId); - locationFlags(locationFlags); - pose(pose); - extents(extents); - orientation(orientation); - semanticType(semanticType); - polygonBufferCount(polygonBufferCount); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrPlaneDetectorLocationEXT set(XrPlaneDetectorLocationEXT src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrPlaneDetectorLocationEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrPlaneDetectorLocationEXT malloc() { - return new XrPlaneDetectorLocationEXT(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrPlaneDetectorLocationEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrPlaneDetectorLocationEXT calloc() { - return new XrPlaneDetectorLocationEXT(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrPlaneDetectorLocationEXT} instance allocated with {@link BufferUtils}. */ - public static XrPlaneDetectorLocationEXT create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrPlaneDetectorLocationEXT(memAddress(container), container); - } - - /** Returns a new {@code XrPlaneDetectorLocationEXT} instance for the specified memory address. */ - public static XrPlaneDetectorLocationEXT create(long address) { - return new XrPlaneDetectorLocationEXT(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPlaneDetectorLocationEXT createSafe(long address) { - return address == NULL ? null : new XrPlaneDetectorLocationEXT(address, null); - } - - /** - * Returns a new {@link XrPlaneDetectorLocationEXT.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorLocationEXT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrPlaneDetectorLocationEXT.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorLocationEXT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPlaneDetectorLocationEXT.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorLocationEXT.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrPlaneDetectorLocationEXT.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorLocationEXT.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPlaneDetectorLocationEXT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrPlaneDetectorLocationEXT} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrPlaneDetectorLocationEXT malloc(MemoryStack stack) { - return new XrPlaneDetectorLocationEXT(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrPlaneDetectorLocationEXT} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrPlaneDetectorLocationEXT calloc(MemoryStack stack) { - return new XrPlaneDetectorLocationEXT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrPlaneDetectorLocationEXT.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorLocationEXT.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPlaneDetectorLocationEXT.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorLocationEXT.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPlaneDetectorLocationEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPlaneDetectorLocationEXT.NEXT); } - /** Unsafe version of {@link #planeId}. */ - public static long nplaneId(long struct) { return UNSAFE.getLong(null, struct + XrPlaneDetectorLocationEXT.PLANEID); } - /** Unsafe version of {@link #locationFlags}. */ - public static long nlocationFlags(long struct) { return UNSAFE.getLong(null, struct + XrPlaneDetectorLocationEXT.LOCATIONFLAGS); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrPlaneDetectorLocationEXT.POSE); } - /** Unsafe version of {@link #extents}. */ - public static XrExtent2Df nextents(long struct) { return XrExtent2Df.create(struct + XrPlaneDetectorLocationEXT.EXTENTS); } - /** Unsafe version of {@link #orientation}. */ - public static int norientation(long struct) { return UNSAFE.getInt(null, struct + XrPlaneDetectorLocationEXT.ORIENTATION); } - /** Unsafe version of {@link #semanticType}. */ - public static int nsemanticType(long struct) { return UNSAFE.getInt(null, struct + XrPlaneDetectorLocationEXT.SEMANTICTYPE); } - /** Unsafe version of {@link #polygonBufferCount}. */ - public static int npolygonBufferCount(long struct) { return UNSAFE.getInt(null, struct + XrPlaneDetectorLocationEXT.POLYGONBUFFERCOUNT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPlaneDetectorLocationEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPlaneDetectorLocationEXT.NEXT, value); } - /** Unsafe version of {@link #planeId(long) planeId}. */ - public static void nplaneId(long struct, long value) { UNSAFE.putLong(null, struct + XrPlaneDetectorLocationEXT.PLANEID, value); } - /** Unsafe version of {@link #locationFlags(long) locationFlags}. */ - public static void nlocationFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrPlaneDetectorLocationEXT.LOCATIONFLAGS, value); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrPlaneDetectorLocationEXT.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #extents(XrExtent2Df) extents}. */ - public static void nextents(long struct, XrExtent2Df value) { memCopy(value.address(), struct + XrPlaneDetectorLocationEXT.EXTENTS, XrExtent2Df.SIZEOF); } - /** Unsafe version of {@link #orientation(int) orientation}. */ - public static void norientation(long struct, int value) { UNSAFE.putInt(null, struct + XrPlaneDetectorLocationEXT.ORIENTATION, value); } - /** Unsafe version of {@link #semanticType(int) semanticType}. */ - public static void nsemanticType(long struct, int value) { UNSAFE.putInt(null, struct + XrPlaneDetectorLocationEXT.SEMANTICTYPE, value); } - /** Unsafe version of {@link #polygonBufferCount(int) polygonBufferCount}. */ - public static void npolygonBufferCount(long struct, int value) { UNSAFE.putInt(null, struct + XrPlaneDetectorLocationEXT.POLYGONBUFFERCOUNT, value); } - - // ----------------------------------- - - /** An array of {@link XrPlaneDetectorLocationEXT} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrPlaneDetectorLocationEXT ELEMENT_FACTORY = XrPlaneDetectorLocationEXT.create(-1L); - - /** - * Creates a new {@code XrPlaneDetectorLocationEXT.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrPlaneDetectorLocationEXT#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrPlaneDetectorLocationEXT getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPlaneDetectorLocationEXT.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void *") - public long next() { return XrPlaneDetectorLocationEXT.nnext(address()); } - /** @return the value of the {@link XrPlaneDetectorLocationEXT#planeId} field. */ - @NativeType("uint64_t") - public long planeId() { return XrPlaneDetectorLocationEXT.nplaneId(address()); } - /** @return the value of the {@link XrPlaneDetectorLocationEXT#locationFlags} field. */ - @NativeType("XrSpaceLocationFlags") - public long locationFlags() { return XrPlaneDetectorLocationEXT.nlocationFlags(address()); } - /** @return a {@link XrPosef} view of the {@link XrPlaneDetectorLocationEXT#pose} field. */ - public XrPosef pose() { return XrPlaneDetectorLocationEXT.npose(address()); } - /** @return a {@link XrExtent2Df} view of the {@code extents} field. */ - public XrExtent2Df extents() { return XrPlaneDetectorLocationEXT.nextents(address()); } - /** @return the value of the {@link XrPlaneDetectorLocationEXT#orientation} field. */ - @NativeType("XrPlaneDetectorOrientationEXT") - public int orientation() { return XrPlaneDetectorLocationEXT.norientation(address()); } - /** @return the value of the {@link XrPlaneDetectorLocationEXT#semanticType} field. */ - @NativeType("XrPlaneDetectorSemanticTypeEXT") - public int semanticType() { return XrPlaneDetectorLocationEXT.nsemanticType(address()); } - /** @return the value of the {@link XrPlaneDetectorLocationEXT#polygonBufferCount} field. */ - @NativeType("uint32_t") - public int polygonBufferCount() { return XrPlaneDetectorLocationEXT.npolygonBufferCount(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrPlaneDetectorLocationEXT.Buffer type(@NativeType("XrStructureType") int value) { XrPlaneDetectorLocationEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTPlaneDetection#XR_TYPE_PLANE_DETECTOR_LOCATION_EXT TYPE_PLANE_DETECTOR_LOCATION_EXT} value to the {@code type} field. */ - public XrPlaneDetectorLocationEXT.Buffer type$Default() { return type(EXTPlaneDetection.XR_TYPE_PLANE_DETECTOR_LOCATION_EXT); } - /** Sets the specified value to the {@code next} field. */ - public XrPlaneDetectorLocationEXT.Buffer next(@NativeType("void *") long value) { XrPlaneDetectorLocationEXT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPlaneDetectorLocationEXT#planeId} field. */ - public XrPlaneDetectorLocationEXT.Buffer planeId(@NativeType("uint64_t") long value) { XrPlaneDetectorLocationEXT.nplaneId(address(), value); return this; } - /** Sets the specified value to the {@link XrPlaneDetectorLocationEXT#locationFlags} field. */ - public XrPlaneDetectorLocationEXT.Buffer locationFlags(@NativeType("XrSpaceLocationFlags") long value) { XrPlaneDetectorLocationEXT.nlocationFlags(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrPlaneDetectorLocationEXT#pose} field. */ - public XrPlaneDetectorLocationEXT.Buffer pose(XrPosef value) { XrPlaneDetectorLocationEXT.npose(address(), value); return this; } - /** Passes the {@link XrPlaneDetectorLocationEXT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPlaneDetectorLocationEXT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrExtent2Df} to the {@code extents} field. */ - public XrPlaneDetectorLocationEXT.Buffer extents(XrExtent2Df value) { XrPlaneDetectorLocationEXT.nextents(address(), value); return this; } - /** Passes the {@code extents} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPlaneDetectorLocationEXT.Buffer extents(java.util.function.Consumer consumer) { consumer.accept(extents()); return this; } - /** Sets the specified value to the {@link XrPlaneDetectorLocationEXT#orientation} field. */ - public XrPlaneDetectorLocationEXT.Buffer orientation(@NativeType("XrPlaneDetectorOrientationEXT") int value) { XrPlaneDetectorLocationEXT.norientation(address(), value); return this; } - /** Sets the specified value to the {@link XrPlaneDetectorLocationEXT#semanticType} field. */ - public XrPlaneDetectorLocationEXT.Buffer semanticType(@NativeType("XrPlaneDetectorSemanticTypeEXT") int value) { XrPlaneDetectorLocationEXT.nsemanticType(address(), value); return this; } - /** Sets the specified value to the {@link XrPlaneDetectorLocationEXT#polygonBufferCount} field. */ - public XrPlaneDetectorLocationEXT.Buffer polygonBufferCount(@NativeType("uint32_t") int value) { XrPlaneDetectorLocationEXT.npolygonBufferCount(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorLocationsEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorLocationsEXT.java deleted file mode 100644 index 6e489fb03d..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorLocationsEXT.java +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Contains the plane information. - * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link EXTPlaneDetection XR_EXT_plane_detection} extension must be enabled prior to using {@link XrPlaneDetectorLocationsEXT}
  • - *
  • {@code type} must be {@link EXTPlaneDetection#XR_TYPE_PLANE_DETECTOR_LOCATIONS_EXT TYPE_PLANE_DETECTOR_LOCATIONS_EXT}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • If {@code planeLocationCapacityInput} is not 0, {@code planeLocations} must be a pointer to an array of {@code planeLocationCapacityInput} {@link XrPlaneDetectorLocationEXT} structures
  • - *
- * - *
See Also
- * - *

{@link XrPlaneDetectorLocationEXT}, {@link EXTPlaneDetection#xrGetPlaneDetectionsEXT GetPlaneDetectionsEXT}

- * - *

Layout

- * - *

- * struct XrPlaneDetectorLocationsEXT {
- *     XrStructureType {@link #type};
- *     void * {@link #next};
- *     uint32_t {@link #planeLocationCapacityInput};
- *     uint32_t {@link #planeLocationCountOutput};
- *     {@link XrPlaneDetectorLocationEXT XrPlaneDetectorLocationEXT} * {@link #planeLocations};
- * }
- */ -public class XrPlaneDetectorLocationsEXT extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - PLANELOCATIONCAPACITYINPUT, - PLANELOCATIONCOUNTOUTPUT, - PLANELOCATIONS; - - static { - 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); - PLANELOCATIONCAPACITYINPUT = layout.offsetof(2); - PLANELOCATIONCOUNTOUTPUT = layout.offsetof(3); - PLANELOCATIONS = layout.offsetof(4); - } - - protected XrPlaneDetectorLocationsEXT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrPlaneDetectorLocationsEXT create(long address, @Nullable ByteBuffer container) { - return new XrPlaneDetectorLocationsEXT(address, container); - } - - /** - * Creates a {@code XrPlaneDetectorLocationsEXT} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrPlaneDetectorLocationsEXT(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 planeLocationCapacityInput() { return nplaneLocationCapacityInput(address()); } - /** the number of planes, or the required capacity in the case that {@code planeCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int planeLocationCountOutput() { return nplaneLocationCountOutput(address()); } - /** an array of {@link XrPlaneDetectorLocationEXT}. It can be {@code NULL} if {@code planeCapacityInput} is 0. */ - @Nullable - @NativeType("XrPlaneDetectorLocationEXT *") - public XrPlaneDetectorLocationEXT.Buffer planeLocations() { return nplaneLocations(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrPlaneDetectorLocationsEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTPlaneDetection#XR_TYPE_PLANE_DETECTOR_LOCATIONS_EXT TYPE_PLANE_DETECTOR_LOCATIONS_EXT} value to the {@link #type} field. */ - public XrPlaneDetectorLocationsEXT type$Default() { return type(EXTPlaneDetection.XR_TYPE_PLANE_DETECTOR_LOCATIONS_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrPlaneDetectorLocationsEXT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #planeLocationCapacityInput} field. */ - public XrPlaneDetectorLocationsEXT planeLocationCapacityInput(@NativeType("uint32_t") int value) { nplaneLocationCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #planeLocationCountOutput} field. */ - public XrPlaneDetectorLocationsEXT planeLocationCountOutput(@NativeType("uint32_t") int value) { nplaneLocationCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrPlaneDetectorLocationEXT.Buffer} to the {@link #planeLocations} field. */ - public XrPlaneDetectorLocationsEXT planeLocations(@Nullable @NativeType("XrPlaneDetectorLocationEXT *") XrPlaneDetectorLocationEXT.Buffer value) { nplaneLocations(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrPlaneDetectorLocationsEXT set( - int type, - long next, - int planeLocationCapacityInput, - int planeLocationCountOutput, - @Nullable XrPlaneDetectorLocationEXT.Buffer planeLocations - ) { - type(type); - next(next); - planeLocationCapacityInput(planeLocationCapacityInput); - planeLocationCountOutput(planeLocationCountOutput); - planeLocations(planeLocations); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrPlaneDetectorLocationsEXT set(XrPlaneDetectorLocationsEXT src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrPlaneDetectorLocationsEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrPlaneDetectorLocationsEXT malloc() { - return new XrPlaneDetectorLocationsEXT(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrPlaneDetectorLocationsEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrPlaneDetectorLocationsEXT calloc() { - return new XrPlaneDetectorLocationsEXT(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrPlaneDetectorLocationsEXT} instance allocated with {@link BufferUtils}. */ - public static XrPlaneDetectorLocationsEXT create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrPlaneDetectorLocationsEXT(memAddress(container), container); - } - - /** Returns a new {@code XrPlaneDetectorLocationsEXT} instance for the specified memory address. */ - public static XrPlaneDetectorLocationsEXT create(long address) { - return new XrPlaneDetectorLocationsEXT(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPlaneDetectorLocationsEXT createSafe(long address) { - return address == NULL ? null : new XrPlaneDetectorLocationsEXT(address, null); - } - - /** - * Returns a new {@link XrPlaneDetectorLocationsEXT.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorLocationsEXT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrPlaneDetectorLocationsEXT.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorLocationsEXT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPlaneDetectorLocationsEXT.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorLocationsEXT.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrPlaneDetectorLocationsEXT.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorLocationsEXT.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPlaneDetectorLocationsEXT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrPlaneDetectorLocationsEXT} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrPlaneDetectorLocationsEXT malloc(MemoryStack stack) { - return new XrPlaneDetectorLocationsEXT(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrPlaneDetectorLocationsEXT} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrPlaneDetectorLocationsEXT calloc(MemoryStack stack) { - return new XrPlaneDetectorLocationsEXT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrPlaneDetectorLocationsEXT.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorLocationsEXT.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPlaneDetectorLocationsEXT.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorLocationsEXT.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPlaneDetectorLocationsEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPlaneDetectorLocationsEXT.NEXT); } - /** Unsafe version of {@link #planeLocationCapacityInput}. */ - public static int nplaneLocationCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrPlaneDetectorLocationsEXT.PLANELOCATIONCAPACITYINPUT); } - /** Unsafe version of {@link #planeLocationCountOutput}. */ - public static int nplaneLocationCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrPlaneDetectorLocationsEXT.PLANELOCATIONCOUNTOUTPUT); } - /** Unsafe version of {@link #planeLocations}. */ - @Nullable public static XrPlaneDetectorLocationEXT.Buffer nplaneLocations(long struct) { return XrPlaneDetectorLocationEXT.createSafe(memGetAddress(struct + XrPlaneDetectorLocationsEXT.PLANELOCATIONS), nplaneLocationCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPlaneDetectorLocationsEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPlaneDetectorLocationsEXT.NEXT, value); } - /** Sets the specified value to the {@code planeLocationCapacityInput} field of the specified {@code struct}. */ - public static void nplaneLocationCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrPlaneDetectorLocationsEXT.PLANELOCATIONCAPACITYINPUT, value); } - /** Unsafe version of {@link #planeLocationCountOutput(int) planeLocationCountOutput}. */ - public static void nplaneLocationCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrPlaneDetectorLocationsEXT.PLANELOCATIONCOUNTOUTPUT, value); } - /** Unsafe version of {@link #planeLocations(XrPlaneDetectorLocationEXT.Buffer) planeLocations}. */ - public static void nplaneLocations(long struct, @Nullable XrPlaneDetectorLocationEXT.Buffer value) { memPutAddress(struct + XrPlaneDetectorLocationsEXT.PLANELOCATIONS, memAddressSafe(value)); if (value != null) { nplaneLocationCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- - - /** An array of {@link XrPlaneDetectorLocationsEXT} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrPlaneDetectorLocationsEXT ELEMENT_FACTORY = XrPlaneDetectorLocationsEXT.create(-1L); - - /** - * Creates a new {@code XrPlaneDetectorLocationsEXT.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrPlaneDetectorLocationsEXT#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrPlaneDetectorLocationsEXT getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrPlaneDetectorLocationsEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPlaneDetectorLocationsEXT.ntype(address()); } - /** @return the value of the {@link XrPlaneDetectorLocationsEXT#next} field. */ - @NativeType("void *") - public long next() { return XrPlaneDetectorLocationsEXT.nnext(address()); } - /** @return the value of the {@link XrPlaneDetectorLocationsEXT#planeLocationCapacityInput} field. */ - @NativeType("uint32_t") - public int planeLocationCapacityInput() { return XrPlaneDetectorLocationsEXT.nplaneLocationCapacityInput(address()); } - /** @return the value of the {@link XrPlaneDetectorLocationsEXT#planeLocationCountOutput} field. */ - @NativeType("uint32_t") - public int planeLocationCountOutput() { return XrPlaneDetectorLocationsEXT.nplaneLocationCountOutput(address()); } - /** @return a {@link XrPlaneDetectorLocationEXT.Buffer} view of the struct array pointed to by the {@link XrPlaneDetectorLocationsEXT#planeLocations} field. */ - @Nullable - @NativeType("XrPlaneDetectorLocationEXT *") - public XrPlaneDetectorLocationEXT.Buffer planeLocations() { return XrPlaneDetectorLocationsEXT.nplaneLocations(address()); } - - /** Sets the specified value to the {@link XrPlaneDetectorLocationsEXT#type} field. */ - public XrPlaneDetectorLocationsEXT.Buffer type(@NativeType("XrStructureType") int value) { XrPlaneDetectorLocationsEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTPlaneDetection#XR_TYPE_PLANE_DETECTOR_LOCATIONS_EXT TYPE_PLANE_DETECTOR_LOCATIONS_EXT} value to the {@link XrPlaneDetectorLocationsEXT#type} field. */ - public XrPlaneDetectorLocationsEXT.Buffer type$Default() { return type(EXTPlaneDetection.XR_TYPE_PLANE_DETECTOR_LOCATIONS_EXT); } - /** Sets the specified value to the {@link XrPlaneDetectorLocationsEXT#next} field. */ - public XrPlaneDetectorLocationsEXT.Buffer next(@NativeType("void *") long value) { XrPlaneDetectorLocationsEXT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPlaneDetectorLocationsEXT#planeLocationCapacityInput} field. */ - public XrPlaneDetectorLocationsEXT.Buffer planeLocationCapacityInput(@NativeType("uint32_t") int value) { XrPlaneDetectorLocationsEXT.nplaneLocationCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrPlaneDetectorLocationsEXT#planeLocationCountOutput} field. */ - public XrPlaneDetectorLocationsEXT.Buffer planeLocationCountOutput(@NativeType("uint32_t") int value) { XrPlaneDetectorLocationsEXT.nplaneLocationCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrPlaneDetectorLocationEXT.Buffer} to the {@link XrPlaneDetectorLocationsEXT#planeLocations} field. */ - public XrPlaneDetectorLocationsEXT.Buffer planeLocations(@Nullable @NativeType("XrPlaneDetectorLocationEXT *") XrPlaneDetectorLocationEXT.Buffer value) { XrPlaneDetectorLocationsEXT.nplaneLocations(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorPolygonBufferEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorPolygonBufferEXT.java deleted file mode 100644 index 9223afd877..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPlaneDetectorPolygonBufferEXT.java +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Plane polygon vertex buffer. - * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link EXTPlaneDetection XR_EXT_plane_detection} extension must be enabled prior to using {@link XrPlaneDetectorPolygonBufferEXT}
  • - *
  • {@code type} must be {@link EXTPlaneDetection#XR_TYPE_PLANE_DETECTOR_POLYGON_BUFFER_EXT TYPE_PLANE_DETECTOR_POLYGON_BUFFER_EXT}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • If {@code vertexCapacityInput} is not 0, {@code vertices} must be a pointer to an array of {@code vertexCapacityInput} {@link XrVector2f} structures
  • - *
- * - *
See Also
- * - *

{@link XrVector2f}, {@link EXTPlaneDetection#xrGetPlanePolygonBufferEXT GetPlanePolygonBufferEXT}

- * - *

Layout

- * - *

- * struct XrPlaneDetectorPolygonBufferEXT {
- *     XrStructureType {@link #type};
- *     void * {@link #next};
- *     uint32_t {@link #vertexCapacityInput};
- *     uint32_t {@link #vertexCountOutput};
- *     {@link XrVector2f XrVector2f} * {@link #vertices};
- * }
- */ -public class XrPlaneDetectorPolygonBufferEXT extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - VERTEXCAPACITYINPUT, - VERTEXCOUNTOUTPUT, - VERTICES; - - static { - 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); - VERTEXCAPACITYINPUT = layout.offsetof(2); - VERTEXCOUNTOUTPUT = layout.offsetof(3); - VERTICES = layout.offsetof(4); - } - - protected XrPlaneDetectorPolygonBufferEXT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrPlaneDetectorPolygonBufferEXT create(long address, @Nullable ByteBuffer container) { - return new XrPlaneDetectorPolygonBufferEXT(address, container); - } - - /** - * Creates a {@code XrPlaneDetectorPolygonBufferEXT} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrPlaneDetectorPolygonBufferEXT(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 vertexCapacityInput() { return nvertexCapacityInput(address()); } - /** the count of {@code vertices} written, or the required capacity in the case that {@code vertexCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int vertexCountOutput() { return nvertexCountOutput(address()); } - /** an array of {@link XrVector2f} that must be filled by the runtime with the positions of the polygon vertices relative to the plane’s pose. */ - @Nullable - @NativeType("XrVector2f *") - public XrVector2f.Buffer vertices() { return nvertices(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrPlaneDetectorPolygonBufferEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTPlaneDetection#XR_TYPE_PLANE_DETECTOR_POLYGON_BUFFER_EXT TYPE_PLANE_DETECTOR_POLYGON_BUFFER_EXT} value to the {@link #type} field. */ - public XrPlaneDetectorPolygonBufferEXT type$Default() { return type(EXTPlaneDetection.XR_TYPE_PLANE_DETECTOR_POLYGON_BUFFER_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrPlaneDetectorPolygonBufferEXT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #vertexCapacityInput} field. */ - public XrPlaneDetectorPolygonBufferEXT vertexCapacityInput(@NativeType("uint32_t") int value) { nvertexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #vertexCountOutput} field. */ - public XrPlaneDetectorPolygonBufferEXT 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 XrPlaneDetectorPolygonBufferEXT vertices(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { nvertices(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrPlaneDetectorPolygonBufferEXT set( - int type, - long next, - int vertexCapacityInput, - int vertexCountOutput, - @Nullable XrVector2f.Buffer vertices - ) { - type(type); - next(next); - vertexCapacityInput(vertexCapacityInput); - vertexCountOutput(vertexCountOutput); - vertices(vertices); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrPlaneDetectorPolygonBufferEXT set(XrPlaneDetectorPolygonBufferEXT src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrPlaneDetectorPolygonBufferEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrPlaneDetectorPolygonBufferEXT malloc() { - return new XrPlaneDetectorPolygonBufferEXT(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrPlaneDetectorPolygonBufferEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrPlaneDetectorPolygonBufferEXT calloc() { - return new XrPlaneDetectorPolygonBufferEXT(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrPlaneDetectorPolygonBufferEXT} instance allocated with {@link BufferUtils}. */ - public static XrPlaneDetectorPolygonBufferEXT create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrPlaneDetectorPolygonBufferEXT(memAddress(container), container); - } - - /** Returns a new {@code XrPlaneDetectorPolygonBufferEXT} instance for the specified memory address. */ - public static XrPlaneDetectorPolygonBufferEXT create(long address) { - return new XrPlaneDetectorPolygonBufferEXT(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPlaneDetectorPolygonBufferEXT createSafe(long address) { - return address == NULL ? null : new XrPlaneDetectorPolygonBufferEXT(address, null); - } - - /** - * Returns a new {@link XrPlaneDetectorPolygonBufferEXT.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorPolygonBufferEXT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrPlaneDetectorPolygonBufferEXT.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorPolygonBufferEXT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPlaneDetectorPolygonBufferEXT.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorPolygonBufferEXT.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrPlaneDetectorPolygonBufferEXT.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorPolygonBufferEXT.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrPlaneDetectorPolygonBufferEXT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrPlaneDetectorPolygonBufferEXT} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrPlaneDetectorPolygonBufferEXT malloc(MemoryStack stack) { - return new XrPlaneDetectorPolygonBufferEXT(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrPlaneDetectorPolygonBufferEXT} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrPlaneDetectorPolygonBufferEXT calloc(MemoryStack stack) { - return new XrPlaneDetectorPolygonBufferEXT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrPlaneDetectorPolygonBufferEXT.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorPolygonBufferEXT.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrPlaneDetectorPolygonBufferEXT.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrPlaneDetectorPolygonBufferEXT.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPlaneDetectorPolygonBufferEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPlaneDetectorPolygonBufferEXT.NEXT); } - /** Unsafe version of {@link #vertexCapacityInput}. */ - public static int nvertexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrPlaneDetectorPolygonBufferEXT.VERTEXCAPACITYINPUT); } - /** Unsafe version of {@link #vertexCountOutput}. */ - public static int nvertexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrPlaneDetectorPolygonBufferEXT.VERTEXCOUNTOUTPUT); } - /** Unsafe version of {@link #vertices}. */ - @Nullable public static XrVector2f.Buffer nvertices(long struct) { return XrVector2f.createSafe(memGetAddress(struct + XrPlaneDetectorPolygonBufferEXT.VERTICES), nvertexCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPlaneDetectorPolygonBufferEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPlaneDetectorPolygonBufferEXT.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 + XrPlaneDetectorPolygonBufferEXT.VERTEXCAPACITYINPUT, value); } - /** Unsafe version of {@link #vertexCountOutput(int) vertexCountOutput}. */ - public static void nvertexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrPlaneDetectorPolygonBufferEXT.VERTEXCOUNTOUTPUT, value); } - /** Unsafe version of {@link #vertices(XrVector2f.Buffer) vertices}. */ - public static void nvertices(long struct, @Nullable XrVector2f.Buffer value) { memPutAddress(struct + XrPlaneDetectorPolygonBufferEXT.VERTICES, memAddressSafe(value)); if (value != null) { nvertexCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- - - /** An array of {@link XrPlaneDetectorPolygonBufferEXT} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrPlaneDetectorPolygonBufferEXT ELEMENT_FACTORY = XrPlaneDetectorPolygonBufferEXT.create(-1L); - - /** - * Creates a new {@code XrPlaneDetectorPolygonBufferEXT.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrPlaneDetectorPolygonBufferEXT#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrPlaneDetectorPolygonBufferEXT getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrPlaneDetectorPolygonBufferEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPlaneDetectorPolygonBufferEXT.ntype(address()); } - /** @return the value of the {@link XrPlaneDetectorPolygonBufferEXT#next} field. */ - @NativeType("void *") - public long next() { return XrPlaneDetectorPolygonBufferEXT.nnext(address()); } - /** @return the value of the {@link XrPlaneDetectorPolygonBufferEXT#vertexCapacityInput} field. */ - @NativeType("uint32_t") - public int vertexCapacityInput() { return XrPlaneDetectorPolygonBufferEXT.nvertexCapacityInput(address()); } - /** @return the value of the {@link XrPlaneDetectorPolygonBufferEXT#vertexCountOutput} field. */ - @NativeType("uint32_t") - public int vertexCountOutput() { return XrPlaneDetectorPolygonBufferEXT.nvertexCountOutput(address()); } - /** @return a {@link XrVector2f.Buffer} view of the struct array pointed to by the {@link XrPlaneDetectorPolygonBufferEXT#vertices} field. */ - @Nullable - @NativeType("XrVector2f *") - public XrVector2f.Buffer vertices() { return XrPlaneDetectorPolygonBufferEXT.nvertices(address()); } - - /** Sets the specified value to the {@link XrPlaneDetectorPolygonBufferEXT#type} field. */ - public XrPlaneDetectorPolygonBufferEXT.Buffer type(@NativeType("XrStructureType") int value) { XrPlaneDetectorPolygonBufferEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTPlaneDetection#XR_TYPE_PLANE_DETECTOR_POLYGON_BUFFER_EXT TYPE_PLANE_DETECTOR_POLYGON_BUFFER_EXT} value to the {@link XrPlaneDetectorPolygonBufferEXT#type} field. */ - public XrPlaneDetectorPolygonBufferEXT.Buffer type$Default() { return type(EXTPlaneDetection.XR_TYPE_PLANE_DETECTOR_POLYGON_BUFFER_EXT); } - /** Sets the specified value to the {@link XrPlaneDetectorPolygonBufferEXT#next} field. */ - public XrPlaneDetectorPolygonBufferEXT.Buffer next(@NativeType("void *") long value) { XrPlaneDetectorPolygonBufferEXT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPlaneDetectorPolygonBufferEXT#vertexCapacityInput} field. */ - public XrPlaneDetectorPolygonBufferEXT.Buffer vertexCapacityInput(@NativeType("uint32_t") int value) { XrPlaneDetectorPolygonBufferEXT.nvertexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrPlaneDetectorPolygonBufferEXT#vertexCountOutput} field. */ - public XrPlaneDetectorPolygonBufferEXT.Buffer vertexCountOutput(@NativeType("uint32_t") int value) { XrPlaneDetectorPolygonBufferEXT.nvertexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrVector2f.Buffer} to the {@link XrPlaneDetectorPolygonBufferEXT#vertices} field. */ - public XrPlaneDetectorPolygonBufferEXT.Buffer vertices(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { XrPlaneDetectorPolygonBufferEXT.nvertices(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSemanticLabelsFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSemanticLabelsFB.java deleted file mode 100644 index a7c638b52b..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSemanticLabelsFB.java +++ /dev/null @@ -1,370 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Provides application with semantic usage of a spatial entity. - * - *
Description
- * - *

This structure is used by the {@link FBScene#xrGetSpaceSemanticLabelsFB GetSpaceSemanticLabelsFB} function to provide the application with the intended usage of the spatial entity.

- * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link FBScene XR_FB_scene} extension must be enabled prior to using {@link XrSemanticLabelsFB}
  • - *
  • {@code type} must be {@link FBScene#XR_TYPE_SEMANTIC_LABELS_FB TYPE_SEMANTIC_LABELS_FB}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • If {@code bufferCapacityInput} is not 0, {@code buffer} must be a pointer to an array of {@code bufferCapacityInput} char values
  • - *
- * - *
See Also
- * - *

{@link FBScene#xrGetSpaceSemanticLabelsFB GetSpaceSemanticLabelsFB}

- * - *

Layout

- * - *

- * struct XrSemanticLabelsFB {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     uint32_t {@link #bufferCapacityInput};
- *     uint32_t {@link #bufferCountOutput};
- *     char * {@link #buffer};
- * }
- */ -public class XrSemanticLabelsFB extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - BUFFERCAPACITYINPUT, - BUFFERCOUNTOUTPUT, - BUFFER; - - static { - 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 XrSemanticLabelsFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSemanticLabelsFB create(long address, @Nullable ByteBuffer container) { - return new XrSemanticLabelsFB(address, container); - } - - /** - * Creates a {@code XrSemanticLabelsFB} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrSemanticLabelsFB(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 capacity of the {@code buffer} array, in bytes, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int bufferCapacityInput() { return nbufferCapacityInput(address()); } - /** a pointer to the count of bytes written, or a pointer to the required capacity in the case that {@code bufferCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int bufferCountOutput() { return nbufferCountOutput(address()); } - /** a pointer to an array of bytes, but can be {@code NULL} if {@code bufferCapacityInput} is 0. Multiple labels represented by raw string, separated by comma (,). */ - @Nullable - @NativeType("char *") - public ByteBuffer buffer() { return nbuffer(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSemanticLabelsFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBScene#XR_TYPE_SEMANTIC_LABELS_FB TYPE_SEMANTIC_LABELS_FB} value to the {@link #type} field. */ - public XrSemanticLabelsFB type$Default() { return type(FBScene.XR_TYPE_SEMANTIC_LABELS_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSemanticLabelsFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #bufferCapacityInput} field. */ - public XrSemanticLabelsFB bufferCapacityInput(@NativeType("uint32_t") int value) { nbufferCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #bufferCountOutput} field. */ - public XrSemanticLabelsFB 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 XrSemanticLabelsFB buffer(@Nullable @NativeType("char *") ByteBuffer value) { nbuffer(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrSemanticLabelsFB set( - int type, - long next, - int bufferCapacityInput, - int bufferCountOutput, - @Nullable ByteBuffer buffer - ) { - type(type); - next(next); - bufferCapacityInput(bufferCapacityInput); - bufferCountOutput(bufferCountOutput); - buffer(buffer); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrSemanticLabelsFB set(XrSemanticLabelsFB src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrSemanticLabelsFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrSemanticLabelsFB malloc() { - return new XrSemanticLabelsFB(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrSemanticLabelsFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrSemanticLabelsFB calloc() { - return new XrSemanticLabelsFB(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrSemanticLabelsFB} instance allocated with {@link BufferUtils}. */ - public static XrSemanticLabelsFB create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSemanticLabelsFB(memAddress(container), container); - } - - /** Returns a new {@code XrSemanticLabelsFB} instance for the specified memory address. */ - public static XrSemanticLabelsFB create(long address) { - return new XrSemanticLabelsFB(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrSemanticLabelsFB createSafe(long address) { - return address == NULL ? null : new XrSemanticLabelsFB(address, null); - } - - /** - * Returns a new {@link XrSemanticLabelsFB.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrSemanticLabelsFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrSemanticLabelsFB.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrSemanticLabelsFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrSemanticLabelsFB.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrSemanticLabelsFB.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrSemanticLabelsFB.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrSemanticLabelsFB.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrSemanticLabelsFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrSemanticLabelsFB} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrSemanticLabelsFB malloc(MemoryStack stack) { - return new XrSemanticLabelsFB(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrSemanticLabelsFB} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrSemanticLabelsFB calloc(MemoryStack stack) { - return new XrSemanticLabelsFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrSemanticLabelsFB.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrSemanticLabelsFB.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrSemanticLabelsFB.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrSemanticLabelsFB.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSemanticLabelsFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSemanticLabelsFB.NEXT); } - /** Unsafe version of {@link #bufferCapacityInput}. */ - public static int nbufferCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSemanticLabelsFB.BUFFERCAPACITYINPUT); } - /** Unsafe version of {@link #bufferCountOutput}. */ - public static int nbufferCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSemanticLabelsFB.BUFFERCOUNTOUTPUT); } - /** Unsafe version of {@link #buffer() buffer}. */ - @Nullable public static ByteBuffer nbuffer(long struct) { return memByteBufferSafe(memGetAddress(struct + XrSemanticLabelsFB.BUFFER), nbufferCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSemanticLabelsFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSemanticLabelsFB.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 + XrSemanticLabelsFB.BUFFERCAPACITYINPUT, value); } - /** Unsafe version of {@link #bufferCountOutput(int) bufferCountOutput}. */ - public static void nbufferCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSemanticLabelsFB.BUFFERCOUNTOUTPUT, value); } - /** Unsafe version of {@link #buffer(ByteBuffer) buffer}. */ - public static void nbuffer(long struct, @Nullable ByteBuffer value) { memPutAddress(struct + XrSemanticLabelsFB.BUFFER, memAddressSafe(value)); if (value != null) { nbufferCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- - - /** An array of {@link XrSemanticLabelsFB} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrSemanticLabelsFB ELEMENT_FACTORY = XrSemanticLabelsFB.create(-1L); - - /** - * Creates a new {@code XrSemanticLabelsFB.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrSemanticLabelsFB#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrSemanticLabelsFB getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrSemanticLabelsFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSemanticLabelsFB.ntype(address()); } - /** @return the value of the {@link XrSemanticLabelsFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSemanticLabelsFB.nnext(address()); } - /** @return the value of the {@link XrSemanticLabelsFB#bufferCapacityInput} field. */ - @NativeType("uint32_t") - public int bufferCapacityInput() { return XrSemanticLabelsFB.nbufferCapacityInput(address()); } - /** @return the value of the {@link XrSemanticLabelsFB#bufferCountOutput} field. */ - @NativeType("uint32_t") - public int bufferCountOutput() { return XrSemanticLabelsFB.nbufferCountOutput(address()); } - /** @return a {@link ByteBuffer} view of the data pointed to by the {@link XrSemanticLabelsFB#buffer} field. */ - @Nullable - @NativeType("char *") - public ByteBuffer buffer() { return XrSemanticLabelsFB.nbuffer(address()); } - - /** Sets the specified value to the {@link XrSemanticLabelsFB#type} field. */ - public XrSemanticLabelsFB.Buffer type(@NativeType("XrStructureType") int value) { XrSemanticLabelsFB.ntype(address(), value); return this; } - /** Sets the {@link FBScene#XR_TYPE_SEMANTIC_LABELS_FB TYPE_SEMANTIC_LABELS_FB} value to the {@link XrSemanticLabelsFB#type} field. */ - public XrSemanticLabelsFB.Buffer type$Default() { return type(FBScene.XR_TYPE_SEMANTIC_LABELS_FB); } - /** Sets the specified value to the {@link XrSemanticLabelsFB#next} field. */ - public XrSemanticLabelsFB.Buffer next(@NativeType("void const *") long value) { XrSemanticLabelsFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSemanticLabelsFB#bufferCapacityInput} field. */ - public XrSemanticLabelsFB.Buffer bufferCapacityInput(@NativeType("uint32_t") int value) { XrSemanticLabelsFB.nbufferCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrSemanticLabelsFB#bufferCountOutput} field. */ - public XrSemanticLabelsFB.Buffer bufferCountOutput(@NativeType("uint32_t") int value) { XrSemanticLabelsFB.nbufferCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link ByteBuffer} to the {@link XrSemanticLabelsFB#buffer} field. */ - public XrSemanticLabelsFB.Buffer buffer(@Nullable @NativeType("char *") ByteBuffer value) { XrSemanticLabelsFB.nbuffer(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSemanticLabelsSupportInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSemanticLabelsSupportInfoFB.java deleted file mode 100644 index ba34ecbed6..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSemanticLabelsSupportInfoFB.java +++ /dev/null @@ -1,368 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Specifies additional behaviors of the xrGetSpaceSemanticLabelsFB function. - * - *
Description
- * - *

The {@link XrSemanticLabelsSupportInfoFB} structure may be specified in the {@code next} chain of {@link XrSemanticLabelsFB} to specify additional behaviors of the {@link FBScene#xrGetSpaceSemanticLabelsFB GetSpaceSemanticLabelsFB} function. The runtime must follow the behaviors specified in {@code flags} according to the descriptions of {@code XrSemanticLabelsSupportFlagBitsFB}. The runtime must return any semantic label that is not included in {@code recognizedLabels} as "OTHER" to the application. The runtime must follow this direction only if the runtime reports the {@code extensionVersion} as 2 or greater, otherwise the runtime must ignore this as an unknown chained structure.

- * - *

If the {@link XrSemanticLabelsSupportInfoFB} structure is not present in the {@code next} chain of {@link XrSemanticLabelsFB}, the runtime may return any semantic labels to the application.

- * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link FBScene XR_FB_scene} extension must be enabled prior to using {@link XrSemanticLabelsSupportInfoFB}
  • - *
  • {@code type} must be {@link FBScene#XR_TYPE_SEMANTIC_LABELS_SUPPORT_INFO_FB TYPE_SEMANTIC_LABELS_SUPPORT_INFO_FB}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • {@code flags} must be 0 or a valid combination of {@code XrSemanticLabelsSupportFlagBitsFB} values
  • - *
  • {@code recognizedLabels} must be a null-terminated UTF-8 string
  • - *
- * - *

Layout

- * - *

- * struct XrSemanticLabelsSupportInfoFB {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     XrSemanticLabelsSupportFlagsFB {@link #flags};
- *     char const * {@link #recognizedLabels};
- * }
- */ -public class XrSemanticLabelsSupportInfoFB extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - FLAGS, - RECOGNIZEDLABELS; - - static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(POINTER_SIZE) - ); - - SIZEOF = layout.getSize(); - ALIGNOF = layout.getAlignment(); - - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - FLAGS = layout.offsetof(2); - RECOGNIZEDLABELS = layout.offsetof(3); - } - - protected XrSemanticLabelsSupportInfoFB(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSemanticLabelsSupportInfoFB create(long address, @Nullable ByteBuffer container) { - return new XrSemanticLabelsSupportInfoFB(address, container); - } - - /** - * Creates a {@code XrSemanticLabelsSupportInfoFB} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrSemanticLabelsSupportInfoFB(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 bitmask of {@code XrSemanticLabelsSupportFlagBitsFB} that specifies additional behaviors. */ - @NativeType("XrSemanticLabelsSupportFlagsFB") - public long flags() { return nflags(address()); } - /** a {@code NULL} terminated string that indicates a set of semantic labels recognized by the application. Each semantic label must be represented as a string and be separated by a comma without spaces. This field must include at least "OTHER" and must not be {@code NULL}. */ - @NativeType("char const *") - public ByteBuffer recognizedLabels() { return nrecognizedLabels(address()); } - /** a {@code NULL} terminated string that indicates a set of semantic labels recognized by the application. Each semantic label must be represented as a string and be separated by a comma without spaces. This field must include at least "OTHER" and must not be {@code NULL}. */ - @NativeType("char const *") - public String recognizedLabelsString() { return nrecognizedLabelsString(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSemanticLabelsSupportInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBScene#XR_TYPE_SEMANTIC_LABELS_SUPPORT_INFO_FB TYPE_SEMANTIC_LABELS_SUPPORT_INFO_FB} value to the {@link #type} field. */ - public XrSemanticLabelsSupportInfoFB type$Default() { return type(FBScene.XR_TYPE_SEMANTIC_LABELS_SUPPORT_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSemanticLabelsSupportInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #flags} field. */ - public XrSemanticLabelsSupportInfoFB flags(@NativeType("XrSemanticLabelsSupportFlagsFB") long value) { nflags(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link #recognizedLabels} field. */ - public XrSemanticLabelsSupportInfoFB recognizedLabels(@NativeType("char const *") ByteBuffer value) { nrecognizedLabels(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrSemanticLabelsSupportInfoFB set( - int type, - long next, - long flags, - ByteBuffer recognizedLabels - ) { - type(type); - next(next); - flags(flags); - recognizedLabels(recognizedLabels); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrSemanticLabelsSupportInfoFB set(XrSemanticLabelsSupportInfoFB src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrSemanticLabelsSupportInfoFB} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrSemanticLabelsSupportInfoFB malloc() { - return new XrSemanticLabelsSupportInfoFB(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrSemanticLabelsSupportInfoFB} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrSemanticLabelsSupportInfoFB calloc() { - return new XrSemanticLabelsSupportInfoFB(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrSemanticLabelsSupportInfoFB} instance allocated with {@link BufferUtils}. */ - public static XrSemanticLabelsSupportInfoFB create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSemanticLabelsSupportInfoFB(memAddress(container), container); - } - - /** Returns a new {@code XrSemanticLabelsSupportInfoFB} instance for the specified memory address. */ - public static XrSemanticLabelsSupportInfoFB create(long address) { - return new XrSemanticLabelsSupportInfoFB(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrSemanticLabelsSupportInfoFB createSafe(long address) { - return address == NULL ? null : new XrSemanticLabelsSupportInfoFB(address, null); - } - - /** - * Returns a new {@link XrSemanticLabelsSupportInfoFB.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrSemanticLabelsSupportInfoFB.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrSemanticLabelsSupportInfoFB.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrSemanticLabelsSupportInfoFB.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrSemanticLabelsSupportInfoFB.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrSemanticLabelsSupportInfoFB.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrSemanticLabelsSupportInfoFB.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrSemanticLabelsSupportInfoFB.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrSemanticLabelsSupportInfoFB.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrSemanticLabelsSupportInfoFB} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrSemanticLabelsSupportInfoFB malloc(MemoryStack stack) { - return new XrSemanticLabelsSupportInfoFB(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrSemanticLabelsSupportInfoFB} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrSemanticLabelsSupportInfoFB calloc(MemoryStack stack) { - return new XrSemanticLabelsSupportInfoFB(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrSemanticLabelsSupportInfoFB.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrSemanticLabelsSupportInfoFB.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrSemanticLabelsSupportInfoFB.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrSemanticLabelsSupportInfoFB.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSemanticLabelsSupportInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSemanticLabelsSupportInfoFB.NEXT); } - /** Unsafe version of {@link #flags}. */ - public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrSemanticLabelsSupportInfoFB.FLAGS); } - /** Unsafe version of {@link #recognizedLabels}. */ - public static ByteBuffer nrecognizedLabels(long struct) { return memByteBufferNT1(memGetAddress(struct + XrSemanticLabelsSupportInfoFB.RECOGNIZEDLABELS)); } - /** Unsafe version of {@link #recognizedLabelsString}. */ - public static String nrecognizedLabelsString(long struct) { return memUTF8(memGetAddress(struct + XrSemanticLabelsSupportInfoFB.RECOGNIZEDLABELS)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSemanticLabelsSupportInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSemanticLabelsSupportInfoFB.NEXT, value); } - /** Unsafe version of {@link #flags(long) flags}. */ - public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrSemanticLabelsSupportInfoFB.FLAGS, value); } - /** Unsafe version of {@link #recognizedLabels(ByteBuffer) recognizedLabels}. */ - public static void nrecognizedLabels(long struct, ByteBuffer value) { - if (CHECKS) { checkNT1(value); } - memPutAddress(struct + XrSemanticLabelsSupportInfoFB.RECOGNIZEDLABELS, memAddress(value)); - } - - /** - * Validates pointer members that should not be {@code NULL}. - * - * @param struct the struct to validate - */ - public static void validate(long struct) { - check(memGetAddress(struct + XrSemanticLabelsSupportInfoFB.RECOGNIZEDLABELS)); - } - - // ----------------------------------- - - /** An array of {@link XrSemanticLabelsSupportInfoFB} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrSemanticLabelsSupportInfoFB ELEMENT_FACTORY = XrSemanticLabelsSupportInfoFB.create(-1L); - - /** - * Creates a new {@code XrSemanticLabelsSupportInfoFB.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrSemanticLabelsSupportInfoFB#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrSemanticLabelsSupportInfoFB getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrSemanticLabelsSupportInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSemanticLabelsSupportInfoFB.ntype(address()); } - /** @return the value of the {@link XrSemanticLabelsSupportInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSemanticLabelsSupportInfoFB.nnext(address()); } - /** @return the value of the {@link XrSemanticLabelsSupportInfoFB#flags} field. */ - @NativeType("XrSemanticLabelsSupportFlagsFB") - public long flags() { return XrSemanticLabelsSupportInfoFB.nflags(address()); } - /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrSemanticLabelsSupportInfoFB#recognizedLabels} field. */ - @NativeType("char const *") - public ByteBuffer recognizedLabels() { return XrSemanticLabelsSupportInfoFB.nrecognizedLabels(address()); } - /** @return the null-terminated string pointed to by the {@link XrSemanticLabelsSupportInfoFB#recognizedLabels} field. */ - @NativeType("char const *") - public String recognizedLabelsString() { return XrSemanticLabelsSupportInfoFB.nrecognizedLabelsString(address()); } - - /** Sets the specified value to the {@link XrSemanticLabelsSupportInfoFB#type} field. */ - public XrSemanticLabelsSupportInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSemanticLabelsSupportInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBScene#XR_TYPE_SEMANTIC_LABELS_SUPPORT_INFO_FB TYPE_SEMANTIC_LABELS_SUPPORT_INFO_FB} value to the {@link XrSemanticLabelsSupportInfoFB#type} field. */ - public XrSemanticLabelsSupportInfoFB.Buffer type$Default() { return type(FBScene.XR_TYPE_SEMANTIC_LABELS_SUPPORT_INFO_FB); } - /** Sets the specified value to the {@link XrSemanticLabelsSupportInfoFB#next} field. */ - public XrSemanticLabelsSupportInfoFB.Buffer next(@NativeType("void const *") long value) { XrSemanticLabelsSupportInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSemanticLabelsSupportInfoFB#flags} field. */ - public XrSemanticLabelsSupportInfoFB.Buffer flags(@NativeType("XrSemanticLabelsSupportFlagsFB") long value) { XrSemanticLabelsSupportInfoFB.nflags(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link XrSemanticLabelsSupportInfoFB#recognizedLabels} field. */ - public XrSemanticLabelsSupportInfoFB.Buffer recognizedLabels(@NativeType("char const *") ByteBuffer value) { XrSemanticLabelsSupportInfoFB.nrecognizedLabels(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPlaneDetectionPropertiesEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPlaneDetectionPropertiesEXT.java deleted file mode 100644 index 910740a77f..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPlaneDetectionPropertiesEXT.java +++ /dev/null @@ -1,315 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * System Properties of the Plane Detection extension. - * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link EXTPlaneDetection XR_EXT_plane_detection} extension must be enabled prior to using {@link XrSystemPlaneDetectionPropertiesEXT}
  • - *
  • {@code type} must be {@link EXTPlaneDetection#XR_TYPE_SYSTEM_PLANE_DETECTION_PROPERTIES_EXT TYPE_SYSTEM_PLANE_DETECTION_PROPERTIES_EXT}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
- * - *
See Also
- * - *

{@link XrSystemProperties}

- * - *

Layout

- * - *

- * struct XrSystemPlaneDetectionPropertiesEXT {
- *     XrStructureType {@link #type};
- *     void * {@link #next};
- *     XrPlaneDetectionCapabilityFlagsEXT {@link #supportedFeatures};
- * }
- */ -public class XrSystemPlaneDetectionPropertiesEXT extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - SUPPORTEDFEATURES; - - static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8) - ); - - SIZEOF = layout.getSize(); - ALIGNOF = layout.getAlignment(); - - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - SUPPORTEDFEATURES = layout.offsetof(2); - } - - protected XrSystemPlaneDetectionPropertiesEXT(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSystemPlaneDetectionPropertiesEXT create(long address, @Nullable ByteBuffer container) { - return new XrSystemPlaneDetectionPropertiesEXT(address, container); - } - - /** - * Creates a {@code XrSystemPlaneDetectionPropertiesEXT} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrSystemPlaneDetectionPropertiesEXT(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 bitfield, with bit masks defined in {@code XrPlaneDetectionCapabilityFlagBitsEXT}. */ - @NativeType("XrPlaneDetectionCapabilityFlagsEXT") - public long supportedFeatures() { return nsupportedFeatures(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSystemPlaneDetectionPropertiesEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTPlaneDetection#XR_TYPE_SYSTEM_PLANE_DETECTION_PROPERTIES_EXT TYPE_SYSTEM_PLANE_DETECTION_PROPERTIES_EXT} value to the {@link #type} field. */ - public XrSystemPlaneDetectionPropertiesEXT type$Default() { return type(EXTPlaneDetection.XR_TYPE_SYSTEM_PLANE_DETECTION_PROPERTIES_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSystemPlaneDetectionPropertiesEXT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrSystemPlaneDetectionPropertiesEXT set( - int type, - long next - ) { - type(type); - next(next); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrSystemPlaneDetectionPropertiesEXT set(XrSystemPlaneDetectionPropertiesEXT src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrSystemPlaneDetectionPropertiesEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrSystemPlaneDetectionPropertiesEXT malloc() { - return new XrSystemPlaneDetectionPropertiesEXT(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrSystemPlaneDetectionPropertiesEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrSystemPlaneDetectionPropertiesEXT calloc() { - return new XrSystemPlaneDetectionPropertiesEXT(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrSystemPlaneDetectionPropertiesEXT} instance allocated with {@link BufferUtils}. */ - public static XrSystemPlaneDetectionPropertiesEXT create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSystemPlaneDetectionPropertiesEXT(memAddress(container), container); - } - - /** Returns a new {@code XrSystemPlaneDetectionPropertiesEXT} instance for the specified memory address. */ - public static XrSystemPlaneDetectionPropertiesEXT create(long address) { - return new XrSystemPlaneDetectionPropertiesEXT(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrSystemPlaneDetectionPropertiesEXT createSafe(long address) { - return address == NULL ? null : new XrSystemPlaneDetectionPropertiesEXT(address, null); - } - - /** - * Returns a new {@link XrSystemPlaneDetectionPropertiesEXT.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrSystemPlaneDetectionPropertiesEXT.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrSystemPlaneDetectionPropertiesEXT.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrSystemPlaneDetectionPropertiesEXT.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrSystemPlaneDetectionPropertiesEXT.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrSystemPlaneDetectionPropertiesEXT.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrSystemPlaneDetectionPropertiesEXT.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrSystemPlaneDetectionPropertiesEXT.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrSystemPlaneDetectionPropertiesEXT.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrSystemPlaneDetectionPropertiesEXT} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrSystemPlaneDetectionPropertiesEXT malloc(MemoryStack stack) { - return new XrSystemPlaneDetectionPropertiesEXT(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrSystemPlaneDetectionPropertiesEXT} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrSystemPlaneDetectionPropertiesEXT calloc(MemoryStack stack) { - return new XrSystemPlaneDetectionPropertiesEXT(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrSystemPlaneDetectionPropertiesEXT.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrSystemPlaneDetectionPropertiesEXT.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrSystemPlaneDetectionPropertiesEXT.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrSystemPlaneDetectionPropertiesEXT.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSystemPlaneDetectionPropertiesEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSystemPlaneDetectionPropertiesEXT.NEXT); } - /** Unsafe version of {@link #supportedFeatures}. */ - public static long nsupportedFeatures(long struct) { return UNSAFE.getLong(null, struct + XrSystemPlaneDetectionPropertiesEXT.SUPPORTEDFEATURES); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemPlaneDetectionPropertiesEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSystemPlaneDetectionPropertiesEXT.NEXT, value); } - - // ----------------------------------- - - /** An array of {@link XrSystemPlaneDetectionPropertiesEXT} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrSystemPlaneDetectionPropertiesEXT ELEMENT_FACTORY = XrSystemPlaneDetectionPropertiesEXT.create(-1L); - - /** - * Creates a new {@code XrSystemPlaneDetectionPropertiesEXT.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrSystemPlaneDetectionPropertiesEXT#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrSystemPlaneDetectionPropertiesEXT getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrSystemPlaneDetectionPropertiesEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemPlaneDetectionPropertiesEXT.ntype(address()); } - /** @return the value of the {@link XrSystemPlaneDetectionPropertiesEXT#next} field. */ - @NativeType("void *") - public long next() { return XrSystemPlaneDetectionPropertiesEXT.nnext(address()); } - /** @return the value of the {@link XrSystemPlaneDetectionPropertiesEXT#supportedFeatures} field. */ - @NativeType("XrPlaneDetectionCapabilityFlagsEXT") - public long supportedFeatures() { return XrSystemPlaneDetectionPropertiesEXT.nsupportedFeatures(address()); } - - /** Sets the specified value to the {@link XrSystemPlaneDetectionPropertiesEXT#type} field. */ - public XrSystemPlaneDetectionPropertiesEXT.Buffer type(@NativeType("XrStructureType") int value) { XrSystemPlaneDetectionPropertiesEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTPlaneDetection#XR_TYPE_SYSTEM_PLANE_DETECTION_PROPERTIES_EXT TYPE_SYSTEM_PLANE_DETECTION_PROPERTIES_EXT} value to the {@link XrSystemPlaneDetectionPropertiesEXT#type} field. */ - public XrSystemPlaneDetectionPropertiesEXT.Buffer type$Default() { return type(EXTPlaneDetection.XR_TYPE_SYSTEM_PLANE_DETECTION_PROPERTIES_EXT); } - /** Sets the specified value to the {@link XrSystemPlaneDetectionPropertiesEXT#next} field. */ - public XrSystemPlaneDetectionPropertiesEXT.Buffer next(@NativeType("void *") long value) { XrSystemPlaneDetectionPropertiesEXT.nnext(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemVirtualKeyboardPropertiesMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemVirtualKeyboardPropertiesMETA.java deleted file mode 100644 index e21c0bb391..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemVirtualKeyboardPropertiesMETA.java +++ /dev/null @@ -1,319 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Virtual Keyboard Properties structure. - * - *
Description
- * - *

The struct is used for checking virtual keyboard support.

- * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to using {@link XrSystemVirtualKeyboardPropertiesMETA}
  • - *
  • {@code type} must be {@link METAVirtualKeyboard#XR_TYPE_SYSTEM_VIRTUAL_KEYBOARD_PROPERTIES_META TYPE_SYSTEM_VIRTUAL_KEYBOARD_PROPERTIES_META}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
- * - *
See Also
- * - *

{@link XrSystemProperties}

- * - *

Layout

- * - *

- * struct XrSystemVirtualKeyboardPropertiesMETA {
- *     XrStructureType {@link #type};
- *     void * {@link #next};
- *     XrBool32 {@link #supportsVirtualKeyboard};
- * }
- */ -public class XrSystemVirtualKeyboardPropertiesMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - SUPPORTSVIRTUALKEYBOARD; - - static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4) - ); - - SIZEOF = layout.getSize(); - ALIGNOF = layout.getAlignment(); - - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - SUPPORTSVIRTUALKEYBOARD = layout.offsetof(2); - } - - protected XrSystemVirtualKeyboardPropertiesMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrSystemVirtualKeyboardPropertiesMETA create(long address, @Nullable ByteBuffer container) { - return new XrSystemVirtualKeyboardPropertiesMETA(address, container); - } - - /** - * Creates a {@code XrSystemVirtualKeyboardPropertiesMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrSystemVirtualKeyboardPropertiesMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 virtual keyboard is supported. */ - @NativeType("XrBool32") - public boolean supportsVirtualKeyboard() { return nsupportsVirtualKeyboard(address()) != 0; } - - /** Sets the specified value to the {@link #type} field. */ - public XrSystemVirtualKeyboardPropertiesMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_SYSTEM_VIRTUAL_KEYBOARD_PROPERTIES_META TYPE_SYSTEM_VIRTUAL_KEYBOARD_PROPERTIES_META} value to the {@link #type} field. */ - public XrSystemVirtualKeyboardPropertiesMETA type$Default() { return type(METAVirtualKeyboard.XR_TYPE_SYSTEM_VIRTUAL_KEYBOARD_PROPERTIES_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrSystemVirtualKeyboardPropertiesMETA next(@NativeType("void *") long value) { nnext(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrSystemVirtualKeyboardPropertiesMETA set( - int type, - long next - ) { - type(type); - next(next); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrSystemVirtualKeyboardPropertiesMETA set(XrSystemVirtualKeyboardPropertiesMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrSystemVirtualKeyboardPropertiesMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrSystemVirtualKeyboardPropertiesMETA malloc() { - return new XrSystemVirtualKeyboardPropertiesMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrSystemVirtualKeyboardPropertiesMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrSystemVirtualKeyboardPropertiesMETA calloc() { - return new XrSystemVirtualKeyboardPropertiesMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrSystemVirtualKeyboardPropertiesMETA} instance allocated with {@link BufferUtils}. */ - public static XrSystemVirtualKeyboardPropertiesMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrSystemVirtualKeyboardPropertiesMETA(memAddress(container), container); - } - - /** Returns a new {@code XrSystemVirtualKeyboardPropertiesMETA} instance for the specified memory address. */ - public static XrSystemVirtualKeyboardPropertiesMETA create(long address) { - return new XrSystemVirtualKeyboardPropertiesMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrSystemVirtualKeyboardPropertiesMETA createSafe(long address) { - return address == NULL ? null : new XrSystemVirtualKeyboardPropertiesMETA(address, null); - } - - /** - * Returns a new {@link XrSystemVirtualKeyboardPropertiesMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrSystemVirtualKeyboardPropertiesMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrSystemVirtualKeyboardPropertiesMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrSystemVirtualKeyboardPropertiesMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrSystemVirtualKeyboardPropertiesMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrSystemVirtualKeyboardPropertiesMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrSystemVirtualKeyboardPropertiesMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrSystemVirtualKeyboardPropertiesMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrSystemVirtualKeyboardPropertiesMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrSystemVirtualKeyboardPropertiesMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrSystemVirtualKeyboardPropertiesMETA malloc(MemoryStack stack) { - return new XrSystemVirtualKeyboardPropertiesMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrSystemVirtualKeyboardPropertiesMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrSystemVirtualKeyboardPropertiesMETA calloc(MemoryStack stack) { - return new XrSystemVirtualKeyboardPropertiesMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrSystemVirtualKeyboardPropertiesMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrSystemVirtualKeyboardPropertiesMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrSystemVirtualKeyboardPropertiesMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrSystemVirtualKeyboardPropertiesMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSystemVirtualKeyboardPropertiesMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSystemVirtualKeyboardPropertiesMETA.NEXT); } - /** Unsafe version of {@link #supportsVirtualKeyboard}. */ - public static int nsupportsVirtualKeyboard(long struct) { return UNSAFE.getInt(null, struct + XrSystemVirtualKeyboardPropertiesMETA.SUPPORTSVIRTUALKEYBOARD); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemVirtualKeyboardPropertiesMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSystemVirtualKeyboardPropertiesMETA.NEXT, value); } - - // ----------------------------------- - - /** An array of {@link XrSystemVirtualKeyboardPropertiesMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrSystemVirtualKeyboardPropertiesMETA ELEMENT_FACTORY = XrSystemVirtualKeyboardPropertiesMETA.create(-1L); - - /** - * Creates a new {@code XrSystemVirtualKeyboardPropertiesMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrSystemVirtualKeyboardPropertiesMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrSystemVirtualKeyboardPropertiesMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrSystemVirtualKeyboardPropertiesMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemVirtualKeyboardPropertiesMETA.ntype(address()); } - /** @return the value of the {@link XrSystemVirtualKeyboardPropertiesMETA#next} field. */ - @NativeType("void *") - public long next() { return XrSystemVirtualKeyboardPropertiesMETA.nnext(address()); } - /** @return the value of the {@link XrSystemVirtualKeyboardPropertiesMETA#supportsVirtualKeyboard} field. */ - @NativeType("XrBool32") - public boolean supportsVirtualKeyboard() { return XrSystemVirtualKeyboardPropertiesMETA.nsupportsVirtualKeyboard(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemVirtualKeyboardPropertiesMETA#type} field. */ - public XrSystemVirtualKeyboardPropertiesMETA.Buffer type(@NativeType("XrStructureType") int value) { XrSystemVirtualKeyboardPropertiesMETA.ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_SYSTEM_VIRTUAL_KEYBOARD_PROPERTIES_META TYPE_SYSTEM_VIRTUAL_KEYBOARD_PROPERTIES_META} value to the {@link XrSystemVirtualKeyboardPropertiesMETA#type} field. */ - public XrSystemVirtualKeyboardPropertiesMETA.Buffer type$Default() { return type(METAVirtualKeyboard.XR_TYPE_SYSTEM_VIRTUAL_KEYBOARD_PROPERTIES_META); } - /** Sets the specified value to the {@link XrSystemVirtualKeyboardPropertiesMETA#next} field. */ - public XrSystemVirtualKeyboardPropertiesMETA.Buffer next(@NativeType("void *") long value) { XrSystemVirtualKeyboardPropertiesMETA.nnext(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardAnimationStateMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardAnimationStateMETA.java deleted file mode 100644 index ae98062965..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardAnimationStateMETA.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * State for a single animation. - * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to using {@link XrVirtualKeyboardAnimationStateMETA}
  • - *
  • {@code type} must be {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_ANIMATION_STATE_META TYPE_VIRTUAL_KEYBOARD_ANIMATION_STATE_META}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
- * - *
See Also
- * - *

{@link XrVirtualKeyboardModelAnimationStatesMETA}

- * - *

Layout

- * - *

- * struct XrVirtualKeyboardAnimationStateMETA {
- *     XrStructureType {@link #type};
- *     void * {@link #next};
- *     int32_t {@link #animationIndex};
- *     float {@link #fraction};
- * }
- */ -public class XrVirtualKeyboardAnimationStateMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - ANIMATIONINDEX, - FRACTION; - - static { - 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); - ANIMATIONINDEX = layout.offsetof(2); - FRACTION = layout.offsetof(3); - } - - protected XrVirtualKeyboardAnimationStateMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrVirtualKeyboardAnimationStateMETA create(long address, @Nullable ByteBuffer container) { - return new XrVirtualKeyboardAnimationStateMETA(address, container); - } - - /** - * Creates a {@code XrVirtualKeyboardAnimationStateMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrVirtualKeyboardAnimationStateMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 index of the animation to use for the render model. */ - @NativeType("int32_t") - public int animationIndex() { return nanimationIndex(address()); } - /** the normalized value between the start and end time of the animation. */ - public float fraction() { return nfraction(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrVirtualKeyboardAnimationStateMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_ANIMATION_STATE_META TYPE_VIRTUAL_KEYBOARD_ANIMATION_STATE_META} value to the {@link #type} field. */ - public XrVirtualKeyboardAnimationStateMETA type$Default() { return type(METAVirtualKeyboard.XR_TYPE_VIRTUAL_KEYBOARD_ANIMATION_STATE_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrVirtualKeyboardAnimationStateMETA next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #animationIndex} field. */ - public XrVirtualKeyboardAnimationStateMETA animationIndex(@NativeType("int32_t") int value) { nanimationIndex(address(), value); return this; } - /** Sets the specified value to the {@link #fraction} field. */ - public XrVirtualKeyboardAnimationStateMETA fraction(float value) { nfraction(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrVirtualKeyboardAnimationStateMETA set( - int type, - long next, - int animationIndex, - float fraction - ) { - type(type); - next(next); - animationIndex(animationIndex); - fraction(fraction); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrVirtualKeyboardAnimationStateMETA set(XrVirtualKeyboardAnimationStateMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrVirtualKeyboardAnimationStateMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrVirtualKeyboardAnimationStateMETA malloc() { - return new XrVirtualKeyboardAnimationStateMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrVirtualKeyboardAnimationStateMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrVirtualKeyboardAnimationStateMETA calloc() { - return new XrVirtualKeyboardAnimationStateMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrVirtualKeyboardAnimationStateMETA} instance allocated with {@link BufferUtils}. */ - public static XrVirtualKeyboardAnimationStateMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrVirtualKeyboardAnimationStateMETA(memAddress(container), container); - } - - /** Returns a new {@code XrVirtualKeyboardAnimationStateMETA} instance for the specified memory address. */ - public static XrVirtualKeyboardAnimationStateMETA create(long address) { - return new XrVirtualKeyboardAnimationStateMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrVirtualKeyboardAnimationStateMETA createSafe(long address) { - return address == NULL ? null : new XrVirtualKeyboardAnimationStateMETA(address, null); - } - - /** - * Returns a new {@link XrVirtualKeyboardAnimationStateMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardAnimationStateMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardAnimationStateMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardAnimationStateMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardAnimationStateMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardAnimationStateMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrVirtualKeyboardAnimationStateMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardAnimationStateMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrVirtualKeyboardAnimationStateMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrVirtualKeyboardAnimationStateMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrVirtualKeyboardAnimationStateMETA malloc(MemoryStack stack) { - return new XrVirtualKeyboardAnimationStateMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrVirtualKeyboardAnimationStateMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrVirtualKeyboardAnimationStateMETA calloc(MemoryStack stack) { - return new XrVirtualKeyboardAnimationStateMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrVirtualKeyboardAnimationStateMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardAnimationStateMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardAnimationStateMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardAnimationStateMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardAnimationStateMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrVirtualKeyboardAnimationStateMETA.NEXT); } - /** Unsafe version of {@link #animationIndex}. */ - public static int nanimationIndex(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardAnimationStateMETA.ANIMATIONINDEX); } - /** Unsafe version of {@link #fraction}. */ - public static float nfraction(long struct) { return UNSAFE.getFloat(null, struct + XrVirtualKeyboardAnimationStateMETA.FRACTION); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVirtualKeyboardAnimationStateMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrVirtualKeyboardAnimationStateMETA.NEXT, value); } - /** Unsafe version of {@link #animationIndex(int) animationIndex}. */ - public static void nanimationIndex(long struct, int value) { UNSAFE.putInt(null, struct + XrVirtualKeyboardAnimationStateMETA.ANIMATIONINDEX, value); } - /** Unsafe version of {@link #fraction(float) fraction}. */ - public static void nfraction(long struct, float value) { UNSAFE.putFloat(null, struct + XrVirtualKeyboardAnimationStateMETA.FRACTION, value); } - - // ----------------------------------- - - /** An array of {@link XrVirtualKeyboardAnimationStateMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrVirtualKeyboardAnimationStateMETA ELEMENT_FACTORY = XrVirtualKeyboardAnimationStateMETA.create(-1L); - - /** - * Creates a new {@code XrVirtualKeyboardAnimationStateMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrVirtualKeyboardAnimationStateMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrVirtualKeyboardAnimationStateMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrVirtualKeyboardAnimationStateMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVirtualKeyboardAnimationStateMETA.ntype(address()); } - /** @return the value of the {@link XrVirtualKeyboardAnimationStateMETA#next} field. */ - @NativeType("void *") - public long next() { return XrVirtualKeyboardAnimationStateMETA.nnext(address()); } - /** @return the value of the {@link XrVirtualKeyboardAnimationStateMETA#animationIndex} field. */ - @NativeType("int32_t") - public int animationIndex() { return XrVirtualKeyboardAnimationStateMETA.nanimationIndex(address()); } - /** @return the value of the {@link XrVirtualKeyboardAnimationStateMETA#fraction} field. */ - public float fraction() { return XrVirtualKeyboardAnimationStateMETA.nfraction(address()); } - - /** Sets the specified value to the {@link XrVirtualKeyboardAnimationStateMETA#type} field. */ - public XrVirtualKeyboardAnimationStateMETA.Buffer type(@NativeType("XrStructureType") int value) { XrVirtualKeyboardAnimationStateMETA.ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_ANIMATION_STATE_META TYPE_VIRTUAL_KEYBOARD_ANIMATION_STATE_META} value to the {@link XrVirtualKeyboardAnimationStateMETA#type} field. */ - public XrVirtualKeyboardAnimationStateMETA.Buffer type$Default() { return type(METAVirtualKeyboard.XR_TYPE_VIRTUAL_KEYBOARD_ANIMATION_STATE_META); } - /** Sets the specified value to the {@link XrVirtualKeyboardAnimationStateMETA#next} field. */ - public XrVirtualKeyboardAnimationStateMETA.Buffer next(@NativeType("void *") long value) { XrVirtualKeyboardAnimationStateMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrVirtualKeyboardAnimationStateMETA#animationIndex} field. */ - public XrVirtualKeyboardAnimationStateMETA.Buffer animationIndex(@NativeType("int32_t") int value) { XrVirtualKeyboardAnimationStateMETA.nanimationIndex(address(), value); return this; } - /** Sets the specified value to the {@link XrVirtualKeyboardAnimationStateMETA#fraction} field. */ - public XrVirtualKeyboardAnimationStateMETA.Buffer fraction(float value) { XrVirtualKeyboardAnimationStateMETA.nfraction(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardCreateInfoMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardCreateInfoMETA.java deleted file mode 100644 index a18b42b68f..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardCreateInfoMETA.java +++ /dev/null @@ -1,309 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Virtual keyboard creation info. - * - *
Description
- * - *

The struct is used for keyboard creation. Empty with the intention of future extension.

- * - *

The runtime must return {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED} if {@code supportsVirtualKeyboard} is {@link XR10#XR_FALSE FALSE} when checking the device compatibility.

- * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to using {@link XrVirtualKeyboardCreateInfoMETA}
  • - *
  • {@code type} must be {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_CREATE_INFO_META TYPE_VIRTUAL_KEYBOARD_CREATE_INFO_META}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
- * - *
See Also
- * - *

{@link METAVirtualKeyboard#xrCreateVirtualKeyboardMETA CreateVirtualKeyboardMETA}

- * - *

Layout

- * - *

- * struct XrVirtualKeyboardCreateInfoMETA {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- * }
- */ -public class XrVirtualKeyboardCreateInfoMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT; - - static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE) - ); - - SIZEOF = layout.getSize(); - ALIGNOF = layout.getAlignment(); - - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - } - - protected XrVirtualKeyboardCreateInfoMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrVirtualKeyboardCreateInfoMETA create(long address, @Nullable ByteBuffer container) { - return new XrVirtualKeyboardCreateInfoMETA(address, container); - } - - /** - * Creates a {@code XrVirtualKeyboardCreateInfoMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrVirtualKeyboardCreateInfoMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 XrVirtualKeyboardCreateInfoMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_CREATE_INFO_META TYPE_VIRTUAL_KEYBOARD_CREATE_INFO_META} value to the {@link #type} field. */ - public XrVirtualKeyboardCreateInfoMETA type$Default() { return type(METAVirtualKeyboard.XR_TYPE_VIRTUAL_KEYBOARD_CREATE_INFO_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrVirtualKeyboardCreateInfoMETA next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrVirtualKeyboardCreateInfoMETA set( - int type, - long next - ) { - type(type); - next(next); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrVirtualKeyboardCreateInfoMETA set(XrVirtualKeyboardCreateInfoMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrVirtualKeyboardCreateInfoMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrVirtualKeyboardCreateInfoMETA malloc() { - return new XrVirtualKeyboardCreateInfoMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrVirtualKeyboardCreateInfoMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrVirtualKeyboardCreateInfoMETA calloc() { - return new XrVirtualKeyboardCreateInfoMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrVirtualKeyboardCreateInfoMETA} instance allocated with {@link BufferUtils}. */ - public static XrVirtualKeyboardCreateInfoMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrVirtualKeyboardCreateInfoMETA(memAddress(container), container); - } - - /** Returns a new {@code XrVirtualKeyboardCreateInfoMETA} instance for the specified memory address. */ - public static XrVirtualKeyboardCreateInfoMETA create(long address) { - return new XrVirtualKeyboardCreateInfoMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrVirtualKeyboardCreateInfoMETA createSafe(long address) { - return address == NULL ? null : new XrVirtualKeyboardCreateInfoMETA(address, null); - } - - /** - * Returns a new {@link XrVirtualKeyboardCreateInfoMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardCreateInfoMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardCreateInfoMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardCreateInfoMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardCreateInfoMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardCreateInfoMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrVirtualKeyboardCreateInfoMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardCreateInfoMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrVirtualKeyboardCreateInfoMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrVirtualKeyboardCreateInfoMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrVirtualKeyboardCreateInfoMETA malloc(MemoryStack stack) { - return new XrVirtualKeyboardCreateInfoMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrVirtualKeyboardCreateInfoMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrVirtualKeyboardCreateInfoMETA calloc(MemoryStack stack) { - return new XrVirtualKeyboardCreateInfoMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrVirtualKeyboardCreateInfoMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardCreateInfoMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardCreateInfoMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardCreateInfoMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardCreateInfoMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrVirtualKeyboardCreateInfoMETA.NEXT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVirtualKeyboardCreateInfoMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrVirtualKeyboardCreateInfoMETA.NEXT, value); } - - // ----------------------------------- - - /** An array of {@link XrVirtualKeyboardCreateInfoMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrVirtualKeyboardCreateInfoMETA ELEMENT_FACTORY = XrVirtualKeyboardCreateInfoMETA.create(-1L); - - /** - * Creates a new {@code XrVirtualKeyboardCreateInfoMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrVirtualKeyboardCreateInfoMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrVirtualKeyboardCreateInfoMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrVirtualKeyboardCreateInfoMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVirtualKeyboardCreateInfoMETA.ntype(address()); } - /** @return the value of the {@link XrVirtualKeyboardCreateInfoMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrVirtualKeyboardCreateInfoMETA.nnext(address()); } - - /** Sets the specified value to the {@link XrVirtualKeyboardCreateInfoMETA#type} field. */ - public XrVirtualKeyboardCreateInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrVirtualKeyboardCreateInfoMETA.ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_CREATE_INFO_META TYPE_VIRTUAL_KEYBOARD_CREATE_INFO_META} value to the {@link XrVirtualKeyboardCreateInfoMETA#type} field. */ - public XrVirtualKeyboardCreateInfoMETA.Buffer type$Default() { return type(METAVirtualKeyboard.XR_TYPE_VIRTUAL_KEYBOARD_CREATE_INFO_META); } - /** Sets the specified value to the {@link XrVirtualKeyboardCreateInfoMETA#next} field. */ - public XrVirtualKeyboardCreateInfoMETA.Buffer next(@NativeType("void const *") long value) { XrVirtualKeyboardCreateInfoMETA.nnext(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardInputInfoMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardInputInfoMETA.java deleted file mode 100644 index 7fb7dfd029..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardInputInfoMETA.java +++ /dev/null @@ -1,390 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Virtual keyboard input info. - * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to using {@link XrVirtualKeyboardInputInfoMETA}
  • - *
  • {@code type} must be {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_INPUT_INFO_META TYPE_VIRTUAL_KEYBOARD_INPUT_INFO_META}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • {@code inputSource} must be a valid {@code XrVirtualKeyboardInputSourceMETA} value
  • - *
  • If {@code inputSpace} is not {@link XR10#XR_NULL_HANDLE NULL_HANDLE}, {@code inputSpace} must be a valid {@code XrSpace} handle
  • - *
  • {@code inputState} must be 0 or a valid combination of {@code XrVirtualKeyboardInputStateFlagBitsMETA} values
  • - *
- * - *
See Also
- * - *

{@link XrPosef}, {@link METAVirtualKeyboard#xrSendVirtualKeyboardInputMETA SendVirtualKeyboardInputMETA}

- * - *

Layout

- * - *

- * struct XrVirtualKeyboardInputInfoMETA {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     XrVirtualKeyboardInputSourceMETA {@link #inputSource};
- *     XrSpace {@link #inputSpace};
- *     {@link XrPosef XrPosef} {@link #inputPoseInSpace};
- *     XrVirtualKeyboardInputStateFlagsMETA {@link #inputState};
- * }
- */ -public class XrVirtualKeyboardInputInfoMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - INPUTSOURCE, - INPUTSPACE, - INPUTPOSEINSPACE, - INPUTSTATE; - - static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(POINTER_SIZE), - __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), - __member(8) - ); - - SIZEOF = layout.getSize(); - ALIGNOF = layout.getAlignment(); - - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - INPUTSOURCE = layout.offsetof(2); - INPUTSPACE = layout.offsetof(3); - INPUTPOSEINSPACE = layout.offsetof(4); - INPUTSTATE = layout.offsetof(5); - } - - protected XrVirtualKeyboardInputInfoMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrVirtualKeyboardInputInfoMETA create(long address, @Nullable ByteBuffer container) { - return new XrVirtualKeyboardInputInfoMETA(address, container); - } - - /** - * Creates a {@code XrVirtualKeyboardInputInfoMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrVirtualKeyboardInputInfoMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 enum of {@code XrVirtualKeyboardInputSourceMETA} describing the source device and input mode type. */ - @NativeType("XrVirtualKeyboardInputSourceMETA") - public int inputSource() { return ninputSource(address()); } - /** an {@code XrSpace} previously created by a function such as {@link XR10#xrCreateReferenceSpace CreateReferenceSpace}. */ - @Nullable - @NativeType("XrSpace") - public long inputSpace() { return ninputSpace(address()); } - /** an {@link XrPosef} defining the position and orientation of the input’s source pose within the natural reference frame of the input space. */ - public XrPosef inputPoseInSpace() { return ninputPoseInSpace(address()); } - /** a bitmask of {@code XrVirtualKeyboardInputStateFlagsMETA} describing the button or pinch state of the {@code inputSource}. */ - @NativeType("XrVirtualKeyboardInputStateFlagsMETA") - public long inputState() { return ninputState(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrVirtualKeyboardInputInfoMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_INPUT_INFO_META TYPE_VIRTUAL_KEYBOARD_INPUT_INFO_META} value to the {@link #type} field. */ - public XrVirtualKeyboardInputInfoMETA type$Default() { return type(METAVirtualKeyboard.XR_TYPE_VIRTUAL_KEYBOARD_INPUT_INFO_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrVirtualKeyboardInputInfoMETA next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #inputSource} field. */ - public XrVirtualKeyboardInputInfoMETA inputSource(@NativeType("XrVirtualKeyboardInputSourceMETA") int value) { ninputSource(address(), value); return this; } - /** Sets the specified value to the {@link #inputSpace} field. */ - public XrVirtualKeyboardInputInfoMETA inputSpace(@Nullable XrSpace value) { ninputSpace(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link #inputPoseInSpace} field. */ - public XrVirtualKeyboardInputInfoMETA inputPoseInSpace(XrPosef value) { ninputPoseInSpace(address(), value); return this; } - /** Passes the {@link #inputPoseInSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrVirtualKeyboardInputInfoMETA inputPoseInSpace(java.util.function.Consumer consumer) { consumer.accept(inputPoseInSpace()); return this; } - /** Sets the specified value to the {@link #inputState} field. */ - public XrVirtualKeyboardInputInfoMETA inputState(@NativeType("XrVirtualKeyboardInputStateFlagsMETA") long value) { ninputState(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrVirtualKeyboardInputInfoMETA set( - int type, - long next, - int inputSource, - XrSpace inputSpace, - XrPosef inputPoseInSpace, - long inputState - ) { - type(type); - next(next); - inputSource(inputSource); - inputSpace(inputSpace); - inputPoseInSpace(inputPoseInSpace); - inputState(inputState); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrVirtualKeyboardInputInfoMETA set(XrVirtualKeyboardInputInfoMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrVirtualKeyboardInputInfoMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrVirtualKeyboardInputInfoMETA malloc() { - return new XrVirtualKeyboardInputInfoMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrVirtualKeyboardInputInfoMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrVirtualKeyboardInputInfoMETA calloc() { - return new XrVirtualKeyboardInputInfoMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrVirtualKeyboardInputInfoMETA} instance allocated with {@link BufferUtils}. */ - public static XrVirtualKeyboardInputInfoMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrVirtualKeyboardInputInfoMETA(memAddress(container), container); - } - - /** Returns a new {@code XrVirtualKeyboardInputInfoMETA} instance for the specified memory address. */ - public static XrVirtualKeyboardInputInfoMETA create(long address) { - return new XrVirtualKeyboardInputInfoMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrVirtualKeyboardInputInfoMETA createSafe(long address) { - return address == NULL ? null : new XrVirtualKeyboardInputInfoMETA(address, null); - } - - /** - * Returns a new {@link XrVirtualKeyboardInputInfoMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardInputInfoMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardInputInfoMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardInputInfoMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardInputInfoMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardInputInfoMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrVirtualKeyboardInputInfoMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardInputInfoMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrVirtualKeyboardInputInfoMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrVirtualKeyboardInputInfoMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrVirtualKeyboardInputInfoMETA malloc(MemoryStack stack) { - return new XrVirtualKeyboardInputInfoMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrVirtualKeyboardInputInfoMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrVirtualKeyboardInputInfoMETA calloc(MemoryStack stack) { - return new XrVirtualKeyboardInputInfoMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrVirtualKeyboardInputInfoMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardInputInfoMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardInputInfoMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardInputInfoMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardInputInfoMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrVirtualKeyboardInputInfoMETA.NEXT); } - /** Unsafe version of {@link #inputSource}. */ - public static int ninputSource(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardInputInfoMETA.INPUTSOURCE); } - /** Unsafe version of {@link #inputSpace}. */ - public static long ninputSpace(long struct) { return memGetAddress(struct + XrVirtualKeyboardInputInfoMETA.INPUTSPACE); } - /** Unsafe version of {@link #inputPoseInSpace}. */ - public static XrPosef ninputPoseInSpace(long struct) { return XrPosef.create(struct + XrVirtualKeyboardInputInfoMETA.INPUTPOSEINSPACE); } - /** Unsafe version of {@link #inputState}. */ - public static long ninputState(long struct) { return UNSAFE.getLong(null, struct + XrVirtualKeyboardInputInfoMETA.INPUTSTATE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVirtualKeyboardInputInfoMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrVirtualKeyboardInputInfoMETA.NEXT, value); } - /** Unsafe version of {@link #inputSource(int) inputSource}. */ - public static void ninputSource(long struct, int value) { UNSAFE.putInt(null, struct + XrVirtualKeyboardInputInfoMETA.INPUTSOURCE, value); } - /** Unsafe version of {@link #inputSpace(XrSpace) inputSpace}. */ - public static void ninputSpace(long struct, @Nullable XrSpace value) { memPutAddress(struct + XrVirtualKeyboardInputInfoMETA.INPUTSPACE, memAddressSafe(value)); } - /** Unsafe version of {@link #inputPoseInSpace(XrPosef) inputPoseInSpace}. */ - public static void ninputPoseInSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrVirtualKeyboardInputInfoMETA.INPUTPOSEINSPACE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #inputState(long) inputState}. */ - public static void ninputState(long struct, long value) { UNSAFE.putLong(null, struct + XrVirtualKeyboardInputInfoMETA.INPUTSTATE, value); } - - // ----------------------------------- - - /** An array of {@link XrVirtualKeyboardInputInfoMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrVirtualKeyboardInputInfoMETA ELEMENT_FACTORY = XrVirtualKeyboardInputInfoMETA.create(-1L); - - /** - * Creates a new {@code XrVirtualKeyboardInputInfoMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrVirtualKeyboardInputInfoMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrVirtualKeyboardInputInfoMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrVirtualKeyboardInputInfoMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVirtualKeyboardInputInfoMETA.ntype(address()); } - /** @return the value of the {@link XrVirtualKeyboardInputInfoMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrVirtualKeyboardInputInfoMETA.nnext(address()); } - /** @return the value of the {@link XrVirtualKeyboardInputInfoMETA#inputSource} field. */ - @NativeType("XrVirtualKeyboardInputSourceMETA") - public int inputSource() { return XrVirtualKeyboardInputInfoMETA.ninputSource(address()); } - /** @return the value of the {@link XrVirtualKeyboardInputInfoMETA#inputSpace} field. */ - @Nullable - @NativeType("XrSpace") - public long inputSpace() { return XrVirtualKeyboardInputInfoMETA.ninputSpace(address()); } - /** @return a {@link XrPosef} view of the {@link XrVirtualKeyboardInputInfoMETA#inputPoseInSpace} field. */ - public XrPosef inputPoseInSpace() { return XrVirtualKeyboardInputInfoMETA.ninputPoseInSpace(address()); } - /** @return the value of the {@link XrVirtualKeyboardInputInfoMETA#inputState} field. */ - @NativeType("XrVirtualKeyboardInputStateFlagsMETA") - public long inputState() { return XrVirtualKeyboardInputInfoMETA.ninputState(address()); } - - /** Sets the specified value to the {@link XrVirtualKeyboardInputInfoMETA#type} field. */ - public XrVirtualKeyboardInputInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrVirtualKeyboardInputInfoMETA.ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_INPUT_INFO_META TYPE_VIRTUAL_KEYBOARD_INPUT_INFO_META} value to the {@link XrVirtualKeyboardInputInfoMETA#type} field. */ - public XrVirtualKeyboardInputInfoMETA.Buffer type$Default() { return type(METAVirtualKeyboard.XR_TYPE_VIRTUAL_KEYBOARD_INPUT_INFO_META); } - /** Sets the specified value to the {@link XrVirtualKeyboardInputInfoMETA#next} field. */ - public XrVirtualKeyboardInputInfoMETA.Buffer next(@NativeType("void const *") long value) { XrVirtualKeyboardInputInfoMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrVirtualKeyboardInputInfoMETA#inputSource} field. */ - public XrVirtualKeyboardInputInfoMETA.Buffer inputSource(@NativeType("XrVirtualKeyboardInputSourceMETA") int value) { XrVirtualKeyboardInputInfoMETA.ninputSource(address(), value); return this; } - /** Sets the specified value to the {@link XrVirtualKeyboardInputInfoMETA#inputSpace} field. */ - public XrVirtualKeyboardInputInfoMETA.Buffer inputSpace(@Nullable XrSpace value) { XrVirtualKeyboardInputInfoMETA.ninputSpace(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrVirtualKeyboardInputInfoMETA#inputPoseInSpace} field. */ - public XrVirtualKeyboardInputInfoMETA.Buffer inputPoseInSpace(XrPosef value) { XrVirtualKeyboardInputInfoMETA.ninputPoseInSpace(address(), value); return this; } - /** Passes the {@link XrVirtualKeyboardInputInfoMETA#inputPoseInSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrVirtualKeyboardInputInfoMETA.Buffer inputPoseInSpace(java.util.function.Consumer consumer) { consumer.accept(inputPoseInSpace()); return this; } - /** Sets the specified value to the {@link XrVirtualKeyboardInputInfoMETA#inputState} field. */ - public XrVirtualKeyboardInputInfoMETA.Buffer inputState(@NativeType("XrVirtualKeyboardInputStateFlagsMETA") long value) { XrVirtualKeyboardInputInfoMETA.ninputState(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardLocationInfoMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardLocationInfoMETA.java deleted file mode 100644 index 5b9c20fcb3..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardLocationInfoMETA.java +++ /dev/null @@ -1,399 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Virtual keyboard location info. - * - *
Description
- * - *

If {@code locationType} is set to {@link METAVirtualKeyboard#XR_VIRTUAL_KEYBOARD_LOCATION_TYPE_CUSTOM_META VIRTUAL_KEYBOARD_LOCATION_TYPE_CUSTOM_META}, the runtime must use the values {@code poseInSpace} and {@code scale} set by the application. Otherwise, the runtime must provide a default pose and scale and ignore {@code poseInSpace} and {@code scale}.

- * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to using {@link XrVirtualKeyboardLocationInfoMETA}
  • - *
  • {@code type} must be {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_LOCATION_INFO_META TYPE_VIRTUAL_KEYBOARD_LOCATION_INFO_META}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • {@code locationType} must be a valid {@code XrVirtualKeyboardLocationTypeMETA} value
  • - *
  • {@code space} must be a valid {@code XrSpace} handle
  • - *
- * - *
See Also
- * - *

{@link XrPosef}, {@link METAVirtualKeyboard#xrSuggestVirtualKeyboardLocationMETA SuggestVirtualKeyboardLocationMETA}

- * - *

Layout

- * - *

- * struct XrVirtualKeyboardLocationInfoMETA {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     XrVirtualKeyboardLocationTypeMETA {@link #locationType};
- *     XrSpace {@link #space};
- *     {@link XrPosef XrPosef} {@link #poseInSpace};
- *     float {@link #scale};
- * }
- */ -public class XrVirtualKeyboardLocationInfoMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - LOCATIONTYPE, - SPACE, - POSEINSPACE, - SCALE; - - static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(POINTER_SIZE), - __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), - __member(4) - ); - - SIZEOF = layout.getSize(); - ALIGNOF = layout.getAlignment(); - - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - LOCATIONTYPE = layout.offsetof(2); - SPACE = layout.offsetof(3); - POSEINSPACE = layout.offsetof(4); - SCALE = layout.offsetof(5); - } - - protected XrVirtualKeyboardLocationInfoMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrVirtualKeyboardLocationInfoMETA create(long address, @Nullable ByteBuffer container) { - return new XrVirtualKeyboardLocationInfoMETA(address, container); - } - - /** - * Creates a {@code XrVirtualKeyboardLocationInfoMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrVirtualKeyboardLocationInfoMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 XrVirtualKeyboardLocationTypeMETA} enum providing the location type. */ - @NativeType("XrVirtualKeyboardLocationTypeMETA") - public int locationType() { return nlocationType(address()); } - /** an {@code XrSpace} previously created by a function such as {@link XR10#xrCreateReferenceSpace CreateReferenceSpace}. */ - @NativeType("XrSpace") - public long space() { return nspace(address()); } - /** the desired pose if {@code locationType} is {@link METAVirtualKeyboard#XR_VIRTUAL_KEYBOARD_LOCATION_TYPE_CUSTOM_META VIRTUAL_KEYBOARD_LOCATION_TYPE_CUSTOM_META}. */ - public XrPosef poseInSpace() { return nposeInSpace(address()); } - /** a {@code float} value of the desired multiplicative scale between 0.0 and 1.0 if {@code locationType} is {@link METAVirtualKeyboard#XR_VIRTUAL_KEYBOARD_LOCATION_TYPE_CUSTOM_META VIRTUAL_KEYBOARD_LOCATION_TYPE_CUSTOM_META}. */ - public float scale() { return nscale(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrVirtualKeyboardLocationInfoMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_LOCATION_INFO_META TYPE_VIRTUAL_KEYBOARD_LOCATION_INFO_META} value to the {@link #type} field. */ - public XrVirtualKeyboardLocationInfoMETA type$Default() { return type(METAVirtualKeyboard.XR_TYPE_VIRTUAL_KEYBOARD_LOCATION_INFO_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrVirtualKeyboardLocationInfoMETA next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #locationType} field. */ - public XrVirtualKeyboardLocationInfoMETA locationType(@NativeType("XrVirtualKeyboardLocationTypeMETA") int value) { nlocationType(address(), value); return this; } - /** Sets the specified value to the {@link #space} field. */ - public XrVirtualKeyboardLocationInfoMETA space(XrSpace value) { nspace(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link #poseInSpace} field. */ - public XrVirtualKeyboardLocationInfoMETA poseInSpace(XrPosef value) { nposeInSpace(address(), value); return this; } - /** Passes the {@link #poseInSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrVirtualKeyboardLocationInfoMETA poseInSpace(java.util.function.Consumer consumer) { consumer.accept(poseInSpace()); return this; } - /** Sets the specified value to the {@link #scale} field. */ - public XrVirtualKeyboardLocationInfoMETA scale(float value) { nscale(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrVirtualKeyboardLocationInfoMETA set( - int type, - long next, - int locationType, - XrSpace space, - XrPosef poseInSpace, - float scale - ) { - type(type); - next(next); - locationType(locationType); - space(space); - poseInSpace(poseInSpace); - scale(scale); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrVirtualKeyboardLocationInfoMETA set(XrVirtualKeyboardLocationInfoMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrVirtualKeyboardLocationInfoMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrVirtualKeyboardLocationInfoMETA malloc() { - return new XrVirtualKeyboardLocationInfoMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrVirtualKeyboardLocationInfoMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrVirtualKeyboardLocationInfoMETA calloc() { - return new XrVirtualKeyboardLocationInfoMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrVirtualKeyboardLocationInfoMETA} instance allocated with {@link BufferUtils}. */ - public static XrVirtualKeyboardLocationInfoMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrVirtualKeyboardLocationInfoMETA(memAddress(container), container); - } - - /** Returns a new {@code XrVirtualKeyboardLocationInfoMETA} instance for the specified memory address. */ - public static XrVirtualKeyboardLocationInfoMETA create(long address) { - return new XrVirtualKeyboardLocationInfoMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrVirtualKeyboardLocationInfoMETA createSafe(long address) { - return address == NULL ? null : new XrVirtualKeyboardLocationInfoMETA(address, null); - } - - /** - * Returns a new {@link XrVirtualKeyboardLocationInfoMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardLocationInfoMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardLocationInfoMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardLocationInfoMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardLocationInfoMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardLocationInfoMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrVirtualKeyboardLocationInfoMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardLocationInfoMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrVirtualKeyboardLocationInfoMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrVirtualKeyboardLocationInfoMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrVirtualKeyboardLocationInfoMETA malloc(MemoryStack stack) { - return new XrVirtualKeyboardLocationInfoMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrVirtualKeyboardLocationInfoMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrVirtualKeyboardLocationInfoMETA calloc(MemoryStack stack) { - return new XrVirtualKeyboardLocationInfoMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrVirtualKeyboardLocationInfoMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardLocationInfoMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardLocationInfoMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardLocationInfoMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardLocationInfoMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrVirtualKeyboardLocationInfoMETA.NEXT); } - /** Unsafe version of {@link #locationType}. */ - public static int nlocationType(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardLocationInfoMETA.LOCATIONTYPE); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrVirtualKeyboardLocationInfoMETA.SPACE); } - /** Unsafe version of {@link #poseInSpace}. */ - public static XrPosef nposeInSpace(long struct) { return XrPosef.create(struct + XrVirtualKeyboardLocationInfoMETA.POSEINSPACE); } - /** Unsafe version of {@link #scale}. */ - public static float nscale(long struct) { return UNSAFE.getFloat(null, struct + XrVirtualKeyboardLocationInfoMETA.SCALE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVirtualKeyboardLocationInfoMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrVirtualKeyboardLocationInfoMETA.NEXT, value); } - /** Unsafe version of {@link #locationType(int) locationType}. */ - public static void nlocationType(long struct, int value) { UNSAFE.putInt(null, struct + XrVirtualKeyboardLocationInfoMETA.LOCATIONTYPE, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrVirtualKeyboardLocationInfoMETA.SPACE, value.address()); } - /** Unsafe version of {@link #poseInSpace(XrPosef) poseInSpace}. */ - public static void nposeInSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrVirtualKeyboardLocationInfoMETA.POSEINSPACE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #scale(float) scale}. */ - public static void nscale(long struct, float value) { UNSAFE.putFloat(null, struct + XrVirtualKeyboardLocationInfoMETA.SCALE, value); } - - /** - * Validates pointer members that should not be {@code NULL}. - * - * @param struct the struct to validate - */ - public static void validate(long struct) { - check(memGetAddress(struct + XrVirtualKeyboardLocationInfoMETA.SPACE)); - } - - // ----------------------------------- - - /** An array of {@link XrVirtualKeyboardLocationInfoMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrVirtualKeyboardLocationInfoMETA ELEMENT_FACTORY = XrVirtualKeyboardLocationInfoMETA.create(-1L); - - /** - * Creates a new {@code XrVirtualKeyboardLocationInfoMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrVirtualKeyboardLocationInfoMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrVirtualKeyboardLocationInfoMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrVirtualKeyboardLocationInfoMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVirtualKeyboardLocationInfoMETA.ntype(address()); } - /** @return the value of the {@link XrVirtualKeyboardLocationInfoMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrVirtualKeyboardLocationInfoMETA.nnext(address()); } - /** @return the value of the {@link XrVirtualKeyboardLocationInfoMETA#locationType} field. */ - @NativeType("XrVirtualKeyboardLocationTypeMETA") - public int locationType() { return XrVirtualKeyboardLocationInfoMETA.nlocationType(address()); } - /** @return the value of the {@link XrVirtualKeyboardLocationInfoMETA#space} field. */ - @NativeType("XrSpace") - public long space() { return XrVirtualKeyboardLocationInfoMETA.nspace(address()); } - /** @return a {@link XrPosef} view of the {@link XrVirtualKeyboardLocationInfoMETA#poseInSpace} field. */ - public XrPosef poseInSpace() { return XrVirtualKeyboardLocationInfoMETA.nposeInSpace(address()); } - /** @return the value of the {@link XrVirtualKeyboardLocationInfoMETA#scale} field. */ - public float scale() { return XrVirtualKeyboardLocationInfoMETA.nscale(address()); } - - /** Sets the specified value to the {@link XrVirtualKeyboardLocationInfoMETA#type} field. */ - public XrVirtualKeyboardLocationInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrVirtualKeyboardLocationInfoMETA.ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_LOCATION_INFO_META TYPE_VIRTUAL_KEYBOARD_LOCATION_INFO_META} value to the {@link XrVirtualKeyboardLocationInfoMETA#type} field. */ - public XrVirtualKeyboardLocationInfoMETA.Buffer type$Default() { return type(METAVirtualKeyboard.XR_TYPE_VIRTUAL_KEYBOARD_LOCATION_INFO_META); } - /** Sets the specified value to the {@link XrVirtualKeyboardLocationInfoMETA#next} field. */ - public XrVirtualKeyboardLocationInfoMETA.Buffer next(@NativeType("void const *") long value) { XrVirtualKeyboardLocationInfoMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrVirtualKeyboardLocationInfoMETA#locationType} field. */ - public XrVirtualKeyboardLocationInfoMETA.Buffer locationType(@NativeType("XrVirtualKeyboardLocationTypeMETA") int value) { XrVirtualKeyboardLocationInfoMETA.nlocationType(address(), value); return this; } - /** Sets the specified value to the {@link XrVirtualKeyboardLocationInfoMETA#space} field. */ - public XrVirtualKeyboardLocationInfoMETA.Buffer space(XrSpace value) { XrVirtualKeyboardLocationInfoMETA.nspace(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrVirtualKeyboardLocationInfoMETA#poseInSpace} field. */ - public XrVirtualKeyboardLocationInfoMETA.Buffer poseInSpace(XrPosef value) { XrVirtualKeyboardLocationInfoMETA.nposeInSpace(address(), value); return this; } - /** Passes the {@link XrVirtualKeyboardLocationInfoMETA#poseInSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrVirtualKeyboardLocationInfoMETA.Buffer poseInSpace(java.util.function.Consumer consumer) { consumer.accept(poseInSpace()); return this; } - /** Sets the specified value to the {@link XrVirtualKeyboardLocationInfoMETA#scale} field. */ - public XrVirtualKeyboardLocationInfoMETA.Buffer scale(float value) { XrVirtualKeyboardLocationInfoMETA.nscale(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardMETA.java deleted file mode 100644 index ca521eb612..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardMETA.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * MACHINE GENERATED FILE, DO NOT EDIT - */ -package org.lwjgl.openxr; - -/** Wraps an {@code XrVirtualKeyboardMETA} handle. */ -public class XrVirtualKeyboardMETA extends DispatchableHandle { - - private final XrSession session; - - /** - * Creates an {@code XrVirtualKeyboardMETA} using the specified native handle and {@code XrSession}. - * - * @param handle the native {@code XrVirtualKeyboardMETA} handle - * @param session the {@code XrSession} from which {@code handle} was created - */ - public XrVirtualKeyboardMETA(long handle, XrSession session) { - super(handle, session.getCapabilities()); - this.session = session; - } - - /** Returns the {@code XrSession} from which this handle was created. */ - public XrSession getSession() { - return session; - } - -} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardModelAnimationStatesMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardModelAnimationStatesMETA.java deleted file mode 100644 index 61681b6f77..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardModelAnimationStatesMETA.java +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Virtual keyboard model animation states. - * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to using {@link XrVirtualKeyboardModelAnimationStatesMETA}
  • - *
  • {@code type} must be {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_MODEL_ANIMATION_STATES_META TYPE_VIRTUAL_KEYBOARD_MODEL_ANIMATION_STATES_META}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • If {@code stateCapacityInput} is not 0, {@code states} must be a pointer to an array of {@code stateCapacityInput} {@link XrVirtualKeyboardAnimationStateMETA} structures
  • - *
- * - *
See Also
- * - *

{@link XrVirtualKeyboardAnimationStateMETA}, {@link METAVirtualKeyboard#xrGetVirtualKeyboardModelAnimationStatesMETA GetVirtualKeyboardModelAnimationStatesMETA}

- * - *

Layout

- * - *

- * struct XrVirtualKeyboardModelAnimationStatesMETA {
- *     XrStructureType {@link #type};
- *     void * {@link #next};
- *     uint32_t {@link #stateCapacityInput};
- *     uint32_t {@link #stateCountOutput};
- *     {@link XrVirtualKeyboardAnimationStateMETA XrVirtualKeyboardAnimationStateMETA} * {@link #states};
- * }
- */ -public class XrVirtualKeyboardModelAnimationStatesMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - STATECAPACITYINPUT, - STATECOUNTOUTPUT, - STATES; - - static { - 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); - STATECAPACITYINPUT = layout.offsetof(2); - STATECOUNTOUTPUT = layout.offsetof(3); - STATES = layout.offsetof(4); - } - - protected XrVirtualKeyboardModelAnimationStatesMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrVirtualKeyboardModelAnimationStatesMETA create(long address, @Nullable ByteBuffer container) { - return new XrVirtualKeyboardModelAnimationStatesMETA(address, container); - } - - /** - * Creates a {@code XrVirtualKeyboardModelAnimationStatesMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrVirtualKeyboardModelAnimationStatesMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 states} array, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int stateCapacityInput() { return nstateCapacityInput(address()); } - /** filled in by the runtime with the count of {@link XrVirtualKeyboardAnimationStateMETA} written or the required capacity in the case that {@code stateCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int stateCountOutput() { return nstateCountOutput(address()); } - /** the array of {@link XrVirtualKeyboardAnimationStateMETA} to apply to the model. */ - @Nullable - @NativeType("XrVirtualKeyboardAnimationStateMETA *") - public XrVirtualKeyboardAnimationStateMETA.Buffer states() { return nstates(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrVirtualKeyboardModelAnimationStatesMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_MODEL_ANIMATION_STATES_META TYPE_VIRTUAL_KEYBOARD_MODEL_ANIMATION_STATES_META} value to the {@link #type} field. */ - public XrVirtualKeyboardModelAnimationStatesMETA type$Default() { return type(METAVirtualKeyboard.XR_TYPE_VIRTUAL_KEYBOARD_MODEL_ANIMATION_STATES_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrVirtualKeyboardModelAnimationStatesMETA next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #stateCapacityInput} field. */ - public XrVirtualKeyboardModelAnimationStatesMETA stateCapacityInput(@NativeType("uint32_t") int value) { nstateCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #stateCountOutput} field. */ - public XrVirtualKeyboardModelAnimationStatesMETA stateCountOutput(@NativeType("uint32_t") int value) { nstateCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrVirtualKeyboardAnimationStateMETA.Buffer} to the {@link #states} field. */ - public XrVirtualKeyboardModelAnimationStatesMETA states(@Nullable @NativeType("XrVirtualKeyboardAnimationStateMETA *") XrVirtualKeyboardAnimationStateMETA.Buffer value) { nstates(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrVirtualKeyboardModelAnimationStatesMETA set( - int type, - long next, - int stateCapacityInput, - int stateCountOutput, - @Nullable XrVirtualKeyboardAnimationStateMETA.Buffer states - ) { - type(type); - next(next); - stateCapacityInput(stateCapacityInput); - stateCountOutput(stateCountOutput); - states(states); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrVirtualKeyboardModelAnimationStatesMETA set(XrVirtualKeyboardModelAnimationStatesMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrVirtualKeyboardModelAnimationStatesMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrVirtualKeyboardModelAnimationStatesMETA malloc() { - return new XrVirtualKeyboardModelAnimationStatesMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrVirtualKeyboardModelAnimationStatesMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrVirtualKeyboardModelAnimationStatesMETA calloc() { - return new XrVirtualKeyboardModelAnimationStatesMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrVirtualKeyboardModelAnimationStatesMETA} instance allocated with {@link BufferUtils}. */ - public static XrVirtualKeyboardModelAnimationStatesMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrVirtualKeyboardModelAnimationStatesMETA(memAddress(container), container); - } - - /** Returns a new {@code XrVirtualKeyboardModelAnimationStatesMETA} instance for the specified memory address. */ - public static XrVirtualKeyboardModelAnimationStatesMETA create(long address) { - return new XrVirtualKeyboardModelAnimationStatesMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrVirtualKeyboardModelAnimationStatesMETA createSafe(long address) { - return address == NULL ? null : new XrVirtualKeyboardModelAnimationStatesMETA(address, null); - } - - /** - * Returns a new {@link XrVirtualKeyboardModelAnimationStatesMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardModelAnimationStatesMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardModelAnimationStatesMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardModelAnimationStatesMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardModelAnimationStatesMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardModelAnimationStatesMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrVirtualKeyboardModelAnimationStatesMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardModelAnimationStatesMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrVirtualKeyboardModelAnimationStatesMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrVirtualKeyboardModelAnimationStatesMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrVirtualKeyboardModelAnimationStatesMETA malloc(MemoryStack stack) { - return new XrVirtualKeyboardModelAnimationStatesMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrVirtualKeyboardModelAnimationStatesMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrVirtualKeyboardModelAnimationStatesMETA calloc(MemoryStack stack) { - return new XrVirtualKeyboardModelAnimationStatesMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrVirtualKeyboardModelAnimationStatesMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardModelAnimationStatesMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardModelAnimationStatesMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardModelAnimationStatesMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardModelAnimationStatesMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrVirtualKeyboardModelAnimationStatesMETA.NEXT); } - /** Unsafe version of {@link #stateCapacityInput}. */ - public static int nstateCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardModelAnimationStatesMETA.STATECAPACITYINPUT); } - /** Unsafe version of {@link #stateCountOutput}. */ - public static int nstateCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardModelAnimationStatesMETA.STATECOUNTOUTPUT); } - /** Unsafe version of {@link #states}. */ - @Nullable public static XrVirtualKeyboardAnimationStateMETA.Buffer nstates(long struct) { return XrVirtualKeyboardAnimationStateMETA.createSafe(memGetAddress(struct + XrVirtualKeyboardModelAnimationStatesMETA.STATES), nstateCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVirtualKeyboardModelAnimationStatesMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrVirtualKeyboardModelAnimationStatesMETA.NEXT, value); } - /** Sets the specified value to the {@code stateCapacityInput} field of the specified {@code struct}. */ - public static void nstateCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrVirtualKeyboardModelAnimationStatesMETA.STATECAPACITYINPUT, value); } - /** Unsafe version of {@link #stateCountOutput(int) stateCountOutput}. */ - public static void nstateCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrVirtualKeyboardModelAnimationStatesMETA.STATECOUNTOUTPUT, value); } - /** Unsafe version of {@link #states(XrVirtualKeyboardAnimationStateMETA.Buffer) states}. */ - public static void nstates(long struct, @Nullable XrVirtualKeyboardAnimationStateMETA.Buffer value) { memPutAddress(struct + XrVirtualKeyboardModelAnimationStatesMETA.STATES, memAddressSafe(value)); if (value != null) { nstateCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- - - /** An array of {@link XrVirtualKeyboardModelAnimationStatesMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrVirtualKeyboardModelAnimationStatesMETA ELEMENT_FACTORY = XrVirtualKeyboardModelAnimationStatesMETA.create(-1L); - - /** - * Creates a new {@code XrVirtualKeyboardModelAnimationStatesMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrVirtualKeyboardModelAnimationStatesMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrVirtualKeyboardModelAnimationStatesMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrVirtualKeyboardModelAnimationStatesMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVirtualKeyboardModelAnimationStatesMETA.ntype(address()); } - /** @return the value of the {@link XrVirtualKeyboardModelAnimationStatesMETA#next} field. */ - @NativeType("void *") - public long next() { return XrVirtualKeyboardModelAnimationStatesMETA.nnext(address()); } - /** @return the value of the {@link XrVirtualKeyboardModelAnimationStatesMETA#stateCapacityInput} field. */ - @NativeType("uint32_t") - public int stateCapacityInput() { return XrVirtualKeyboardModelAnimationStatesMETA.nstateCapacityInput(address()); } - /** @return the value of the {@link XrVirtualKeyboardModelAnimationStatesMETA#stateCountOutput} field. */ - @NativeType("uint32_t") - public int stateCountOutput() { return XrVirtualKeyboardModelAnimationStatesMETA.nstateCountOutput(address()); } - /** @return a {@link XrVirtualKeyboardAnimationStateMETA.Buffer} view of the struct array pointed to by the {@link XrVirtualKeyboardModelAnimationStatesMETA#states} field. */ - @Nullable - @NativeType("XrVirtualKeyboardAnimationStateMETA *") - public XrVirtualKeyboardAnimationStateMETA.Buffer states() { return XrVirtualKeyboardModelAnimationStatesMETA.nstates(address()); } - - /** Sets the specified value to the {@link XrVirtualKeyboardModelAnimationStatesMETA#type} field. */ - public XrVirtualKeyboardModelAnimationStatesMETA.Buffer type(@NativeType("XrStructureType") int value) { XrVirtualKeyboardModelAnimationStatesMETA.ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_MODEL_ANIMATION_STATES_META TYPE_VIRTUAL_KEYBOARD_MODEL_ANIMATION_STATES_META} value to the {@link XrVirtualKeyboardModelAnimationStatesMETA#type} field. */ - public XrVirtualKeyboardModelAnimationStatesMETA.Buffer type$Default() { return type(METAVirtualKeyboard.XR_TYPE_VIRTUAL_KEYBOARD_MODEL_ANIMATION_STATES_META); } - /** Sets the specified value to the {@link XrVirtualKeyboardModelAnimationStatesMETA#next} field. */ - public XrVirtualKeyboardModelAnimationStatesMETA.Buffer next(@NativeType("void *") long value) { XrVirtualKeyboardModelAnimationStatesMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrVirtualKeyboardModelAnimationStatesMETA#stateCapacityInput} field. */ - public XrVirtualKeyboardModelAnimationStatesMETA.Buffer stateCapacityInput(@NativeType("uint32_t") int value) { XrVirtualKeyboardModelAnimationStatesMETA.nstateCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrVirtualKeyboardModelAnimationStatesMETA#stateCountOutput} field. */ - public XrVirtualKeyboardModelAnimationStatesMETA.Buffer stateCountOutput(@NativeType("uint32_t") int value) { XrVirtualKeyboardModelAnimationStatesMETA.nstateCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrVirtualKeyboardAnimationStateMETA.Buffer} to the {@link XrVirtualKeyboardModelAnimationStatesMETA#states} field. */ - public XrVirtualKeyboardModelAnimationStatesMETA.Buffer states(@Nullable @NativeType("XrVirtualKeyboardAnimationStateMETA *") XrVirtualKeyboardAnimationStateMETA.Buffer value) { XrVirtualKeyboardModelAnimationStatesMETA.nstates(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardModelVisibilitySetInfoMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardModelVisibilitySetInfoMETA.java deleted file mode 100644 index e44114f704..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardModelVisibilitySetInfoMETA.java +++ /dev/null @@ -1,323 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Virtual keyboard model visibility. - * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to using {@link XrVirtualKeyboardModelVisibilitySetInfoMETA}
  • - *
  • {@code type} must be {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_MODEL_VISIBILITY_SET_INFO_META TYPE_VIRTUAL_KEYBOARD_MODEL_VISIBILITY_SET_INFO_META}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
- * - *
See Also
- * - *

{@link METAVirtualKeyboard#xrSetVirtualKeyboardModelVisibilityMETA SetVirtualKeyboardModelVisibilityMETA}

- * - *

Layout

- * - *

- * struct XrVirtualKeyboardModelVisibilitySetInfoMETA {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     XrBool32 {@link #visible};
- * }
- */ -public class XrVirtualKeyboardModelVisibilitySetInfoMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - VISIBLE; - - static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4) - ); - - SIZEOF = layout.getSize(); - ALIGNOF = layout.getAlignment(); - - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - VISIBLE = layout.offsetof(2); - } - - protected XrVirtualKeyboardModelVisibilitySetInfoMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrVirtualKeyboardModelVisibilitySetInfoMETA create(long address, @Nullable ByteBuffer container) { - return new XrVirtualKeyboardModelVisibilitySetInfoMETA(address, container); - } - - /** - * Creates a {@code XrVirtualKeyboardModelVisibilitySetInfoMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrVirtualKeyboardModelVisibilitySetInfoMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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} that controls whether to show or hide the keyboard. */ - @NativeType("XrBool32") - public boolean visible() { return nvisible(address()) != 0; } - - /** Sets the specified value to the {@link #type} field. */ - public XrVirtualKeyboardModelVisibilitySetInfoMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_MODEL_VISIBILITY_SET_INFO_META TYPE_VIRTUAL_KEYBOARD_MODEL_VISIBILITY_SET_INFO_META} value to the {@link #type} field. */ - public XrVirtualKeyboardModelVisibilitySetInfoMETA type$Default() { return type(METAVirtualKeyboard.XR_TYPE_VIRTUAL_KEYBOARD_MODEL_VISIBILITY_SET_INFO_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrVirtualKeyboardModelVisibilitySetInfoMETA next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #visible} field. */ - public XrVirtualKeyboardModelVisibilitySetInfoMETA visible(@NativeType("XrBool32") boolean value) { nvisible(address(), value ? 1 : 0); return this; } - - /** Initializes this struct with the specified values. */ - public XrVirtualKeyboardModelVisibilitySetInfoMETA set( - int type, - long next, - boolean visible - ) { - type(type); - next(next); - visible(visible); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrVirtualKeyboardModelVisibilitySetInfoMETA set(XrVirtualKeyboardModelVisibilitySetInfoMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrVirtualKeyboardModelVisibilitySetInfoMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrVirtualKeyboardModelVisibilitySetInfoMETA malloc() { - return new XrVirtualKeyboardModelVisibilitySetInfoMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrVirtualKeyboardModelVisibilitySetInfoMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrVirtualKeyboardModelVisibilitySetInfoMETA calloc() { - return new XrVirtualKeyboardModelVisibilitySetInfoMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrVirtualKeyboardModelVisibilitySetInfoMETA} instance allocated with {@link BufferUtils}. */ - public static XrVirtualKeyboardModelVisibilitySetInfoMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrVirtualKeyboardModelVisibilitySetInfoMETA(memAddress(container), container); - } - - /** Returns a new {@code XrVirtualKeyboardModelVisibilitySetInfoMETA} instance for the specified memory address. */ - public static XrVirtualKeyboardModelVisibilitySetInfoMETA create(long address) { - return new XrVirtualKeyboardModelVisibilitySetInfoMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrVirtualKeyboardModelVisibilitySetInfoMETA createSafe(long address) { - return address == NULL ? null : new XrVirtualKeyboardModelVisibilitySetInfoMETA(address, null); - } - - /** - * Returns a new {@link XrVirtualKeyboardModelVisibilitySetInfoMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardModelVisibilitySetInfoMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardModelVisibilitySetInfoMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardModelVisibilitySetInfoMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardModelVisibilitySetInfoMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardModelVisibilitySetInfoMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrVirtualKeyboardModelVisibilitySetInfoMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardModelVisibilitySetInfoMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrVirtualKeyboardModelVisibilitySetInfoMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrVirtualKeyboardModelVisibilitySetInfoMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrVirtualKeyboardModelVisibilitySetInfoMETA malloc(MemoryStack stack) { - return new XrVirtualKeyboardModelVisibilitySetInfoMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrVirtualKeyboardModelVisibilitySetInfoMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrVirtualKeyboardModelVisibilitySetInfoMETA calloc(MemoryStack stack) { - return new XrVirtualKeyboardModelVisibilitySetInfoMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrVirtualKeyboardModelVisibilitySetInfoMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardModelVisibilitySetInfoMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardModelVisibilitySetInfoMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardModelVisibilitySetInfoMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardModelVisibilitySetInfoMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrVirtualKeyboardModelVisibilitySetInfoMETA.NEXT); } - /** Unsafe version of {@link #visible}. */ - public static int nvisible(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardModelVisibilitySetInfoMETA.VISIBLE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVirtualKeyboardModelVisibilitySetInfoMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrVirtualKeyboardModelVisibilitySetInfoMETA.NEXT, value); } - /** Unsafe version of {@link #visible(boolean) visible}. */ - public static void nvisible(long struct, int value) { UNSAFE.putInt(null, struct + XrVirtualKeyboardModelVisibilitySetInfoMETA.VISIBLE, value); } - - // ----------------------------------- - - /** An array of {@link XrVirtualKeyboardModelVisibilitySetInfoMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrVirtualKeyboardModelVisibilitySetInfoMETA ELEMENT_FACTORY = XrVirtualKeyboardModelVisibilitySetInfoMETA.create(-1L); - - /** - * Creates a new {@code XrVirtualKeyboardModelVisibilitySetInfoMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrVirtualKeyboardModelVisibilitySetInfoMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrVirtualKeyboardModelVisibilitySetInfoMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrVirtualKeyboardModelVisibilitySetInfoMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVirtualKeyboardModelVisibilitySetInfoMETA.ntype(address()); } - /** @return the value of the {@link XrVirtualKeyboardModelVisibilitySetInfoMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrVirtualKeyboardModelVisibilitySetInfoMETA.nnext(address()); } - /** @return the value of the {@link XrVirtualKeyboardModelVisibilitySetInfoMETA#visible} field. */ - @NativeType("XrBool32") - public boolean visible() { return XrVirtualKeyboardModelVisibilitySetInfoMETA.nvisible(address()) != 0; } - - /** Sets the specified value to the {@link XrVirtualKeyboardModelVisibilitySetInfoMETA#type} field. */ - public XrVirtualKeyboardModelVisibilitySetInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrVirtualKeyboardModelVisibilitySetInfoMETA.ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_MODEL_VISIBILITY_SET_INFO_META TYPE_VIRTUAL_KEYBOARD_MODEL_VISIBILITY_SET_INFO_META} value to the {@link XrVirtualKeyboardModelVisibilitySetInfoMETA#type} field. */ - public XrVirtualKeyboardModelVisibilitySetInfoMETA.Buffer type$Default() { return type(METAVirtualKeyboard.XR_TYPE_VIRTUAL_KEYBOARD_MODEL_VISIBILITY_SET_INFO_META); } - /** Sets the specified value to the {@link XrVirtualKeyboardModelVisibilitySetInfoMETA#next} field. */ - public XrVirtualKeyboardModelVisibilitySetInfoMETA.Buffer next(@NativeType("void const *") long value) { XrVirtualKeyboardModelVisibilitySetInfoMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrVirtualKeyboardModelVisibilitySetInfoMETA#visible} field. */ - public XrVirtualKeyboardModelVisibilitySetInfoMETA.Buffer visible(@NativeType("XrBool32") boolean value) { XrVirtualKeyboardModelVisibilitySetInfoMETA.nvisible(address(), value ? 1 : 0); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardSpaceCreateInfoMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardSpaceCreateInfoMETA.java deleted file mode 100644 index b59fffcb51..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardSpaceCreateInfoMETA.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Virtual keyboard space creation info. - * - *
Description
- * - *

If {@code locationType} is set to {@link METAVirtualKeyboard#XR_VIRTUAL_KEYBOARD_LOCATION_TYPE_CUSTOM_META VIRTUAL_KEYBOARD_LOCATION_TYPE_CUSTOM_META}, the runtime must use the value {@code poseInSpace} set by the application. Otherwise, the runtime must provide a default pose and ignore {@code poseInSpace}. In all cases, the runtime must default the scale to 1.0.

- * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to using {@link XrVirtualKeyboardSpaceCreateInfoMETA}
  • - *
  • {@code type} must be {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_SPACE_CREATE_INFO_META TYPE_VIRTUAL_KEYBOARD_SPACE_CREATE_INFO_META}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • {@code locationType} must be a valid {@code XrVirtualKeyboardLocationTypeMETA} value
  • - *
  • {@code space} must be a valid {@code XrSpace} handle
  • - *
- * - *
See Also
- * - *

{@link XrPosef}, {@link METAVirtualKeyboard#xrCreateVirtualKeyboardSpaceMETA CreateVirtualKeyboardSpaceMETA}

- * - *

Layout

- * - *

- * struct XrVirtualKeyboardSpaceCreateInfoMETA {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     XrVirtualKeyboardLocationTypeMETA {@link #locationType};
- *     XrSpace {@link #space};
- *     {@link XrPosef XrPosef} {@link #poseInSpace};
- * }
- */ -public class XrVirtualKeyboardSpaceCreateInfoMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - LOCATIONTYPE, - SPACE, - POSEINSPACE; - - static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(POINTER_SIZE), - __member(XrPosef.SIZEOF, XrPosef.ALIGNOF) - ); - - SIZEOF = layout.getSize(); - ALIGNOF = layout.getAlignment(); - - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - LOCATIONTYPE = layout.offsetof(2); - SPACE = layout.offsetof(3); - POSEINSPACE = layout.offsetof(4); - } - - protected XrVirtualKeyboardSpaceCreateInfoMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrVirtualKeyboardSpaceCreateInfoMETA create(long address, @Nullable ByteBuffer container) { - return new XrVirtualKeyboardSpaceCreateInfoMETA(address, container); - } - - /** - * Creates a {@code XrVirtualKeyboardSpaceCreateInfoMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrVirtualKeyboardSpaceCreateInfoMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 XrVirtualKeyboardLocationTypeMETA} enum providing the location type. */ - @NativeType("XrVirtualKeyboardLocationTypeMETA") - public int locationType() { return nlocationType(address()); } - /** an {@code XrSpace} previously created by a function such as {@link XR10#xrCreateReferenceSpace CreateReferenceSpace}. */ - @NativeType("XrSpace") - public long space() { return nspace(address()); } - /** the desired pose if {@code locationType} is {@link METAVirtualKeyboard#XR_VIRTUAL_KEYBOARD_LOCATION_TYPE_CUSTOM_META VIRTUAL_KEYBOARD_LOCATION_TYPE_CUSTOM_META}. */ - public XrPosef poseInSpace() { return nposeInSpace(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrVirtualKeyboardSpaceCreateInfoMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_SPACE_CREATE_INFO_META TYPE_VIRTUAL_KEYBOARD_SPACE_CREATE_INFO_META} value to the {@link #type} field. */ - public XrVirtualKeyboardSpaceCreateInfoMETA type$Default() { return type(METAVirtualKeyboard.XR_TYPE_VIRTUAL_KEYBOARD_SPACE_CREATE_INFO_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrVirtualKeyboardSpaceCreateInfoMETA next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #locationType} field. */ - public XrVirtualKeyboardSpaceCreateInfoMETA locationType(@NativeType("XrVirtualKeyboardLocationTypeMETA") int value) { nlocationType(address(), value); return this; } - /** Sets the specified value to the {@link #space} field. */ - public XrVirtualKeyboardSpaceCreateInfoMETA space(XrSpace value) { nspace(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link #poseInSpace} field. */ - public XrVirtualKeyboardSpaceCreateInfoMETA poseInSpace(XrPosef value) { nposeInSpace(address(), value); return this; } - /** Passes the {@link #poseInSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrVirtualKeyboardSpaceCreateInfoMETA poseInSpace(java.util.function.Consumer consumer) { consumer.accept(poseInSpace()); return this; } - - /** Initializes this struct with the specified values. */ - public XrVirtualKeyboardSpaceCreateInfoMETA set( - int type, - long next, - int locationType, - XrSpace space, - XrPosef poseInSpace - ) { - type(type); - next(next); - locationType(locationType); - space(space); - poseInSpace(poseInSpace); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrVirtualKeyboardSpaceCreateInfoMETA set(XrVirtualKeyboardSpaceCreateInfoMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrVirtualKeyboardSpaceCreateInfoMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrVirtualKeyboardSpaceCreateInfoMETA malloc() { - return new XrVirtualKeyboardSpaceCreateInfoMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrVirtualKeyboardSpaceCreateInfoMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrVirtualKeyboardSpaceCreateInfoMETA calloc() { - return new XrVirtualKeyboardSpaceCreateInfoMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrVirtualKeyboardSpaceCreateInfoMETA} instance allocated with {@link BufferUtils}. */ - public static XrVirtualKeyboardSpaceCreateInfoMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrVirtualKeyboardSpaceCreateInfoMETA(memAddress(container), container); - } - - /** Returns a new {@code XrVirtualKeyboardSpaceCreateInfoMETA} instance for the specified memory address. */ - public static XrVirtualKeyboardSpaceCreateInfoMETA create(long address) { - return new XrVirtualKeyboardSpaceCreateInfoMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrVirtualKeyboardSpaceCreateInfoMETA createSafe(long address) { - return address == NULL ? null : new XrVirtualKeyboardSpaceCreateInfoMETA(address, null); - } - - /** - * Returns a new {@link XrVirtualKeyboardSpaceCreateInfoMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardSpaceCreateInfoMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardSpaceCreateInfoMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardSpaceCreateInfoMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardSpaceCreateInfoMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardSpaceCreateInfoMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrVirtualKeyboardSpaceCreateInfoMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardSpaceCreateInfoMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrVirtualKeyboardSpaceCreateInfoMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrVirtualKeyboardSpaceCreateInfoMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrVirtualKeyboardSpaceCreateInfoMETA malloc(MemoryStack stack) { - return new XrVirtualKeyboardSpaceCreateInfoMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrVirtualKeyboardSpaceCreateInfoMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrVirtualKeyboardSpaceCreateInfoMETA calloc(MemoryStack stack) { - return new XrVirtualKeyboardSpaceCreateInfoMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrVirtualKeyboardSpaceCreateInfoMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardSpaceCreateInfoMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardSpaceCreateInfoMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardSpaceCreateInfoMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardSpaceCreateInfoMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrVirtualKeyboardSpaceCreateInfoMETA.NEXT); } - /** Unsafe version of {@link #locationType}. */ - public static int nlocationType(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardSpaceCreateInfoMETA.LOCATIONTYPE); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrVirtualKeyboardSpaceCreateInfoMETA.SPACE); } - /** Unsafe version of {@link #poseInSpace}. */ - public static XrPosef nposeInSpace(long struct) { return XrPosef.create(struct + XrVirtualKeyboardSpaceCreateInfoMETA.POSEINSPACE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVirtualKeyboardSpaceCreateInfoMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrVirtualKeyboardSpaceCreateInfoMETA.NEXT, value); } - /** Unsafe version of {@link #locationType(int) locationType}. */ - public static void nlocationType(long struct, int value) { UNSAFE.putInt(null, struct + XrVirtualKeyboardSpaceCreateInfoMETA.LOCATIONTYPE, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrVirtualKeyboardSpaceCreateInfoMETA.SPACE, value.address()); } - /** Unsafe version of {@link #poseInSpace(XrPosef) poseInSpace}. */ - public static void nposeInSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrVirtualKeyboardSpaceCreateInfoMETA.POSEINSPACE, XrPosef.SIZEOF); } - - /** - * Validates pointer members that should not be {@code NULL}. - * - * @param struct the struct to validate - */ - public static void validate(long struct) { - check(memGetAddress(struct + XrVirtualKeyboardSpaceCreateInfoMETA.SPACE)); - } - - // ----------------------------------- - - /** An array of {@link XrVirtualKeyboardSpaceCreateInfoMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrVirtualKeyboardSpaceCreateInfoMETA ELEMENT_FACTORY = XrVirtualKeyboardSpaceCreateInfoMETA.create(-1L); - - /** - * Creates a new {@code XrVirtualKeyboardSpaceCreateInfoMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrVirtualKeyboardSpaceCreateInfoMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrVirtualKeyboardSpaceCreateInfoMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrVirtualKeyboardSpaceCreateInfoMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVirtualKeyboardSpaceCreateInfoMETA.ntype(address()); } - /** @return the value of the {@link XrVirtualKeyboardSpaceCreateInfoMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrVirtualKeyboardSpaceCreateInfoMETA.nnext(address()); } - /** @return the value of the {@link XrVirtualKeyboardSpaceCreateInfoMETA#locationType} field. */ - @NativeType("XrVirtualKeyboardLocationTypeMETA") - public int locationType() { return XrVirtualKeyboardSpaceCreateInfoMETA.nlocationType(address()); } - /** @return the value of the {@link XrVirtualKeyboardSpaceCreateInfoMETA#space} field. */ - @NativeType("XrSpace") - public long space() { return XrVirtualKeyboardSpaceCreateInfoMETA.nspace(address()); } - /** @return a {@link XrPosef} view of the {@link XrVirtualKeyboardSpaceCreateInfoMETA#poseInSpace} field. */ - public XrPosef poseInSpace() { return XrVirtualKeyboardSpaceCreateInfoMETA.nposeInSpace(address()); } - - /** Sets the specified value to the {@link XrVirtualKeyboardSpaceCreateInfoMETA#type} field. */ - public XrVirtualKeyboardSpaceCreateInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrVirtualKeyboardSpaceCreateInfoMETA.ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_SPACE_CREATE_INFO_META TYPE_VIRTUAL_KEYBOARD_SPACE_CREATE_INFO_META} value to the {@link XrVirtualKeyboardSpaceCreateInfoMETA#type} field. */ - public XrVirtualKeyboardSpaceCreateInfoMETA.Buffer type$Default() { return type(METAVirtualKeyboard.XR_TYPE_VIRTUAL_KEYBOARD_SPACE_CREATE_INFO_META); } - /** Sets the specified value to the {@link XrVirtualKeyboardSpaceCreateInfoMETA#next} field. */ - public XrVirtualKeyboardSpaceCreateInfoMETA.Buffer next(@NativeType("void const *") long value) { XrVirtualKeyboardSpaceCreateInfoMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrVirtualKeyboardSpaceCreateInfoMETA#locationType} field. */ - public XrVirtualKeyboardSpaceCreateInfoMETA.Buffer locationType(@NativeType("XrVirtualKeyboardLocationTypeMETA") int value) { XrVirtualKeyboardSpaceCreateInfoMETA.nlocationType(address(), value); return this; } - /** Sets the specified value to the {@link XrVirtualKeyboardSpaceCreateInfoMETA#space} field. */ - public XrVirtualKeyboardSpaceCreateInfoMETA.Buffer space(XrSpace value) { XrVirtualKeyboardSpaceCreateInfoMETA.nspace(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrVirtualKeyboardSpaceCreateInfoMETA#poseInSpace} field. */ - public XrVirtualKeyboardSpaceCreateInfoMETA.Buffer poseInSpace(XrPosef value) { XrVirtualKeyboardSpaceCreateInfoMETA.nposeInSpace(address(), value); return this; } - /** Passes the {@link XrVirtualKeyboardSpaceCreateInfoMETA#poseInSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrVirtualKeyboardSpaceCreateInfoMETA.Buffer poseInSpace(java.util.function.Consumer consumer) { consumer.accept(poseInSpace()); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardTextContextChangeInfoMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardTextContextChangeInfoMETA.java deleted file mode 100644 index 5e32e60270..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardTextContextChangeInfoMETA.java +++ /dev/null @@ -1,345 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Virtual keyboard text context change info. - * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to using {@link XrVirtualKeyboardTextContextChangeInfoMETA}
  • - *
  • {@code type} must be {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_TEXT_CONTEXT_CHANGE_INFO_META TYPE_VIRTUAL_KEYBOARD_TEXT_CONTEXT_CHANGE_INFO_META}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • {@code textContext} must be a null-terminated UTF-8 string
  • - *
- * - *
See Also
- * - *

{@link METAVirtualKeyboard#xrChangeVirtualKeyboardTextContextMETA ChangeVirtualKeyboardTextContextMETA}

- * - *

Layout

- * - *

- * struct XrVirtualKeyboardTextContextChangeInfoMETA {
- *     XrStructureType {@link #type};
- *     void const * {@link #next};
- *     char const * {@link #textContext};
- * }
- */ -public class XrVirtualKeyboardTextContextChangeInfoMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - TEXTCONTEXT; - - static { - 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); - TEXTCONTEXT = layout.offsetof(2); - } - - protected XrVirtualKeyboardTextContextChangeInfoMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrVirtualKeyboardTextContextChangeInfoMETA create(long address, @Nullable ByteBuffer container) { - return new XrVirtualKeyboardTextContextChangeInfoMETA(address, container); - } - - /** - * Creates a {@code XrVirtualKeyboardTextContextChangeInfoMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrVirtualKeyboardTextContextChangeInfoMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 pointer to a {@code char} buffer, should contain prior input text context terminated with a null character. */ - @NativeType("char const *") - public ByteBuffer textContext() { return ntextContext(address()); } - /** a pointer to a {@code char} buffer, should contain prior input text context terminated with a null character. */ - @NativeType("char const *") - public String textContextString() { return ntextContextString(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrVirtualKeyboardTextContextChangeInfoMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_TEXT_CONTEXT_CHANGE_INFO_META TYPE_VIRTUAL_KEYBOARD_TEXT_CONTEXT_CHANGE_INFO_META} value to the {@link #type} field. */ - public XrVirtualKeyboardTextContextChangeInfoMETA type$Default() { return type(METAVirtualKeyboard.XR_TYPE_VIRTUAL_KEYBOARD_TEXT_CONTEXT_CHANGE_INFO_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrVirtualKeyboardTextContextChangeInfoMETA next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link #textContext} field. */ - public XrVirtualKeyboardTextContextChangeInfoMETA textContext(@NativeType("char const *") ByteBuffer value) { ntextContext(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrVirtualKeyboardTextContextChangeInfoMETA set( - int type, - long next, - ByteBuffer textContext - ) { - type(type); - next(next); - textContext(textContext); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrVirtualKeyboardTextContextChangeInfoMETA set(XrVirtualKeyboardTextContextChangeInfoMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrVirtualKeyboardTextContextChangeInfoMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrVirtualKeyboardTextContextChangeInfoMETA malloc() { - return new XrVirtualKeyboardTextContextChangeInfoMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrVirtualKeyboardTextContextChangeInfoMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrVirtualKeyboardTextContextChangeInfoMETA calloc() { - return new XrVirtualKeyboardTextContextChangeInfoMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrVirtualKeyboardTextContextChangeInfoMETA} instance allocated with {@link BufferUtils}. */ - public static XrVirtualKeyboardTextContextChangeInfoMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrVirtualKeyboardTextContextChangeInfoMETA(memAddress(container), container); - } - - /** Returns a new {@code XrVirtualKeyboardTextContextChangeInfoMETA} instance for the specified memory address. */ - public static XrVirtualKeyboardTextContextChangeInfoMETA create(long address) { - return new XrVirtualKeyboardTextContextChangeInfoMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrVirtualKeyboardTextContextChangeInfoMETA createSafe(long address) { - return address == NULL ? null : new XrVirtualKeyboardTextContextChangeInfoMETA(address, null); - } - - /** - * Returns a new {@link XrVirtualKeyboardTextContextChangeInfoMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardTextContextChangeInfoMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardTextContextChangeInfoMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardTextContextChangeInfoMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardTextContextChangeInfoMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardTextContextChangeInfoMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrVirtualKeyboardTextContextChangeInfoMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardTextContextChangeInfoMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrVirtualKeyboardTextContextChangeInfoMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrVirtualKeyboardTextContextChangeInfoMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrVirtualKeyboardTextContextChangeInfoMETA malloc(MemoryStack stack) { - return new XrVirtualKeyboardTextContextChangeInfoMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrVirtualKeyboardTextContextChangeInfoMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrVirtualKeyboardTextContextChangeInfoMETA calloc(MemoryStack stack) { - return new XrVirtualKeyboardTextContextChangeInfoMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrVirtualKeyboardTextContextChangeInfoMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardTextContextChangeInfoMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardTextContextChangeInfoMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardTextContextChangeInfoMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardTextContextChangeInfoMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrVirtualKeyboardTextContextChangeInfoMETA.NEXT); } - /** Unsafe version of {@link #textContext}. */ - public static ByteBuffer ntextContext(long struct) { return memByteBufferNT1(memGetAddress(struct + XrVirtualKeyboardTextContextChangeInfoMETA.TEXTCONTEXT)); } - /** Unsafe version of {@link #textContextString}. */ - public static String ntextContextString(long struct) { return memUTF8(memGetAddress(struct + XrVirtualKeyboardTextContextChangeInfoMETA.TEXTCONTEXT)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVirtualKeyboardTextContextChangeInfoMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrVirtualKeyboardTextContextChangeInfoMETA.NEXT, value); } - /** Unsafe version of {@link #textContext(ByteBuffer) textContext}. */ - public static void ntextContext(long struct, ByteBuffer value) { - if (CHECKS) { checkNT1(value); } - memPutAddress(struct + XrVirtualKeyboardTextContextChangeInfoMETA.TEXTCONTEXT, memAddress(value)); - } - - /** - * Validates pointer members that should not be {@code NULL}. - * - * @param struct the struct to validate - */ - public static void validate(long struct) { - check(memGetAddress(struct + XrVirtualKeyboardTextContextChangeInfoMETA.TEXTCONTEXT)); - } - - // ----------------------------------- - - /** An array of {@link XrVirtualKeyboardTextContextChangeInfoMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrVirtualKeyboardTextContextChangeInfoMETA ELEMENT_FACTORY = XrVirtualKeyboardTextContextChangeInfoMETA.create(-1L); - - /** - * Creates a new {@code XrVirtualKeyboardTextContextChangeInfoMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrVirtualKeyboardTextContextChangeInfoMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrVirtualKeyboardTextContextChangeInfoMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrVirtualKeyboardTextContextChangeInfoMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVirtualKeyboardTextContextChangeInfoMETA.ntype(address()); } - /** @return the value of the {@link XrVirtualKeyboardTextContextChangeInfoMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrVirtualKeyboardTextContextChangeInfoMETA.nnext(address()); } - /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrVirtualKeyboardTextContextChangeInfoMETA#textContext} field. */ - @NativeType("char const *") - public ByteBuffer textContext() { return XrVirtualKeyboardTextContextChangeInfoMETA.ntextContext(address()); } - /** @return the null-terminated string pointed to by the {@link XrVirtualKeyboardTextContextChangeInfoMETA#textContext} field. */ - @NativeType("char const *") - public String textContextString() { return XrVirtualKeyboardTextContextChangeInfoMETA.ntextContextString(address()); } - - /** Sets the specified value to the {@link XrVirtualKeyboardTextContextChangeInfoMETA#type} field. */ - public XrVirtualKeyboardTextContextChangeInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrVirtualKeyboardTextContextChangeInfoMETA.ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_TEXT_CONTEXT_CHANGE_INFO_META TYPE_VIRTUAL_KEYBOARD_TEXT_CONTEXT_CHANGE_INFO_META} value to the {@link XrVirtualKeyboardTextContextChangeInfoMETA#type} field. */ - public XrVirtualKeyboardTextContextChangeInfoMETA.Buffer type$Default() { return type(METAVirtualKeyboard.XR_TYPE_VIRTUAL_KEYBOARD_TEXT_CONTEXT_CHANGE_INFO_META); } - /** Sets the specified value to the {@link XrVirtualKeyboardTextContextChangeInfoMETA#next} field. */ - public XrVirtualKeyboardTextContextChangeInfoMETA.Buffer next(@NativeType("void const *") long value) { XrVirtualKeyboardTextContextChangeInfoMETA.nnext(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link XrVirtualKeyboardTextContextChangeInfoMETA#textContext} field. */ - public XrVirtualKeyboardTextContextChangeInfoMETA.Buffer textContext(@NativeType("char const *") ByteBuffer value) { XrVirtualKeyboardTextContextChangeInfoMETA.ntextContext(address(), value); return this; } - - } - -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardTextureDataMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardTextureDataMETA.java deleted file mode 100644 index e4996be3f6..0000000000 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVirtualKeyboardTextureDataMETA.java +++ /dev/null @@ -1,406 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * 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.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -/** - * Virtual keyboard texture data. - * - *
Valid Usage (Implicit)
- * - *
    - *
  • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to using {@link XrVirtualKeyboardTextureDataMETA}
  • - *
  • {@code type} must be {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_TEXTURE_DATA_META TYPE_VIRTUAL_KEYBOARD_TEXTURE_DATA_META}
  • - *
  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
  • - *
  • If {@code bufferCapacityInput} is not 0, {@code buffer} must be a pointer to an array of {@code bufferCapacityInput} {@code uint8_t} values
  • - *
- * - *
See Also
- * - *

{@link METAVirtualKeyboard#xrGetVirtualKeyboardTextureDataMETA GetVirtualKeyboardTextureDataMETA}

- * - *

Layout

- * - *

- * struct XrVirtualKeyboardTextureDataMETA {
- *     XrStructureType {@link #type};
- *     void * {@link #next};
- *     uint32_t {@link #textureWidth};
- *     uint32_t {@link #textureHeight};
- *     uint32_t {@link #bufferCapacityInput};
- *     uint32_t {@link #bufferCountOutput};
- *     uint8_t * {@link #buffer};
- * }
- */ -public class XrVirtualKeyboardTextureDataMETA extends Struct implements NativeResource { - - /** The struct size in bytes. */ - public static final int SIZEOF; - - /** The struct alignment in bytes. */ - public static final int ALIGNOF; - - /** The struct member offsets. */ - public static final int - TYPE, - NEXT, - TEXTUREWIDTH, - TEXTUREHEIGHT, - BUFFERCAPACITYINPUT, - BUFFERCOUNTOUTPUT, - BUFFER; - - static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(4), - __member(4), - __member(POINTER_SIZE) - ); - - SIZEOF = layout.getSize(); - ALIGNOF = layout.getAlignment(); - - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - TEXTUREWIDTH = layout.offsetof(2); - TEXTUREHEIGHT = layout.offsetof(3); - BUFFERCAPACITYINPUT = layout.offsetof(4); - BUFFERCOUNTOUTPUT = layout.offsetof(5); - BUFFER = layout.offsetof(6); - } - - protected XrVirtualKeyboardTextureDataMETA(long address, @Nullable ByteBuffer container) { - super(address, container); - } - - @Override - protected XrVirtualKeyboardTextureDataMETA create(long address, @Nullable ByteBuffer container) { - return new XrVirtualKeyboardTextureDataMETA(address, container); - } - - /** - * Creates a {@code XrVirtualKeyboardTextureDataMETA} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be - * visible to the struct instance and vice versa. - * - *

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

- */ - public XrVirtualKeyboardTextureDataMETA(ByteBuffer container) { - super(memAddress(container), __checkContainer(container, SIZEOF)); - } - - @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 pixel width of the texture to be updated. */ - @NativeType("uint32_t") - public int textureWidth() { return ntextureWidth(address()); } - /** the pixel height of the texture to be updated. */ - @NativeType("uint32_t") - public int textureHeight() { return ntextureHeight(address()); } - /** the capacity of {@code buffer}, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int bufferCapacityInput() { return nbufferCapacityInput(address()); } - /** filled in by the runtime with the byte count written or the required capacity in the case that {@code bufferCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int bufferCountOutput() { return nbufferCountOutput(address()); } - /** the pixel data in linear color space, RGBA 8-bit unsigned normalized integer format (i.e. GL_RGBA8 in OpenGL, VK_FORMAT_R8G8B8A8_UNORM in Vulkan). */ - @Nullable - @NativeType("uint8_t *") - public ByteBuffer buffer() { return nbuffer(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrVirtualKeyboardTextureDataMETA type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_TEXTURE_DATA_META TYPE_VIRTUAL_KEYBOARD_TEXTURE_DATA_META} value to the {@link #type} field. */ - public XrVirtualKeyboardTextureDataMETA type$Default() { return type(METAVirtualKeyboard.XR_TYPE_VIRTUAL_KEYBOARD_TEXTURE_DATA_META); } - /** Sets the specified value to the {@link #next} field. */ - public XrVirtualKeyboardTextureDataMETA next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #textureWidth} field. */ - public XrVirtualKeyboardTextureDataMETA textureWidth(@NativeType("uint32_t") int value) { ntextureWidth(address(), value); return this; } - /** Sets the specified value to the {@link #textureHeight} field. */ - public XrVirtualKeyboardTextureDataMETA textureHeight(@NativeType("uint32_t") int value) { ntextureHeight(address(), value); return this; } - /** Sets the specified value to the {@link #bufferCapacityInput} field. */ - public XrVirtualKeyboardTextureDataMETA bufferCapacityInput(@NativeType("uint32_t") int value) { nbufferCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #bufferCountOutput} field. */ - public XrVirtualKeyboardTextureDataMETA 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 XrVirtualKeyboardTextureDataMETA buffer(@Nullable @NativeType("uint8_t *") ByteBuffer value) { nbuffer(address(), value); return this; } - - /** Initializes this struct with the specified values. */ - public XrVirtualKeyboardTextureDataMETA set( - int type, - long next, - int textureWidth, - int textureHeight, - int bufferCapacityInput, - int bufferCountOutput, - @Nullable ByteBuffer buffer - ) { - type(type); - next(next); - textureWidth(textureWidth); - textureHeight(textureHeight); - bufferCapacityInput(bufferCapacityInput); - bufferCountOutput(bufferCountOutput); - buffer(buffer); - - return this; - } - - /** - * Copies the specified struct data to this struct. - * - * @param src the source struct - * - * @return this struct - */ - public XrVirtualKeyboardTextureDataMETA set(XrVirtualKeyboardTextureDataMETA src) { - memCopy(src.address(), address(), SIZEOF); - return this; - } - - // ----------------------------------- - - /** Returns a new {@code XrVirtualKeyboardTextureDataMETA} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ - public static XrVirtualKeyboardTextureDataMETA malloc() { - return new XrVirtualKeyboardTextureDataMETA(nmemAllocChecked(SIZEOF), null); - } - - /** Returns a new {@code XrVirtualKeyboardTextureDataMETA} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ - public static XrVirtualKeyboardTextureDataMETA calloc() { - return new XrVirtualKeyboardTextureDataMETA(nmemCallocChecked(1, SIZEOF), null); - } - - /** Returns a new {@code XrVirtualKeyboardTextureDataMETA} instance allocated with {@link BufferUtils}. */ - public static XrVirtualKeyboardTextureDataMETA create() { - ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); - return new XrVirtualKeyboardTextureDataMETA(memAddress(container), container); - } - - /** Returns a new {@code XrVirtualKeyboardTextureDataMETA} instance for the specified memory address. */ - public static XrVirtualKeyboardTextureDataMETA create(long address) { - return new XrVirtualKeyboardTextureDataMETA(address, null); - } - - /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrVirtualKeyboardTextureDataMETA createSafe(long address) { - return address == NULL ? null : new XrVirtualKeyboardTextureDataMETA(address, null); - } - - /** - * Returns a new {@link XrVirtualKeyboardTextureDataMETA.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardTextureDataMETA.Buffer malloc(int capacity) { - return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardTextureDataMETA.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardTextureDataMETA.Buffer calloc(int capacity) { - return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardTextureDataMETA.Buffer} instance allocated with {@link BufferUtils}. - * - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardTextureDataMETA.Buffer create(int capacity) { - ByteBuffer container = __create(capacity, SIZEOF); - return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); - } - - /** - * Create a {@link XrVirtualKeyboardTextureDataMETA.Buffer} instance at the specified memory. - * - * @param address the memory address - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardTextureDataMETA.Buffer create(long address, int capacity) { - return new Buffer(address, capacity); - } - - /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ - @Nullable - public static XrVirtualKeyboardTextureDataMETA.Buffer createSafe(long address, int capacity) { - return address == NULL ? null : new Buffer(address, capacity); - } - - /** - * Returns a new {@code XrVirtualKeyboardTextureDataMETA} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - */ - public static XrVirtualKeyboardTextureDataMETA malloc(MemoryStack stack) { - return new XrVirtualKeyboardTextureDataMETA(stack.nmalloc(ALIGNOF, SIZEOF), null); - } - - /** - * Returns a new {@code XrVirtualKeyboardTextureDataMETA} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - */ - public static XrVirtualKeyboardTextureDataMETA calloc(MemoryStack stack) { - return new XrVirtualKeyboardTextureDataMETA(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); - } - - /** - * Returns a new {@link XrVirtualKeyboardTextureDataMETA.Buffer} instance allocated on the specified {@link MemoryStack}. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardTextureDataMETA.Buffer malloc(int capacity, MemoryStack stack) { - return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); - } - - /** - * Returns a new {@link XrVirtualKeyboardTextureDataMETA.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. - * - * @param stack the stack from which to allocate - * @param capacity the buffer capacity - */ - public static XrVirtualKeyboardTextureDataMETA.Buffer calloc(int capacity, MemoryStack stack) { - return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); - } - - // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardTextureDataMETA.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrVirtualKeyboardTextureDataMETA.NEXT); } - /** Unsafe version of {@link #textureWidth}. */ - public static int ntextureWidth(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardTextureDataMETA.TEXTUREWIDTH); } - /** Unsafe version of {@link #textureHeight}. */ - public static int ntextureHeight(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardTextureDataMETA.TEXTUREHEIGHT); } - /** Unsafe version of {@link #bufferCapacityInput}. */ - public static int nbufferCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardTextureDataMETA.BUFFERCAPACITYINPUT); } - /** Unsafe version of {@link #bufferCountOutput}. */ - public static int nbufferCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrVirtualKeyboardTextureDataMETA.BUFFERCOUNTOUTPUT); } - /** Unsafe version of {@link #buffer() buffer}. */ - @Nullable public static ByteBuffer nbuffer(long struct) { return memByteBufferSafe(memGetAddress(struct + XrVirtualKeyboardTextureDataMETA.BUFFER), nbufferCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVirtualKeyboardTextureDataMETA.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrVirtualKeyboardTextureDataMETA.NEXT, value); } - /** Unsafe version of {@link #textureWidth(int) textureWidth}. */ - public static void ntextureWidth(long struct, int value) { UNSAFE.putInt(null, struct + XrVirtualKeyboardTextureDataMETA.TEXTUREWIDTH, value); } - /** Unsafe version of {@link #textureHeight(int) textureHeight}. */ - public static void ntextureHeight(long struct, int value) { UNSAFE.putInt(null, struct + XrVirtualKeyboardTextureDataMETA.TEXTUREHEIGHT, 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 + XrVirtualKeyboardTextureDataMETA.BUFFERCAPACITYINPUT, value); } - /** Unsafe version of {@link #bufferCountOutput(int) bufferCountOutput}. */ - public static void nbufferCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrVirtualKeyboardTextureDataMETA.BUFFERCOUNTOUTPUT, value); } - /** Unsafe version of {@link #buffer(ByteBuffer) buffer}. */ - public static void nbuffer(long struct, @Nullable ByteBuffer value) { memPutAddress(struct + XrVirtualKeyboardTextureDataMETA.BUFFER, memAddressSafe(value)); if (value != null) { nbufferCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- - - /** An array of {@link XrVirtualKeyboardTextureDataMETA} structs. */ - public static class Buffer extends StructBuffer implements NativeResource { - - private static final XrVirtualKeyboardTextureDataMETA ELEMENT_FACTORY = XrVirtualKeyboardTextureDataMETA.create(-1L); - - /** - * Creates a new {@code XrVirtualKeyboardTextureDataMETA.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 - * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided - * by {@link XrVirtualKeyboardTextureDataMETA#SIZEOF}, and its mark will be undefined.

- * - *

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

- */ - public Buffer(ByteBuffer container) { - super(container, container.remaining() / SIZEOF); - } - - public Buffer(long address, int cap) { - super(address, null, -1, 0, cap, cap); - } - - Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { - super(address, container, mark, pos, lim, cap); - } - - @Override - protected Buffer self() { - return this; - } - - @Override - protected XrVirtualKeyboardTextureDataMETA getElementFactory() { - return ELEMENT_FACTORY; - } - - /** @return the value of the {@link XrVirtualKeyboardTextureDataMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVirtualKeyboardTextureDataMETA.ntype(address()); } - /** @return the value of the {@link XrVirtualKeyboardTextureDataMETA#next} field. */ - @NativeType("void *") - public long next() { return XrVirtualKeyboardTextureDataMETA.nnext(address()); } - /** @return the value of the {@link XrVirtualKeyboardTextureDataMETA#textureWidth} field. */ - @NativeType("uint32_t") - public int textureWidth() { return XrVirtualKeyboardTextureDataMETA.ntextureWidth(address()); } - /** @return the value of the {@link XrVirtualKeyboardTextureDataMETA#textureHeight} field. */ - @NativeType("uint32_t") - public int textureHeight() { return XrVirtualKeyboardTextureDataMETA.ntextureHeight(address()); } - /** @return the value of the {@link XrVirtualKeyboardTextureDataMETA#bufferCapacityInput} field. */ - @NativeType("uint32_t") - public int bufferCapacityInput() { return XrVirtualKeyboardTextureDataMETA.nbufferCapacityInput(address()); } - /** @return the value of the {@link XrVirtualKeyboardTextureDataMETA#bufferCountOutput} field. */ - @NativeType("uint32_t") - public int bufferCountOutput() { return XrVirtualKeyboardTextureDataMETA.nbufferCountOutput(address()); } - /** @return a {@link ByteBuffer} view of the data pointed to by the {@link XrVirtualKeyboardTextureDataMETA#buffer} field. */ - @Nullable - @NativeType("uint8_t *") - public ByteBuffer buffer() { return XrVirtualKeyboardTextureDataMETA.nbuffer(address()); } - - /** Sets the specified value to the {@link XrVirtualKeyboardTextureDataMETA#type} field. */ - public XrVirtualKeyboardTextureDataMETA.Buffer type(@NativeType("XrStructureType") int value) { XrVirtualKeyboardTextureDataMETA.ntype(address(), value); return this; } - /** Sets the {@link METAVirtualKeyboard#XR_TYPE_VIRTUAL_KEYBOARD_TEXTURE_DATA_META TYPE_VIRTUAL_KEYBOARD_TEXTURE_DATA_META} value to the {@link XrVirtualKeyboardTextureDataMETA#type} field. */ - public XrVirtualKeyboardTextureDataMETA.Buffer type$Default() { return type(METAVirtualKeyboard.XR_TYPE_VIRTUAL_KEYBOARD_TEXTURE_DATA_META); } - /** Sets the specified value to the {@link XrVirtualKeyboardTextureDataMETA#next} field. */ - public XrVirtualKeyboardTextureDataMETA.Buffer next(@NativeType("void *") long value) { XrVirtualKeyboardTextureDataMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrVirtualKeyboardTextureDataMETA#textureWidth} field. */ - public XrVirtualKeyboardTextureDataMETA.Buffer textureWidth(@NativeType("uint32_t") int value) { XrVirtualKeyboardTextureDataMETA.ntextureWidth(address(), value); return this; } - /** Sets the specified value to the {@link XrVirtualKeyboardTextureDataMETA#textureHeight} field. */ - public XrVirtualKeyboardTextureDataMETA.Buffer textureHeight(@NativeType("uint32_t") int value) { XrVirtualKeyboardTextureDataMETA.ntextureHeight(address(), value); return this; } - /** Sets the specified value to the {@link XrVirtualKeyboardTextureDataMETA#bufferCapacityInput} field. */ - public XrVirtualKeyboardTextureDataMETA.Buffer bufferCapacityInput(@NativeType("uint32_t") int value) { XrVirtualKeyboardTextureDataMETA.nbufferCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrVirtualKeyboardTextureDataMETA#bufferCountOutput} field. */ - public XrVirtualKeyboardTextureDataMETA.Buffer bufferCountOutput(@NativeType("uint32_t") int value) { XrVirtualKeyboardTextureDataMETA.nbufferCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link ByteBuffer} to the {@link XrVirtualKeyboardTextureDataMETA#buffer} field. */ - public XrVirtualKeyboardTextureDataMETA.Buffer buffer(@Nullable @NativeType("uint8_t *") ByteBuffer value) { XrVirtualKeyboardTextureDataMETA.nbuffer(address(), value); return this; } - - } - -} \ No newline at end of file